SHA256
8
0
forked from pool/newt
OBS User unknown
2007-12-18 17:51:42 +00:00
committed by Git OBS Bridge
parent 9dac8b051f
commit c05d70e4bf
2 changed files with 93 additions and 46 deletions

View File

@@ -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 Thu Oct 11 16:55:38 CEST 2007 - lrupp@suse.de

132
newt.spec
View File

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