From 9338bed76dcb6719ebed3af370b4b6ea0eb29922 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Mon, 10 Aug 2009 12:35:17 +0000 Subject: [PATCH] - Add patch from http://sourceforge.net/tracker/?func=detail&aid=2801117&group_id=8874&a tid=308874 and generate generic udev rules for device identification (ID_GPHOTO2* properties) --- libgphoto2.spec | 17 +++++- libgphoto2.udev-136.patch | 106 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 libgphoto2.udev-136.patch diff --git a/libgphoto2.spec b/libgphoto2.spec index 176bc39..48eb076 100644 --- a/libgphoto2.spec +++ b/libgphoto2.spec @@ -1,7 +1,7 @@ Summary: Library for accessing digital cameras Name: libgphoto2 Version: 2.4.6 -Release: 2%{?dist} +Release: 3%{?dist} # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2 License: GPLv2+ and GPLv2 Group: Development/Libraries @@ -11,6 +11,7 @@ Patch1: gphoto2-pkgcfg.patch Patch2: gphoto2-storage.patch Patch3: gphoto2-ixany.patch Patch4: gphoto2-maxentries.patch +Patch5: libgphoto2.udev-136.patch Url: http://www.gphoto.org/ Requires: lockdev BuildRequires: libusb-devel >= 0.1.5 @@ -54,6 +55,7 @@ use libgphoto2. %patch2 -p1 -b .storage %patch3 -p1 -b .ixany %patch4 -p1 -b .maxentries +%patch5 -p1 -b .udev136 for i in AUTHORS COPYING libgphoto2_port/AUTHORS libgphoto2_port/COPYING.LIB `find -name 'README.*'`; do mv ${i} ${i}.old @@ -107,6 +109,14 @@ export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list hal-fdi | \ grep -v "