Drop python2 subpackage
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
6961ced6b9
commit
8abb97b2de
1 changed files with 7 additions and 30 deletions
|
@ -1,10 +1,9 @@
|
|||
%bcond_without check
|
||||
%{?python_enable_dependency_generator}
|
||||
%global modname canonicaljson
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.1.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Canonical JSON
|
||||
|
||||
License: ASL 2.0
|
||||
|
@ -26,22 +25,6 @@ Features:\
|
|||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python2-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if %{with check}
|
||||
BuildRequires: python2-nose
|
||||
BuildRequires: python2-simplejson >= 3.6.5
|
||||
BuildRequires: python2-frozendict >= 1.0
|
||||
BuildRequires: python2-six
|
||||
%endif
|
||||
|
||||
%description -n python2-%{modname} %{_description}
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
|
@ -49,9 +32,9 @@ BuildRequires: python3-devel
|
|||
BuildRequires: python3-setuptools
|
||||
%if %{with check}
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-simplejson >= 3.6.5
|
||||
BuildRequires: python3-frozendict >= 1.0
|
||||
BuildRequires: python3-six
|
||||
BuildRequires: python3dist(simplejson) >= 3.6.5
|
||||
BuildRequires: python3dist(frozendict) >= 1.0
|
||||
BuildRequires: python3dist(six)
|
||||
%endif
|
||||
|
||||
%description -n python3-%{modname} %{_description}
|
||||
|
@ -62,25 +45,16 @@ Python 3 version.
|
|||
%autosetup
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
nosetests-%{python2_version} -v
|
||||
nosetests-%{python3_version} -v
|
||||
%endif
|
||||
|
||||
%files -n python2-%{modname}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/%{modname}-*.egg-info/
|
||||
%{python2_sitelib}/%{modname}.py*
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
|
@ -89,6 +63,9 @@ nosetests-%{python3_version} -v
|
|||
%{python3_sitelib}/__pycache__/%{modname}.*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 01 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.4-2
|
||||
- Drop python2 subpackage
|
||||
|
||||
* Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.4-1
|
||||
- Update to 1.1.4
|
||||
|
||||
|
|
Loading…
Reference in a new issue