SPECS: apache-mod_auth_mysql.spec - unified, made it apache2 package
glen
glen at pld-linux.org
Mon Dec 26 19:50:27 CET 2005
Author: glen Date: Mon Dec 26 18:50:27 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- unified, made it apache2 package
---- Files affected:
SPECS:
apache-mod_auth_mysql.spec (1.37 -> 1.38)
---- Diffs:
================================================================
Index: SPECS/apache-mod_auth_mysql.spec
diff -u SPECS/apache-mod_auth_mysql.spec:1.37 SPECS/apache-mod_auth_mysql.spec:1.38
--- SPECS/apache-mod_auth_mysql.spec:1.37 Mon Dec 26 18:39:13 2005
+++ SPECS/apache-mod_auth_mysql.spec Mon Dec 26 19:50:22 2005
@@ -20,13 +20,15 @@
Group: Networking/Daemons
Source0: ftp://ftp.debian.org/debian/pool/main/liba/libapache-mod-auth-mysql/libapache-mod-auth-mysql_%{version}.orig.tar.gz
# Source0-md5: 9c1ecbe5fb64d4c93444311ff34bfe35
+Patch0: %{name}-ac.patch
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0.0
BuildRequires: apr-util >= 1:1.0
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: libtool
BuildRequires: mysql-devel
-Requires: apache >= 2.0.0
+Requires: apache(modules-api) = %apache_modules_api
Requires: apache-mod_auth
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -81,44 +83,47 @@
%prep
%setup -q -n mod-auth-mysql-%{version}
+%patch0 -p1
%build
-sed -i -e 's#/usr/bin/apxs2#%{apxs}#g' configure*
+%{__aclocal}
+%{__autoconf}
%configure \
+ --disable-apache13 \
--enable-apache2 \
- --with-apxs=%{apxs} \
+ --with-apxs2=%{apxs} \
--with-mysql=%{_prefix}
-%{apxs} -c -DAPACHE2 -DAPR_XtOffsetOf=APR_OFFSETOF -I %{_includedir}/mysql mod_%{mod_name}.c \
- `%{_bindir}/apr-1-config --link-ld` `%{_bindir}/apu-1-config --link-ld` -lcrypt -lmysqlclient
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
-libtool install mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}
+libtool install apache2_mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
- $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
+ $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
+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/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
+ 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 DIRECTIVES USAGE
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -127,6 +132,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.38 2005/12/26 18:50:22 glen
+- unified, made it apache2 package
+
Revision 1.37 2005/12/26 17:39:13 glen
- killed pointless obsolete
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/apache-mod_auth_mysql.spec?r1=1.37&r2=1.38&f=u
More information about the pld-cvs-commit
mailing list