%if 0%{?fedora} %global with_python3 1 %endif %global modname backlash Name: python-backlash Version: 0.1.0 Release: 3%{?dist} Summary: Standalone WebOb port of the Werkzeug Debugger Group: Development/Libraries License: MIT URL: http://pypi.python.org/pypi/backlash Source0: http://pypi.python.org/packages/source/b/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python-webob %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools %endif %description backlash is a standalone version of the Werkzeug Debugger based on WebOb adapted to support for Python3. backlash has born as a future replacement for WebError in upcoming TurboGears2 versions. %if 0%{?with_python3} %package -n python3-backlash Summary: Standalone WebOb port of the Werkzeug Debugger with Python3 support meant to replace WebError in TurboGears2 Group: Development/Libraries Requires: python3-webob %description -n python3-backlash backlash is a standalone version of the Werkzeug Debugger based on WebOb adapted to support for Python3. backlash has born as a future replacement for WebError in upcoming TurboGears2 versions. %endif %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif %build %{__python} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} popd %endif %files %doc README.rst %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}* %if 0%{?with_python3} %files -n python3-backlash %doc README.rst %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}* %endif %changelog * Thu Feb 04 2016 Fedora Release Engineering - 0.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Sep 16 2015 Ralph Bean - 0.1.0-1 - new version * Thu Jun 18 2015 Fedora Release Engineering - 0.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri May 15 2015 Ralph Bean - 0.0.8-1 - new version * Wed Aug 20 2014 Ralph Bean - 0.0.6-1 - Latest upstream. * Sat Jun 07 2014 Fedora Release Engineering - 0.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 27 2014 Kalev Lember - 0.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Wed Jan 22 2014 Ralph Bean - 0.0.4-1 - Latest upstream - Fixed python3 requires. - Remove patch now that it has been pushed upstream. * Sun Aug 04 2013 Fedora Release Engineering - 0.0.1-0.4.a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Apr 04 2013 Luke Macken 0.0.1-0.3.a2 - Build the python3 subpackage - Fix pre-release version * Wed Apr 03 2013 Luke Macken 0.0.1a2-2 - Remove the non-free ubuntu font - Require python-webob * Wed Apr 03 2013 Luke Macken 0.0.1a2-1 - Initial package for Fedora