diff --git a/python-pymssql.spec b/python-pymssql.spec index 91fc2ee..38ac10a 100644 --- a/python-pymssql.spec +++ b/python-pymssql.spec @@ -1,11 +1,3 @@ -%global _with_python3 1 - -%if 0%{?rhel} -%global py2_prefix python -%else -%global py2_prefix python2 -%endif - %global srcname pymssql %global common_summary DB-API interface to Microsoft SQL Server @@ -14,7 +6,7 @@ a Python DB-API (PEP-249) interface to Microsoft SQL Server. Name: python-%{srcname} Version: 2.1.3 -Release: 6%{?dist} +Release: 7%{?dist} Summary: %{common_summary} Group: System Environment/Libraries @@ -30,31 +22,20 @@ Patch2: %{name}-2.1.3-freetds_1.00.patch BuildRequires: gcc BuildRequires: freetds-devel -BuildRequires: %{py2_prefix}-devel -BuildRequires: %{py2_prefix}-setuptools -%if 0%{?rhel} -BuildRequires: Cython -%else -BuildRequires: %{py2_prefix}-Cython -%endif -%if 0%{?_with_python3} BuildRequires: python%{python3_pkgversion}-Cython BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools -%endif %description %{common_description} -%if 0%{?_with_python3} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{common_summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %{common_description} -%endif %prep @@ -66,25 +47,26 @@ rm -r freetds/ %build export PYMSSQL_DONT_BUILD_WITH_BUNDLED_FREETDS=1 -%{?_with_python3:%py3_build} +%py3_build %install -%{?_with_python3:%py3_install} +%py3_install # No %%check (unit tests require a running SQL Server database) - -%if 0%{?_with_python3} %files -n python%{python3_pkgversion}-%{srcname} %doc ChangeLog README.rst %license LICENSE -%{python3_sitearch}/* -%endif +%{python3_sitearch}/pymssql* +%{python3_sitearch}/_mssql* %changelog +* Sun Dec 09 2018 Miro Hrončok - 2.1.3-7 +- Remove remaining bits of Python 2 legacy + * Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek - 2.1.3-6 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal