%define version 0.0.1
%define release 0vl1

Name: bbapm
Version: %{version}
Release: %{release}
Group: User Interface/Desktops
Source0: http://bbtools.thelinuxcommunity.org/sources/bbapm-%{version}.tar.gz
Url: http://bbtools.thelinuxcommunity.org/contrib.phtml#bbapm
BuildRoot: %{_tmppath}/%{name}-root
Prefix: /usr
Copyright: GPL2
Summary: bbapm - shows the battery status of your laptop
Summary(ja): bbapm - バッテリーモニタ
%description
This application shows the battery status of your laptop
 (it is based on bbsload).
This program is written to be used with Blackbox, 
but it works in any other X11-Windowmanager.

%description -l ja
bbapm は、ラップトップパソコンのバッテリー状態を表示します。
ウィンドウマネージャの Blackbox と共に用いるために作られましたが、
その他のウィンドウマネージャでも使うことができます。

%prep
rm -rf ${RPM_BUILD_ROOT}

%setup -q

%build
./configure --prefix=${RPM_BUILD_ROOT}%{prefix}
make datadir=%{prefix}/share

%install
mkdir -p ${RPM_BUILD_ROOT}
make install

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO
%{prefix}/share/bbtools/README.bbapm
%{prefix}/share/bbtools/bbapm.conf
%{prefix}/share/bbtools/bbapm.nobb
%{prefix}/share/bbtools/bbapm.style
%{prefix}/share/bbtools/bbtoolsrc.in
%{_bindir}/bbapm

%changelog
* Sat Jul 28 2001 IWAI, Masaharu <iwaim@cc.mbn.or.jp>
- 0.0.1-0vl1
- first release for 0.0.1
