diff --git a/python-collada.spec b/python-collada.spec index 0d8ba86..6eb1843 100644 --- a/python-collada.spec +++ b/python-collada.spec @@ -1,9 +1,8 @@ %global realname pycollada -%global with_python3 1 Name: python-collada Version: 0.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A python module for creating, editing and loading COLLADA License: BSD @@ -14,22 +13,13 @@ Patch0: python-collada-0.4-disable_unittest_downloads.patch BuildArch: noarch -# Python 2 -BuildRequires: python2-devel -BuildRequires: python2-setuptools -# unit test requirements -BuildRequires: python2-dateutil -BuildRequires: python2-six -BuildRequires: python2-numpy - -%if 0%{?with_python3} # Python 3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools +# unit test requirements BuildRequires: python%{python3_pkgversion}-dateutil BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-numpy -%endif %description @@ -41,23 +31,7 @@ The library allows you to load a COLLADA file and interact with it as a python object. In addition, it supports creating a collada python object from scratch, as well as in-place editing. -%package -n python2-collada -Summary: A python 2 module for creating, editing and loading COLLADA -Requires: python2-dateutil -Requires: python2-numpy -%{?python_provide: %python_provide python2-collada} - -%description -n python2-collada -pycollada is a python 3 module for creating, editing and loading COLLADA, which -is a COLLAborative Design Activity for establishing an interchange file format -for interactive 3D applications. - -The library allows you to load a COLLADA file and interact with it as a python -object. In addition, it supports creating a collada python object from scratch, -as well as in-place editing. - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-collada Summary: A python 3 module for creating, editing and loading COLLADA Requires: python%{python3_pkgversion}-dateutil @@ -72,61 +46,35 @@ for interactive 3D applications. The library allows you to load a COLLADA file and interact with it as a python object. In addition, it supports creating a collada python object from scratch, as well as in-place editing. -%endif %prep %autosetup -n %{realname}-%{version} -%if 0%{?with_python3} - rm -rf %py3dir - cp -a . %py3dir -%endif - %build -%py2_build - -%if 0%{?with_python3} -pushd %py3dir %py3_build -%endif %install -# Install python3 version last to make it default. -%py2_install - -%if 0%{?with_python3} -pushd %py3dir %py3_install -%endif - %check -%{__python2} setup.py test - -%if 0%{?with_python3} -pushd %py3dir %{__python3} setup.py test -%endif -%files -n python2-collada -%license COPYING -%doc AUTHORS.md CHANGELOG.rst README.markdown -%{python2_sitelib}/* - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-collada %license COPYING %doc AUTHORS.md CHANGELOG.rst README.markdown %{python3_sitelib}/* -%endif %changelog +* Mon May 20 2019 Miro HronĨok - 0.6-2 +- Subpackage python2-collada has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Apr 08 2019 Richard Shaw - 0.6-1 - Update to 0.6.