- fix update-alternatives usage
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libdb-4_8?expand=0&rev=37
This commit is contained in:
parent
523baa7bf7
commit
440ccfde07
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 21 13:05:38 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- fix update-alternatives usage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 8 16:27:57 UTC 2013 - jengelh@inai.de
|
Tue Oct 8 16:27:57 UTC 2013 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -174,9 +174,14 @@ mv %{buildroot}/%{docdir}/collections/tutorial %{buildroot}/%{docdir}/
|
|||||||
rm -rf %{buildroot}%{_libdir}/*.la
|
rm -rf %{buildroot}%{_libdir}/*.la
|
||||||
rm -rf %{buildroot}%{_libdir}/tls/*.la
|
rm -rf %{buildroot}%{_libdir}/tls/*.la
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
|
||||||
%define util_list archive checkpoint deadlock dump hotbackup load printlog recover sql stat upgrade verify
|
%define util_list archive checkpoint deadlock dump hotbackup load printlog recover sql stat upgrade verify
|
||||||
for i in %util_list; do
|
for i in %util_list; do
|
||||||
mv "%buildroot/%_bindir/db_$i" "%buildroot/%_bindir/db48_$i"
|
# dummy
|
||||||
|
touch "%{buildroot}%{_sysconfdir}/alternatives/db_$i"
|
||||||
|
mv "%buildroot/%_bindir/db_$i" "%buildroot/%_bindir/db48_$i"
|
||||||
|
ln -s "%{_sysconfdir}/alternatives/db_$i" "%{buildroot}%_bindir/db_$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
%fdupes %{buildroot}%{_libdir}
|
%fdupes %{buildroot}%{_libdir}
|
||||||
@ -221,6 +226,19 @@ done
|
|||||||
%files -n db48-utils
|
%files -n db48-utils
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_bindir/db48_*
|
%_bindir/db48_*
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_archive
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_checkpoint
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_deadlock
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_dump
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_hotbackup
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_load
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_printlog
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_recover
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_sql
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_stat
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_upgrade
|
||||||
|
%ghost %{_sysconfdir}/alternatives/db_verify
|
||||||
|
%_bindir/db_*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user