2024-01-06 07:37:20 +01:00
|
|
|
Name: newt
|
2024-01-06 07:37:20 +01:00
|
|
|
Version: 0.52.22
|
2024-01-06 07:37:20 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 07:37:20 +01:00
|
|
|
Summary: A development library for text mode user interfaces
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 07:37:20 +01:00
|
|
|
URL: https://releases.pagure.org/newt/
|
2024-01-06 07:37:20 +01:00
|
|
|
Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
|
2024-01-06 07:37:20 +01:00
|
|
|
Patch0: newt-0.52.17-configure-pythonvers.patch
|
2024-01-06 07:37:20 +01:00
|
|
|
Patch1: %{name}-0.51.6-if1close.patch
|
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libpopt-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
BuildRequires: libpython310-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
BuildRequires: libslang-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 07:37:20 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
#BuildRequires: libtcl-devel >= 8.6.1
|
2024-01-06 07:37:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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 package contains a /usr/bin/dialog replacement called whiptail. Newt is based on the slang library.
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%package -n lib%{name}
|
2024-01-06 07:37:20 +01:00
|
|
|
Summary: Newt windowing toolkit development files library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%description -n lib%{name}
|
2024-01-06 07:37:20 +01:00
|
|
|
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 package contains the shared library needed by programs built with newt. Newt is based on the slang library.
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%package -n lib%{name}-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
Summary: Newt windowing toolkit development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%description -n lib%{name}-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%package -n python-%{name}-py3
|
2024-01-06 07:37:20 +01:00
|
|
|
Summary: Python bindings for GNU parted for newt windowing toolkit
|
|
|
|
Group: Development/Libraries/Python
|
2024-01-06 07:37:20 +01:00
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
2024-01-06 07:37:20 +01:00
|
|
|
Requires: python3
|
|
|
|
Provides: python-newt
|
2024-01-06 07:37:20 +01:00
|
|
|
Obsoletes: python-newt < 0.52.22
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%description -n python-%{name}-py3
|
2024-01-06 07:37:20 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%package -n python-%{name}-py310
|
|
|
|
Summary: Python bindings for GNU parted for newt windowing toolkit
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: lib%{name} = %{version}-%{release}
|
|
|
|
Requires: python310
|
|
|
|
|
|
|
|
%description -n python-%{name}-py310
|
|
|
|
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.
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%debug_package
|
2024-01-06 07:37:20 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 07:37:20 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 07:37:20 +01:00
|
|
|
%patch1 -p1 -b .if1close
|
|
|
|
|
|
|
|
%build
|
2024-01-06 07:37:20 +01:00
|
|
|
%configure \
|
|
|
|
CFLAGS="%{optflags} -I%{_includedir}/slang"
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%make \
|
2024-01-06 07:37:20 +01:00
|
|
|
%if "%{_host}" != "%{_build}"
|
|
|
|
LIBS="-lslang -ldl -lm"
|
|
|
|
%endif
|
2024-01-06 07:37:20 +01:00
|
|
|
#LIBTCL="-ltcl8.5" \
|
2024-01-06 07:37:20 +01:00
|
|
|
|
|
|
|
chmod 0644 peanuts.py popcorn.py
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
make install instroot=%{buildroot}
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/python/site-packages/*.so
|
|
|
|
rm -f %{buildroot}%{_libdir}/python/site-packages/*.py
|
2024-01-06 07:37:20 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/python2.*/site-packages
|
|
|
|
rm -rf %{buildroot}%{_libdir}/python3.6/site-packages
|
2024-01-06 07:37:20 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/python3.9/site-packages
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
#%ifarch x86_64 aarch64
|
|
|
|
#install -d -m0755 %{buildroot}%{_prefix}/lib
|
|
|
|
#mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
|
|
|
|
#%endif
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/usr/include/python/Python.h/site-packages/snack.py
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
2024-01-06 07:37:20 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/whiptail
|
|
|
|
%{_mandir}/man1/whiptail.1*
|
2024-01-06 07:37:20 +01:00
|
|
|
%doc COPYING
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%files -n lib%{name} -f %{name}.lang
|
2024-01-06 07:37:20 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:37:20 +01:00
|
|
|
%{_libdir}/libnewt.so.*
|
2024-01-06 07:37:20 +01:00
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%files -n lib%{name}-devel
|
2024-01-06 07:37:20 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/%{name}.h
|
2024-01-06 07:37:20 +01:00
|
|
|
%{_libdir}/libnewt.a
|
|
|
|
%{_libdir}/libnewt.so
|
2024-01-06 07:37:20 +01:00
|
|
|
%{_libdir}/pkgconfig/libnewt.pc
|
2024-01-06 07:37:20 +01:00
|
|
|
#%if "%{_host}" == "%{_build}"
|
|
|
|
#%{_libdir}/whiptcl.so
|
|
|
|
#%endif
|
2024-01-06 07:37:20 +01:00
|
|
|
%doc CHANGES
|
2024-01-06 07:37:20 +01:00
|
|
|
%doc tutorial.sgml peanuts.py popcorn.py
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
%files -n python-newt-py3
|
2024-01-06 07:37:20 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 07:37:20 +01:00
|
|
|
%{python3_sitearch}/*.so
|
|
|
|
%{python3_sitearch}/*.py
|
|
|
|
|
|
|
|
%files -n python-newt-py310
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python310_sitearch}/*.so
|
|
|
|
%{python310_sitearch}/*.py
|
2024-01-06 07:37:20 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 07:37:20 +01:00
|
|
|
* Thu Nov 24 2022 Automatic Build System <autodist@mambasoft.it> 0.52.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.21-1mamba
|
|
|
|
- update to 0.52.21
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
* Thu Jul 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.17-2mamba
|
|
|
|
- rebuilt to fix link with correct soname
|
|
|
|
|
|
|
|
* Sun Jul 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.17-1mamba
|
|
|
|
- update to 0.52.17
|
|
|
|
|
|
|
|
* Sun Aug 11 2013 Automatic Build System <autodist@mambasoft.it> 0.52.16-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
* Thu Mar 28 2013 Automatic Build System <autodist@mambasoft.it> 0.52.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Nov 11 2011 Automatic Build System <autodist@mambasoft.it> 0.52.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 01 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.12-2mamba
|
|
|
|
- move whiptcl.so to devel package
|
|
|
|
|
|
|
|
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 0.52.12-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu May 27 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.11-2mamba
|
|
|
|
- rebuilt against libtcl 8.5
|
|
|
|
|
|
|
|
* Fri Jan 15 2010 Automatic Build System <autodist@mambasoft.it> 0.52.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Jul 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.52.10-1mamba
|
|
|
|
- update to 0.52.10
|
|
|
|
|
|
|
|
* Fri Jul 25 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.51.6-3mamba
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Mon Feb 27 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.51.6-2qilnx
|
|
|
|
- added missing build requirement
|
|
|
|
- fixed subpackage python-newt group
|
|
|
|
|
|
|
|
* Thu Jun 30 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.51.6-1qilnx
|
|
|
|
- update to version 0.51.6 by autospec
|
|
|
|
- new package python-newt
|
|
|
|
|
2024-01-06 07:37:20 +01:00
|
|
|
* Sun Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.20.1-2qilnx
|
2024-01-06 07:37:20 +01:00
|
|
|
- fixed inclusion mask of /usr/lib/libnewt.so.*
|
|
|
|
|
|
|
|
* Thu Apr 24 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 1.20.1-1qilnx
|
|
|
|
- Creation of newt package
|