]> git.pld-linux.org Git - SPECS.git/blob - ibam.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / ibam.spec
1 # TODO
2 # - gkrellm2 plugin subpackage or something
3 Summary:        Intelligent Battery Monitor
4 Name:           ibam
5 Version:        0.5.2
6 Release:        1
7 License:        GPL
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)
15
16 %description
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
20 full recharge.
21
22 %prep
23 %setup -q
24
25 %build
26 %{__make} ibam krell \
27         CC="%{__cxx}" \
28         CFLAGS='-DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall %{rpmcxxflags}'
29
30 %install
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
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
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
This page took 0.28682 seconds and 3 git commands to generate.