File powerstat.spec of Package powerstat
Name: powerstat
Version: 0.01.11
Release: 1%{?dist}
Summary: A tool for measuring a laptops power usage via the battery
License: GPLv3+
URL: http://kernel.ubuntu.com/git?p=cking/powerstat.git;a=summary
Source0: http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-%{version}.tar.gz
Group: System/Monitoring
%description
A tool for measuring a laptops power usage via the battery.
Although most users won’t need tools like these, but if you’re a
bit of a power user, then having the ability to measure the real
power consumption rate of your mobile device (laptop, notebook etc)
under Linux can be quite useful.
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="%{optflags}"
%install
mkdir -p %{buildroot}%{_mandir}/man8/
strip %name
install -p -D -m 0755 %name %{buildroot}%{_bindir}/%{name}
install -p -D -m 644 %name.8 %{buildroot}%{_mandir}/man8/
%files
%defattr(-,root,root)
%doc debian/copyright debian/changelog debian/powerstat.install
%{_bindir}/%{name}
%{_mandir}/man8/%{name}*
%changelog
* Wed Jun 13 2012 Antoine Ginies <aginies@gmail.com> 0.01.11
- first SRPM release