diff --git a/python-dbf.spec b/python-dbf.spec index e47c5a4..25643f5 100644 --- a/python-dbf.spec +++ b/python-dbf.spec @@ -9,7 +9,7 @@ fields are supported. Name: python-%{pypi_name} Version: 0.96.005 -Release: 10%{?dist} +Release: 11%{?dist} Summary: %{sum} License: BSD @@ -21,19 +21,10 @@ BuildArch: noarch %description %{desc} -%package -n python2-%{pypi_name} -BuildRequires: python2-devel -Summary: %{sum} -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -%{desc} - %package -n python3-%{pypi_name} Summary: %{sum} BuildRequires: python3-devel -BuildRequires: python2-tools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} @@ -41,55 +32,30 @@ BuildRequires: python2-tools %prep -%setup -qc -mv %{pypi_name}-%{version} python2 -pushd python2 +%setup -qn %{pypi_name}-%{version} rm -rf *.egg-info -rm -f dfb/ver_32.py -sed -i "s|\r||g" dbf/README.md -popd - -cp -a python2 python3 -pushd python3 +rm -f dbf/ver_32.py rm -f dbf/ver_2.py -popd - -pushd python2 -rm -f dbf/ver_33.py -popd +sed -i "s|\r||g" dbf/README.md %build -pushd python2 -%py2_build -popd - -pushd python3 %py3_build -popd %install -pushd python2 -%py2_install -popd - -pushd python3 %py3_install -popd - -%files -n python2-%{pypi_name} -%doc python2/dbf/README.md -%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info -%{python2_sitelib}/%{pypi_name}/ %files -n python3-%{pypi_name} -%doc python3/dbf/README.md +%doc dbf/README.md %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}/ %changelog +* Tue Sep 18 2018 Miro HronĨok - 0.96.005-11 +- Remove Python 2 subpackage (#1627309) + * Fri Jul 13 2018 Fedora Release Engineering - 0.96.005-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild