Пакет ibam: Specfile

Name: ibam
Version: 0.5.1
Release: alt1

Summary: Intelligent Battery Monitor
License: GPL
Group: Monitoring
Url: http://ibam.sourceforge.net/

Source0: %name-%version.tar.gz

Patch0: %name-0.4-alt-build.patch
Patch1: %name-gkrellm-fix-display-order.patch
Patch2: %name-0.4-alt-linking.patch

Packager: Ilya Mashkin <oddity@altlinux.org>

# Automatically added by buildreq on Sun Nov 11 2007
BuildRequires: gcc-c++ gdk-pixbuf-devel gkrellm-devel gtk+-devel

%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.

%package -n gkrellm-%name
Group: Monitoring
Summary: GKrellM Intelligent Battery Monitor (IBaM) plugin

%description -n gkrellm-%name
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.

This is the GKrellM2 plugin.

%prep
%setup -q
#patch0 -p1
%patch1 -p2
%patch2 -p1

%build
%make_build RPM_OPT_FLAGS="%optflags" ibam krell

%install
mkdir -p %buildroot%_bindir/ %buildroot%_libdir/gkrellm2/plugins/
#make_install PREFIX=%buildroot%_prefix/ install
install -D -pm 755 %name %buildroot%_bindir/%name
install ibam-krell.so %buildroot%_libdir/gkrellm2/plugins/

%files
%doc CHANGES README REPORT
%_bindir/ibam

%files -n gkrellm-%name
%_libdir/gkrellm2/plugins/%name-*

%changelog
* Thu Oct 30 2008 Ilya Mashkin <oddity@altlinux.ru> 0.5.1-alt1
- 0.5.1

* Sun Nov 11 2007 Igor Zubkov <icesik@altlinux.org> 0.4-alt4
- merge changes from ildar@
- buildreq
- link ibam-krell.so with -lgtk-x11-2.0

* Tue Nov 06 2007 Ildar Mulyukov <ildar@altlinux.ru> 0.4-alt3
- Added package: gkrellm-%name
- ibam-gkrellm-fix-display-order.patch added

* Wed Dec 13 2006 Igor Zubkov <icesik@altlinux.org> 0.4-alt2
- merge changes from mike@

* Tue Dec 12 2006 Michael Shigorin <mike@altlinux.org> 0.4-alt1.1
- fixed Group:

* Tue Dec 12 2006 Igor Zubkov <icesik@altlinux.org> 0.4-alt1
- Initial build for Sisyphus