]> git.pld-linux.org Git - packages/phpldapadmin.git/blob - phpldapadmin.spec
- migrated to apache 2.4
[packages/phpldapadmin.git] / phpldapadmin.spec
1 Summary:        phpldapadmin - a web-based LDAP client
2 Summary(pl.UTF-8):      phpldapadmin - klient WWW dla LDAP
3 Name:           phpldapadmin
4 Version:        1.2.1.1
5 Release:        2
6 License:        GPL v2
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)
14 Requires:       php(ldap)
15 Requires:       php(pcre)
16 Requires:       php(xml)
17 Requires:       webapps
18 Requires:       webserver(access)
19 Requires:       webserver(alias)
20 Requires:       webserver(php)
21 Suggests:       webserver(indexfile)
22 Conflicts:      apache-base < 2.4.0-1
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _webapps        /etc/webapps
27 %define         _webapp         %{name}
28 %define         _sysconfdir     %{_webapps}/%{_webapp}
29 %define         _appdir         %{_datadir}/%{_webapp}
30
31 %description
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
39 novice alike.
40
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
50 nowicjuszy.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 cat > apache.conf <<'EOF'
57 Alias /ldapadmin %{_appdir}/htdocs
58
59 <Directory %{_appdir}/htdocs>
60         AllowOverride None
61         Allow from all
62         php_admin_value open_basedir "%{_sysconfdir}/:%{_appdir}/"
63 </Directory>
64 EOF
65
66 cat > httpd.conf <<'EOF'
67 Alias /ldapadmin %{_appdir}/htdocs
68
69 <Directory %{_appdir}/htdocs>
70         AllowOverride None
71         Require all granted
72         php_admin_value open_basedir "%{_sysconfdir}/:%{_appdir}/"
73 </Directory>
74 EOF
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
79
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
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %triggerin -- apache1 < 1.3.37-3, apache1-base
90 %webapp_register apache %{_webapp}
91
92 %triggerun -- apache1 < 1.3.37-3, apache1-base
93 %webapp_unregister apache %{_webapp}
94
95 %triggerin -- apache-base
96 %webapp_register httpd %{_webapp}
97
98 %triggerun -- apache-base
99 %webapp_unregister httpd %{_webapp}
100
101 %files
102 %defattr(644,root,root,755)
103 %doc doc/*
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
108 %{_appdir}
This page took 0.110489 seconds and 4 git commands to generate.