? 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 - 0.52.7-1 - add support to snack for multiple selection and border in listbox