diff --git a/.cvsignore b/.cvsignore index e69de29..18c7acf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +repoze.what-1.0.8.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..26f57f1 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-repoze-what-1_0_8-1_fc10:HEAD:python-repoze-what-1.0.8-1.fc10.src.rpm:1243531387 diff --git a/python-repoze-what-setup.patch b/python-repoze-what-setup.patch new file mode 100644 index 0000000..a9b648a --- /dev/null +++ b/python-repoze-what-setup.patch @@ -0,0 +1,12 @@ +--- setup.py.orig 2009-02-09 12:15:10.000000000 -0500 ++++ setup.py 2009-02-09 12:15:33.000000000 -0500 +@@ -17,9 +17,6 @@ + + import os + +-from ez_setup import use_setuptools +-use_setuptools() +- + from setuptools import setup, find_packages + + here = os.path.abspath(os.path.dirname(__file__)) diff --git a/python-repoze-what.spec b/python-repoze-what.spec new file mode 100644 index 0000000..4d1a977 --- /dev/null +++ b/python-repoze-what.spec @@ -0,0 +1,97 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-repoze-what +Version: 1.0.8 +Release: 1%{?dist} +Summary: Authorization for WSGI applications + +Group: Development/Languages +License: BSD +URL: http://pypi.python.org/pypi/repoze.what +Source0: http://pypi.python.org/packages/source/r/repoze.what/repoze.what-%{version}.tar.gz +Patch0: %{name}-setup.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-setuptools-devel + +# For building documentation +BuildRequires: python-sphinx + +# For the test suite +#BuildRequires: python-nose python-zope-interface python-repoze-who +#BuildRequires: python-repoze-who-plugins-testutil + +Requires: python-repoze-who +Requires: python-paste + +%description +`repoze.what` is an `authorization framework` for WSGI applications, +based on `repoze.who` (which deals with `authentication`). + +On the one hand, it enables an authorization system based on the groups to +which the `authenticated or anonymous` user belongs and the permissions granted +to such groups by loading these groups and permissions into the request on the +way in to the downstream WSGI application. + +And on the other hand, it enables you to manage your groups and permissions +from the application itself or another program, under a backend-independent +API. For example, it would be easy for you to switch from one back-end to +another, and even use this framework to migrate the data. + +It's highly extensible, so it's very unlikely that it will get in your way. +Among other things, you can extend it to check for many other conditions (such +as checking that the user comes from a given country, based on her IP address, +for example). + +%package docs +Summary: Documentation for repoze.what +Requires: %{name}-%{version} + +%description docs +This package contains documentation for the repoze.who module. + +%prep +%setup -q -n repoze.what-%{version} +%patch0 -b .setup + + +%build +%{__python} setup.py build +%{__make} -C docs html + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +# Needs repoze.who-testutil +#%check +#PYTHONPATH=`pwd` nosetests + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README.txt +%{python_sitelib}/ + +%files docs +%doc docs/ + + +%changelog +* Thu May 21 2009 Luke Macken - 1.0.8-1 +- Update to 1.0.8 +- Create a docs subpackage for the compiled Sphinx documentation. + +* Mon Feb 09 2009 Luke Macken - 1.0.4-1 +- Update to 1.0.4 +- Fix the URL + +* Tue Jan 06 2009 Luke Macken - 1.0-0.1.rc2.r2927 +- Update to 1.0rc2-r2927 + +* Tue Oct 21 2008 Luke Macken - 1.0-0.1.rc1.r2803 +- Initial package diff --git a/sources b/sources index e69de29..ed6117e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2e9659f4d23711f41017cd4a26d76848 repoze.what-1.0.8.tar.gz