[alsa-utils] hardering
perex
perex at fedoraproject.org
Fri Jan 10 08:07:36 UTC 2014
commit 25bc0f45d72fb05f028b6f84de324c825ab39531
Author: Jaroslav Kysela <perex at perex.cz>
Date: Fri Jan 10 09:07:20 2014 +0100
hardering
alsa-utils.spec | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
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 <jkysela at redhat.com> - 1.0.27.2-5
+- Fix hardering build - rhbz#1008385
+- Add systemd scripts for alsa-state.service
+
* Sun Dec 29 2013 Jaroslav Kysela <jkysela at redhat.com> - 1.0.27.2-4
- Fix alsactl crash issue - rhbz#994832
More information about the scm-commits
mailing list