diff --git a/python-unipath.spec b/python-unipath.spec index db094d0..02da030 100644 --- a/python-unipath.spec +++ b/python-unipath.spec @@ -1,14 +1,18 @@ +%global with_python2 0 + %global oname Unipath Summary: Alternative to Python modules os, os.path and shutil Name: python-unipath Version: 1.1 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://pypi.python.org/pypi/Unipath/ Source0: https://files.pythonhosted.org/packages/source/U/%{oname}/%{oname}-%{version}.tar.gz BuildArch: noarch +%if 0%{?with_python2} BuildRequires: python2-devel BuildRequires: python2-setuptools +%endif BuildRequires: python3-devel BuildRequires: python3-setuptools %global _description\ @@ -33,10 +37,12 @@ convenience and higher-level functionality. For example:\ %description %_description +%if 0%{?with_python2} %package -n python2-unipath Summary: %summary %{?python_provide:%python_provide python2-unipath} %description -n python2-unipath %_description +%endif %package -n python3-unipath Summary: %summary @@ -46,18 +52,24 @@ Summary: %summary %setup -q -n %{oname}-%{version} %build +%if 0%{?with_python2} %{py2_build} +%endif %{py3_build} %install +%if 0%{?with_python2} %{py2_install} +%endif %{py3_install} +%if 0%{?with_python2} %files -n python2-unipath %license CHANGES %doc BUGS.txt PKG-INFO README.html README.rst %{python2_sitelib}/unipath/ %{python2_sitelib}/%{oname}-%{version}-py*.egg-info +%endif %files -n python3-unipath %license CHANGES @@ -66,6 +78,9 @@ Summary: %summary %{python3_sitelib}/%{oname}-%{version}-py*.egg-info %changelog +* Tue Sep 18 2018 Terje Rosten - 1.1-5 +- Drop Python 2 subpackage in rawhide + * Sat Jul 14 2018 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild