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
84e13a1
Version:        1.0.9
108c91d
Release:        10%{?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
7775179
BuildRequires:  python-setuptools
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
f8eacd0
# Kill an artificial version constraint
f8eacd0
%{__sed} -i "/'repoze.who.*$/d" setup.py
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
108c91d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-10
108c91d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
108c91d
f8eacd0
* Mon Mar 16 2015 Ralph Bean <rbean@redhat.com> - 1.0.9-9
f8eacd0
- Kill an artificial version constraint.
f8eacd0
d29c9e8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-8
d29c9e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d29c9e8
7775179
* Fri Dec 06 2013 Pierre-Yves Chibon <pingou@pingoured>fr - 1.0.9-7
7775179
- Change BR from python-setuptools-devel to python-setuptools
7775179
  See https://fedoraproject.org/wiki/Changes/Remove_Python-setuptools-devel
7775179
8b1ec46
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-6
8b1ec46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8b1ec46
1911fda
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-5
1911fda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1911fda
d551d23
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-4
d551d23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d551d23
4479613
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3
4479613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4479613
bbc3797
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-2
bbc3797
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bbc3797
84e13a1
* Mon Jul 26 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.9-1
84e13a1
- Update to 1.0.9
84e13a1
801f320
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.8-6
801f320
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
801f320
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