rpms/newt/devel newt.spec,1.49,1.50

Miroslav Lichvar (mlichvar) fedora-extras-commits at redhat.com
Mon Jun 25 11:44:41 UTC 2007


Author: mlichvar

Update of /cvs/pkgs/rpms/newt/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9495

Modified Files:
	newt.spec 
Log Message:
- split python module to -python subpackage (Yanko Kaneti)
- fix summary



Index: newt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/newt/devel/newt.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- newt.spec	15 Jun 2007 13:12:56 -0000	1.49
+++ newt.spec	25 Jun 2007 11:44:04 -0000	1.50
@@ -1,7 +1,8 @@
-Summary: A development library for text mode user interfaces
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Summary: A library for text mode user interfaces
 Name: newt
 Version: 0.52.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: LGPL
 Group: System Environment/Libraries
 # The source for this package was pulled from upstream's vcs.  Use the
@@ -47,6 +48,15 @@
 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,19 +85,29 @@
 %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
+%defattr(-,root,root)
 %{_libdir}/libnewt.a
 
+%files python
+%defattr(-,root,root)
+%doc peanuts.py popcorn.py
+%{python_sitearch}/*.so
+%{python_sitearch}/*.py*
+
 %changelog
+* Mon Jun 25 2007 Miroslav Lichvar <mlichvar at redhat.com> - 0.52.7-2
+- split python module to -python subpackage (Yanko Kaneti)
+- fix summary
+ 
 * Fri Jun 15 2007 Miroslav Lichvar <mlichvar at redhat.com> - 0.52.7-1
 - add support to snack for multiple selection and border in listbox
   and cursorAtEnd in entry (patch by Shawn Starr)




More information about the fedora-extras-commits mailing list