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