diff --git a/python-monotonic.spec b/python-monotonic.spec index 84ee745..da64dff 100644 --- a/python-monotonic.spec +++ b/python-monotonic.spec @@ -1,12 +1,9 @@ %global pypi_name monotonic -%if 0%{?fedora} -%global with_python3 1 -%endif Name: python-%{pypi_name} Version: 1.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: An implementation of time.monotonic() for Python 2 & < 3.3 # Missing license file from source package @@ -15,9 +12,6 @@ License: ASL 2.0 URL: https://github.com/atdt/%{pypi_name} Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch - -BuildRequires: python2-devel -BuildRequires: python2-setuptools %global _description\ @@ -33,13 +27,6 @@ it will fall back to an equivalent platform specific implementation.\ %description %_description -%package -n python2-%{pypi_name} -Summary: %summary -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} %_description - -%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: An implementation of time.monotonic() for Python 2 & < 3.3 @@ -55,7 +42,6 @@ backwards. On Python 3.3 or newer, ``monotonic`` will be an alias of ``time.monotonic`` from the standard library. On older versions, it will fall back to an equivalent platform specific implementation. -%endif %prep @@ -63,35 +49,26 @@ it will fall back to an equivalent platform specific implementation. %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif %install -%py2_install -%if 0%{?with_python3} %py3_install -%endif -%files -n python2-%{pypi_name} -%license LICENSE -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info - -%if 0%{?with_python3} %files -n python3-%{pypi_name} %license LICENSE %{python3_sitelib}/__pycache__/%{pypi_name}.* %{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%endif +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog +* Thu Sep 26 2019 Miro Hrončok - 1.5-5 +- Subpackage python2-monotonic has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Aug 19 2019 Miro Hrončok - 1.5-4 - Rebuilt for Python 3.8