-%include /usr/lib/rpm/macros.python
Summary: WWW gateway to LDAP server
-Summary(pl): Bramka WWW do serwera LDAP
+Summary(pl.UTF-8): Bramka WWW do serwera LDAP
Name: web2ldap
-Version: 0.11.9
+Version: 0.16.11
Release: 1
License: distributable (mostly GPL)
Group: Applications
Source0: http://www.web2ldap.de/download/%{name}-%{version}.tar.gz
+# Source0-md5: b82e0a8a5b730ec577f8891a14cbde92
Patch0: %{name}-config.patch
URL: http://www.web2ldap.de/
%pyrequires_eq python-modules
Requires: python-ldap
Requires: python-pyweblib
-BuildArch: noarch
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This is:
-- a generic LDAPv3 client which does not make any assumptions about the tree
- structure or LDAP schema.
-- kind of a swiss-army knife for accessing/manipulating LDAP servers without
- having to configure anything.
+- a generic LDAPv3 client which does not make any assumptions about
+ the tree structure or LDAP schema.
+- kind of a swiss-army knife for accessing/manipulating LDAP servers
+ without having to configure anything.
- a secure LDAP client with clean login behaviour.
-- a schema browser which displays references/dependencies within an LDAPv3
- schema.
+- a schema browser which displays references/dependencies within an
+ LDAPv3 schema.
- continously maintained software.
+%description -l pl.UTF-8
+To jest:
+- ogólny klient LDAPv3, nie czyniący żadnych założeń dotyczących
+ struktury drzewa ani schemacie LDAP
+- narzędzie do dostępu i manipulacji na serwerach LDAP bez potrzeby
+ konfigurowania niczego
+- bezpieczny klient LDAP czysto logujący się
+- przeglądarka schematów wyświetlająca odwołania i zależności wewnątrz
+ schematu LDAPv3
+- stale utrzymywane oprogramowanie.
+
%prep
%setup -q
%patch0 -p1
%build
-for dir in fcgi pylib scgi templates sbin; do
+for dir in pylib sbin fcgi scgi; do
python -c "import compileall; compileall.compile_dir('$dir')"
python -O -c "import compileall; compileall.compile_dir('$dir')"
done
$RPM_BUILD_ROOT/var{/run,/lib,/log}/%{name}
cp -R etc/web2ldap $RPM_BUILD_ROOT%{_sysconfdir}
-cp -R fcgi pylib scgi templates sbin htdocs/css $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -R fcgi pylib scgi sbin $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -R htdocs/css $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs
-find $RPM_BUILD_ROOT%{_datadir}/%{name} -name "*.py" | xargs rm
+find $RPM_BUILD_ROOT%{_datadir}/%{name}/pylib -name "*.py" | xargs rm
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/sbin/compile*
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/sbin/*.py
echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_sbindir}/%{name}
echo 'exec python %{_datadir}/%{name}/sbin/%{name}.pyc $*' \
>> $RPM_BUILD_ROOT%{_sbindir}/%{name}
%files
%defattr(644,root,root,755)
-%doc htdocs/* etc/httpd
+%doc AUTHORS README htdocs/* etc/httpd
%attr(755,root,root) %{_sbindir}/*
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}
-%{_datadir}/%{name}
-%dir %attr(664,root,http) /var/*/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
+
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/pylib
+%{_datadir}/%{name}/htdocs
+%{_datadir}/%{name}/sbin
+
+%dir %{_datadir}/%{name}/fcgi
+%attr(755,root,root) %{_datadir}/%{name}/fcgi/web2ldap.py
+%{_datadir}/%{name}/fcgi/*.py[co]
+
+%dir %{_datadir}/%{name}/scgi
+%attr(755,root,root) %{_datadir}/%{name}/scgi/web2ldap.py
+%{_datadir}/%{name}/scgi/*.py[co]
+
+%dir %attr(775,root,http) /var/*/%{name}