File: ibam.spec

package info (click to toggle)
ibam 1%3A0.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 156 kB
  • ctags: 88
  • sloc: cpp: 681; makefile: 88; sh: 39
file content (35 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%define version 0.3
%define release 1

Summary: Intelligent Battery Monitor
Name: ibam
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Utilities/System
Source: http://prdownloads.sourceforge.net/ibam/ibam-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot

%description
IBAM is an advanced battery monitor for laptops, which uses statistical and
adaptive linear methods to provide accurate estimations of minutes of
battery left or of the time needed until full recharge.

%prep
%setup -q
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" ibam krell

%install
install -m 0755 -d $RPM_BUILD_ROOT/usr
install -m 0755 -d $RPM_BUILD_ROOT/usr/local
install -m 0755 -d $RPM_BUILD_ROOT/usr/local/bin
install -m 0755 -d $RPM_BUILD_ROOT/usr/local/lib
install -m 0755 -d $RPM_BUILD_ROOT/usr/local/lib/gkrellm
install -m 0755 -d $RPM_BUILD_ROOT/usr/local/lib/gkrellm/plugins
make install PREFIX=$RPM_BUILD_ROOT/usr

%files
%defattr (-,root,root)
/usr/local/bin/ibam
/usr/local/lib/gkrellm/plugins