%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: Python web testing framework Name: webunit Version: 0.4 Release: 6%{?dist} URL: http://webunit.sourceforge.net BuildArch: noarch Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz License: BSD # This project does not include documentation of its license within its # source code. The following discussion took place on SourceForce in # December of 2009: # # From Fabian Affolter: Can you please add a LICENSE file to your source # and add a license statement to the header of the source code? ... # # From Steve Purcell: Thanks for getting in touch. This project is not # actively maintained... In the meantime, you can take this response as # my statement that the code in httpsession.py is made available by the # copyright holder (me) under the terms of the BSD licence. Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel %description A framework for performing client-side tests of web applications, based on PyUnit. %prep %setup -q %build %install rm -rf %{buildroot} install -D -p --mode=755 lib/httpsession.py %{buildroot}%{python_sitelib}/httpsession.py %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc doc/CHANGES doc/TODO examples README %{python_sitelib}/*.py* %changelog * Sun Mar 21 2010 W. Michael Petullo - 0.4-6 - Add comments about license. * Fri Mar 05 2010 W. Michael Petullo - 0.4-5 - Fix macro in changelog. - Chmod httpsession.py 755. * Sun Feb 14 2010 W. Michael Petullo - 0.4-4 - Remove python_sitearch. - Preserve timestaps when using install. * Fri Sep 18 2009 W. Michael Petullo - 0.4-3 - Don't mix '$RPM_BUILD_ROOT' and '%%{buildroot}' - Add README to package. * Fri Jul 17 2009 W. Michael Petullo - 0.4-2 - Make noarch - Format description - Fix license (LGPL to LGPLv2) * Wed Aug 29 2007 W. Michael Petullo - 0.4-1 - Initial Fedora package