make spec file for rpmbuild

This commit is contained in:
2023-02-27 15:38:32 +01:00
parent b3db042289
commit d8206b57f8

View File

@@ -25,7 +25,6 @@ URL: git@git.psi.ch:gfa_rpms/gfa-telwho.git
The good old command line phonebook
%prep
# %setup -q
%{__rm} -rf %{git_folder}
git clone %{url} %{git_folder}
@@ -35,7 +34,7 @@ GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build %{git_folder}/telwho.go
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__mkdir_p} $RPM_BUILD_ROOT/usr/local/bin
%{__cp} -a $RPM_BUILD_ROOT/telwho $RPM_BUILD_ROOT/usr/local/bin/telwho
%{__cp} -a %{_builddir}/telwho $RPM_BUILD_ROOT/usr/local/bin/telwho
%clean
%{__rm} -rf $RPM_BUILD_ROOT