1 %define apxs /usr/sbin/apxs
2 Summary: Module to keep Apache VirtualHost configuration in an LDAP directory.
3 %define tarname mod_cfg_ldap
4 Name: apache-%{tarname}
7 Group: Networking/Daemons
8 URL: http://modcfgldap.sourceforge.net/
9 Source0: http://dl.sourceforge.net/modcfgldap/%{tarname}-%{version}.tar.gz
10 # Source0-md5: 42f4018277a2d3673d765d1bfd884c89
12 BuildRequires: %{apxs}
13 BuildRequires: apache-devel
14 BuildRequires: db-devel >= 4.2.52
15 Requires(post,preun): %{apxs}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 mod_cfg_ldap allows you to keep your virtual host configuration in a
21 LDAP directory and update it in nearly realtime.
24 %setup -q -n %{tarname}-%{version}
30 rm -rf $RPM_BUILD_ROOT
31 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
33 install -m755 .libs/%{tarname}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
35 # Install the config file
36 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf
37 install cfg_ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/85_mod_cfg_ldap.conf
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc AUTHORS ChangeLog INSTALL README TODO
45 %{_libdir}/httpd/modules/*.so
46 %config(noreplace) %{_sysconfdir}/httpd/httpd.conf/*.conf