Accepting request 207829 from Base:System
Drop sysvinit dupport; acpid doesn't build for distributions which use sysvinit (forwarded request 207065 from posophe) OBS-URL: https://build.opensuse.org/request/show/207829 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acpid?expand=0&rev=66
This commit is contained in:
commit
d1a62d7f58
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 19 15:06:50 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Drop sysvinit dupport; acpid doesn't build for distributions which
|
||||||
|
use sysvinit
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 13 06:44:10 UTC 2013 - mchang@suse.com
|
Tue Aug 13 06:44:10 UTC 2013 - mchang@suse.com
|
||||||
|
|
||||||
|
14
acpid.spec
14
acpid.spec
@ -24,7 +24,6 @@ License: GPL-2.0+
|
|||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
Url: http://tedfelix.com/linux/acpid-netlink.html
|
Url: http://tedfelix.com/linux/acpid-netlink.html
|
||||||
Source: http://downloads.sourceforge.net/project/acpid2/%{name}-%{version}.tar.xz
|
Source: http://downloads.sourceforge.net/project/acpid2/%{name}-%{version}.tar.xz
|
||||||
Source2: rcacpid
|
|
||||||
Source3: README.SuSE
|
Source3: README.SuSE
|
||||||
Source5: events.power_button
|
Source5: events.power_button
|
||||||
Source6: thinkpad_handler
|
Source6: thinkpad_handler
|
||||||
@ -38,8 +37,6 @@ Source11: sleep_button
|
|||||||
Patch1: acpid-makefile.patch
|
Patch1: acpid-makefile.patch
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
Requires(pre): %fillup_prereq
|
|
||||||
Requires(pre): %insserv_prereq
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExclusiveArch: %ix86 x86_64 ia64
|
ExclusiveArch: %ix86 x86_64 ia64
|
||||||
%systemd_requires
|
%systemd_requires
|
||||||
@ -56,7 +53,7 @@ Configure it in /etc/sysconfig/powermanagement.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch1
|
%patch1
|
||||||
|
|
||||||
cp %{SOURCE2} %{SOURCE3} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE9} %{SOURCE10} %{SOURCE11} .
|
cp %{SOURCE3} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE9} %{SOURCE10} %{SOURCE11} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||||
@ -65,13 +62,11 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} SBINDIR=%{_sbindir}
|
make install DESTDIR=%{buildroot} SBINDIR=%{_sbindir}
|
||||||
install -Dm 744 rcacpid %{buildroot}%{_initddir}/acpid
|
|
||||||
install -Dm 744 thinkpad_handler %{buildroot}%{_prefix}/lib/acpid/thinkpad_handler
|
install -Dm 744 thinkpad_handler %{buildroot}%{_prefix}/lib/acpid/thinkpad_handler
|
||||||
mkdir -p %{buildroot}%{_prefix}/sbin
|
|
||||||
ln -sf ../../etc/init.d/acpid %{buildroot}%{_sbindir}/rcacpid
|
|
||||||
install -Dm 644 events.thinkpad %{buildroot}%{_sysconfdir}/acpi/events/thinkpad
|
install -Dm 644 events.thinkpad %{buildroot}%{_sysconfdir}/acpi/events/thinkpad
|
||||||
mkdir -p %{buildroot}/%{_unitdir}
|
mkdir -p %{buildroot}/%{_unitdir}
|
||||||
install -m 644 %{SOURCE8} %{buildroot}/%{_unitdir}
|
install -m 644 %{SOURCE8} %{buildroot}/%{_unitdir}
|
||||||
|
ln -sf ../../%{_unitdir}/acpid.service %{buildroot}%{_sbindir}/rcacpid
|
||||||
|
|
||||||
# formerly installed, but no longer useful with systemd. Keep as documentation.
|
# formerly installed, but no longer useful with systemd. Keep as documentation.
|
||||||
cp -p events.power_button events.sleep_button power_button sleep_button samples/
|
cp -p events.power_button events.sleep_button power_button sleep_button samples/
|
||||||
@ -85,16 +80,12 @@ touch %{buildroot}%{_localstatedir}/log/acpid
|
|||||||
%service_add_pre acpid.service
|
%service_add_pre acpid.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_and_insserv -y -f acpid}
|
|
||||||
%service_add_post acpid.service
|
%service_add_post acpid.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update acpid
|
|
||||||
%{insserv_cleanup}
|
|
||||||
%service_del_postun acpid.service
|
%service_del_postun acpid.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal acpid
|
|
||||||
%service_del_preun acpid.service
|
%service_del_preun acpid.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -103,7 +94,6 @@ touch %{buildroot}%{_localstatedir}/log/acpid
|
|||||||
%dir %{_sysconfdir}/acpi/events
|
%dir %{_sysconfdir}/acpi/events
|
||||||
%{_sysconfdir}/acpi/events/thinkpad
|
%{_sysconfdir}/acpi/events/thinkpad
|
||||||
%{_prefix}/lib/acpid
|
%{_prefix}/lib/acpid
|
||||||
%{_sysconfdir}/init.d/acpid
|
|
||||||
%_unitdir/%{name}.service
|
%_unitdir/%{name}.service
|
||||||
%{_sbindir}/rcacpid
|
%{_sbindir}/rcacpid
|
||||||
%{_sbindir}/acpid
|
%{_sbindir}/acpid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user