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 Name: newt
Version: 0.52.17 Version: 0.52.21
Release: 2mamba Release: 1mamba
Summary: A development library for text mode user interfaces Summary: A development library for text mode user interfaces
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: ftp://fedorahosted.org/newt URL: https://pagure.io/releases/newt
Source: https://fedorahosted.org/releases/n/e/newt/newt-%{version}.tar.gz Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
Patch0: newt-0.52.17-configure-pythonvers.patch Patch0: newt-0.52.17-configure-pythonvers.patch
Patch1: %{name}-0.51.6-if1close.patch Patch1: %{name}-0.51.6-if1close.patch
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libpopt-devel BuildRequires: libpopt-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
BuildRequires: libslang-devel BuildRequires: libslang-devel
BuildRequires: libtcl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
BuildRequires: libpython27-devel #BuildRequires: libtcl-devel >= 8.6.1
BuildRequires: libtcl-devel >= 8.6.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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. 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 Summary: Python bindings for GNU parted for newt windowing toolkit
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: lib%{name} = %{version}-%{release} 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 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. 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. This module contains Python bindings for the newt library.
%package -n python-%{name}-py27 %debug_package
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.
%prep %prep
%setup -q %setup -q
%patch0 -p1 #%patch0 -p1
%patch1 -p1 -b .if1close %patch1 -p1 -b .if1close
%build %build
%configure %configure \
CFLAGS="%{optflags} -I%{_includedir}/slang"
%make \ %make \
%if "%{_host}" != "%{_build}" %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/*.so
rm -f %{buildroot}%{_libdir}/python/site-packages/*.py rm -f %{buildroot}%{_libdir}/python/site-packages/*.py
rm -f %{buildroot}%{_libdir}/python2.4/site-packages/*.so rm -rf %{buildroot}%{_libdir}/python2.*/site-packages
rm -f %{buildroot}%{_libdir}/python2.4/site-packages/*.py rm -rf %{buildroot}%{_libdir}/python3.6/site-packages
%ifarch x86_64 %ifarch x86_64 aarch64
install -d -m0755 %{buildroot}%{_prefix}/lib install -d -m0755 %{buildroot}%{_prefix}/lib
mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/ mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
%endif %endif
rm -rf %{buildroot}%{_libdir}/usr/include/python/Python.h/site-packages/snack.py
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -124,20 +117,21 @@ mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
%{_libdir}/libnewt.a %{_libdir}/libnewt.a
%{_libdir}/libnewt.so %{_libdir}/libnewt.so
%{_libdir}/pkgconfig/libnewt.pc %{_libdir}/pkgconfig/libnewt.pc
%if "%{_host}" == "%{_build}" #%if "%{_host}" == "%{_build}"
%{_libdir}/whiptcl.so #%{_libdir}/whiptcl.so
%endif #%endif
%doc CHANGES %doc CHANGES
%doc tutorial.sgml peanuts.py popcorn.py %doc tutorial.sgml peanuts.py popcorn.py
%files -n python-newt %files -n python-newt-py3
%defattr(-,root,root) %defattr(-,root,root)
%{python3_sitelib}/*.so %{python3_sitelib}/*.so
%{python3_sitelib}/*.py %{python3_sitelib}/*.py
%{python27_sitelib}/*.so
%{python27_sitelib}/*.py
%changelog %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 * Thu Jul 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.17-2mamba
- rebuilt to fix link with correct soname - 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 - update to version 0.51.6 by autospec
- new package python-newt - 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.* - fixed inclusion mask of /usr/lib/libnewt.so.*
* Thu Apr 24 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-1qilnx * Thu Apr 24 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-1qilnx