[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

additional *-python splits



Hi,

Before wrestling with bugzilla, I'd like to ask if there are any
objections to further splitting of *-python subpackages for some core
libraries. It would make removing python on a minimal install less
painful.

Three patches for libsemanage, newt and libuser attached.

Yanko

? libsemanage-2.0.3-3.fc7.src.rpm
Index: libsemanage.spec
===================================================================
RCS file: /cvs/pkgs/devel/libsemanage/libsemanage.spec,v
retrieving revision 1.125
diff -u -p -r1.125 libsemanage.spec
--- libsemanage.spec	1 Jun 2007 14:45:13 -0000	1.125
+++ libsemanage.spec	22 Jun 2007 10:38:37 -0000
@@ -1,3 +1,4 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 %define libsepolver 2.0.0-1
 %define libselinuxver 2.0.0-1
 Summary: SELinux binary policy manipulation library 
@@ -29,6 +30,16 @@ It is used by checkpolicy (the policy co
 as by programs like load_policy that need to perform specific transformations
 on binary policies such as customizing policy boolean settings.
 
+%package python
+Summary: Python bindings for the libsemanage library
+Group: Development/Libraries
+Requires: libsemanage = %{version}
+
+%description python
+The libsemanage-python package contains the Python bindings for 
+the libsemanage library providing an python API for manipulation of SELinux 
+binary policies.
+
 %package devel
 Summary: Header files and libraries used to build policy manipulation tools
 Group: Development/Libraries
@@ -61,7 +72,11 @@ rm -rf ${RPM_BUILD_ROOT}
 %config(noreplace) /etc/selinux/semanage.conf
 /%{_lib}/libsemanage.so.1
 %{_libdir}/libsemanage.so
-%{_libdir}/python*/site-packages/*
+
+%files python
+%defattr(-,root,root)
+%{python_sitearch}/*.so
+%{python_sitearch}/*.py*
 
 %post -p /sbin/ldconfig
 
? libuser-0.56.4-1.src.rpm
Index: libuser.spec
===================================================================
RCS file: /cvs/pkgs/devel/libuser/libuser.spec,v
retrieving revision 1.66
diff -u -p -r1.66 libuser.spec
--- libuser.spec	15 Jun 2007 12:45:10 -0000	1.66
+++ libuser.spec	22 Jun 2007 10:47:39 -0000
@@ -25,6 +25,16 @@ back-ends to interface to its data sourc
 Sample applications modeled after those included with the shadow password
 suite are included.
 
+%package python
+Summary: Python bindings for the libuser library
+Group: Development/Libraries
+Requires: libuser = %{version}-%{release}
+
+%description python
+The libuser-python package contains the Python bindings for 
+the libuser library providing an python API for manipulating and 
+administering user and group accounts.
+
 %package devel
 Group: Development/Libraries
 Summary: Files needed for developing applications which use libuser
@@ -70,11 +80,10 @@ popd
 
 %files -f %{name}.lang
 %defattr(-,root,root)
-%doc AUTHORS COPYING NEWS README TODO docs/*.txt python/modules.txt
+%doc AUTHORS COPYING NEWS README TODO docs/*.txt
 %config(noreplace) %{_sysconfdir}/libuser.conf
 
 %attr(0755,root,root) %{_bindir}/*
-%{python_sitearch}/*.so
 %{_libdir}/*.so.*
 %dir %{_libdir}/%{name}
 %{_libdir}/%{name}/*.so
@@ -86,6 +95,11 @@ popd
 %exclude %{_libdir}/%{name}/*.la
 %exclude %{python_sitearch}/*.la
 
+%files python
+%defattr(-,root,root)
+%{python_sitearch}/*.so
+%doc python/modules.txt
+
 %files devel
 %defattr(-,root,root)
 %{_includedir}/libuser
? newt-0.52.7-1.fc7.src.rpm
Index: newt.spec
===================================================================
RCS file: /cvs/pkgs/devel/newt/newt.spec,v
retrieving revision 1.49
diff -u -p -b -r1.49 newt.spec
--- newt.spec	15 Jun 2007 13:12:56 -0000	1.49
+++ newt.spec	22 Jun 2007 11:01:19 -0000
@@ -1,3 +1,4 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 Summary: A development library for text mode user interfaces
 Name: newt
 Version: 0.52.7
@@ -47,6 +48,15 @@ newt.
 The newt-static package contains the static version of the newt library.
 Install it if you need to link statically with libnewt.
 
+%package python
+Summary: Python bindings for newt
+Group: Development/Libraries
+Requires: newt = %{version}-%{release}
+
+%description python
+The newt-python package contains the Python bindings for the newt library
+providing a python API for creating text mode ionterfaces. 
+
 %prep
 %setup -q
 
@@ -75,18 +85,23 @@ rm -rf $RPM_BUILD_ROOT
 %doc COPYING
 %{_bindir}/whiptail
 %{_libdir}/libnewt.so.*
-%{_libdir}/python?.?/site-packages/*
 %{_mandir}/man1/whiptail.1*
 
 %files devel
 %defattr (-,root,root)
-%doc tutorial.sgml peanuts.py popcorn.py
+%doc tutorial.sgml
 %{_includedir}/newt.h
 %{_libdir}/libnewt.so
 
 %files static
 %{_libdir}/libnewt.a
 
+%files python
+%defattr(-,root,root)
+%doc peanuts.py popcorn.py
+%{python_sitearch}/*.so
+%{python_sitearch}/*.py*
+
 %changelog
 * Fri Jun 15 2007 Miroslav Lichvar <mlichvar redhat com> - 0.52.7-1
 - add support to snack for multiple selection and border in listbox

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]