File python-repoze-who-testutil.spec of Package python-repoze-who-testutil

#norootforbuild
#
%define real_name repoze.who-testutil
%define mod_name repoze-who-testutil
#
#
Name:           python-%{mod_name}
Group:          Development/Libraries/Python
Version:        1.0rc1
Release:        0
License:        BSD-derived (http://www.repoze.org/LICENSE.txt)
Summary:        Test utilities for repoze.who-powered applications
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Requires:       python-repoze-who >= 1.0
Requires:       python-zope-interface
Requires:       python-Paste > 1.7
Requires:       python-PasteDeploy >= 1.3.3

Url:            http://code.gustavonarea.net/repoze.who-testutil/
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

%description
repoze.who-testutil is a repoze.who plugin which modifies repoze.who's original middleware to make it easier to forge authentication, without bypassing identification (this is, running the metadata providers).
It's been created to ease testing of repoze.who-powered applications, in a way independent of the identifiers, authenticators and challengers used originally by your application, so that you won't have to update your test suite as your application grows and the authentication method changes.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc docs PKG-INFO README.txt VERSION.txt

%changelog

* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 1.0rc1
- Initial build for tg21

  
openSUSE Build Service is sponsored by