2 # - gkrellm2 plugin subpackage or something
3 Summary: Intelligent Battery Monitor
8 Group: Applications/System
9 Source0: http://downloads.sourceforge.net/ibam/%{name}-%{version}.tar.gz
10 # Source0-md5: 2d5222ff504dd19e7c1ea8acc2f13cf5
11 URL: http://sourceforge.net/projects/ibam/
12 BuildRequires: gkrellm-devel
13 BuildRequires: libstdc++-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 IBAM is an advanced battery monitor for laptops, which uses
18 statistical and adaptive linear methods to provide accurate
19 estimations of minutes of battery left or of the time needed until
26 %{__make} ibam krell \
28 CFLAGS='-DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall %{rpmcxxflags}'
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/gkrellm2/plugins}
33 install -p ibam $RPM_BUILD_ROOT%{_bindir}
34 install -p ibam-krell.so $RPM_BUILD_ROOT%{_libdir}/gkrellm2/plugins
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %doc CHANGES README REPORT
42 %attr(755,root,root) %{_bindir}/ibam
43 %attr(755,root,root) %{_libdir}/gkrellm2/plugins/ibam-krell.so