add packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 6 Nov 2012 15:09:56 +0000 (07:09 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 4 Dec 2013 05:27:07 +0000 (21:27 -0800)
packaging/powertop.spec [new file with mode: 0644]

diff --git a/packaging/powertop.spec b/packaging/powertop.spec
new file mode 100644 (file)
index 0000000..ecd4e0a
--- /dev/null
@@ -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