SPECS: apache-mod_cfg_ldap.spec - rebuild with new - add missing a...
glen
glen at pld-linux.org
Thu Dec 22 00:33:22 CET 2005
Author: glen Date: Wed Dec 21 23:33:22 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rebuild with new
- add missing apache restart
- rel 2
---- Files affected:
SPECS:
apache-mod_cfg_ldap.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/apache-mod_cfg_ldap.spec
diff -u SPECS/apache-mod_cfg_ldap.spec:1.9 SPECS/apache-mod_cfg_ldap.spec:1.10
--- SPECS/apache-mod_cfg_ldap.spec:1.9 Thu Nov 25 13:51:21 2004
+++ SPECS/apache-mod_cfg_ldap.spec Thu Dec 22 00:33:16 2005
@@ -5,21 +5,22 @@
Summary(pl): Moduł do przechowywania konfiguracji serwerów wirtualnych Apache'a w katalogu LDAP
Name: apache-mod_%{mod_name}
Version: 1.2
-Release: 1
+Release: 2
License: BSD
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/modcfgldap/mod_%{mod_name}-%{version}.tar.gz
# Source0-md5: 055924d6488608f684b22e7b04cea2ea
URL: http://modcfgldap.sourceforge.net/
BuildRequires: %{apxs}
-BuildRequires: apache-devel >= 2
+BuildRequires: apache-devel >= 2.0
BuildRequires: db-devel >= 4.2.52
Requires(post,preun): %{apxs}
-Requires: apache >= 2
+Requires: apache(modules-api) = %apache_modules_api
+Requires: apache >= 2.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir %(%{apxs} -q SYSCONFDIR)
-%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
%description
mod_cfg_ldap allows you to keep your virtual host configuration in a
@@ -40,12 +41,24 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
-install -m755 .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
install cfg_ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/85_mod_cfg_ldap.conf
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/httpd ]; then
+ /etc/rc.d/init.d/httpd restart 1>&2
+ fi
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog INSTALL README TODO *.schema
@@ -58,6 +71,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2005/12/21 23:33:16 glen
+- rebuild with new
+- add missing apache restart
+- rel 2
+
Revision 1.9 2004/11/25 12:51:21 zergin
- version update: 1.1 -> 1.2
- STBR
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/apache-mod_cfg_ldap.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list