rpms/libtunepimp/FC-5 libtunepimp.spec,1.15,1.16

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Thu Oct 12 21:07:00 UTC 2006


Author: rdieter

Update of /cvs/extras/rpms/libtunepimp/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12833

Modified Files:
	libtunepimp.spec 
Log Message:
* Thu Oct 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.2-3
- rename python-libtunepimp -> python-tunepimp (to match python
  module name)



Index: libtunepimp.spec
===================================================================
RCS file: /cvs/extras/rpms/libtunepimp/FC-5/libtunepimp.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- libtunepimp.spec	6 Oct 2006 17:26:02 -0000	1.15
+++ libtunepimp.spec	12 Oct 2006 21:07:00 -0000	1.16
@@ -2,7 +2,7 @@
 Summary: A library for creating MusicBrainz enabled tagging applications 
 Name:	 libtunepimp
 Version: 0.5.2
-Release: 1%{?dist}
+Release: 3%{?dist}
 
 License: LGPL
 Group: 	 System Environment/Libraries
@@ -26,6 +26,8 @@
 BuildRequires: curl-devel
 BuildRequires: expat-devel
 
+BuildRequires: python-devel
+
 Obsoletes: libtunepimp-tools < %{version}-%{release}
 Provides:  libtunepimp-tools = %{version}-%{release}
 
@@ -50,6 +52,18 @@
 %description devel
 %{summary}.
 
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%package -n python-tunepimp
+Summary: Python bindings for developing programs that will use %{name} 
+Group:   Development/Libraries
+License: GPL
+#define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")
+#if "%{?python_ver}" > "2"
+#Requires: python-abi = %{python_ver}
+#endif
+%description -n python-tunepimp
+%{summary}.
+
 
 %prep
 %setup -q -n libtunepimp-%{version}
@@ -63,12 +77,20 @@
 
 make %{?_smp_mflags} PLUGIN_DIR=%{pkglibdir}/plugins
 
+pushd python
+%{__python} setup.py build 
+popd
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT PLUGIN_DIR=%{pkglibdir}/plugins
 
+pushd python
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+popd
+
 # unpackaged files
 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
 
@@ -105,8 +127,20 @@
 %{_includedir}/*
 %{_libdir}/lib*.so
 
+%files -n python-tunepimp
+%defattr(-,root,root,-)
+%doc python/examples/trm.py
+%{python_sitelib}/tunepimp/
+
 
 %changelog
+* Thu Oct 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.2-3
+- rename python-libtunepimp -> python-tunepimp (to match python
+  module name)
+
+* Mon Oct 09 2006 Alex Lancaster <alexl[AT]users.sf.net> 0.5.2-2
+- build python-libtunepimp subpackage (#209961)
+
 * Mon Oct 02 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.5.2-1
 - 0.5.2
 




More information about the scm-commits mailing list