diff --git a/alsa-utils.spec b/alsa-utils.spec index 7764863..0357898 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -1,5 +1,6 @@ %define baseversion 1.0.27 %define fixversion .2 +%global _hardened_build 1 Summary: Advanced Linux Sound Architecture (ALSA) utilities Name: alsa-utils @@ -24,7 +25,11 @@ BuildRequires: libsamplerate-devel BuildRequires: ncurses-devel BuildRequires: gettext-devel BuildRequires: xmlto +BuildRequires: systemd BuildRequires: systemd-units >= 39-2 +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd Conflicts: udev <= 179-2 # use latest alsa-lib - the executables in this package requires latest API Requires: alsa-lib%{?_isa} >= %{baseversion}, systemd-units >= 39-2 @@ -114,8 +119,19 @@ fi if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then mv /etc/asound.state /var/lib/alsa/asound.state fi +%systemd_post alsa-state.service + +%preun +%systemd_preun alsa-state.service + +%postun +%systemd_postun_with_restart alsa-state.service %changelog +* Fri Jan 10 2014 Jaroslav Kysela - 1.0.27.2-5 +- Fix hardering build - rhbz#1008385 +- Add systemd scripts for alsa-state.service + * Sun Dec 29 2013 Jaroslav Kysela - 1.0.27.2-4 - Fix alsactl crash issue - rhbz#994832