Hello community,

here is the log from the commit of package pommed for openSUSE:Factory checked 
in at 2016-07-12 23:50:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pommed (Old)
 and      /work/SRC/openSUSE:Factory/.pommed.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pommed"

Changes:
--------
--- /work/SRC/openSUSE:Factory/pommed/pommed.changes    2011-09-23 
12:41:33.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.pommed.new/pommed.changes       2016-07-12 
23:50:41.000000000 +0200
@@ -1,0 +2,14 @@
+Thu Jun  2 13:03:39 UTC 2016 - tchva...@suse.com
+
+- Cleanup a bit to have up-to-date spec-file
+- Update url to point to some existing page with repository
+
+-------------------------------------------------------------------
+Wed Sep 12 14:28:25 UTC 2012 - alinm.el...@gmail.com
+
+- removed init.d script and added a systemd service file 
+- symlinked pommed.service so it starts by default.
+- removed rpmlint filter... we do not install in kde3 anymore
+- added a resonable settings, pommed.conf, works fine on my MBP7,1
+
+-------------------------------------------------------------------

Old:
----
  pommed-rpmlintrc
  pommed.init

New:
----
  pommed.conf
  pommed.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pommed.spec ++++++
--- /var/tmp/diff_new_pack.35GAbT/_old  2016-07-12 23:50:43.000000000 +0200
+++ /var/tmp/diff_new_pack.35GAbT/_new  2016-07-12 23:50:43.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pommed
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,40 +16,18 @@
 #
 
 
-
 Name:           pommed
 Version:        1.39
-Release:        1
-License:        GPL-2.0
+Release:        0
 Summary:        Apple laptops hotkeys event handler
-Url:            http://technologeek.org/projects/pommed/
+License:        GPL-2.0
 Group:          Hardware/Mobile
-%if 0
-# BuildRequires some package containing /usr/include/ofapi/of_api.h
-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
-%if 0%{?suse_version} > 1020
-BuildRequires:  fdupes
-%endif
+Url:            https://launchpad.net/pommed
 Source0:        %{name}-%{version}.tar.bz2
-Source1:        pommed.init
+Source1:        pommed.service
 Source2:        gpomme.desktop
 Source3:        gpommerc
-Source4:        pommed-rpmlintrc
+Source5:        pommed.conf
 # PATCH-FIX-UPSTREAM pommed-desktop.patch idoen...@suse.de -- Update desktop 
categories
 Patch1:         pommed-desktop.patch
 # PATCH-FIX-OPENSUSE pommed-1.38-cflags.patch idoen...@suse.de -- Respect our 
cflags
@@ -58,11 +36,24 @@
 Patch3:         pommed-1.38-hardcoded-libpci.patch
 # PATCH-FIX-UPSTREAM pommed-dbus_policy.patch r...@novell.com -- bnc#469771
 Patch4:         pommed-dbus_policy.patch
-PreReq:         %fillup_prereq
-PreReq:         %insserv_prereq
+BuildRequires:  fdupes
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(alsa)
+BuildRequires:  pkgconfig(audiofile)
+BuildRequires:  pkgconfig(dbus-glib-1)
+BuildRequires:  pkgconfig(gtk+-2.0)
+BuildRequires:  pkgconfig(libconfuse)
+BuildRequires:  pkgconfig(libglade-2.0)
+BuildRequires:  pkgconfig(libpci)
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(x11-xcb)
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  pkgconfig(xpm)
 Requires:       eject
-Requires:       xorg-x11
+Requires(post): update-desktop-files
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+ExclusiveArch:  %ix86 x86_64
+%{?systemd_requires}
 
 %description
 pommed handles the hotkeys found on the Apple MacBook Pro, MacBook and
@@ -75,7 +66,6 @@
 Optional support for the Apple Remote control is available.
 
 %package -n gpomme
-License:        GPL-2.0
 Summary:        Graphical client for pommed
 Group:          Hardware/Mobile
 Requires:       dbus-1
@@ -91,7 +81,6 @@
 current state associated to this action.
 
 %package -n wmpomme
-License:        GPL-2.0
 Summary:        WindowMaker dockapp client for pommed
 Group:          Hardware/Mobile
 Requires:       dbus-1
@@ -116,18 +105,15 @@
 make %{?_smp_mflags}
 
 %install
-mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir} 
%{buildroot}/%{_sysconfdir}/{init.d,dbus-1/system.d}
+mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir} 
%{buildroot}/%{_sysconfdir}/dbus-1/system.d
+mkdir -p %{buildroot}/%{_unitdir} 
%{buildroot}/%{_unitdir}/multi-user.target.wants
 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
-%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 755 %{SOURCE1}                 
%{buildroot}/%{_sysconfdir}/init.d/pommed
-ln -sf %{_sysconfdir}/init.d/pommed %{buildroot}/%{_sbindir}/rcpommed
+install -m 644 %{SOURCE5}    %{buildroot}/%{_sysconfdir}/pommed.conf
+install -m 644 %{SOURCE1}      %{buildroot}%{_unitdir}/pommed.service
+ln -s service %{buildroot}/%{_sbindir}/rcpommed
 install -m 644 pommed.1               %{buildroot}/%{_mandir}/man1
 # gpomme
 install -m 755 gpomme/gpomme          %{buildroot}/%{_bindir}
@@ -152,35 +138,47 @@
 %suse_update_desktop_file %{buildroot}/%{_datadir}/applications/gpomme.desktop
 # enable videoswitch
 mkdir -p %{buildroot}/%{_sysconfdir}/pommed
-%if 0%{?suse_version} > 1020
-%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
+
+%fdupes -s %{buildroot}
 %find_lang gpomme
 
+%pre
+%service_add_pre %{name}.service
+
 %post
-%{fillup_and_insserv -n %{name} %{name}}
+%service_add_post %{name}.service
 
 %preun
-%stop_on_removal %{name}
+%service_del_preun %{name}.service
 
 %postun
-%restart_on_update %{name}
-%{insserv_cleanup}
+%service_del_postun %{name}.service
+
+%post -n gpomme
+%desktop_database_post
+%icon_theme_cache_post
+
+%postun -n gpomme
+%icon_theme_cache_postun
+%desktop_database_postun
+
+%post -n wmpomme
+%icon_theme_cache_post
 
-%clean
-rm -rf %{buildroot}
+%postun -n wmpomme
+%icon_theme_cache_postun
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS README TODO
+%doc AUTHORS README TODO COPYING
 %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*
+%{_unitdir}/%{name}.service
 
 %files -n gpomme -f gpomme.lang
 %defattr(-,root,root)

++++++ pommed.conf ++++++
#
# Configuration file for pommed
#

# General configuration
general {
        # fnmode: functions keys first (no need to use fn) or last
        # Value is either 1 or 2, effect is hardware-dependent
        fnmode = 2
}

# sysfs backlight control
# nVidia machines, will fall back to nv8600gmt if not supported by the kernel
lcd_sysfs {
        # The sysfs backlight control is a generic interface provided
        # by the Linux kernel for backlight control on most graphic cards.
        # The brightness range can differ depending on the hardware.
# these are values for nvidia 320m as comes on my MacBook Pro 7,1
# abbaton:/home/alin # cat /sys/class/backlight/nvidia_backlight/max_brightness 
# 44000

        # initial backlight level [30000] (0 - 44000, -1 to disable)
        init =  40000
        # step value (1 - 2)
        step = 1000
        # backlight level when on battery [20000] (1 - 44000, -1 to disable)
        on_batt = 20000
}

# ATI X1600 backlight control (MacBook Pro v1 & v2)
lcd_x1600 {
        # initial backlight level [200] (0 - 255, -1 to disable)
        init = -1
        # step value (1 - 127)
        step = 10
        # backlight level when on battery [80] (1 - 255, 0 to disable)
        on_batt = 80
}

# Intel 945GM, 965GM backlight control (MacBook v1-v4, MacBook Air v1)
lcd_gma950 {
        # initial backlight level [0x6f] (0x1f - 0x94 usually, -1 to disable)
        init = -1
        # step value (0x01 - 0x20)
        step = 0x0f
        # backlight level when on battery [0x40] (0x1f - 0x94 usually, 0 to 
disable)
        on_batt = 0x40
}

# nVidia GeForce 8600M GT/9400M/9600M GT backlight control
# (MacBook Pro v3-v5, MacBook v5, MacBook v2)
lcd_nv8600mgt {
        # initial backlight level [12] (0 - 15, -1 to disable)
        init = -1
        # step value (1 - 2)
        step = 1
        # backlight level when on battery [6] (1 - 15, 0 to disable)
        on_batt = 6
}

# Audio support
audio {
        # Use amixer or alsamixer/alsamixergui to determine the sound card
        # and the mixer elements to use here.

        # sound card to use
        card = "default"
        # initial volume [80] (0 - 100%, -1 to disable)
        init = -1
        # step value (1 - 50%)
        step = 10
        # beep on volume change
        beep = yes
        # mixer element for volume adjustment
        volume = "PCM"
        # mixer element for muting the speakers
        speakers = "Front"
        # mixer element for muting the headphones
        headphones = "Headphone"
}

# Keyboard backlight control
kbd {
        # default value for automatic backlight (0 - 255)
        default = 40
        # step value (1 - 127)
        step = 10
        # ambient light thresholds for automatic backlight (0 - 255)
        on_threshold = 20
        off_threshold = 60
        # enable/disable automatic backlight
        auto = yes
        # idle timer - switches off keyboard backlight automatically (timeout 
in seconds, -1 to disable)
        idle_timer = 10
}

# CD/DVD drive ejection
eject {
        # enable/disable eject key
        enabled = yes
        # CD/DVD device
        device = "/dev/dvd"
}

# Beeper
beep {
        # enable/disable beeper
        enabled = no
        # WAV file to use (from pommed: goutte.wav or click.wav in 
/usr/share/pommed)
        beepfile = "/usr/share/pommed/goutte.wav"
}

# Apple Remote - deprecated
# Note: the appleir driver is required for this to work; this driver has been
# obsoleted with Linux 2.6.22, so unless you are running a kernel < 2.6.22 or
# use the appleir driver on a newer kernel, this won't work.
# You should use LIRC instead.
appleir {
        # enable/disable the appleir support
        enabled = no
}

++++++ pommed.service ++++++
[Unit]
Description="keyboard lights and more for apple laptops"
After=dbus.service

[Service]
Type=dbus
BusName=org.pommed
ExecStart=/usr/sbin/pommed -f

[Install]
WantedBy=multi-user.target

Reply via email to