fix patch application

This commit is contained in:
Bastien Nocera 2010-03-04 15:43:49 +00:00
parent 0d17c11c23
commit b0b65ddd95
1 changed files with 7 additions and 3 deletions

View File

@ -8,8 +8,6 @@ License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtkpod.org/libgpod.html
Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
# See http://www.redhat.com/archives/fedora-selinux-list/2009-January/msg00005.html
Patch0: 0001-Make-the-temporary-mount-point-configurable.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: docbook-style-xsl
BuildRequires: glib2-devel
@ -31,6 +29,10 @@ BuildRequires: libimobiledevice-devel
BuildRequires: swig
Requires: udev
# See http://www.redhat.com/archives/fedora-selinux-list/2009-January/msg00005.html
Patch0: 0001-Make-the-temporary-mount-point-configurable.patch
BuildRequires: automake autoconf libtool intltool
%description
Libgpod is a library to access the contents of an iPod. It supports playlists,
smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.
@ -83,6 +85,7 @@ libgpod library.
%prep
%setup -q
%patch0 -p1 -b .mount-dir
autoreconf -f
# remove execute perms on the python examples as they'll be installed in %doc
%{__chmod} -x bindings/python/examples/*.py
@ -101,6 +104,7 @@ libgpod library.
# remove Makefiles from the python examples dir
%{__rm} -rf bindings/python/examples/Makefile*
%{__mkdir_p} %{buildroot}/%{_localstatedir}/run/libgpod
%clean
%{__rm} -rf %{buildroot}
@ -115,10 +119,10 @@ libgpod library.
%doc AUTHORS ChangeLog COPYING NEWS README*
%{_bindir}/*
%{_libdir}/*.so.*
%dir %{_localstatedir}/run/libgpod/
/lib/udev/iphone-set-info
/lib/udev/ipod-set-info
/lib/udev/rules.d/libgpod.rules
%dir %{_localstatedir}/run/libgpod
%files devel
%defattr(-, root, root, 0755)