- clean up spec file

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=9
This commit is contained in:
Tim Hardeck 2017-03-21 15:23:30 +00:00 committed by Git OBS Bridge
parent c11412beea
commit 6651c9b405
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 21 15:23:14 UTC 2017 - thardeck@suse.com
- clean up spec file
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 21 14:23:27 UTC 2017 - thardeck@suse.com Tue Mar 21 14:23:27 UTC 2017 - thardeck@suse.com

View File

@ -39,22 +39,21 @@ This is the official command line client for Cloud Foundry.
%setup -q -n cli-%{version} %setup -q -n cli-%{version}
%build %build
cd %{_builddir}/cli-%{version} cp %{SOURCE1} ./
# show correct version instead of 0.0.0 # show correct version instead of 0.0.0
grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{version}/g' grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{version}/g'
%goprep %{import_path} %goprep %{import_path}
%gobuild %gobuild
%install %install
%goinstall
install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d
cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf
mkdir -p %{buildroot}/usr/bin mv %{buildroot}/%{_bindir}/cli %{buildroot}/%{_bindir}/cf
cp ../go/bin/cli %{buildroot}/usr/bin/cf
cp %{SOURCE1} ./
%files %files
/usr/bin/cf
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/cf
%config %{_sysconfdir}/bash_completion.d/cf %config %{_sysconfdir}/bash_completion.d/cf
%doc CHANGELOG.md LICENSE NOTICE README %doc CHANGELOG.md LICENSE NOTICE README