# # spec file for package pommed (Version 1.9) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: pommed Url: http://technologeek.org/projects/pommed/ BuildRequires: alsa-devel audiofile-devel dbus-1-devel gtk2-devel libconfuse-devel libglade2-devel libsmbios-devel libsmbios-libs pciutils-devel update-desktop-files xorg-x11-libX11-devel xorg-x11-libXext-devel xorg-x11-libXpm-devel xorg-x11-util-devel Group: Hardware/Mobile Version: 1.9 Release: 1 License: GPL v2 only Summary: Apple laptops hotkeys event handler AutoReqProv: on Source0: pommed-1.9.tar.bz2 Source1: pommed.init Patch: pommed-build.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: eject %description pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard backlight or ejects the CD-ROM drive accordingly. pommed also monitors the ambient light sensors to automatically light up the keyboard backlight on the MacBook Pro and PowerBook. Optional support for the Apple Remote control is available. Authors: -------- Julien BLACHE %package -n gpomme Summary: graphical client for pommed Group: Hardware/Mobile Requires: pommed Requires: dbus-1 %description -n gpomme pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard backlight or ejects the CD-ROM drive accordingly. gpomme is a graphical client for pommed. It listens for signals sent by pommed on DBus and displays the action taken by pommed along with the current state associated to this action. Authors: -------- Julien BLACHE %package -n wmpomme Summary: WindowMaker dockapp client for pommed Group: Hardware/Mobile Requires: pommed Requires: dbus-1 %description -n wmpomme pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and PowerBook laptops and adjusts the LCD backlight, sound volume, keyboard backlight or ejects the CD-ROM drive accordingly. wmpomme is a dockapp client for pommed. It displays the current level of each item controlled by pommed. Authors: -------- Julien BLACHE %prep %setup %patch %build make %install install -d $RPM_BUILD_ROOT/usr/bin install -d $RPM_BUILD_ROOT/usr/sbin install -d $RPM_BUILD_ROOT/etc/dbus-1/system.d install -d $RPM_BUILD_ROOT/etc/init.d install -d $RPM_BUILD_ROOT/usr/share/applications install -d $RPM_BUILD_ROOT/usr/share/icons install -d $RPM_BUILD_ROOT/usr/share/pixmaps install -d $RPM_BUILD_ROOT/usr/share/gpomme install -d $RPM_BUILD_ROOT/usr/share/locale install -d $RPM_BUILD_ROOT/usr/share/man/man1 install -m 755 pommed/pommed $RPM_BUILD_ROOT/usr/sbin %ifarch ppc ppc64 install -m 644 pommed.conf.pmac $RPM_BUILD_ROOT/etc/pommed.conf %else install -m 644 pommed.conf.mactel $RPM_BUILD_ROOT/etc/pommed.conf %endif install -m 644 dbus-policy.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/pommed.conf install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/pommed ln -sf /etc/init.d/pommed $RPM_BUILD_ROOT/usr/sbin/rcpommed install -m 644 pommed.1 $RPM_BUILD_ROOT/usr/share/man/man1 # gpomme install -m 755 gpomme/gpomme $RPM_BUILD_ROOT/usr/bin install -m 644 gpomme/gpomme.1 $RPM_BUILD_ROOT/usr/share/man/man1 install -m 644 gpomme/*.desktop $RPM_BUILD_ROOT/usr/share/applications install -m 644 icons/gpomme* $RPM_BUILD_ROOT/usr/share/icons install -m 644 icons/gpomme_32x32.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/gpomme.xpm install -m 644 gpomme/gpomme.glade $RPM_BUILD_ROOT/usr/share/gpomme cp -a gpomme/themes $RPM_BUILD_ROOT/usr/share/gpomme rm -rfv $RPM_BUILD_ROOT/usr/share/gpomme/themes/src for mo in gpomme/po/*.mo ; do lang=`basename $mo .mo` install -d $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES install -m 644 $mo $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES done # wmpomme install -m 755 wmpomme/wmpomme $RPM_BUILD_ROOT/usr/bin install -m 644 wmpomme/wmpomme.1 $RPM_BUILD_ROOT/usr/share/man/man1 install -m 644 icons/gpomme_32x32.xpm $RPM_BUILD_ROOT/usr/share/icons/wmpomme.xpm %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/applications/gpomme-c.desktop %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/applications/gpomme.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS README TODO %config(noreplace) /etc/pommed.conf %config(noreplace) /etc/dbus-1/system.d/pommed.conf /etc/init.d/pommed /usr/sbin/pommed /usr/sbin/rcpommed /usr/share/man/man1/po* %files -n gpomme %defattr(-,root,root) /usr/bin/gpomme /usr/share/applications/*.desktop /usr/share/icons/gp* /usr/share/pixmaps/gp* /usr/share/gpomme /usr/share/locale/*/LC_MESSAGES/* /usr/share/man/man1/gpo* %files -n wmpomme %defattr(-,root,root) /usr/bin/wmpomme /usr/share/icons/wm* /usr/share/man/man1/wmpo* %changelog * Mon Sep 17 2007 - ro@suse.de - created package from pommed (version 1.9)