rpms/libgpod/devel 0001-Use-var-run-hald-as-mount-dir-for-hal-callout.patch, NONE, 1.1 libgpod.spec, 1.20, 1.21

Todd M. Zullinger tmz at fedoraproject.org
Thu Jan 15 04:02:07 UTC 2009


Author: tmz

Update of /cvs/pkgs/rpms/libgpod/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24909

Modified Files:
	libgpod.spec 
Added Files:
	0001-Use-var-run-hald-as-mount-dir-for-hal-callout.patch 
Log Message:
* Wed Jan 14 2009 Todd Zullinger <tmz at pobox.com> - 0.6.0-10
- Fix path to hal callout (this should help setup the SysInfoExtended
  file automagically)
- Use /var/run/hald as mount dir for hal callout
- Require hal
- Require main package for the -doc subpackage


0001-Use-var-run-hald-as-mount-dir-for-hal-callout.patch:

--- NEW FILE 0001-Use-var-run-hald-as-mount-dir-for-hal-callout.patch ---
>From e8633211edb36d633864a6ee82ad4655984fa732 Mon Sep 17 00:00:00 2001
From: Todd Zullinger <tmz at pobox.com>
Date: Sun, 4 Jan 2009 21:32:14 -0500
Subject: [PATCH] Use /var/run/hald as mount dir for hal callout

This is preferred over /tmp by SELinux.
---
 tools/hal-callout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/hal-callout.c b/tools/hal-callout.c
index e7313fe..4d6044b 100644
--- a/tools/hal-callout.c
+++ b/tools/hal-callout.c
@@ -52,7 +52,7 @@ static char *mount_ipod (const char *dev_path)
         if (fstype == NULL) {
                 return NULL;
         }
-        filename = g_build_filename (g_get_tmp_dir (), "ipodXXXXXX", NULL);
+        filename = g_build_filename ("/var/run/hald", "ipodXXXXXX", NULL);
         if (filename == NULL) {
                 return NULL;
         }
-- 
1.6.1



Index: libgpod.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libgpod/devel/libgpod.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- libgpod.spec	29 Nov 2008 16:48:01 -0000	1.20
+++ libgpod.spec	15 Jan 2009 04:01:37 -0000	1.21
@@ -3,7 +3,7 @@
 Summary: Library to access the contents of an iPod
 Name: libgpod
 Version: 0.6.0
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtkpod.org/libgpod.html
@@ -12,6 +12,8 @@
 Patch1: libgpod-0.6.0-ipod-touch-typos.patch
 Patch2: libgpod-0.6.0-spl-tracklen.patch
 Patch3: libgpod-0.6.0-sg3_utils-1.26.patch
+# See http://www.redhat.com/archives/fedora-selinux-list/2009-January/msg00005.html
+Patch4: 0001-Use-var-run-hald-as-mount-dir-for-hal-callout.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: docbook-style-xsl
 BuildRequires: glib2-devel
@@ -25,6 +27,7 @@
 Buildrequires: python-mutagen
 Buildrequires: sg3_utils-devel
 Buildrequires: swig
+Requires: hal
 
 %description
 Libgpod is a library to access the contents of an iPod. It supports playlists,
@@ -51,6 +54,7 @@
 Summary: API documentation for the libgpod library
 Group: Documentation
 License: GFDL
+Requires: %{name} = %{version}-%{release}
 Requires: gtk-doc
 
 %description doc
@@ -77,13 +81,14 @@
 %patch1 -p0 -b .ipod-touch-typos
 %patch2 -p0 -b .spl-tracklen
 %patch3 -p1 -b .sg3_utils
+%patch4 -p1 -b .selinux
 
 # remove execute perms on the python examples as they'll be installed in %doc
 %{__chmod} -x bindings/python/examples/*.py
 
 
 %build
-%configure
+%configure --with-hal-callouts-dir=%{_libdir}/hal/scripts
 %{__make} %{?_smp_mflags}
 
 # add gdk-pixbuf-2.0 to the pkg-config file requirements
@@ -112,7 +117,7 @@
 %doc AUTHORS ChangeLog COPYING NEWS README*
 %{_bindir}/*
 %{_libdir}/*.so.*
-%{_libdir}/hal/*
+%{_libdir}/hal/scripts/*
 %{_datadir}/hal/fdi/policy/20thirdparty/*.fdi
 
 
@@ -139,6 +144,13 @@
 
 
 %changelog
+* Wed Jan 14 2009 Todd Zullinger <tmz at pobox.com> - 0.6.0-10
+- Fix path to hal callout (this should help setup the SysInfoExtended
+  file automagically)
+- Use /var/run/hald as mount dir for hal callout
+- Require hal
+- Require main package for the -doc subpackage
+
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.6.0-9
 - Rebuild for Python 2.6
 




More information about the fedora-extras-commits mailing list