|
@@ -5,9 +5,13 @@ Summary: A development library for text mode user interfaces.
|
|
|
Summary(ja): テキストモードインターフェースのための開発ライブラリ
|
|
|
Name: newt
|
|
|
Version: 0.52.21
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: daisuke
|
|
|
+
|
|
|
License: LGPLv2
|
|
|
-Group: System Environment/Libraries
|
|
|
URL: https://pagure.io/newt
|
|
|
Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
|
|
|
|
|
@@ -18,19 +22,16 @@ Patch1: newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
|
|
|
Patch10: newt-python_memory_allocation.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: python3-devel, popt-devel, slang-devel
|
|
|
+BuildRequires: popt-devel, slang-devel
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
+BuildRequires: python3-devel
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
%if %{with python2}
|
|
|
BuildRequires: python-devel
|
|
|
-BuildRequires: python-rpm-macros
|
|
|
+BuildRequires: python2-rpm-macros
|
|
|
%endif
|
|
|
Provides: snack = %{version}-%{release}
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: daisuke
|
|
|
-
|
|
|
-
|
|
|
%description
|
|
|
Newt is a programming library for color text mode, widget based user
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
@@ -44,8 +45,8 @@ slang library.
|
|
|
%package devel
|
|
|
Summary: Newt windowing toolkit development files.
|
|
|
Summary(ja): Newt ウィンドウツールキット開発ファイル集
|
|
|
+Group: programming
|
|
|
Requires: slang-devel %{name} = %{version}
|
|
|
-Group: Development/Libraries
|
|
|
|
|
|
|
|
|
%description devel
|
|
@@ -58,13 +59,31 @@ Install newt-devel if you want to develop applications which will use
|
|
|
newt.
|
|
|
|
|
|
|
|
|
+%if %{with python2}
|
|
|
+%package -n python-newt
|
|
|
+Summary: Python 2 bindings for newt
|
|
|
+Group: programming
|
|
|
+%{?python_provide:%python_provide python-newt}
|
|
|
+# Remove before F30
|
|
|
+Provides: %{name}-python = %{version}-%{release}
|
|
|
+Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
|
+Provides: snack = %{version}-%{release}
|
|
|
+Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n python-newt
|
|
|
+The python-newt package contains the Python 2 bindings for the newt library
|
|
|
+providing a python API for creating text mode interfaces.
|
|
|
+%endif
|
|
|
+
|
|
|
+
|
|
|
%package -n python3-newt
|
|
|
+Summary: Python 3 bindings for newt
|
|
|
+Group: programming
|
|
|
%{?python_provide:%python_provide python3-newt}
|
|
|
# Remove before F30
|
|
|
Provides: %{name}-python3 = %{version}-%{release}
|
|
|
Provides: %{name}-python3%{?_isa} = %{version}-%{release}
|
|
|
Provides: snack = %{version}-%{release}
|
|
|
-Summary: Python 3 bindings for newt
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
%description -n python3-newt
|
|
@@ -75,7 +94,7 @@ providing a python API for creating text mode interfaces.
|
|
|
## to build compat32 for x86_64 architecture support
|
|
|
%package -n compat32-%{name}
|
|
|
Summary: A development library for text mode user interfaces.
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
%description -n compat32-%{name}
|
|
|
Newt is a programming library for color text mode, widget based user
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
@@ -85,9 +104,10 @@ shared library needed by programs built with newt, as well as a
|
|
|
/usr/bin/dialog replacement called whiptail. Newt is based on the
|
|
|
slang library.
|
|
|
|
|
|
+
|
|
|
%package -n compat32-%{name}-devel
|
|
|
Summary: Newt windowing toolkit development files.
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: compat32-%{name} = %{version}
|
|
|
%description -n compat32-%{name}-devel
|
|
|
The newt-devel package contains the header files and libraries
|
|
@@ -104,6 +124,7 @@ newt.
|
|
|
%patch1 -p1 -b .fix-wstrlen-for-non-utf8-strings
|
|
|
%patch10 -p1 -b .python_memory_allocation
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
SLANG_CFLAGS=$(pkg-config --cflags slang)
|
|
|
export CFLAGS="%{optflags} $SLANG_CFLAGS"
|
|
@@ -126,8 +147,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
+%post -p /sbin/ldconfig
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%if %{build_compat32}
|
|
@@ -135,17 +156,17 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
%files -f %{name}.lang
|
|
|
%defattr (-,root,root)
|
|
|
%license COPYING
|
|
|
%doc AUTHORS CHANGES README
|
|
|
%{_libdir}/libnewt.so.*
|
|
|
%{_bindir}/whiptail
|
|
|
-%{python_sitearch}/*.py*
|
|
|
-%{python_sitearch}/*.so
|
|
|
%{_mandir}/man1/whiptail.1*
|
|
|
|
|
|
%files devel
|
|
@@ -156,6 +177,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/libnewt.so
|
|
|
%{_libdir}/pkgconfig/libnewt.pc
|
|
|
|
|
|
+%if %{with python2}
|
|
|
+%files -n python-newt
|
|
|
+%{python2_sitearch}/*.py*
|
|
|
+%{python2_sitearch}/*.so
|
|
|
+%endif
|
|
|
+
|
|
|
%files -n python3-newt
|
|
|
%doc peanuts.py popcorn.py
|
|
|
%{python3_sitearch}/*.so
|
|
@@ -174,6 +201,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Aug 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.52.21-2
|
|
|
+- rebuilt with python-3.8.
|
|
|
+- moved python2 bindings to "python-newt".
|
|
|
+
|
|
|
* Sun Sep 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.52.21-1
|
|
|
- updated to 0.52.21.
|
|
|
- added python3 support.
|