diff --git a/.gitignore b/.gitignore index e69de29..b1171e4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +/venusian-0.6.tar.gz +/venusian-1.0a2.tar.gz +/venusian-1.0a3.tar.gz +/venusian-1.0a7.tar.gz +/venusian-1.2.0.tar.gz diff --git a/python-venusian.spec b/python-venusian.spec new file mode 100644 index 0000000..f8b340b --- /dev/null +++ b/python-venusian.spec @@ -0,0 +1,133 @@ +%if 0%{?fedora} || 0%{?rhel} >= 8 +%global with_python3 1 +%endif + +%global modname venusian + + +Name: python-%{modname} +Version: 1.2.0 +Release: 1%{?dist} +Summary: A library for deferring decorator actions + +License: BSD +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\ +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.\ + + +%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 + +%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} + +# 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 + +%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 + +%{__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 +* Tue Mar 26 2019 Randy Barlow - 1.2.0-1 +- Update to 1.2.0. +- https://github.com/Pylons/venusian/blob/1.2.0/CHANGES.rst + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0-0.24.a7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jul 25 2018 Pierre-Yves Chibon - 1.0-0.23.a7 +- Use the py2 version of the macros + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0-0.22.a7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 17 2018 Miro HronĨok - 1.0-0.21.a7 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0-0.20.a7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 31 2018 Iryna Shcherbina - 1.0-0.19.a7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) diff --git a/sources b/sources index e69de29..a22b1d8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (venusian-1.2.0.tar.gz) = b305850e3a32a2591413386d01af63927d9ae2be1db579d3c12396d4e367ae61cd4b1c8697459646e84ca9affded00f62553156193e9eecfdc39a3c8a5ec0cca