[libmtp] Proper udev rules

Linus Walleij snirkel at fedoraproject.org
Tue Nov 30 00:23:08 UTC 2010


commit d31a1d1369ac288a63662c53ea8f2f116893c700
Author: Linus Walleij <linus.walleij at stericsson.com>
Date:   Tue Nov 30 01:23:08 2010 +0100

    Proper udev rules

 libmtp.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libmtp.spec b/libmtp.spec
index 5feff80..118194f 100644
--- a/libmtp.spec
+++ b/libmtp.spec
@@ -3,7 +3,7 @@
 
 Name:           libmtp
 Version:        1.0.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        A software library for MTP media players
 URL:            http://libmtp.sourceforge.net/
 
@@ -56,7 +56,7 @@ library for MTP media players.
 %configure --disable-static --program-prefix=mtp-
 make %{?_smp_mflags}
 # Remove permissions from udev rules, but register for ACL management
-examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ACL_MANAGE}=\"0\" TAG+=\"udev-acl\"" > libmtp.rules
+examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\" TAG+=\"udev-acl\"" > libmtp.rules
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -127,6 +127,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Nov 30 2010 Linus Walleij <triad at df.lth.se> 1.0.3-6
+- It appears adding ENV{ID_MTP_DEVICE}="1",
+  ENV{ID_MEDIA_PLAYER}="1" is the way forward so testing this
+  before pushing a new libmtp release.
+
 * Thu Jun 17 2010 Bastien Nocera <bnocera at redhat.com> 1.0.3-5
 - Split out hal sub-package
 


More information about the scm-commits mailing list