2019-12-25 15:40:54 +08:00
|
|
|
Name: acpid
|
|
|
|
|
Version: 2.0.30
|
2020-01-10 20:39:47 +08:00
|
|
|
Release: 3
|
2019-12-25 15:40:54 +08:00
|
|
|
Summary: Advanced Configuration and Power Interface event daemon
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://sourceforge.net/projects/acpid2/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz
|
2020-01-10 20:39:47 +08:00
|
|
|
Source1: acpid.power.conf
|
|
|
|
|
Source2: acpid.power.sh
|
|
|
|
|
Source3: acpid.service
|
|
|
|
|
Source4: acpid.sysconfig
|
|
|
|
|
Source5: acpid.socket
|
2019-12-25 15:40:54 +08:00
|
|
|
|
|
|
|
|
Patch1: acpid-2.0.28-kacpimon-dynamic-connections.patch
|
|
|
|
|
ExclusiveArch: aarch64 x86_64 %{ix86}
|
|
|
|
|
|
|
|
|
|
BuildRequires: systemd, gcc
|
|
|
|
|
Requires: systemd
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
acpid is designed to notify user-space programs of ACPI events.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Development documents for ACPI library
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Development document for ACPI library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure
|
|
|
|
|
%make_build CFLAGS="%{optflags} -pie -Wl,-z,relro,-z,now"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}/*
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/acpi/events
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/acpi/actions
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_unitdir}
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/sysconfig/acpid
|
|
|
|
|
%make_install docdir=%{_docdir}/%{name}
|
2020-01-10 20:39:47 +08:00
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/acpi/events/powerconf
|
|
|
|
|
install -p -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh
|
|
|
|
|
install -p -m 644 %{SOURCE3} %{SOURCE5} %{buildroot}%{_unitdir}
|
|
|
|
|
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/acpid
|
2019-12-25 15:40:54 +08:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
%{_unitdir}/%{name}.socket
|
|
|
|
|
%dir %{_sysconfdir}/acpi
|
|
|
|
|
%dir %{_sysconfdir}/acpi/events
|
|
|
|
|
%dir %{_sysconfdir}/acpi/actions
|
|
|
|
|
%config %attr(0644,root,root) %{_sysconfdir}/acpi/events/powerconf
|
|
|
|
|
%config %attr(0755,root,root) %{_sysconfdir}/acpi/actions/power.sh
|
|
|
|
|
%config %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid
|
|
|
|
|
%{_bindir}/acpi_listen
|
|
|
|
|
%{_sbindir}/acpid
|
|
|
|
|
%{_sbindir}/kacpimon
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
%{_mandir}/man8/acpid.8.gz
|
|
|
|
|
%{_mandir}/man8/acpi_listen.8.gz
|
|
|
|
|
%{_mandir}/man8/kacpimon.8.gz
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post %{name}.socket %{name}.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.socket %{name}.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart %{name}.socket %{name}.service
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-10 20:39:47 +08:00
|
|
|
* Fri Jan 10 2020 wuxu_wu <wuxu.wu@huawei.com> - 2.0.32
|
|
|
|
|
- delete useless configuration file
|
|
|
|
|
|
2019-12-25 15:40:54 +08:00
|
|
|
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.31
|
|
|
|
|
- Package init
|
|
|
|
|
|