From 74df8d82377f09ecb57f2c427fa502b1548391a7 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Thu, 4 Aug 2016 12:54:12 +0900 Subject: [PATCH] Do not install unused systemd service : alsa-store/restore [Version] 1.0.28-3 [Profile] All [Issue Type] Security Change-Id: I1a4b74c3d6b5621df7f92a51146e834f1f215f5c --- packaging/alsa-utils.spec | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/packaging/alsa-utils.spec b/packaging/alsa-utils.spec index 6f25d44..24a20b6 100644 --- a/packaging/alsa-utils.spec +++ b/packaging/alsa-utils.spec @@ -1,6 +1,6 @@ Name: alsa-utils Version: 1.0.28 -Release: 2 +Release: 3 License: GPL-2.0+ Summary: Advanced Linux Sound Architecture (ALSA) utilities Url: http://www.alsa-project.org/ @@ -8,8 +8,6 @@ Group: Applications/Multimedia Source0: ftp://ftp.alsa-project.org/pub/utils/%{name}-%{version}.tar.bz2 Source1001: alsa-utils.manifest BuildRequires: libasound-devel -BuildRequires: systemd-devel -%systemd_requires %description This package contains command line utilities for the Advanced Linux Sound @@ -37,8 +35,7 @@ export CFLAGS+=" -fPIC -pie" --disable-xmlto \ --disable-alsamixer \ --disable-alsatest \ - --with-udev-rules-dir=/lib/udev/rules.d \ - --with-systemdsystemunitdir=%{_unitdir} + --with-udev-rules-dir=/lib/udev/rules.d %__make %{?_smp_mflags} @@ -48,16 +45,6 @@ mkdir -p %{buildroot}/var/lib/alsa %remove_docs -%preun -%systemd_preun alsa-store.service alsa-restore.service - -%post -%systemd_post alsa-store.service alsa-restore.service - -%postun -%systemd_postun alsa-store.service alsa-restore.service - - %files %manifest %{name}.manifest %{_bindir}/* @@ -66,8 +53,3 @@ mkdir -p %{buildroot}/var/lib/alsa %{_datadir}/alsa/* %{_datadir}/sounds/* /lib/udev/rules.d/90-alsa-restore.rules -%{_unitdir}/*.service -%{_unitdir}/basic.target.wants/alsa-restore.service -%{_unitdir}/basic.target.wants/alsa-state.service -%{_unitdir}/shutdown.target.wants/alsa-store.service -%dir /var/lib/alsa -- 2.7.4