rpms/libgpod/devel libgpod-0.5.2-python-docs.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 libgpod.spec, 1.9, 1.10 sources, 1.4, 1.5

Todd M. Zullinger (tmz) fedora-extras-commits at redhat.com
Sat Aug 4 18:50:49 UTC 2007


Author: tmz

Update of /cvs/extras/rpms/libgpod/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10069

Modified Files:
	.cvsignore libgpod.spec sources 
Added Files:
	libgpod-0.5.2-python-docs.patch 
Log Message:
* Sat Aug 04 2007 Todd Zullinger <tmz at pobox.com> - 0.5.2-1
- update to 0.5.2
- replace %makeinstall with %{__make} DESTDIR=%{buildroot} install
- build python bindings, merging python-gpod package from extras
- make %setup quiet
- patch to fixup building of the python docs, BR libxslt
- update license tag


libgpod-0.5.2-python-docs.patch:

--- NEW FILE libgpod-0.5.2-python-docs.patch ---
--- bindings/python/Makefile.in~	2007-06-23 01:51:57.000000000 -0400
+++ bindings/python/Makefile.in	2007-07-11 16:58:38.000000000 -0400
@@ -752,9 +752,11 @@
 
 @HAVE_PYTHON_TRUE at gpod_doc.i: $(srcdir)/gpod_doc.i.in $(srcdir)/gtkdoc-to-swig.xsl
 @HAVE_PYTHON_TRUE@	cat $< > $@
- at ENABLE_GTK_DOC_TRUE@@HAVE_PYTHON_TRUE@	-for xml in $(top_srcdir)/docs/reference/xml/*.xml; do \
- at ENABLE_GTK_DOC_TRUE@@HAVE_PYTHON_TRUE@	    xsltproc $(srcdir)/gtkdoc-to-swig.xsl $$xml; \
- at ENABLE_GTK_DOC_TRUE@@HAVE_PYTHON_TRUE@	done >> $@
+ at HAVE_PYTHON_TRUE@	-if test -x "`which xsltproc 2>/dev/null`"; then \
+ at HAVE_PYTHON_TRUE@	    for xml in $(top_srcdir)/docs/reference/xml/*.xml; do \
+ at HAVE_PYTHON_TRUE@		xsltproc $(srcdir)/gtkdoc-to-swig.xsl $$xml; \
+ at HAVE_PYTHON_TRUE@	    done >> $@; \
+ at HAVE_PYTHON_TRUE@	fi
 
 @HAVE_PYTHON_TRUE at gpod_wrap.c: $(SWIG_INTERFACES) $(nodist_gpod_PYTHON)
 @HAVE_PYTHON_TRUE@	$(SWIG) -python $(INCLUDES) -o $@ $<


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libgpod/devel/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	13 Nov 2006 21:00:19 -0000	1.3
+++ .cvsignore	4 Aug 2007 18:50:17 -0000	1.4
@@ -1 +1 @@
-libgpod-0.4.0.tar.gz
+libgpod-0.5.2.tar.gz


Index: libgpod.spec
===================================================================
RCS file: /cvs/extras/rpms/libgpod/devel/libgpod.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libgpod.spec	16 Jan 2007 10:04:51 -0000	1.9
+++ libgpod.spec	4 Aug 2007 18:50:17 -0000	1.10
@@ -1,16 +1,23 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Summary: Library to access the contents of an iPod
 Name: libgpod
-Version: 0.4.2
+Version: 0.5.2
 Release: 1%{?dist}
-License: LGPL
+License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtkpod.org/libgpod.html
-Source: http://prdownloads.sf.net/gtkpod/libgpod-%{version}.tar.gz
+Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
+Patch0: libgpod-0.5.2-python-docs.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: glib2-devel
 BuildRequires: gtk2-devel
 BuildRequires: gettext
+BuildRequires: libxslt
 BuildRequires: perl(XML::Parser)
+Buildrequires: python-devel
+Buildrequires: python-mutagen
+Buildrequires: swig
 
 %description
 Libgpod is a library to access the contents of an iPod. It supports playlists,
@@ -31,32 +38,53 @@
 libgpod.
 
 
+%package -n python-gpod
+Summary: Python module to access iPod content
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+Requires: python-mutagen
+
+%description -n python-gpod
+A python module to access iPod content.  This module provides bindings to the
+libgpod library.
+
+
 %prep
-%setup
+%setup -q
+%patch0 -p0 -b .pydocs
+
+# remove execute perms on the python examples as they'll be installed in %doc
+%{__chmod} -x bindings/python/examples/*.py
 
 
 %build
-%configure --without-python
+%configure
 %{__make} %{?_smp_mflags}
 
 
 %install
 %{__rm} -rf %{buildroot}
-%makeinstall
+%{__make} DESTDIR=%{buildroot} install
 %find_lang %{name}
 
+# remove Makefiles from the python examples dir
+%{__rm} -rf bindings/python/examples/Makefile*
+
 
 %clean
 %{__rm} -rf %{buildroot}
 
+
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+
 %files -f %{name}.lang
 %defattr(-, root, root, 0755)
 %doc AUTHORS ChangeLog COPYING README
 %{_libdir}/*.so.*
 
+
 %files devel
 %defattr(-, root, root, 0755)
 %{_includedir}/gpod-1.0/
@@ -67,7 +95,22 @@
 %{_libdir}/*.so
 
 
+%files -n python-gpod
+%doc COPYING bindings/python/README bindings/python/examples
+%{python_sitearch}/gpod
+%exclude %{python_sitearch}/gpod/*.a
+%exclude %{python_sitearch}/gpod/*.la
+
+
 %changelog
+* Sat Aug 04 2007 Todd Zullinger <tmz at pobox.com> - 0.5.2-1
+- update to 0.5.2
+- replace %%makeinstall with %%{__make} DESTDIR=%%{buildroot} install
+- build python bindings, merging python-gpod package from extras
+- make %%setup quiet
+- patch to fixup building of the python docs, BR libxslt
+- update license tag
+
 * Tue Jan 16 2007 Alexander Larsson <alexl at redhat.com> - 0.4.2-1
 - update to 0.4.2
 - Change %%description to reflect newer features


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libgpod/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	16 Jan 2007 10:04:51 -0000	1.4
+++ sources	4 Aug 2007 18:50:17 -0000	1.5
@@ -1 +1 @@
-c3c031dc6f1f6eff422598c84f2621bd  libgpod-0.4.2.tar.gz
+e4f8d2a7be9512268267bfbe712fe9be  libgpod-0.5.2.tar.gz




More information about the fedora-extras-commits mailing list