1 Star 0 Fork 7

wangchen/powertop

forked from src-openEuler/powertop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
powertop.spec 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
wangchen 提交于 2022-02-24 16:27 . fix compatibility with ncurses-6.3
Name: powertop
Version: 2.14
Release: 2
Summary: Power consumption tool for Linux
License: GPLv2
URL: http://01.org/powertop/
Source0: https://01.org/sites/default/files/downloads//%{name}-%{version}.tar.gz
Source1: powertop.service
Patch1: backport-powertop-2.7-always-create-params.patch
Patch2: backport-powertop-2.14-pthread.patch
Patch3: backport-src-fix-compatibility-with-ncurses-6.3.patch
BuildRequires: autoconf automake libtool
BuildRequires: gcc gcc-c++ systemd
BuildRequires: gettext-devel ncurses-devel pciutils-devel zlib-devel libnl3-devel
Requires(post): coreutils
%{?systemd_requires}
Provides: bundled(kernel-event-lib)
%description
Powertop is a Linux tool to diagnose issues with power consumption and
power management.In addition to being a diagnostic tool, powertop also
has an interactive mode where the user can experiment various power
management settings for cases where the Linux distribution has not enabled these settings.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
# workaroud for 'error: too many loops'
autoreconf -fi || autoreconf -fi
%configure
%make_build
%install
%make_install
install -Dd $RPM_BUILD_ROOT%{_localstatedir}/cache/%{name}
touch $RPM_BUILD_ROOT%{_localstatedir}/cache/%{name}/{saved_parameters.powertop,saved_results.powertop}
%find_lang %{name}
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/powertop.service
%pre
%preun
%systemd_preun powertop.service
%postun
%systemd_postun_with_restart powertop.service
%post
%systemd_post powertop.service
touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.powertop} &> /dev/null || :
%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING README.md README.traceevent CONTRIBUTE.md TODO
%{_sbindir}/powertop
%{_unitdir}/powertop.service
%dir %{_localstatedir}/cache/powertop
%ghost %{_localstatedir}/cache/powertop/saved_parameters.powertop
%ghost %{_localstatedir}/cache/powertop/saved_results.powertop
%{_datadir}/bash-completion/completions/powertop
%files help
%{_mandir}/man8/powertop.8*
%changelog
* Thu Feb 24 2022 wangchen <[email protected]> - 2.14-2
- fix compatibility with ncurses-6.3
* Mon Feb 21 2022 panxiaohe <[email protected]> - 2.14-1
- update to 2.14
* Fri Jul 30 2021 chenyanpanHW <[email protected]> - 2.13-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Thu Jan 21 2021 yixiangzhike <[email protected]> - 2.13-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update to 2.13
* Sat Sep 19 2020 liquor <[email protected]> - 2.9-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify the service file path to load the service correctly
* Fri Sep 27 2019 chengquan<[email protected]> - 2.9-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix spec rule in openeuler
* Fri Sep 06 2019 openEuler Buildteam <[email protected]> - 2.9-10
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchen2020/powertop.git
[email protected]:wangchen2020/powertop.git
wangchen2020
powertop
powertop
master

搜索帮助