Accepting request 72512 from home:namtrac:branches:Base:System

Version bump to 1.39, complete changelog in the changes file.

OBS-URL: https://build.opensuse.org/request/show/72512
OBS-URL: https://build.opensuse.org/package/show/Base:System/pommed?expand=0&rev=12
This commit is contained in:
Cristian Rodríguez
2011-06-03 01:49:01 +00:00
committed by Git OBS Bridge
parent 8420719267
commit a61568aaec
10 changed files with 200 additions and 171 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package pommed (Version 1.30)
# spec file for package pommed
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,39 +15,53 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pommed
Version: 1.39
Release: 0
License: GPLv2
Summary: Apple laptops hotkeys event handler
License: GPL v2 only
Group: Hardware/Mobile
Version: 1.30
Release: 2
Url: http://technologeek.org/projects/pommed/
Group: Hardware/Mobile
%if 0
# BuildRequires some package containing /usr/include/ofapi/of_api.h
ExclusiveArch: ppc
ExclusiveArch: ppc
%endif
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)
ExclusiveArch: %ix86 x86_64
BuildRequires: alsa-devel audiofile-devel gtk2-devel libglade2-devel pciutils-devel update-desktop-files
BuildRequires: xorg-x11-libX11-devel xorg-x11-libXext-devel xorg-x11-libXpm-devel xorg-x11-util-devel
BuildRequires: dbus-1-glib-devel libconfuse-devel xorg-x11
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
PreReq: %insserv_prereq %fillup_prereq
Requires: eject xorg-x11
Source0: %name-%version.tar.bz2
Source0: %{name}-%{version}.tar.bz2
Source1: pommed.init
Source2: gpomme.desktop
Source3: gpommerc
Source4: pommed-README.SuSE
Source5: pommed-rpmlintrc
Source4: pommed-rpmlintrc
# PATCH-FIX-UPSTREAM pommed-desktop.patch idoenmez@suse.de -- Update desktop categories
Patch1: pommed-desktop.patch
Patch2: pommed-hardcoded_libpci.patch
Patch3: pommed-optflags.patch
# 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
Patch4: pommed-dbus_policy.patch
PreReq: %fillup_prereq
PreReq: %insserv_prereq
Requires: eject
Requires: xorg-x11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -60,18 +74,12 @@ up the keyboard backlight on the MacBook Pro and PowerBook.
Optional support for the Apple Remote control is available.
Authors:
--------
Julien BLACHE <jb@jblache.org>
%package -n gpomme
License: GPL v2 only
License: GPLv2
Summary: Graphical client for pommed
Group: Hardware/Mobile
Requires: pommed
Requires: dbus-1
Requires: pommed
%description -n gpomme
pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
@@ -82,18 +90,12 @@ 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 <jb@jblache.org>
%package -n wmpomme
License: GPL v2 only
License: GPLv2
Summary: WindowMaker dockapp client for pommed
Group: Hardware/Mobile
Requires: pommed
Requires: dbus-1
Requires: pommed
%description -n wmpomme
pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
@@ -103,111 +105,99 @@ 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 <jb@jblache.org>
%prep
%setup -q
%patch1
%patch2
%patch3
%patch2 -p1
%patch3 -p1
%patch4
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
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
install -m644 %{SOURCE4} README.SuSE
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}
%ifarch ppc ppc64
install -m 644 pommed.conf.pmac %buildroot/%_sysconfdir/pommed.conf
install -m 644 pommed.conf.pmac %{buildroot}/%{_sysconfdir}/pommed.conf
%else
install -m 644 pommed.conf.mactel %buildroot/%_sysconfdir/pommed.conf
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 755 %{S:1} %buildroot/%_sysconfdir/init.d/pommed
ln -sf %_sysconfdir/init.d/pommed %buildroot/%_sbindir/rcpommed
install -m 644 pommed.1 %buildroot/%_mandir/man1
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
# gpomme
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
cp -a gpomme/themes %buildroot/%_datadir/gpomme
rm -rfv %buildroot/%_datadir/gpomme/themes/src
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
for mo in gpomme/po/*.mo ; do
lang=`basename $mo .mo`
filename="gpomme.mo"
install -d %buildroot/%_datadir/locale/$lang/LC_MESSAGES
install -m 644 $mo %buildroot/%_datadir/locale/$lang/LC_MESSAGES/$filename
install -d %{buildroot}/%{_datadir}/locale/$lang/LC_MESSAGES
install -m 644 $mo %{buildroot}/%{_datadir}/locale/$lang/LC_MESSAGES/$filename
done
install -m 644 %{S:2} %buildroot/%_datadir/autostart
install -m 644 %{S:3} %buildroot/%_datadir/kde4/config
install -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/autostart
install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/kde4/config
# wmpomme
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
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
# enable videoswitch
mkdir -p %buildroot/%_sysconfdir/pommed
mkdir -p %{buildroot}/%{_sysconfdir}/pommed
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%fdupes -s %{buildroot}
%endif
install -m 644 icons/gpomme_32x32.xpm %buildroot/%_datadir/icons/wmpomme.xpm
install -m 644 icons/gpomme_32x32.xpm %buildroot/%_datadir/pixmaps/gpomme.xpm
install -m 644 icons/gpomme_32x32.xpm %{buildroot}/%{_datadir}/icons/wmpomme.xpm
install -m 644 icons/gpomme_32x32.xpm %{buildroot}/%{_datadir}/pixmaps/gpomme.xpm
%find_lang gpomme
%post
%{fillup_and_insserv -n %name %name}
%{fillup_and_insserv -n %{name} %{name}}
%preun
%stop_on_removal %name
%stop_on_removal %{name}
%postun
%restart_on_update %name
%restart_on_update %{name}
%{insserv_cleanup}
%clean
rm -rf %buildroot
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS README TODO README.SuSE
%config(noreplace) /etc/pommed.conf
%config(noreplace) /etc/dbus-1/system.d/pommed.conf
%_sysconfdir/init.d/pommed
%_sbindir/pommed
%_sbindir/rcpommed
%_mandir/man1/po*
%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*
%files -n gpomme -f gpomme.lang
%defattr(-,root,root)
%_bindir/gpomme
%_datadir/applications/*.desktop
%_datadir/icons/gp*
%_datadir/pixmaps/gp*
%_datadir/gpomme
%_datadir/autostart
%dir %_datadir/kde4
%_datadir/kde4/config
%_mandir/man1/gpo*
%{_bindir}/gpomme
%{_datadir}/applications/*.desktop
%{_datadir}/icons/gp*
%{_datadir}/pixmaps/gp*
%{_datadir}/gpomme
%{_datadir}/autostart
%dir %{_datadir}/kde4
%{_datadir}/kde4/config
%{_mandir}/man1/gpo*
%files -n wmpomme
%defattr(-,root,root)
%_bindir/wmpomme
%_datadir/icons/wm*
%_mandir/man1/wmpo*
%{_bindir}/wmpomme
%{_datadir}/icons/wm*
%{_mandir}/man1/wmpo*
%changelog