rpms/f-spot/devel gvfs-gphoto.patch,NONE,1.1 f-spot.spec,1.86,1.87

chkr chkr at fedoraproject.org
Sat Jul 25 20:14:22 UTC 2009


Author: chkr

Update of /cvs/pkgs/rpms/f-spot/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18449

Modified Files:
	f-spot.spec 
Added Files:
	gvfs-gphoto.patch 
Log Message:
Ported the following fixes from F-11:
- Avoid showing f-spot twice for photo imports
- Make f-spot-import work with gvfs (BZ #485037)
Minor indentation fix


gvfs-gphoto.patch:
 f-spot-import |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

--- NEW FILE gvfs-gphoto.patch ---
diff -up f-spot-0.5.0.3/tools/f-spot-import.gvfs f-spot-0.5.0.3/tools/f-spot-import
--- f-spot-0.5.0.3/tools/f-spot-import.gvfs	2009-04-18 21:56:21.248974676 -0400
+++ f-spot-0.5.0.3/tools/f-spot-import	2009-04-18 21:56:30.800987772 -0400
@@ -1,20 +1,20 @@
 #!/bin/bash
 
-udi="$1"
-#xmessage $udi
-mount_point=`hal-get-property --udi="$udi" --key=volume.mount_point`
-if [ -n "$mount_point" ]; then
-      # USB Mass Storage camera: need to pass f-spot a mount point
+URI=`gvfs-ls -c "$1/"`
 
-      f-spot --import "$mount_point"
-else
-     # Some other camera try GPhoto2
+if [ "${URI:0:10}" = "gphoto2://" ] ; then
+    # Yield for f-spot since it wants to access the device directly
+    #
+    gvfs-mount --unmount-scheme gphoto2
 
-     bus=`hal-get-property --udi="$udi" --key=usb.bus_number`
-     dev=`hal-get-property --udi="$udi" --key=usb.linux.device_number`
-     uri=`printf gphoto2:usb:%.3d,%.3d $bus $dev`
+    if [ "${URI:11:4}" = "usb:" ] ; then
+        # Rewrite the uri to something f-spot can handle
+        #
+        bus="${URI:15:3}"
+        dev="${URI:19:3}"
 
-     echo $uri
-
-     f-spot --import "$uri"
+        URI="gphoto2:usb:$bus,$dev"
+    fi
 fi
+
+f-spot --import "$URI"


Index: f-spot.spec
===================================================================
RCS file: /cvs/pkgs/rpms/f-spot/devel/f-spot.spec,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -p -r1.86 -r1.87
--- f-spot.spec	24 Jul 2009 22:28:32 -0000	1.86
+++ f-spot.spec	25 Jul 2009 20:14:22 -0000	1.87
@@ -1,18 +1,18 @@
 Name:           f-spot
 Version:        0.5.0.3
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Photo management application
 
 Group:          Applications/Multimedia
 License:        GPLv2+ and LGPLv2+ and CPL and MIT
 URL:            http://f-spot.org/
 Source0:        http://download.gnome.org/sources/f-spot/0.5/f-spot-%{version}.tar.bz2
-# http://bugzilla.gnome.org/show_bug.cgi?id=510325
-Patch0:		x-content.patch
 # Use system mono-addins
-Patch3:		f-spot-0.4.4-link-system-mono-addins.patch
+Patch3:         f-spot-0.4.4-link-system-mono-addins.patch
 # fix a missing icon
-Patch4:		missing-icon.patch
+Patch4:         missing-icon.patch
+# unmount cameras before importing
+Patch5:         gvfs-gphoto.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  mono-devel mono-web mono-data mono-data-sqlite lcms-devel
@@ -53,9 +53,9 @@ sorting and tagging of digital images. 
 # preserve timestamps
 touch -r configure.in configure.in.stamp
 
-%patch0 -p1 -b .x-content
 %patch3 -p1 -b .link-system-mono-addins
 %patch4 -p1 -b .missing-icon
+%patch5 -p1 -b .gvfs-gphoto
 
 # restore timestamps
 touch -r configure.in.stamp configure.in
@@ -123,6 +123,11 @@ fi
 %{_libdir}/gio-sharp-unstable
 
 %changelog
+* Sat Jul 25 2009 Christian Krause <chkr at fedoraproject.org> - 0.5.0.3-9
+- Avoid showing f-spot twice for photo imports
+- Make f-spot-import work with gvfs
+- Minor indentation fix
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.0.3-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list