jskarvad pushed to acpid (f22). "Drop sysvinit subpackage in F23+"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Jun 2 08:24:58 UTC 2015
From d3a7415c18f90288e84fb42d161f525ecc30120d Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax at redhat.com>
Date: Thu, 5 Mar 2015 14:23:44 -0500
Subject: Drop sysvinit subpackage in F23+
diff --git a/acpid.spec b/acpid.spec
index 63f1897..850f05a 100644
--- a/acpid.spec
+++ b/acpid.spec
@@ -8,7 +8,7 @@
Summary: ACPI Event Daemon
Name: acpid
Version: 2.0.23
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz
@@ -32,6 +32,7 @@ Requires: systemd
%description
acpid is a daemon that dispatches ACPI events to user-space programs.
+%if 0%{?fedora} < 23
%package sysvinit
Summary: ACPI Event Daemon
Group: System Environment/Daemons
@@ -40,6 +41,7 @@ Requires(preun): /sbin/service
%description sysvinit
The acpid-sysvinit contains SysV initscript.
+%endif
%prep
%setup -q
@@ -67,8 +69,10 @@ install -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh
install -m 644 %{SOURCE5} %{SOURCE7} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid
+%if 0%{?fedora} < 23
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/acpid
+%endif
%clean
@@ -94,8 +98,10 @@ rm -rf %{buildroot}
%{_mandir}/man8/acpi_listen.8.gz
%{_mandir}/man8/kacpimon.8.gz
+%if 0%{?fedora} < 23
%files sysvinit
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/acpid
+%endif
%pre
if [ "$1" = "2" ]; then
@@ -122,11 +128,16 @@ fi
/sbin/chkconfig --del acpid >/dev/null 2>&1 || :
/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
+%if 0%{?fedora} < 23
%triggerpostun -n %{name}-sysvinit -- %{name} < 2.0.10-2
/sbin/chkconfig --add acpid >/dev/null 2>&1 || :
+%endif
%changelog
+* Thu Mar 05 2015 Adam Jackson <ajax at redhat.com> 2.0.23-2
+- Drop sysvinit subpackage in F23+
+
* Tue Aug 26 2014 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.23-1
- New version
Resolves: rhbz#1133263
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/acpid.git/commit/?h=f22&id=d3a7415c18f90288e84fb42d161f525ecc30120d
More information about the scm-commits
mailing list