2 %define plugin accountldap
3 Summary: AccountLdap Plugin for Trac
4 Name: trac-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://trac-hacks.org/changeset/latest/accountldapplugin?old_path=/&filename=accountldapplugin&format=zip#/%{plugin}.zip
10 # Source0-md5: 2258bc33b77b648ed7463bff12876364
11 URL: http://trac-hacks.org/wiki/AccountLdapPlugin
12 BuildRequires: python-devel
14 Requires: trac >= %{trac_ver}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Allows you to change your password defined in LDAP. Also moved the
20 basic properties of LDAP (user and mail) to the corresponding
24 %setup -q -n %{plugin}plugin
28 %{__python} setup.py build
29 %{__python} setup.py egg_info
31 ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
32 test "$ver" = %{version}
35 rm -rf $RPM_BUILD_ROOT
36 %{__python} setup.py install \
37 --single-version-externally-managed \
39 --root=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 # XXX: try to figure out from .egg-info / __init__py at build time
48 #trac-enableplugin "%{plugin}.Trac%{plugin}Module"
51 %defattr(644,root,root,755)
52 %{py_sitescriptdir}/%{plugin}
53 %{py_sitescriptdir}/*-*.egg-info