update to 0.52.21 [release 0.52.21-1mamba;Thu Nov 26 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 07:37:20 +01:00
parent 0daf39a7fc
commit 0d30ced5b8

View File

@ -1,28 +1,25 @@
Name: newt
Version: 0.52.17
Release: 2mamba
Version: 0.52.21
Release: 1mamba
Summary: A development library for text mode user interfaces
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: ftp://fedorahosted.org/newt
Source: https://fedorahosted.org/releases/n/e/newt/newt-%{version}.tar.gz
URL: https://pagure.io/releases/newt
Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
Patch0: newt-0.52.17-configure-pythonvers.patch
Patch1: %{name}-0.51.6-if1close.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libpopt-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libpython3-devel
BuildRequires: libslang-devel
BuildRequires: libtcl-devel
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel
BuildRequires: libpython27-devel
BuildRequires: libtcl-devel >= 8.6.1
#BuildRequires: libtcl-devel >= 8.6.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -48,35 +45,29 @@ Requires: %{name} = %{version}-%{release}
Newt is a development library for text mode user interfaces. Newt is based on the slang library.
This package contains the header files and libraries necessary for developing applications which use newt.
%package -n python-%{name}
%package -n python-%{name}-py3
Summary: Python bindings for GNU parted for newt windowing toolkit
Group: Development/Libraries/Python
Requires: lib%{name} = %{version}-%{release}
Requires: python >= 2.3.4
Requires: python3
Provides: python-newt
Obsoletes: python-newt
%description -n python-%{name}
%description -n python-%{name}-py3
Newt is a programming library for color text mode, widget based user interfaces.
Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces.
This module contains Python bindings for the newt library.
%package -n python-%{name}-py27
Summary: Python 2.7 bindings for GNU parted for newt windowing toolkit
Group: Development/Libraries/Python
Requires: lib%{name} = %{version}-%{release}
Requires: python27
%description -n python-%{name}-py27
Newt is a programming library for color text mode, widget based user interfaces.
Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces.
This module contains Python 2.7 bindings for the newt library.
%debug_package
%prep
%setup -q
%patch0 -p1
#%patch0 -p1
%patch1 -p1 -b .if1close
%build
%configure
%configure \
CFLAGS="%{optflags} -I%{_includedir}/slang"
%make \
%if "%{_host}" != "%{_build}"
@ -94,14 +85,16 @@ make install instroot=%{buildroot}
rm -f %{buildroot}%{_libdir}/python/site-packages/*.so
rm -f %{buildroot}%{_libdir}/python/site-packages/*.py
rm -f %{buildroot}%{_libdir}/python2.4/site-packages/*.so
rm -f %{buildroot}%{_libdir}/python2.4/site-packages/*.py
rm -rf %{buildroot}%{_libdir}/python2.*/site-packages
rm -rf %{buildroot}%{_libdir}/python3.6/site-packages
%ifarch x86_64
%ifarch x86_64 aarch64
install -d -m0755 %{buildroot}%{_prefix}/lib
mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
%endif
rm -rf %{buildroot}%{_libdir}/usr/include/python/Python.h/site-packages/snack.py
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -124,20 +117,21 @@ mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
%{_libdir}/libnewt.a
%{_libdir}/libnewt.so
%{_libdir}/pkgconfig/libnewt.pc
%if "%{_host}" == "%{_build}"
%{_libdir}/whiptcl.so
%endif
#%if "%{_host}" == "%{_build}"
#%{_libdir}/whiptcl.so
#%endif
%doc CHANGES
%doc tutorial.sgml peanuts.py popcorn.py
%files -n python-newt
%files -n python-newt-py3
%defattr(-,root,root)
%{python3_sitelib}/*.so
%{python3_sitelib}/*.py
%{python27_sitelib}/*.so
%{python27_sitelib}/*.py
%changelog
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.21-1mamba
- update to 0.52.21
* Thu Jul 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.17-2mamba
- rebuilt to fix link with correct soname
@ -179,7 +173,7 @@ mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
- update to version 0.51.6 by autospec
- new package python-newt
* Thu Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-2qilnx
* Sun Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-2qilnx
- fixed inclusion mask of /usr/lib/libnewt.so.*
* Thu Apr 24 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-1qilnx