Summary:	A GTK client for pbbuttonsd
Summary(ja):	pbbuttonsd の GTK クライアント
Name:		gtkpbbuttons
Version:	0.6.1
Release:	0vl2
Copyright:	GPL
Group:		Utilities/System
URL:		http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html
Source0:	http://www.cymes.de/members/joker/projects/pbbuttons/%{name}-%{version}.tar.gz
Source10:	xinit-gtkpbbuttons
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
BuildPreReq:	glib-devel >= 1.2.0, gtk+-devel >= 1.2.0
BuildPreReq:    audiofile-devel >= 0.2.3
BuildPreReq:    pbbuttonsd >= 0.5.5
Requires:	gtk+ >= 1.2.0, audiofile >= 0.2.3, pbbuttonsd >= 0.5.5


%description
GTKPBButtons is a GUI client for pbbuttonsd which make the special
hotkeys of an Apple iBook, PowerBook or TiBook (and recent PowerMacs'
keyboards) working as expected.
With this program the keys for the display brightness, the volume of
speaker and headphone, the mute key and the eject key will do their jobs
as expected.


%description -l ja
GTKPBButtons は Apple iBook, PowerBook, TiBook (或いは最近の PowerMac) の
キーボードの「ホットキー」を期待どおりに動作させるためのデーモンである
pbbuttonsd の GUI クライアントです．
このプログラムを使うと，ディスプレイ照度調節，スピーカーの音量調節，
ミュート，CD-ROM のイジェクトといったホットキーを使用する事が出来ます．


%prep
%setup -q


%build
%configure
make


%install
[ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
    && rm -rf ${RPM_BUILD_ROOT}

%makeinstall

mkdir -p ${RPM_BUILD_ROOT}/etc/X11/xinit/xinitrc.d
install -m 755 %{SOURCE10} \
    ${RPM_BUILD_ROOT}/etc/X11/xinit/xinitrc.d/gtkpbbuttons

%find_lang %{name}


%clean
[ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
    && rm -rf ${RPM_BUILD_ROOT}


%files -f %{name}.lang
%defattr(-, root, root)
%doc ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO

%{_bindir}/gtkpbbuttons
%{_datadir}/gtkpbbuttons/*
%{_datadir}/locale/*
%{_mandir}/*/*

%config /etc/X11/xinit/xinitrc.d/gtkpbbuttons


%changelog
* Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.6.1-0vl2
- rebuild with kernel-2.4.23-0vl1

* Mon Nov 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.6.1-0vl1
- source update

* Mon Mar 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.2-0vl1
- source update

* Mon Mar 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl1
- updated to the upstream bugfix release

* Fri Mar 08 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2-0vl1
- updated to the new upstream release
- now pbbuttonsd and gtkpbbuttons are in separated package (as expected)

* Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4-0vl1
- updated in sync with the new upstream release
- added init script

* Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl2
- added xinit script

* Tue Feb 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl1
- initial rpm package for Vine Linux
