rpms/libtunepimp/devel .cvsignore, 1.6, 1.7 libtunepimp.spec, 1.20, 1.21

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


Author: rdieter

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

Modified Files:
	.cvsignore libtunepimp.spec 
Log Message:
* Mon Oct 09 2006 Alex Lancaster <alexl[AT]users.sf.net> 0.5.2-2
- build python-libtunepimp subpackage (#209961)



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libtunepimp/devel/.cvsignore,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- .cvsignore	2 Oct 2006 16:29:30 -0000	1.6
+++ .cvsignore	12 Oct 2006 21:02:35 -0000	1.7
@@ -1,2 +1,2 @@
-libtunepimp-0.4.3.tar.gz
+clog
 libtunepimp-0.5.2.tar.gz


Index: libtunepimp.spec
===================================================================
RCS file: /cvs/extras/rpms/libtunepimp/devel/libtunepimp.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- libtunepimp.spec	2 Oct 2006 16:29:30 -0000	1.20
+++ libtunepimp.spec	12 Oct 2006 21:02:35 -0000	1.21
@@ -2,7 +2,7 @@
 Summary: A library for creating MusicBrainz enabled tagging applications 
 Name:	 libtunepimp
 Version: 0.5.2
-Release: 1%{?dist}
+Release: 2%{?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,20 @@
 %description devel
 %{summary}.
 
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%package -n python-%{name}
+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-%{name}
+%{summary}.
+
 
 %prep
 %setup -q -n libtunepimp-%{version}
@@ -63,12 +79,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 +129,16 @@
 %{_includedir}/*
 %{_libdir}/lib*.so
 
+%files -n python-%{name}
+%defattr(-,root,root,-)
+%doc python/examples/trm.py
+%{python_sitelib}/tunepimp/
+
 
 %changelog
+* 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