hardering

This commit is contained in:
Jaroslav Kysela 2014-01-10 09:07:20 +01:00
parent 22a9950c1b
commit 25bc0f45d7

View File

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