2007-09-19 04:42:34 +02:00
|
|
|
#
|
2011-06-03 03:49:01 +02:00
|
|
|
# spec file for package pommed
|
2007-09-19 04:42:34 +02:00
|
|
|
#
|
2011-06-03 03:49:01 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-09-19 04:42:34 +02:00
|
|
|
#
|
2008-09-06 03:13:50 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-09-19 04:42:34 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-15 01:37:22 +01:00
|
|
|
|
2007-09-19 04:42:34 +02:00
|
|
|
Name: pommed
|
2011-06-03 03:49:01 +02:00
|
|
|
Version: 1.39
|
|
|
|
Release: 0
|
|
|
|
License: GPLv2
|
2008-11-17 17:49:28 +01:00
|
|
|
Summary: Apple laptops hotkeys event handler
|
|
|
|
Url: http://technologeek.org/projects/pommed/
|
2011-06-03 03:49:01 +02:00
|
|
|
Group: Hardware/Mobile
|
2008-10-22 18:41:39 +02:00
|
|
|
%if 0
|
|
|
|
# BuildRequires some package containing /usr/include/ofapi/of_api.h
|
2011-06-03 03:49:01 +02:00
|
|
|
ExclusiveArch: ppc
|
2008-10-22 18:41:39 +02:00
|
|
|
%endif
|
2011-06-03 03:49:01 +02:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: audiofile-devel
|
|
|
|
BuildRequires: libconfuse-devel
|
|
|
|
BuildRequires: pciutils-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-libX11-devel
|
|
|
|
BuildRequires: xorg-x11-libXext-devel
|
|
|
|
BuildRequires: xorg-x11-libXpm-devel
|
|
|
|
BuildRequires: xorg-x11-util-devel
|
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(libglade-2.0)
|
2008-10-22 18:41:39 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2008-01-18 00:24:16 +01:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2011-06-03 03:49:01 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2007-09-19 04:42:34 +02:00
|
|
|
Source1: pommed.init
|
2008-01-18 00:24:16 +01:00
|
|
|
Source2: gpomme.desktop
|
|
|
|
Source3: gpommerc
|
2011-06-03 03:49:01 +02:00
|
|
|
Source4: pommed-rpmlintrc
|
|
|
|
# PATCH-FIX-UPSTREAM pommed-desktop.patch idoenmez@suse.de -- Update desktop categories
|
2008-07-21 23:38:50 +02:00
|
|
|
Patch1: pommed-desktop.patch
|
2011-06-03 03:49:01 +02:00
|
|
|
# PATCH-FIX-OPENSUSE pommed-1.38-cflags.patch idoenmez@suse.de -- Respect our cflags
|
|
|
|
Patch2: pommed-1.38-cflags.patch
|
|
|
|
# PATCH-FIX-OPENSUSE pommed-1.38-hardcoded-libpci.patch idoenmez@suse.de -- Remove hardcoded static pci library
|
|
|
|
Patch3: pommed-1.38-hardcoded-libpci.patch
|
|
|
|
# PATCH-FIX-UPSTREAM pommed-dbus_policy.patch ro@novell.com -- bnc#469771
|
2009-01-29 00:43:57 +01:00
|
|
|
Patch4: pommed-dbus_policy.patch
|
2011-06-03 03:49:01 +02:00
|
|
|
PreReq: %fillup_prereq
|
|
|
|
PreReq: %insserv_prereq
|
|
|
|
Requires: eject
|
|
|
|
Requires: xorg-x11
|
2007-09-19 04:42:34 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n gpomme
|
2011-06-03 03:49:01 +02:00
|
|
|
License: GPLv2
|
2008-01-18 00:24:16 +01:00
|
|
|
Summary: Graphical client for pommed
|
2007-09-19 04:42:34 +02:00
|
|
|
Group: Hardware/Mobile
|
|
|
|
Requires: dbus-1
|
2011-06-03 03:49:01 +02:00
|
|
|
Requires: pommed
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n wmpomme
|
2011-06-03 03:49:01 +02:00
|
|
|
License: GPLv2
|
2007-09-19 04:42:34 +02:00
|
|
|
Summary: WindowMaker dockapp client for pommed
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
Requires: dbus-1
|
2011-06-03 03:49:01 +02:00
|
|
|
Requires: pommed
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2008-02-25 17:37:35 +01:00
|
|
|
%setup -q
|
|
|
|
%patch1
|
2011-06-03 03:49:01 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2009-01-29 00:43:57 +01:00
|
|
|
%patch4
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%build
|
2010-11-01 09:23:13 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%install
|
2011-06-03 03:49:01 +02:00
|
|
|
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir} %{buildroot}/%{_sysconfdir}/{init.d,dbus-1/system.d}
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/{applications,autostart,icons,pixmaps,gpomme,locale}
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1 %{buildroot}/%{_datadir}/kde4/config
|
|
|
|
install -m 755 pommed/pommed %{buildroot}/%{_sbindir}
|
2007-09-19 04:42:34 +02:00
|
|
|
%ifarch ppc ppc64
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 644 pommed.conf.pmac %{buildroot}/%{_sysconfdir}/pommed.conf
|
2007-09-19 04:42:34 +02:00
|
|
|
%else
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 644 pommed.conf.mactel %{buildroot}/%{_sysconfdir}/pommed.conf
|
2007-09-19 04:42:34 +02:00
|
|
|
%endif
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 644 dbus-policy.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/pommed.conf
|
|
|
|
install -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/init.d/pommed
|
|
|
|
ln -sf %{_sysconfdir}/init.d/pommed %{buildroot}/%{_sbindir}/rcpommed
|
|
|
|
install -m 644 pommed.1 %{buildroot}/%{_mandir}/man1
|
2007-09-19 04:42:34 +02:00
|
|
|
# gpomme
|
2011-06-03 03:49:01 +02:00
|
|
|
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
|
|
|
|
cp -a gpomme/themes %{buildroot}/%{_datadir}/gpomme
|
|
|
|
rm -rfv %{buildroot}/%{_datadir}/gpomme/themes/src
|
2007-09-19 04:42:34 +02:00
|
|
|
for mo in gpomme/po/*.mo ; do
|
|
|
|
lang=`basename $mo .mo`
|
2008-01-18 00:24:16 +01:00
|
|
|
filename="gpomme.mo"
|
2011-06-03 03:49:01 +02:00
|
|
|
install -d %{buildroot}/%{_datadir}/locale/$lang/LC_MESSAGES
|
|
|
|
install -m 644 $mo %{buildroot}/%{_datadir}/locale/$lang/LC_MESSAGES/$filename
|
2007-09-19 04:42:34 +02:00
|
|
|
done
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/autostart
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/kde4/config
|
2007-09-19 04:42:34 +02:00
|
|
|
# wmpomme
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 755 wmpomme/wmpomme %{buildroot}/%{_bindir}
|
|
|
|
install -m 644 wmpomme/wmpomme.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/gpomme-c.desktop
|
|
|
|
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/gpomme.desktop
|
2008-01-18 00:24:16 +01:00
|
|
|
# enable videoswitch
|
2011-06-03 03:49:01 +02:00
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/pommed
|
2008-01-18 00:24:16 +01:00
|
|
|
%if 0%{?suse_version} > 1020
|
2011-06-03 03:49:01 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2008-01-18 00:24:16 +01:00
|
|
|
%endif
|
2011-06-03 03:49:01 +02:00
|
|
|
install -m 644 icons/gpomme_32x32.xpm %{buildroot}/%{_datadir}/icons/wmpomme.xpm
|
|
|
|
install -m 644 icons/gpomme_32x32.xpm %{buildroot}/%{_datadir}/pixmaps/gpomme.xpm
|
2008-01-18 00:24:16 +01:00
|
|
|
%find_lang gpomme
|
|
|
|
|
|
|
|
%post
|
2011-06-03 03:49:01 +02:00
|
|
|
%{fillup_and_insserv -n %{name} %{name}}
|
2008-01-18 00:24:16 +01:00
|
|
|
|
|
|
|
%preun
|
2011-06-03 03:49:01 +02:00
|
|
|
%stop_on_removal %{name}
|
2008-01-18 00:24:16 +01:00
|
|
|
|
|
|
|
%postun
|
2011-06-03 03:49:01 +02:00
|
|
|
%restart_on_update %{name}
|
2008-01-18 00:24:16 +01:00
|
|
|
%{insserv_cleanup}
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%clean
|
2011-06-03 03:49:01 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-06-03 03:49:01 +02:00
|
|
|
%doc AUTHORS README TODO
|
|
|
|
%config(noreplace) %{_sysconfdir}/pommed.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/pommed.conf
|
|
|
|
%{_sysconfdir}/init.d/pommed
|
|
|
|
%{_sbindir}/pommed
|
|
|
|
%{_sbindir}/rcpommed
|
|
|
|
%{_mandir}/man1/po*
|
2008-01-18 00:24:16 +01:00
|
|
|
|
|
|
|
%files -n gpomme -f gpomme.lang
|
2007-09-19 04:42:34 +02:00
|
|
|
%defattr(-,root,root)
|
2011-06-03 03:49:01 +02:00
|
|
|
%{_bindir}/gpomme
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/gp*
|
|
|
|
%{_datadir}/pixmaps/gp*
|
|
|
|
%{_datadir}/gpomme
|
|
|
|
%{_datadir}/autostart
|
|
|
|
%dir %{_datadir}/kde4
|
|
|
|
%{_datadir}/kde4/config
|
|
|
|
%{_mandir}/man1/gpo*
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%files -n wmpomme
|
|
|
|
%defattr(-,root,root)
|
2011-06-03 03:49:01 +02:00
|
|
|
%{_bindir}/wmpomme
|
|
|
|
%{_datadir}/icons/wm*
|
|
|
|
%{_mandir}/man1/wmpo*
|
2007-09-19 04:42:34 +02:00
|
|
|
|
|
|
|
%changelog
|