File python-repoze-who-plugins-ldap.spec of Package python-repoze-who-plugins-ldap
%define upstream_name repoze.who.plugins.ldap
%define susename repoze-who-plugins-ldap
Name: python-%{susename}
Version: 1.0
Release: 1
Summary: LDAP authentication for WSGI applications
Group: Development/Languages
License: GPLv3
URL: http://code.gustavonarea.net/repoze.who.plugins.ldap/
Source0: %{upstream_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: python-setuptools
#BuildRequires: python-dataflake-ldapconnection >= 0.3
Requires: python-repoze-who >= 1.0.6
Requires: python-ldap >= 2.3.5
Requires: python-setuptools
Requires: python-zope-interface
%{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
repoze.who.plugins.ldap is a Python package that provides LDAP authentication,
and related utilities, in WSGI applications via repoze.who. It can be used
with any LDAP server and any WSGI framework (or no framework at all).
It provides you with an straightforward solution to enable LDAP support in
your applications. Yes, you read well: “straightforward”, “LDAP” and
“applications” are in the same sentence. In fact, you may make your application
LDAP-aware in few minutes and with few lines of code.
Another great news is that this package is fully documented and provides you
with a working and documented demo project.
%package doc
Summary: Documentation for python-repoze-who-plugins-ldap
Group: Development/Libraries/Python
Requires: %name = %version
%description doc
repoze.who.plugins.ldap is a Python package that provides LDAP authentication,
and related utilities, in WSGI applications via repoze.who. It can be used
with any LDAP server and any WSGI framework (or no framework at all).
It provides you with an straightforward solution to enable LDAP support in
your applications. Yes, you read well: “straightforward”, “LDAP” and
“applications” are in the same sentence. In fact, you may make your application
LDAP-aware in few minutes and with few lines of code.
Another great news is that this package is fully documented and provides you
with a working and documented demo project.
This package contains documentation for repoze.who.plugins.ldap
%prep
%setup -q -n %{upstream_name}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc LICENSE CHANGELOG README VERSION
%files doc
%defattr(0644, root, root, 0755)
%doc docs/* demo
%changelog
* Thu Aug 13 2009 Ciaran Farrell <cfarrell1980@gmail.com> - 1.0-1
- First import