From 2b77be6013c50c7cdd344b8aa11d6c767f7b9a69 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Aug 30 2019 09:40:42 +0000 Subject: Subpackage python2-venusian has been removed --- diff --git a/python-venusian.spec b/python-venusian.spec index daf38b6..792e6e2 100644 --- a/python-venusian.spec +++ b/python-venusian.spec @@ -1,13 +1,8 @@ -%if 0%{?fedora} || 0%{?rhel} >= 8 -%global with_python3 1 -%endif - %global modname venusian - Name: python-%{modname} Version: 1.2.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A library for deferring decorator actions License: BSD @@ -15,17 +10,9 @@ URL: https://pypi.python.org/pypi/venusian Source0: https://pypi.python.org/packages/source/v/venusian/%{modname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-setuptools -BuildRequires: python2-devel -BuildRequires: python2-pytest - - -%if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools -%endif - %global _description\ Venusian is a library which allows framework authors to defer decorator\ @@ -36,22 +23,15 @@ decorator until a separate "scan" phase.\ %description %_description -%package -n python2-venusian -Summary: %summary -%{?python_provide:%python_provide python2-venusian} - -%description -n python2-venusian %_description - -%if 0%{?with_python3} %package -n python3-venusian Summary: A library for deferring decorator actions +%{?python_provide:%python_provide python3-venusian} %description -n python3-venusian Venusian is a library which allows framework authors to defer decorator actions. Instead of taking actions when a function (or class) decorator is executed at import time, you can defer the action usually taken by the decorator until a separate "scan" phase. -%endif %prep %setup -q -n %{modname}-%{version} @@ -59,56 +39,31 @@ decorator until a separate "scan" phase. # Remove bundled egg info if it exists rm -rf %{modname}.egg-info -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif - %build -%{__python2} setup.py build +%py3_build -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif %install -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root %{buildroot} -popd -%endif +%py3_install -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} %check -%if 0%{?with_python3} -pushd %{py3dir} py.test-3 -popd -%endif - -py.test-2 - -%files -n python2-venusian -%license LICENSE.txt -%doc README.rst -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}*.egg-info -%if 0%{?with_python3} %files -n python3-venusian %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}*.egg-info -%endif %changelog +* Fri Aug 30 2019 Miro Hrončok - 1.2.0-4 +- Subpackage python2-venusian has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Aug 17 2019 Miro Hrončok - 1.2.0-3 - Rebuilt for Python 3.8