Drop Python 2.
This commit is contained in:
parent
a796021780
commit
fa8b1042a4
@ -3,16 +3,13 @@
|
||||
|
||||
Name: python-scour
|
||||
Version: 0.37
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: %{sum}
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/scour-project/scour
|
||||
Source0: %{url}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
@ -22,15 +19,6 @@ BuildArch: noarch
|
||||
%{sum}.
|
||||
|
||||
|
||||
%package -n python2-%{modname}
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
|
||||
|
||||
%description -n python2-%{modname}
|
||||
%{sum}.
|
||||
|
||||
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
@ -48,26 +36,17 @@ find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';'
|
||||
find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';'
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
|
||||
#%%check
|
||||
#%%{__python2} setup.py test
|
||||
#%%{__python3} setup.py test
|
||||
|
||||
%{!?_licensedir: %global license %doc}
|
||||
|
||||
%files -n python2-%{modname}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/%{modname}/
|
||||
%{python2_sitelib}/%{modname}-%{version}*
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
@ -77,6 +56,9 @@ find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';'
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 28 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.37-4
|
||||
- Drop Python 2.
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.37-3
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user