- Provide alternatives binary and alternatives = %{version} symbol

OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=36
This commit is contained in:
Tomáš Chvátal 2016-05-13 12:04:06 +00:00 committed by Git OBS Bridge
parent a65785c80b
commit 10e5eaa599
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 13 12:03:28 UTC 2016 - tchvatal@suse.com
- Provide alternatives binary and alternatives = %{version} symbol
-------------------------------------------------------------------
Wed Apr 6 18:20:13 UTC 2016 - tchvatal@suse.com

View File

@ -32,6 +32,7 @@ Patch6: dpkg-sparc.diff
Patch7: 0001-In-case-of-equal-priority-rather-update.patch
BuildRequires: ncurses-devel
BuildRequires: xz
Provides: alternatives = %{version}
Requires(post): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -68,6 +69,7 @@ install -d -m 0755 %{buildroot}/%{admindir}/alternatives
install -d -m 0755 %{buildroot}/%{_localstatedir}/log
install -m 0755 utils/%{name} %{buildroot}/%{_sbindir}
ln -s %{name} %{buildroot}/%{_sbindir}/alternatives
install -m 0644 man/%{name}.1 %{buildroot}/%{_mandir}/man1/
%post
@ -84,6 +86,7 @@ done
%doc COPYING
%dir %{_sysconfdir}/alternatives
%dir %{_localstatedir}/lib/rpm/alternatives
%{_sbindir}/alternatives
%{_sbindir}/update-alternatives
%{_mandir}/man1/update-alternatives.1*
%ghost %{_localstatedir}/log/alternatives.log