diff --git a/python-admesh.spec b/python-admesh.spec index a4fb7cc..c9e1265 100644 --- a/python-admesh.spec +++ b/python-admesh.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.98.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python bindings for ADMesh, STL manipulation library License: GPLv2+ @@ -14,12 +14,6 @@ Source1: %{url}/raw/v%{version}/test/utils.py BuildRequires: admesh-devel >= 0.98 -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-pytest -BuildRequires: python2-Cython -BuildRequires: python2-pytest-runner - BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools @@ -31,21 +25,13 @@ This module provides bindings for the ADMesh library. It lets you manipulate 3D models in binary or ASCII STL format and partially repair them if necessary. - -%package -n python2-%{pypi_name} -Summary: Python 2 bindings for ADMesh, STL manipulation library -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -This module provides bindings for the ADMesh library. -It lets you manipulate 3D models in binary or ASCII STL -format and partially repair them if necessary. - - %package -n python3-%{pypi_name} Summary: Python 3 bindings for ADMesh, STL manipulation library %{?python_provide:%python_provide python3-%{pypi_name}} +Obsoletes: python2-%{pypi_name} < 0.98.8-2 +Obsoletes: python-%{pypi_name} < 0.98.8-2 + %description -n python3-%{pypi_name} This module provides bindings for the ADMesh library. It lets you manipulate 3D models in binary or ASCII STL @@ -57,24 +43,15 @@ format and partially repair them if necessary. cp %{SOURCE1} test/ %build -%py2_build %py3_build %install -%py2_install %py3_install %check -PYTHONPATH=%{buildroot}%{python2_sitearch} py.test-2 -v PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-3 -v -%files -n python2-%{pypi_name} -%doc README.rst -%license COPYING -%attr(0755,root,root) %{python2_sitearch}/%{pypi_name}.so -%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info - %files -n python3-%{pypi_name} %doc README.rst %license COPYING @@ -83,6 +60,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-3 -v %changelog +* Fri Mar 02 2018 Miro Hrončok - 0.98.8-2 +- Remove legacy Python subpackage + * Wed Feb 14 2018 Miro Hrončok - 0.98.8-1 - Updated to new version 0.98.8 to fix FTBFS