File python-repoze-what-plugins-sql.spec of Package python-repoze-what-plugins-sql
#norootforbuild
#
%define real_name repoze.what.plugins.sql
%define mod_name repoze-what-plugins-sql
#
#
Name: python-%{mod_name}
Group: Development/Libraries/Python
Version: 1.0rc4
Release: 0
License: BSD-derived (http://www.repoze.org/LICENSE.txt)
Summary: The repoze.what SQL plugin
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Requires: python-repoze-what >= 1.0.3
Requires: python-sqlalchemy >= 0.5
Url: http://code.gustavonarea.net/repoze.what.plugins.sql/
%{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
This is an adapters plugin for repoze.what.
The SQL plugin makes repoze.what support sources defined in SQLAlchemy-managed databases by providing one group adapter, one permission adapter and one utility to configure both in one go (optionally, when the group source and the permission source have a relationship).
%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.0rc4
- Initial build for tg21