- 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:
parent
c11412beea
commit
6651c9b405
@ -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
|
||||
|
||||
|
@ -39,22 +39,21 @@ This is the official command line client for Cloud Foundry.
|
||||
%setup -q -n cli-%{version}
|
||||
|
||||
%build
|
||||
cd %{_builddir}/cli-%{version}
|
||||
cp %{SOURCE1} ./
|
||||
# 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'
|
||||
%goprep %{import_path}
|
||||
%gobuild
|
||||
|
||||
%install
|
||||
%goinstall
|
||||
install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d
|
||||
cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf
|
||||
mkdir -p %{buildroot}/usr/bin
|
||||
cp ../go/bin/cli %{buildroot}/usr/bin/cf
|
||||
cp %{SOURCE1} ./
|
||||
mv %{buildroot}/%{_bindir}/cli %{buildroot}/%{_bindir}/cf
|
||||
|
||||
%files
|
||||
/usr/bin/cf
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/cf
|
||||
%config %{_sysconfdir}/bash_completion.d/cf
|
||||
%doc CHANGELOG.md LICENSE NOTICE README
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user