3124d61
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3124d61
3124d61
Name:           python-repoze-what
3124d61
Version:        1.0.8
paragn b59268a
Release:        6%{?dist}
3124d61
Summary:        Authorization for WSGI applications
3124d61
3124d61
Group:          Development/Languages
3124d61
License:        BSD
3124d61
URL:            http://pypi.python.org/pypi/repoze.what
3124d61
Source0:        http://pypi.python.org/packages/source/r/repoze.what/repoze.what-%{version}.tar.gz
3124d61
Patch0:         %{name}-setup.patch
d942018
Patch1:         %{name}-release.patch
3124d61
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3124d61
BuildArch:      noarch
3124d61
3124d61
BuildRequires:  python-setuptools-devel
3124d61
3124d61
# For building documentation
3124d61
BuildRequires:  python-sphinx
3124d61
3124d61
# For the test suite
971a571
BuildRequires:  python-nose python-zope-interface python-repoze-who
971a571
BuildRequires:  python-repoze-who-testutil
971a571
BuildRequires:  python-coverage
3124d61
3124d61
Requires:       python-repoze-who
2fd11ef
Requires:       python-repoze-who-testutil
3124d61
Requires:       python-paste
3124d61
3124d61
%description
3124d61
`repoze.what` is an `authorization framework` for WSGI applications,
3124d61
based on `repoze.who` (which deals with `authentication`).
3124d61
3124d61
On the one hand, it enables an authorization system based on the groups to
3124d61
which the `authenticated or anonymous` user belongs and the permissions granted
3124d61
to such groups by loading these groups and permissions into the request on the
3124d61
way in to the downstream WSGI application.
3124d61
3124d61
And on the other hand, it enables you to manage your groups and permissions
3124d61
from the application itself or another program, under a backend-independent
3124d61
API. For example, it would be easy for you to switch from one back-end to
3124d61
another, and even use this framework to migrate the data.
3124d61
3124d61
It's highly extensible, so it's very unlikely that it will get in your way.
3124d61
Among other things, you can extend it to check for many other conditions (such
3124d61
as checking that the user comes from a given country, based on her IP address,
3124d61
for example).
3124d61
3124d61
%package docs
3124d61
Summary: Documentation for repoze.what
971a571
Requires: %{name} = %{version}
971a571
Group: Documentation
3124d61
3124d61
%description docs
3124d61
This package contains documentation for the repoze.who module.
3124d61
3124d61
%prep
3124d61
%setup -q -n repoze.what-%{version}
3124d61
%patch0 -b .setup
d942018
%patch1 -b .release
d942018
%{__sed} -i -e 's|$VERSION|%{version}|' repoze/what/release.py
3124d61
3124d61
3124d61
%build
3124d61
%{__python} setup.py build
3124d61
%{__make} -C docs html
3124d61
3124d61
3124d61
%install
3124d61
rm -rf $RPM_BUILD_ROOT
3124d61
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
3124d61
d942018
%check
d942018
PYTHONPATH=`pwd` nosetests
3124d61
3124d61
%clean
3124d61
rm -rf $RPM_BUILD_ROOT
3124d61
3124d61
%files
3124d61
%defattr(-,root,root,-)
3124d61
%doc README.txt
3124d61
%{python_sitelib}/
3124d61
3124d61
%files docs
3124d61
%doc docs/
3124d61
3124d61
3124d61
%changelog
paragn b59268a
* Fri Jun 04 2010 Parag Nemade <panemade AT gmail dot com> - 1.0.8-6
paragn b59268a
- Bump the spec to match same e-v-r of fc12 build.
paragn b59268a
- Resolves:rh#599492:Greater release version for following packages in F12 than in F13
paragn b59268a
2fd11ef
* Mon Oct 26 2009 Luke Macken <lmacken@redhat.com> - 1.0.8-5
2fd11ef
- Require python-repoze-who-testutil
2fd11ef
d942018
* Mon Aug 10 2009 Luke Macken <lmacken@redhat.com> - 1.0.8-4
d942018
- Get the test suite working
d942018
74fc173
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3
74fc173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
74fc173
971a571
* Mon Jun 01 2009 Luke Macken <lmacken@redhat.com> - 1.0.8-2
971a571
- Fix the dependency in the docs subpackage
971a571
3124d61
* Thu May 21 2009 Luke Macken <lmacken@redhat.com> - 1.0.8-1
3124d61
- Update to 1.0.8
3124d61
- Create a docs subpackage for the compiled Sphinx documentation.
3124d61
3124d61
* Mon Feb 09 2009 Luke Macken <lmacken@redhat.com> - 1.0.4-1
3124d61
- Update to 1.0.4
3124d61
- Fix the URL
3124d61
3124d61
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> - 1.0-0.1.rc2.r2927
3124d61
- Update to 1.0rc2-r2927
3124d61
3124d61
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> - 1.0-0.1.rc1.r2803
3124d61
- Initial package