]> git.pld-linux.org Git - packages/davedap.git/blame - davedap.spec
- tabs in preamble
[packages/davedap.git] / davedap.spec
CommitLineData
148f63c4
ER
1# TODO
2# - webapps
36424755 3Summary: DaveDAP's A Very Easy Directory Administration Program
109dabb0 4Summary(pl.UTF-8): DaveDAP - bardzo prosty program do administrowania katalogami
36424755 5Name: davedap
d2bebb07 6Version: 0.8.4
148f63c4 7Release: 2
36424755
TO
8License: GPL v2
9Group: Applications/Databases
148f63c4 10Source0: http://dl.sourceforge.net/davedap/%{name}-%{version}.tar.gz
d2bebb07 11# Source0-md5: 99abc5001ffe43dd8e9a26e19ac5c5f2
36424755
TO
12Source1: %{name}.conf
13URL: http://davedap.sourceforge.net/
36424755
TO
14Requires(post,preun): grep
15Requires(preun): fileutils
148f63c4
ER
16Requires: php(ldap)
17Requires: php(xml)
18Requires: webserver = apache
19Requires: webserver(php)
36424755
TO
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
18649730 22%define davedapdir %{_datadir}/%{name}
36424755
TO
23
24%description
25DaveDAP is a web-based LDAP admin tool written in PHP. You can browse
26your LDAP tree, create, delete, edit, and copy objects, perform
27searches, and view your server's schema. You can even copy objects
28between two LDAP servers and recursively delete or copy entire trees.
29
d9e25d02
JR
30%description -l pl.UTF-8
31DaveDAP to oparte na WWW narzędzie administracyjne do LDAP napisane w
32PHP. Pozwala przeglądać drzewo LDAP, tworzyć, usuwać, modyfikować i
33kopiować obiekty, wyszukiwać i oglądać schematy serwera. Można też
34kopiować obiekty między dwoma serwerami LDAP i rekurencyjnie usuwać
35lub kopiować całe drzewa.
18649730 36
36424755 37%prep
8643fe16 38%setup -q -n %{name}
36424755
TO
39
40%install
41rm -rf $RPM_BUILD_ROOT
a847c980 42install -d $RPM_BUILD_ROOT{/etc/httpd,%{davedapdir}/{images,templates/creation}}
36424755 43
d2bebb07 44install *.php *.css *.txt *.js $RPM_BUILD_ROOT%{davedapdir}/
8643fe16 45install images/*.png $RPM_BUILD_ROOT%{davedapdir}/images/
a847c980 46install templates/creation/*.php $RPM_BUILD_ROOT%{davedapdir}/templates/creation/
36424755 47
c82d72c0 48install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd
49install config.php.example $RPM_BUILD_ROOT%{_sysconfdir}/davedap.conf
f8d492e8 50ln -s /etc/davedap.conf $RPM_BUILD_ROOT%{davedapdir}/config.php
36424755
TO
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*davedap.conf" /etc/httpd/httpd.conf; then
633d9dc8 57 echo "Include /etc/httpd/davedap.conf" >> /etc/httpd/httpd.conf
36424755
TO
58fi
59if [ -f /var/lock/subsys/httpd ]; then
60 /usr/sbin/apachectl restart 1>&2
61fi
62
63%preun
64if [ "$1" = "0" ]; then
65 umask 027
66 grep -v "^Include.*davedap.conf" /etc/httpd/httpd.conf > \
633d9dc8 67 /etc/httpd/httpd.conf.tmp
68 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
36424755
TO
69 if [ -f /var/lock/subsys/httpd ]; then
70 /usr/sbin/apachectl restart 1>&2
71 fi
72fi
73
74%files
75%defattr(644,root,root,755)
76# there's no README, INSTALL may contain usefull info
d2bebb07 77%doc INSTALL
36424755
TO
78%dir %{davedapdir}
79%{davedapdir}/images
a847c980 80%{davedapdir}/templates
36424755 81%{davedapdir}/*.php
d2bebb07 82%{davedapdir}/*.js
36424755
TO
83%{davedapdir}/*.css
84%{davedapdir}/*.txt
c82d72c0 85%config(noreplace) %verify(not md5 mtime size) /etc/httpd/%{name}.conf
86%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
This page took 0.081556 seconds and 4 git commands to generate.