rpms/libmtp/devel libmtp-0.1.5-udevrules.patch, NONE, 1.1 libmtp.spec, 1.6, 1.7

Harald Hoyer (harald) fedora-extras-commits at redhat.com
Mon Jul 30 07:49:16 UTC 2007


Author: harald

Update of /cvs/pkgs/rpms/libmtp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6503

Modified Files:
	libmtp.spec 
Added Files:
	libmtp-0.1.5-udevrules.patch 
Log Message:
- changed udev rules for new kernel and udev versions


libmtp-0.1.5-udevrules.patch:

--- NEW FILE libmtp-0.1.5-udevrules.patch ---
--- libmtp-0.1.5/examples/hotplug.c.udevrules	2007-07-30 09:40:11.000000000 +0200
+++ libmtp-0.1.5/examples/hotplug.c	2007-07-30 09:44:32.000000000 +0200
@@ -76,7 +76,11 @@
     case style_udev:
       printf("# UDEV-style hotplug map for libmtp\n");
       printf("# Put this file in /etc/udev/rules.d\n\n");
-      printf("SUBSYSTEM!=\"usb_device\", ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n\n");
+      printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"
+             "SUBSYSTEM==\"usb\", GOTO=\"libmtp_rules\"\n"
+             "SUBSYSTEM==\"usb_device\", GOTO=\"libmtp_rules\"\n\n"
+             "GOTO=\"libmtp_rules_end\"\n\n"
+             "LABEL=\"libmtp_rules\"\n\n");
       break;
     case style_usbmap:
       printf("# This usermap will call the script \"libmtp.sh\" whenever a known MTP device is attached.\n\n");
@@ -103,7 +107,7 @@
 	} else {
 	  action = default_udev_action;
 	}
-	printf("SYSFS{idVendor}==\"%04x\", SYSFS{idProduct}==\"%04x\", %s\n", entry->vendor_id, entry->product_id, action);
+	printf("ATTR{idVendor}==\"%04x\", ATTR{idProduct}==\"%04x\", %s\n", entry->vendor_id, entry->product_id, action);
 	break;
       }
       case style_usbmap:


Index: libmtp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libmtp/devel/libmtp.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- libmtp.spec	26 Mar 2007 19:33:09 -0000	1.6
+++ libmtp.spec	30 Jul 2007 07:48:43 -0000	1.7
@@ -12,13 +12,14 @@
 
 Name:           libmtp
 Version:        0.1.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A software library for MTP media players
 URL:            http://libmtp.sourceforge.net/
 
 Group:          System Environment/Libraries
 Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1:        libmtp.perms
+Patch: 		libmtp-0.1.5-udevrules.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 License:        LGPL
 Requires:       udev
@@ -54,6 +55,7 @@
 
 %prep
 %setup -q
+%patch -p1 -b .udevrules
 
 %build
 %configure --disable-static --program-prefix=mtp-
@@ -105,6 +107,9 @@
 
 
 %changelog
+* Mon Jul 30 2007 Harald Hoyer <harald at redhat.com> - 0.1.5-2
+- changed udev rules for new kernel and udev versions
+
 * Mon Mar 26 2007 Linus Walleij <triad at df.lth.se> 0.1.5-1
 - New upstream release.
 - Candidate for FC5, FC6 backport.




More information about the fedora-extras-commits mailing list