make spec file for rpmbuild

This commit is contained in:
2023-02-27 15:30:00 +01:00
parent 45859c0377
commit fad948d12e

View File

@@ -30,7 +30,7 @@ The good old command line phonebook
git clone %{url} %{git_folder}
%build
GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build telwho.go
GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build %{git_folder}/telwho.go
%install
%{__rm} -rf $RPM_BUILD_ROOT
@@ -39,6 +39,7 @@ GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build telwho.go
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%{__rm} -rf %{git_folder}
%post