diff --git a/newt.changes b/newt.changes index 142e0a9..0a91804 100644 --- a/newt.changes +++ b/newt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 17 18:33:12 CET 2007 - lrupp@suse.de + +- split libnewt0_52 to follow the shared library packaging policy +- build on older distributions +- build parallel + ------------------------------------------------------------------- Thu Oct 11 16:55:38 CEST 2007 - lrupp@suse.de diff --git a/newt.spec b/newt.spec index 3d1beef..e70f965 100644 --- a/newt.spec +++ b/newt.spec @@ -11,49 +11,31 @@ # norootforbuild Name: newt -Url: ftp://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/newt-0.52.7-4.fc8.src.rpm +Url: http://cvs.fedora.redhat.com/viewcvs/devel/newt/ Summary: Nifty Erik's Windowing Toolkit Version: 0.52.7 -Release: 39 -License: LGPL v2 or later +Release: 62 +%define soname 0_52 +License: LGPL v2.1 or later Group: System/Libraries -Source: %{name}-%{version}.tar.bz2 +Source: %name-%version.tar.bz2 Source10: %name-rpmlintrc Patch1: newt-0.52.7-snack.patch Patch2: newt-0.52.7-whiptail.patch Patch3: newt-0.52.7-utf8.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: libnewt%soname = %version BuildRequires: popt-devel python-devel slang-devel +%if 0%{?suse_version} < 1020 +BuildRequires: libpng-devel +%endif # needed for tutorial.pdf BuildRequires: docbook-toys +%if 0%{?sles_version} == 9 +BuildRequires: jadetex +%endif %{py_requires} # - -%package devel -Summary: Development files for the Newt windowing toolkit -Provides: newtd = %{version} -Requires: newt = %{version} -Requires: python -Requires: slang-devel %{name} = %{version} -Group: Development/Libraries/C and C++ -Obsoletes: newtd <= %{version} -# - -%package doc -Summary: Tutorial for Nifty Erik's Windowing Toolkit -Group: Documentation/Howto -# - -%package static -Summary: Nifty Erik's Windowing Toolkit -Requires: newt-devel = %{version} -Group: Development/Libraries/C and C++ -# - -%package python -Summary: Python bindings for newt -Group: System/Libraries -Requires: newt = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Newt is a programming library for color text-mode widget-based user @@ -61,8 +43,7 @@ interfaces. Newt can be used to add stacked windows, entry widgets, check boxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. -This package also contains the shared library needed by programs built -with newt, as well as a Dialog replacement called whiptail. +This package also contains a Dialog replacement called whiptail. @@ -70,6 +51,34 @@ Authors: -------- Erik Troan +%package -n libnewt0_52 +Summary: Shared libraries for Nifty Erik's Windowing Toolkit +Group: System/Libraries +# + +%description -n libnewt0_52 +This package contains the shared libraries needed by programs built +with newt. + +Newt is a programming library for color text-mode widget-based user +interfaces. Newt can be used to add stacked windows, entry widgets, +check boxes, radio buttons, labels, plain text fields, scrollbars, +etc., to text mode user interfaces. + + + +Authors: +-------- + Erik Troan + +%package devel +Summary: Development files for the Newt windowing toolkit +Requires: libnewt%soname = %{version} +Requires: python +Requires: slang-devel +Group: Development/Libraries/C and C++ +# + %description devel This package contains the header files and libraries necessary for developing applications which use newt. @@ -85,6 +94,11 @@ Authors: -------- Erik Troan +%package doc +Summary: Tutorial for Nifty Erik's Windowing Toolkit +Group: Documentation/Howto +# + %description doc This package contains a tutorial about the Newt windowing toolkit. @@ -99,21 +113,33 @@ Authors: -------- Erik Troan +%package static +Summary: Static libraries of Nifty Erik's Windowing Toolkit +Requires: newt-devel = %{version} +Group: Development/Libraries/C and C++ +# + %description static +This package contains the static libraries needed to compile programms +based on newt which don't need the shared libraries. + Newt is a programming library for color text-mode widget-based user interfaces. Newt can be used to add stacked windows, entry widgets, check boxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. -This package also contains the shared library needed by programs built -with newt, as well as a Dialog replacement called whiptail. - Authors: -------- Erik Troan +%package python +Summary: Python bindings for newt +Group: System/Libraries +Requires: newt = %{version} +# + %description python The newt-python package contains the Python bindings for the newt library providing a python API for creating text mode ionterfaces. @@ -128,30 +154,36 @@ Authors: %setup -q %patch1 -p1 -b .snack %patch2 -p1 -b .whiptail +%if 0%{?suse_version} > 1000 %patch3 +%endif %build -export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +## export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --without-tcl # gpm support seems to smash the stack # --with-gpm-support ## make depend -make all +make %{?jobs:-j%jobs} all %install -make instroot=%buildroot install PYTHONVERS=python%{py_ver} -make instroot=%buildroot install-sh PYTHONVERS=python%{py_ver} +make PYTHONVERS="python%{py_ver}" instroot="%buildroot" install install-sh # currently we don't support these languages -for lang in dz mg tl wo; do - rm -rf %buildroot%_datadir/locale/$lang -done +#for lang in dz mg tl wo; do +# rm -rf %buildroot%_datadir/locale/$lang +#done +# +# prepare defaultdocdir with examples and scripts +# install -d -m 755 %buildroot/%_defaultdocdir/%name/examples # install COPYING file install -m 644 COPYING %buildroot/%_defaultdocdir/%name/ # install example scripts install -m 755 peanuts.py %buildroot/%_defaultdocdir/%name/examples/ install -m 755 popcorn.py %buildroot/%_defaultdocdir/%name/examples/ +# # create tutorial.pdf documentation +# install -m 644 tutorial.sgml %buildroot/%_defaultdocdir/%name/ pushd %buildroot/%_defaultdocdir/%name/ 1>/dev/null db2pdf tutorial.sgml @@ -162,18 +194,21 @@ popd 1>/dev/null %clean rm -rf %buildroot -%post -p /sbin/ldconfig +%post -n libnewt%soname -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libnewt%soname -p /sbin/ldconfig %files -f %{name}.lang %defattr (-,root,root) %dir %_defaultdocdir/%name %doc %_defaultdocdir/%name/COPYING %{_bindir}/whiptail -%{_libdir}/libnewt.so.* %{_mandir}/man1/whiptail.1* +%files -n libnewt0_52 +%defattr (-,root,root) +%{_libdir}/libnewt.so.* + %files devel %defattr (-,root,root) %{_includedir}/newt.h @@ -192,7 +227,12 @@ rm -rf %buildroot %dir %_defaultdocdir/%name/examples %doc %_defaultdocdir/%name/examples/*.py %{py_sitedir}/* + %changelog +* Mon Dec 17 2007 - lrupp@suse.de +- split libnewt0_52 to follow the shared library packaging policy +- build on older distributions +- build parallel * Thu Oct 11 2007 - lrupp@suse.de - split python module to -python subpackage - add back support for list of Entries in EntryWindow prompts in