]> git.pld-linux.org Git - packages/web2ldap.git/blobdiff - web2ldap.spec
- tabs in preamble
[packages/web2ldap.git] / web2ldap.spec
index 3b29e70bf4616522413aec899006b80d8d3ccd3c..7917e40fe2ebe7238bd59f5dee8b826ee58d191f 100644 (file)
@@ -1,37 +1,48 @@
-%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
@@ -42,9 +53,11 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_datadir}/%{name}/htdocs
                $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}
@@ -54,8 +67,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %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}
This page took 0.336104 seconds and 4 git commands to generate.