Hello community,
here is the log from the commit of package newt
checked in at Tue Dec 18 18:51:07 CET 2007.
--------
--- newt/newt.changes 2007-10-11 18:05:26.000000000 +0200
+++ /mounts/work_src_done/STABLE/newt/newt.changes 2007-12-17 18:35:09.000000000 +0100
@@ -1,0 +2,7 @@
+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
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ newt.spec ++++++
--- /var/tmp/diff_new_pack.C23052/_old 2007-12-18 18:50:24.000000000 +0100
+++ /var/tmp/diff_new_pack.C23052/_new 2007-12-18 18:50:24.000000000 +0100
@@ -11,65 +11,74 @@
# 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}
#
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%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}
-#
+%description
+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.
-%package doc
-Summary: Tutorial for Nifty Erik's Windowing Toolkit
-Group: Documentation/Howto
-#
+This package also contains a Dialog replacement called whiptail.
-%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
+
+Authors:
+--------
+ Erik Troan
+
+%package -n libnewt0_52
+Summary: Shared libraries for Nifty Erik's Windowing Toolkit
Group: System/Libraries
-Requires: newt = %{version}
+#
+
+%description -n libnewt0_52
+This package contains the shared libraries needed by programs built
+with newt.
-%description
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 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 @@
--------
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 @@
--------
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 @@
%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 @@
%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 @@
%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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org