Blame SPECS/python-webtest.spec

78224c
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
78224c
78224c
%if 0%{?fedora}
78224c
%global with_python3 1
78224c
%endif
78224c
78224c
Name:           python-webtest
78224c
Version:        1.3.4
78224c
Release:        6%{?dist}
78224c
Summary:        Helper to test WSGI applications
78224c
78224c
Group:          Development/Languages
78224c
License:        MIT
78224c
URL:            http://pythonpaste.org/webtest/
78224c
Source0:        http://pypi.python.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz
78224c
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
78224c
78224c
BuildArch:      noarch
78224c
BuildRequires:  python-setuptools
78224c
BuildRequires:  python-nose
78224c
BuildRequires:  python-webob
78224c
BuildRequires:  python-dtopt
78224c
78224c
%if 0%{?with_python3}
78224c
BuildRequires:  python3-devel
78224c
BuildRequires:  python3-setuptools
78224c
BuildRequires:  python3-nose
78224c
BuildRequires:  python3-webob
78224c
BuildRequires:  python3-dtopt
78224c
Requires:       python3-webob
78224c
%endif
78224c
78224c
Requires:       python-webob
78224c
78224c
%description
78224c
WebTest wraps any WSGI application and makes it easy to send test
78224c
requests to that application, without starting up an HTTP server.
78224c
78224c
This provides convenient full-stack testing of applications written
78224c
with any WSGI-compatible framework.
78224c
78224c
%if 0%{?with_python3}
78224c
%package -n python3-webtest
78224c
Summary:        Helper to test WSGI applications
78224c
Group:          Development/Languages
78224c
78224c
Requires:       python3-webtest
78224c
78224c
%description -n python3-webtest
78224c
WebTest wraps any WSGI application and makes it easy to send test
78224c
requests to that application, without starting up an HTTP server.
78224c
78224c
This provides convenient full-stack testing of applications written
78224c
with any WSGI-compatible framework.
78224c
%endif
78224c
78224c
78224c
%prep
78224c
%setup -q -n WebTest-%{version}
78224c
78224c
# Remove bundled egg info if it exists.
78224c
rm -rf *.egg-info
78224c
78224c
%if 0%{?with_python3}
78224c
rm -rf %{py3dir}
78224c
cp -a . %{py3dir}
78224c
%endif
78224c
78224c
%build
78224c
%{__python} setup.py build
78224c
78224c
%if 0%{?with_python3}
78224c
pushd %{py3dir}
78224c
%{__python3} setup.py build
78224c
popd
78224c
%endif
78224c
78224c
%install
78224c
%{__rm} -rf %{buildroot}
78224c
%if 0%{?with_python3}
78224c
pushd %{py3dir}
78224c
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
78224c
popd
78224c
%endif
78224c
78224c
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
78224c
78224c
%clean
78224c
%{__rm} -rf %{buildroot}
78224c
78224c
%check
78224c
PYTHONPATH=$(pwd) %{__python} setup.py test
78224c
78224c
%if 0%{?with_python3}
78224c
pushd %{py3dir}
78224c
PYTHONPATH=$(pwd) %{__python3} setup.py test
78224c
popd
78224c
%endif
78224c
78224c
%files
78224c
%doc docs/*
78224c
%{python_sitelib}/webtest
78224c
%{python_sitelib}/*.egg-info
78224c
78224c
%if 0%{?with_python3}
78224c
%files -n python3-webtest
78224c
%doc docs/*
78224c
%{python3_sitelib}/webtest
78224c
%{python3_sitelib}/*.egg-info
78224c
%endif
78224c
78224c
%changelog
78224c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.4-6
78224c
- Mass rebuild 2013-12-27
78224c
78224c
* Fri Apr  5 2013 Luke Macken <lmacken@redhat.com> - 1.3.4-5
78224c
- Made the python3 subpackage require python-webob instead of python-webob1.2
78224c
78224c
* Tue Feb 19 2013 Ralph Bean <rbean@redhat.com> - 1.3.4-4
78224c
- Added python3 subpackage
78224c
78224c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
78224c
78224c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
78224c
78224c
* Sun Jun 24 2012 Ricky Zhou <ricky@fedoraproject.org> - 1.3.4-1
78224c
- Update to 1.3.4.
78224c
78224c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
78224c
78224c
* Wed Dec 14 2011 Luke Macken <lmacken@redhat.com> - 1.3.3-1
78224c
- Update to 1.3.3
78224c
78224c
* Fri Jul 15 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.3-1
78224c
- Update to 1.2.3
78224c
78224c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
78224c
78224c
* Tue Oct 05 2010 Luke Macken <lmacken@redhat.com> - 1.2.2-1
78224c
- Update to 1.2.2
78224c
- Add python-dtopt to the BuildRequires
78224c
- Include the docs again
78224c
78224c
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot[com> - 1.2.1-3
78224c
- Disable tests and docs for now. They are not included in this tarball
78224c
78224c
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
78224c
78224c
* Wed Jun 09 2010 Luke Macken <lmacken@redhat.com> - 1.2.1-1
78224c
- Update to 1.2.1
78224c
78224c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
78224c
78224c
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 1.2-1
78224c
- Update to 1.2
78224c
78224c
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 1.1-3
78224c
- Change define to global.
78224c
- Remove old >= 8 conditional.
78224c
- Remove unnecessary BuildRequires on python-devel.
78224c
78224c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
78224c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
78224c
78224c
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.1-1
78224c
- Upstream released new version.
78224c
78224c
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-4
78224c
- Rebuild for Python 2.6
78224c
78224c
* Thu Jul 17 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-3
78224c
- Update Requires for python-webob rename.
78224c
- Add BuildRequires on python-webob for tests.
78224c
78224c
* Sat Jul 07 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-2
78224c
- Add %%check section.
78224c
78224c
* Sat Jun 14 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-1
78224c
- Initial RPM Package.