Accepting request 222368 from 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. (forwarded request 222367 from tiwai) OBS-URL: https://build.opensuse.org/request/show/222368 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alsa?expand=0&rev=144
This commit is contained in:
commit
a355e62dd8
14
alsa.changes
14
alsa.changes
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- Fix build for SLE11 due to missing udev rules dir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 6 11:02:34 CET 2014 - tiwai@suse.de
|
||||
|
||||
|
19
alsa.spec
19
alsa.spec
@ -21,6 +21,8 @@ BuildRequires: doxygen
|
||||
BuildRequires: libtool
|
||||
%if %suse_version > 1200
|
||||
BuildRequires: libudev-devel
|
||||
%else
|
||||
BuildRequires: udev
|
||||
%endif
|
||||
BuildRequires: pkg-config
|
||||
%define package_version 1.0.27.2
|
||||
@ -202,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
|
||||
#
|
||||
@ -215,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)
|
||||
#
|
||||
@ -238,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
|
||||
#
|
||||
@ -253,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
|
||||
@ -265,6 +275,7 @@ exit 0
|
||||
%restart_on_update alsasound joystick
|
||||
%insserv_cleanup
|
||||
exit 0
|
||||
%endif
|
||||
|
||||
%post -n libasound2 -p /sbin/ldconfig
|
||||
|
||||
@ -273,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/*
|
||||
|
Loading…
Reference in New Issue
Block a user