1 Star 0 Fork 23

mc964203886/acpid

forked from openEuler-RISC-V/acpid 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
acpid.spec 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
zhouwenpei 提交于 2021-11-29 18:21 . update verion to 2.0.33
Name: acpid
Version: 2.0.33
Release: 1
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
Source1: acpid.power.conf
Source2: acpid.power.sh
Source3: acpid.service
Source4: acpid.sysconfig
Source5: acpid.socket
Patch1: acpid-2.0.32-kacpimon-dynamic-connections.patch
ExclusiveArch: aarch64 x86_64 %{ix86} riscv64
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
%make_install docdir=%{_docdir}/%{name}
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
%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
* Mon Nov 29 2021 zhouwenpei <zhouwenpei1@huawei.com> -2.0.33-1
- update version to 2.0.33
* Sun Sep 26 2021 xinminst <xuzhiling19991120@163.com> -2.0.32-2
- edit spec to adapt riscv64
* Thu Jul 23 2020 jinzhimin <jinzhimin2@huawei.com> - 2.0.32-1
- update version to 2.0.32
* Tue Jan 21 2020 luochunsheng <luochunsheng@huawei.com> - 2.0.30-4
- fix acpid.service start failed: Mishandling the acpid sysconfig file
as a directory
* Fri Jan 10 2020 wuxu_wu <wuxu.wu@huawei.com> - 2.0.30-3
- delete useless configuration file
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.30-2
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mc964203886/acpid.git
git@gitee.com:mc964203886/acpid.git
mc964203886
acpid
acpid
master

搜索帮助