From e3a618c779ad5a337d97b380740e2aee5b0df191 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 6 Nov 2012 07:09:56 -0800 Subject: [PATCH] add packaging --- packaging/powertop.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packaging/powertop.spec diff --git a/packaging/powertop.spec b/packaging/powertop.spec new file mode 100644 index 0000000..ecd4e0a --- /dev/null +++ b/packaging/powertop.spec @@ -0,0 +1,45 @@ +Name: powertop +Version: 2.1 +Release: 1 +License: GPL-2.0 +Summary: PowerTop is tool that is used for power diagnostics +Url: http://www.01.org +Group: Applications/System +Source0: https://01.org/powertop/sites/default/files/downloads/%{name}-%{version}.tar.gz + +BuildRequires: gettext +BuildRequires: zlib-devel +BuildRequires: pkgconfig(libnl-1) +BuildRequires: pkgconfig(libpci) +BuildRequires: pkgconfig(ncurses) + +%description +PowerTop is tool that detects which Linux programs +and kernel tunables are resulting in the largest +power consumption and use of battery time. By +fixing (or closing) these applications or +processes, you can immediately see the power +savings in the tool. You'll also see the estimated +time left for battery power if you are running a +laptop. + +%prep +%setup -q + +%build + +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install + +%find_lang %{name} + +%lang_package + +%files +%defattr(-,root,root,-) +%doc COPYING +%{_sbindir}/powertop +%{_mandir}/man8/powertop.8.gz -- 2.7.4