1 Summary: WWW gateway to LDAP server
2 Summary(pl): Bramka WWW do serwera LDAP
6 License: distributable (mostly GPL)
8 Source0: http://www.web2ldap.de/download/%{name}-%{version}.tar.gz
9 # Source0-md5: 8958b9b85204972a47ee1c4b97a6cc63
10 Patch0: %{name}-config.patch
11 URL: http://www.web2ldap.de/
12 %pyrequires_eq python-modules
14 Requires: python-pyweblib
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 - a generic LDAPv3 client which does not make any assumptions about
21 the tree structure or LDAP schema.
22 - kind of a swiss-army knife for accessing/manipulating LDAP servers
23 without having to configure anything.
24 - a secure LDAP client with clean login behaviour.
25 - a schema browser which displays references/dependencies within an
27 - continously maintained software.
31 - ogólny klient LDAPv3, nie czyni±cy ¿adnych za³o¿eñ dotycz±cych
32 struktury drzewa ani schemacie LDAP
33 - narzêdzie do dostêpu i manipulacji na serwerach LDAP bez potrzeby
34 konfigurowania niczego
35 - bezpieczny klient LDAP czysto loguj±cy siê
36 - przegl±darka schematów wy¶wietlaj±ca odwo³ania i zale¿no¶ci wewn±trz
38 - stale utrzymywane oprogramowanie.
45 for dir in pylib sbin fcgi scgi; do
46 python -c "import compileall; compileall.compile_dir('$dir')"
47 python -O -c "import compileall; compileall.compile_dir('$dir')"
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_datadir}/%{name}/htdocs} \
53 $RPM_BUILD_ROOT/var{/run,/lib,/log}/%{name}
55 cp -R etc/web2ldap $RPM_BUILD_ROOT%{_sysconfdir}
56 cp -R fcgi pylib scgi sbin $RPM_BUILD_ROOT%{_datadir}/%{name}
57 cp -R htdocs/css $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs
58 find $RPM_BUILD_ROOT%{_datadir}/%{name}/pylib -name "*.py" | xargs rm
59 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/sbin/compile*
60 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/sbin/*.py
61 echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_sbindir}/%{name}
62 echo 'exec python %{_datadir}/%{name}/sbin/%{name}.pyc $*' \
63 >> $RPM_BUILD_ROOT%{_sbindir}/%{name}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc AUTHORS README htdocs/* etc/httpd
71 %attr(755,root,root) %{_sbindir}/*
72 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
74 %dir %{_datadir}/%{name}
75 %{_datadir}/%{name}/pylib
76 %{_datadir}/%{name}/htdocs
77 %{_datadir}/%{name}/sbin
79 %dir %{_datadir}/%{name}/fcgi
80 %attr(755,root,root) %{_datadir}/%{name}/fcgi/web2ldap.py
81 %{_datadir}/%{name}/fcgi/*.py[co]
83 %dir %{_datadir}/%{name}/scgi
84 %attr(755,root,root) %{_datadir}/%{name}/scgi/web2ldap.py
85 %{_datadir}/%{name}/scgi/*.py[co]
87 %dir %attr(775,root,http) /var/*/%{name}