Accepting request 203042 from home:jengelh:branches:devel:libraries:c_c++
forward to factory && 13.1: - Add update-alternatives rules to db48-utils (bnc#840738) OBS-URL: https://build.opensuse.org/request/show/203042 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libdb-4_8?expand=0&rev=36
This commit is contained in:
parent
281c2db59a
commit
523baa7bf7
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 8 16:27:57 UTC 2013 - jengelh@inai.de
|
||||
|
||||
- Add update-alternatives rules to db48-utils (bnc#840738)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 23 07:30:46 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
@ -52,8 +52,9 @@ This package contains the necessary runtime libraries.
|
||||
%package -n db48-utils
|
||||
Summary: Command Line tools for Managing Berkeley DB Databases
|
||||
Group: Productivity/Databases/Tools
|
||||
Provides: db-utils = %{version}
|
||||
Obsoletes: db-utils < %{version}
|
||||
Provides: db-utils
|
||||
Obsoletes: db-utils
|
||||
PreReq: update-alternatives
|
||||
|
||||
%description -n db48-utils
|
||||
The Berkeley DB Database is a programmatic toolkit that provides
|
||||
@ -173,8 +174,8 @@ mv %{buildroot}/%{docdir}/collections/tutorial %{buildroot}/%{docdir}/
|
||||
rm -rf %{buildroot}%{_libdir}/*.la
|
||||
rm -rf %{buildroot}%{_libdir}/tls/*.la
|
||||
|
||||
for i in archive checkpoint deadlock dump hotbackup load printlog \
|
||||
recover sql stat upgrade verify; do
|
||||
%define util_list archive checkpoint deadlock dump hotbackup load printlog recover sql stat upgrade verify
|
||||
for i in %util_list; do
|
||||
mv "%buildroot/%_bindir/db_$i" "%buildroot/%_bindir/db48_$i"
|
||||
done
|
||||
|
||||
@ -185,6 +186,17 @@ done
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post -n db48-utils
|
||||
for i in %util_list; do
|
||||
"%_sbindir/update-alternatives" --install "%_bindir/db_$i" \
|
||||
"db_$i" "%_bindir/db48_$i" 48
|
||||
done
|
||||
|
||||
%postun -n db48-utils
|
||||
for i in %util_list; do
|
||||
"%_sbindir/update-alternatives" --remove "db_$i" "%_bindir/db_$i"
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libdb-%{major}.%{minor}.so
|
||||
@ -208,18 +220,7 @@ done
|
||||
|
||||
%files -n db48-utils
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/db48_archive
|
||||
%{_bindir}/db48_checkpoint
|
||||
%{_bindir}/db48_deadlock
|
||||
%{_bindir}/db48_dump
|
||||
%{_bindir}/db48_hotbackup
|
||||
%{_bindir}/db48_load
|
||||
%{_bindir}/db48_printlog
|
||||
%{_bindir}/db48_recover
|
||||
%{_bindir}/db48_sql
|
||||
%{_bindir}/db48_stat
|
||||
%{_bindir}/db48_upgrade
|
||||
%{_bindir}/db48_verify
|
||||
%_bindir/db48_*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user