123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- Summary: Apple laptops hotkey event handler / LCD backlight adjuster
- Summary(ja): Apple 社製ノート PC 用ホットキー / バックライト調整プログラム
- Name: pommed
- License: GPLv2
- Group: System Environment/Daemons
- Version: 1.28
- Release: 1%{?_dist_release}
- Source0: %{name}-%{version}.tar.gz
- Source10: %{name}.init.vine
- Patch10: %{name}-1.26-rpmoptflags.patch
- URL: http://alioth.debian.org/projects/pommed/
- BuildRequires: alsa-lib-devel, audiofile-devel, pciutils-devel
- BuildRequires: dbus-devel, libconfuse-devel, zlib-devel
- BuildRequires: xorg-x11-devel
- Requires: eject
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- ExclusiveArch: %{ix86} x86_64 ppc ppc64
- %description
- pommed handles the hotkeys found on the Apple MacBook, MacBook Pro,
- PowerBook and iBook laptops and adjusts the LCD backlight, sound volume
- or ejects the CD / DVD drive accordingly.
- %description -l ja
- pommed は、Apple MacBook / MacBook Pro / PowerBook / iBook といった
- ノート PC のホットキーを扱うデーモンで、液晶のバックライト、音量、
- CD / DVD ドライブのイジェクトなどを行います。
- %package -n gpomme
- Summary: Graphical client for pommed
- Summary(ja): pommed の グラフィカルクライアント
- Group: User Interface/Desktops
- Requires: pommed = %{version}-%{release}
- Requires: dbus
- %description -n gpomme
- graphical client for pommed
- %description -n gpomme -l ja
- pommed のグラフィカルクライアント
- %package -n wmpomme
- Summary: WindowMaker dockapp client for pommed
- Summary(ja): pommed の WindowMaker dockapp クライアント
- Group: User Interface/Desktops
- Requires: pommed = %{version}-%{release}
- Requires: dbus
- %description -n wmpomme
- WindowMaker dockapp client for pommed
- %description -n wmpomme -l ja
- pommed の WindowMaker dockapp クライアント
- %prep
- %setup -q
- %patch10 -p1
- %build
- %ifarch ppc ppc64
- make OFLIB=1
- %else
- make
- %endif
- %install
- [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
- mkdir -p %{buildroot}%{_bindir}
- mkdir -p %{buildroot}%{_sbindir}
- mkdir -p %{buildroot}%{_sysconfdir}/init.d
- mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
- mkdir -p %{buildroot}%{_datadir}/applications
- mkdir -p %{buildroot}%{_datadir}/icons
- mkdir -p %{buildroot}%{_datadir}/pixmaps
- mkdir -p %{buildroot}%{_datadir}/pommed
- mkdir -p %{buildroot}%{_datadir}/gpomme
- mkdir -p %{buildroot}%{_localedir}
- mkdir -p %{buildroot}%{_mandir}/man1
- install -m 755 pommed/pommed %{buildroot}%{_sbindir}/
- install -m 755 %{SOURCE10} %{buildroot}%{_sysconfdir}/init.d/pommed
- install -m 644 pommed/data/* %{buildroot}%{_datadir}/pommed/
- %ifarch ppc ppc64
- install -m 644 pommed.conf.pmac %{buildroot}%{_sysconfdir}/pommed.conf
- %else
- install -m 644 pommed.conf.mactel %{buildroot}%{_sysconfdir}/pommed.conf
- %endif
- install -m 644 dbus-policy.conf \
- %{buildroot}%{_sysconfdir}/dbus-1/system.d/pommed.conf
- install -m 644 pommed.1 %{buildroot}%{_mandir}/man1/
- install -m 755 gpomme/gpomme %{buildroot}%{_bindir}
- install -m 644 gpomme/gpomme.1 %{buildroot}%{_mandir}/man1/
- install -m 644 gpomme/*.desktop %{buildroot}%{_datadir}/applications/
- install -m 644 icons/gpomme* %{buildroot}%{_datadir}/icons/
- install -m 644 icons/gpomme_32x32.xpm \
- %{buildroot}%{_datadir}/pixmaps/gpomme.xpm
- install -m 644 gpomme/gpomme.glade %{buildroot}%{_datadir}/gpomme/
- install -m 644 gpomme/gpomme.glade %{buildroot}%{_datadir}/gpomme/
- cp -a gpomme/themes %{buildroot}%{_datadir}/gpomme/
- for X in gpomme/po/*.mo ; do
- lang=`basename $X .mo`
- filename="gpomme.mo"
- install -d %{buildroot}%{_localedir}/${lang}/LC_MESSAGES
- install -m 644 $X %{buildroot}%{_localedir}/${lang}/LC_MESSAGES/$filename
- done
- install -m 755 wmpomme/wmpomme %{buildroot}%{_bindir}
- install -m 644 wmpomme/wmpomme.1 %{buildroot}%{_mandir}/man1/
- install -m 644 icons/gpomme_32x32.xpm \
- %{buildroot}%{_datadir}/icons/wmpomme.xpm
- %find_lang gpomme
- %clean
- [ "${buildroot}" != "/" ] && rm -rf ${buildroot}
- %post
- /sbin/chkconfig --add pommed
- %preun
- if [ $1 = 0 ] ; then
- service pommed stop > /dev/null 2>&1
- /sbin/chkconfig --del pommed
- fi
- %postun
- if [ "$1" -ge "1" ] ; then
- service pommed condrestart > /dev/null 2>&1
- fi
- %files
- %defattr(-,root,root)
- %doc AUTHORS COPYING ChangeLog INSTALL README TODO
- %config(noreplace) %{_sysconfdir}/pommed.conf
- %config(noreplace) %{_sysconfdir}/dbus-1/system.d/pommed.conf
- %{_sysconfdir}/init.d/pommed
- %{_sbindir}/pommed
- %{_mandir}/man1/pommed*
- %{_datadir}/pommed
- %files -n gpomme -f gpomme.lang
- %defattr(-,root,root)
- %{_bindir}/gpomme
- %{_datadir}/applications/*.desktop
- %{_datadir}/icons/gpomme*
- %{_datadir}/pixmaps/gpomme*
- %{_datadir}/gpomme
- %{_mandir}/man1/gpomme*
- %files -n wmpomme
- %defattr(-,root,root)
- %{_bindir}/wmpomme
- %{_datadir}/icons/wmpomme*
- %{_mandir}/man1/wmpomme*
- %changelog
- * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.28-1
- - new upstream release 1.28
- * Wed Jun 3 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.26-1
- - new upstream release 1.26
- * Thu Jul 24 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.21-1
- - updated to 1.21 release (equals to svn r503)
- * Mon Jun 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.20-1
- - updated to 1.20 release (equals to svn r498)
- * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.18-1
- - initial build for Vine Linux
- - 1.19 prerelease (svn r473)
- - add Source10 for customized initscript
- (checks if the machine is either of MacBooks/PowerBooks/iBooks)
|