|
@@ -1,16 +1,16 @@
|
|
|
|
+%bcond_without python2
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
Summary: A development library for text mode user interfaces.
|
|
Summary: A development library for text mode user interfaces.
|
|
Summary(ja): テキストモードインターフェースのための開発ライブラリ
|
|
Summary(ja): テキストモードインターフェースのための開発ライブラリ
|
|
Name: newt
|
|
Name: newt
|
|
-Version: 0.52.17
|
|
+Version: 0.52.21
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-License: LGPL
|
|
+License: LGPLv2
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-URL: https://fedorahosted.org/newt/
|
|
+URL: https://pagure.io/newt
|
|
|
|
+Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz
|
|
|
|
|
|
-Source: https://fedorahosted.org/releases/n/e/newt/newt-%{version}.tar.gz
|
|
|
|
# patches from mdv
|
|
# patches from mdv
|
|
Patch1: newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
|
|
Patch1: newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
|
|
|
|
|
|
@@ -18,7 +18,12 @@ Patch1: newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
|
|
Patch10: newt-python_memory_allocation.patch
|
|
Patch10: newt-python_memory_allocation.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: python-devel, popt-devel, slang-devel
|
|
+BuildRequires: python3-devel, popt-devel, slang-devel
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
+%if %{with python2}
|
|
|
|
+BuildRequires: python-devel
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+%endif
|
|
Provides: snack = %{version}-%{release}
|
|
Provides: snack = %{version}-%{release}
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -53,6 +58,20 @@ Install newt-devel if you want to develop applications which will use
|
|
newt.
|
|
newt.
|
|
|
|
|
|
|
|
|
|
|
|
+%package -n python3-newt
|
|
|
|
+%{?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
|
|
|
|
+The python3-newt package contains the Python 3 bindings for the newt library
|
|
|
|
+providing a python API for creating text mode interfaces.
|
|
|
|
+
|
|
|
|
+
|
|
## to build compat32 for x86_64 architecture support
|
|
## to build compat32 for x86_64 architecture support
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: A development library for text mode user interfaces.
|
|
Summary: A development library for text mode user interfaces.
|
|
@@ -86,21 +105,24 @@ newt.
|
|
%patch10 -p1 -b .python_memory_allocation
|
|
%patch10 -p1 -b .python_memory_allocation
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+SLANG_CFLAGS=$(pkg-config --cflags slang)
|
|
|
|
+export CFLAGS="%{optflags} $SLANG_CFLAGS"
|
|
|
|
+
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
export CC='gcc -m32'
|
|
export CC='gcc -m32'
|
|
%configure --without-tcl
|
|
%configure --without-tcl
|
|
-make CC='gcc -m32'
|
|
+make %{?_smp_mflags} CC='gcc -m32'
|
|
#make CC='gcc -m32' shared
|
|
#make CC='gcc -m32' shared
|
|
%else
|
|
%else
|
|
%configure --without-tcl
|
|
%configure --without-tcl
|
|
-make
|
|
+make %{?_smp_mflags} all
|
|
-make shared
|
|
+#make shared
|
|
%endif
|
|
%endif
|
|
chmod 0644 peanuts.py popcorn.py
|
|
chmod 0644 peanuts.py popcorn.py
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-make instroot=$RPM_BUILD_ROOT install
|
|
+make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
@@ -118,7 +140,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr (-,root,root)
|
|
%defattr (-,root,root)
|
|
-%doc CHANGES COPYING
|
|
+%license COPYING
|
|
|
|
+%doc AUTHORS CHANGES README
|
|
%{_libdir}/libnewt.so.*
|
|
%{_libdir}/libnewt.so.*
|
|
%{_bindir}/whiptail
|
|
%{_bindir}/whiptail
|
|
%{python_sitearch}/*.py*
|
|
%{python_sitearch}/*.py*
|
|
@@ -133,6 +156,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/libnewt.so
|
|
%{_libdir}/libnewt.so
|
|
%{_libdir}/pkgconfig/libnewt.pc
|
|
%{_libdir}/pkgconfig/libnewt.pc
|
|
|
|
|
|
|
|
+%files -n python3-newt
|
|
|
|
+%doc peanuts.py popcorn.py
|
|
|
|
+%{python3_sitearch}/*.so
|
|
|
|
+%{python3_sitearch}/*.py*
|
|
|
|
+
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
%files -n compat32-%{name}
|
|
%files -n compat32-%{name}
|
|
%defattr (-,root,root)
|
|
%defattr (-,root,root)
|
|
@@ -146,6 +174,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Sep 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.52.21-1
|
|
|
|
+- updated to 0.52.21.
|
|
|
|
+- added python3 support.
|
|
|
|
+
|
|
* Tue Jul 15 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.52.17-1
|
|
* Tue Jul 15 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.52.17-1
|
|
- update to 0.52.17
|
|
- update to 0.52.17
|
|
|
|
|