Accepting request 222367 from home:tiwai:branches:multimedia:libs

- Remove obsolete init scripts for SLE12 and later (bnc#863506);
  note that you may get errors at upgrading the package due to the
  old postun still accessing /etc/init.d/* files.  Nevertheless
  they are obliged to be removed.  If you see such errors, don't
  report to Bugzilla.  Relax, enjoy Olympic games instead.

OBS-URL: https://build.opensuse.org/request/show/222367
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=148
This commit is contained in:
Takashi Iwai 2014-02-14 15:03:12 +00:00 committed by Git OBS Bridge
parent e2683c5201
commit 07a80db8ef
2 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Feb 14 12:01:25 CET 2014 - tiwai@suse.de
- Remove obsolete init scripts for SLE12 and later (bnc#863506);
note that you may get errors at upgrading the package due to the
old postun still accessing /etc/init.d/* files. Nevertheless
they are obliged to be removed. If you see such errors, don't
report to Bugzilla. Relax, enjoy Olympic games instead.
-------------------------------------------------------------------
Fri Feb 14 11:31:09 CET 2014 - tiwai@suse.de

View File

@ -204,6 +204,7 @@ install -c -m 0755 %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT/usr/lib
install -c -m 0644 %{SOURCE31} $RPM_BUILD_ROOT/usr/lib
install -c -m 0644 %{SOURCE32} $RPM_BUILD_ROOT/usr/lib
%if %suse_version <= 1310
#
# install init scripts
#
@ -217,6 +218,7 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/rcalsasound
ln -s ../../etc/init.d/alsasound $RPM_BUILD_ROOT%{_sbindir}/rcalsasound
rm -f $RPM_BUILD_ROOT%{_sbindir}/rcjoystick
ln -s ../../etc/init.d/joystick $RPM_BUILD_ROOT%{_sbindir}/rcjoystick
%endif
#
# udev rules (only for non-systemd)
#
@ -240,9 +242,10 @@ install -c -m 0755 %{S:41} $RPM_BUILD_ROOT/sbin
#
mkdir -p -m 755 $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/sysconfig
for i in sound joystick; do
install -m 644 $RPM_SOURCE_DIR/sysconfig.$i $RPM_BUILD_ROOT/var/adm/fillup-templates
done
install -m 644 $RPM_SOURCE_DIR/sysconfig.sound $RPM_BUILD_ROOT/var/adm/fillup-templates
%if %suse_version <= 1310
install -m 644 $RPM_SOURCE_DIR/sysconfig.joystick $RPM_BUILD_ROOT/var/adm/fillup-templates
%endif
#
# documents
#
@ -255,10 +258,15 @@ cp doc/asoundrc.txt $RPM_BUILD_ROOT%{_docdir}/%{name}/alsa-lib
install -c -m 0755 %{SOURCE33} $RPM_BUILD_ROOT%{_sbindir}
%post
%if %suse_version > 1310
%{fillup_only -ny sound}
%else
%{fillup_and_insserv -ny sound alsasound}
%{fillup_and_insserv -n joystick joystick}
%endif
exit 0
%if %suse_version > 1310
%preun
%stop_on_removal alsasound joystick
exit 0
@ -267,6 +275,7 @@ exit 0
%restart_on_update alsasound joystick
%insserv_cleanup
exit 0
%endif
%post -n libasound2 -p /sbin/ldconfig
@ -275,7 +284,9 @@ exit 0
%files
%defattr(-, root, root)
%doc %{_docdir}/%{name}
%if %suse_version < 1310
/etc/init.d/*
%endif
%if %suse_version > 1220
/etc/modprobe.d
/sbin/*