Hello community, here is the log from the commit of package media-player-info for openSUSE:13.1 checked in at 2013-10-01 08:18:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:13.1/media-player-info (Old) and /work/SRC/openSUSE:13.1/.media-player-info.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "media-player-info" Changes: -------- --- /work/SRC/openSUSE:13.1/media-player-info/media-player-info.changes 2013-09-23 11:00:14.000000000 +0200 +++ /work/SRC/openSUSE:13.1/.media-player-info.new/media-player-info.changes 2013-10-01 08:18:39.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Sep 30 12:11:46 UTC 2013 - fcrozat@suse.com + +- Add fix-udev-rules-creator.patch: fix missing eol causing udev + warning (git). +- Ensure udev is notified when package is installed / updated / + uninstalled. + +------------------------------------------------------------------- New: ---- fix-udev-rules-creator.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ media-player-info.spec ++++++ --- /var/tmp/diff_new_pack.CY6wew/_old 2013-10-01 08:18:39.000000000 +0200 +++ /var/tmp/diff_new_pack.CY6wew/_new 2013-10-01 08:18:39.000000000 +0200 @@ -29,9 +29,15 @@ # Hence, the binary package is indeed still BSD-3-Clause. Url: http://hal.freedesktop.org/releases/ Source: http://www.freedesktop.org/software/media-player-info/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix-udev-rules-creator.patch fcrozat@suse.com -- ensure generated udev rules don't cause any warning +Patch0: fix-udev-rules-creator.patch BuildRequires: pkg-config BuildRequires: python3 BuildRequires: pkgconfig(udev) +%if 0%{?suse_version} > 1230 +BuildRequires: systemd-rpm-macros +Requires(post): systemd +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -45,6 +51,7 @@ %prep %setup -q +%patch0 -p1 %build %configure @@ -53,6 +60,18 @@ %install %makeinstall +%if 0%{?suse_version} > 1230 +%post +%udev_hwdb_update +%udev_rules_update + +%postun +if [ $1 -eq 0 ]; then + %udev_hwdb_update + %udev_rules_update +fi +%endif + %files %defattr(-, root, root) %doc AUTHORS COPYING NEWS README ++++++ fix-udev-rules-creator.patch ++++++
From 952a7e728356681f019f3a5076169daa24b946b9 Mon Sep 17 00:00:00 2001 From: Martin Pitt
Date: Mon, 30 Sep 2013 12:07:49 +0000 Subject: Terminate udev rules with an empty line
Apparently newer udev versions now complain about the lack of it. Reported by Frederic Crozat. --- diff --git a/tools/mpi2udev.py b/tools/mpi2udev.py index d33055b..33fdfa2 100755 --- a/tools/mpi2udev.py +++ b/tools/mpi2udev.py @@ -126,4 +126,4 @@ for f in sys.argv[2:]: parse_mpi(f, hwdb) # udev rules footer -os.write(sys.stdout.fileno(), b'\nLABEL="media_player_end"') +os.write(sys.stdout.fileno(), b'\nLABEL="media_player_end"\n') -- cgit v0.9.0.2-2-gbebe -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org