diff --git a/.cvsignore b/.cvsignore index e69de29..8c06b40 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +WebTest-1.0.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9585d98 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-webtest-1_0-3_fc9:HEAD:python-webtest-1.0-3.fc9.src.rpm:1223950274 diff --git a/python-webtest.spec b/python-webtest.spec new file mode 100644 index 0000000..e5c4985 --- /dev/null +++ b/python-webtest.spec @@ -0,0 +1,69 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-webtest +Version: 1.0 +Release: 3%{?dist} +Summary: Helper to test WSGI applications + +Group: Development/Languages +License: MIT +URL: http://pythonpaste.org/webtest/ +Source0: http://pypi.python.org/packages/source/W/WebTest/WebTest-1.0.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildArch: noarch +BuildRequires: python-devel +%if 0%{?fedora} >= 8 +BuildRequires: python-setuptools-devel +%else +BuildRequires: python-setuptools +%endif +BuildRequires: python-nose +BuildRequires: python-webob +Requires: python-webob + +%description +WebTest wraps any WSGI application and makes it easy to send test +requests to that application, without starting up an HTTP server. + +This provides convenient full-stack testing of applications written +with any WSGI-compatible framework. + +%prep +%setup -q -n WebTest-%{version} + + +%build +%{__python} setup.py build + + +%install +%{__rm} -rf %{buildroot} +%{__python} setup.py install --skip-build --root %{buildroot} + + +%clean +%{__rm} -rf %{buildroot} + + +%check +./test + + +%files +%defattr(-,root,root,-) +%doc docs/* +%{python_sitelib}/webtest +%{python_sitelib}/*.egg-info + + +%changelog +* Thu Jul 17 2008 Ricky Zhou - 1.0-3 +- Update Requires for python-webob rename. +- Add BuildRequires on python-webob for tests. + +* Sat Jul 07 2008 Ricky Zhou - 1.0-2 +- Add %%check section. + +* Sat Jun 14 2008 Ricky Zhou - 1.0-1 +- Initial RPM Package. diff --git a/sources b/sources index e69de29..b434dfe 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bdc4f8597c1d9500636f09bf52ed9d33 WebTest-1.0.tar.gz