diff --git a/newt.spec b/newt.spec index 1063c64..3387256 100644 --- a/newt.spec +++ b/newt.spec @@ -1,9 +1,3 @@ -%if 0%{?fedora} > 12 -%global with_python3 1 -%else -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif - Summary: A library for text mode user interfaces Name: newt Version: 0.52.20 @@ -12,13 +6,10 @@ License: LGPLv2 Group: System Environment/Libraries URL: https://pagure.io/newt Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz -BuildRequires: popt-devel python2-devel slang-devel +BuildRequires: popt-devel python2-devel python3-devel slang-devel BuildRequires: docbook-utils # Prefer lynx over other packages providing text-www-browser BuildRequires: lynx -%if 0%{?with_python3} -BuildRequires: python3-devel -%endif Provides: snack = %{version}-%{release} %package devel @@ -69,7 +60,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The python2-newt package contains the Python 2 bindings for the newt library providing a python API for creating text mode interfaces. -%if 0%{?with_python3} %package python3 Summary: Python 3 bindings for newt Group: Development/Libraries @@ -78,7 +68,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description python3 The newt-python3 package contains the Python 3 bindings for the newt library providing a python API for creating text mode interfaces. -%endif %prep %setup -q @@ -120,13 +109,11 @@ make DESTDIR=$RPM_BUILD_ROOT install %{python_sitearch}/*.so %{python_sitearch}/*.py* -%if 0%{?with_python3} %files python3 %doc peanuts.py popcorn.py %{python3_sitearch}/*.so %{python3_sitearch}/*.py* %{python3_sitearch}/__pycache__/*.py* -%endif %changelog * Thu Feb 08 2018 Fedora Release Engineering - 0.52.20-7