File python-repoze-what-pylons.spec of Package python-repoze-what-pylons

%define real_name repoze.what-pylons
%define mod_name repoze-what-pylons
Name:           python-%{mod_name}
Group:          Development/Libraries/Python
Version:        1.0
Release:        0
License:        BSD-derived (
Summary:        The repoze.what v1 plugin for Pylons/TG2 integration
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Requires:       python-repoze-what >= 1.0.4
Requires:       python-Pylons >= 0.9.7
Requires:       python-decorator >= 3.0

%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
%{!?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)")}

This is an extras plugin for repoze.what which provides optional and handy utilities for Pylons applications using this authorization framework.

Some of the features of the plugin include:

    * The utilities are ready to use: There's nothing additional to be configured before using.
    * 100% documented. Each component is documented along with code samples.
    * The test suite has a coverage of 100% and it will never decrease -- if it ever does, report it as a bug!
    * TurboGears 2 is officially supported as well.

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

python build

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


%doc docs PKG-INFO README.txt VERSION.txt


* Sun Nov 23 2009 - Ciaran Farrell <> - 1.0
- Initial build for tg21