1 Summary: phpldapadmin - a web-based LDAP client
2 Summary(pl.UTF-8): phpldapadmin - klient WWW dla LDAP
7 Group: Applications/Databases/Interfaces
8 Source0: http://dl.sourceforge.net/phpldapadmin/%{name}-%{version}.tgz
9 # Source0-md5: 9455d33186236059ea6c230841cb48b2
10 Patch0: %{name}-paths.patch
11 URL: http://phpldapadmin.sourceforge.net/
12 BuildRequires: rpmbuild(macros) >= 1.268
13 Requires: php(gettext)
18 Requires: webserver(access)
19 Requires: webserver(alias)
20 Requires: webserver(php)
21 Suggests: webserver(indexfile)
22 Conflicts: apache-base < 2.4.0-1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _webapps /etc/webapps
27 %define _webapp %{name}
28 %define _sysconfdir %{_webapps}/%{_webapp}
29 %define _appdir %{_datadir}/%{_webapp}
32 phpLDAPadmin is a web-based LDAP client. It provides easy,
33 anywhere-accessible, multi-language administration for your LDAP
34 server. Its hierarchical tree-viewer and advanced search functionality
35 make it intuitive to browse and administer your LDAP directory. Since
36 it is a web application, this LDAP browser works on many platforms,
37 making your LDAP server easily manageable from any location.
38 phpLDAPadmin is the perfect LDAP browser for the LDAP professional and
41 %description -l pl.UTF-8
42 phpLDAPadmin jest opartym o WWW klientem LDAP. Dostarcza łatwego,
43 ogólnie dostępnego, wielojęzykowego interfejsu administracyjnego do
44 serwera LDAP. Jego hierarchiczna przeglądarka struktur drzewiastych i
45 zaawansowane możliwosci wyszukiwania czynią go intuicyjnym dla
46 przeglądania i administrowania katalogami LDAP. Ponieważ jest
47 aplikacja webową, działa na wielu platformach, czyniąc serwer LDAP
48 łatwym do zarządzania z dowolnej lokalizacji. phpLDAPadmin jest
49 doskonałą przeglądarka LDAP zarówno dla profesjonalistów jak i
56 cat > apache.conf <<'EOF'
57 Alias /ldapadmin %{_appdir}/htdocs
59 <Directory %{_appdir}/htdocs>
62 php_admin_value open_basedir "%{_sysconfdir}/:%{_appdir}/"
66 cat > httpd.conf <<'EOF'
67 Alias /ldapadmin %{_appdir}/htdocs
69 <Directory %{_appdir}/htdocs>
72 php_admin_value open_basedir "%{_sysconfdir}/:%{_appdir}/"
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
80 cp -a htdocs hooks lib locale queries templates $RPM_BUILD_ROOT%{_appdir}
81 cp -a VERSION $RPM_BUILD_ROOT%{_appdir}
82 cp -a config/config.php.example $RPM_BUILD_ROOT%{_sysconfdir}/config.php
83 cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
84 cp -a httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
87 rm -rf $RPM_BUILD_ROOT
89 %triggerin -- apache1 < 1.3.37-3, apache1-base
90 %webapp_register apache %{_webapp}
92 %triggerun -- apache1 < 1.3.37-3, apache1-base
93 %webapp_unregister apache %{_webapp}
95 %triggerin -- apache-base
96 %webapp_register httpd %{_webapp}
98 %triggerun -- apache-base
99 %webapp_unregister httpd %{_webapp}
102 %defattr(644,root,root,755)
104 %dir %attr(750,root,http) %{_sysconfdir}
105 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
106 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
107 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php