httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r122711 - /httpd/httpd/trunk/CHANGES /httpd/httpd/trunk/build/rpm/httpd.spec.in /httpd/httpd/trunk/buildconf
Date Sat, 18 Dec 2004 09:53:13 GMT
Author: minfrin
Date: Sat Dec 18 01:53:10 2004
New Revision: 122711

URL: http://svn.apache.org/viewcvs?view=rev&rev=122711
Log:
Fix the RPM spec file so that an RPM build now works. An RPM
build now requires system installations of APR and APR-util.

Modified:
   httpd/httpd/trunk/CHANGES
   httpd/httpd/trunk/build/rpm/httpd.spec.in
   httpd/httpd/trunk/buildconf

Modified: httpd/httpd/trunk/CHANGES
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/CHANGES?view=diff&rev=122711&p1=httpd/httpd/trunk/CHANGES&r1=122710&p2=httpd/httpd/trunk/CHANGES&r2=122711
==============================================================================
--- httpd/httpd/trunk/CHANGES	(original)
+++ httpd/httpd/trunk/CHANGES	Sat Dec 18 01:53:10 2004
@@ -2,6 +2,10 @@
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) Fix the RPM spec file so that an RPM build now works. An RPM
+     build now requires system installations of APR and APR-util.
+     [Graham Leggett]
+
   *) Significantly simplify the load balancer scheduling algorithm
      for the proxy BalancerMember weighting. loadfactors (lbfactors)
      are now normalized with respect to each other. [Jim Jagielski]

Modified: httpd/httpd/trunk/build/rpm/httpd.spec.in
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/build/rpm/httpd.spec.in?view=diff&rev=122711&p1=httpd/httpd/trunk/build/rpm/httpd.spec.in&r1=122710&p2=httpd/httpd/trunk/build/rpm/httpd.spec.in&r2=122711
==============================================================================
--- httpd/httpd/trunk/build/rpm/httpd.spec.in	(original)
+++ httpd/httpd/trunk/build/rpm/httpd.spec.in	Sat Dec 18 01:53:10 2004
@@ -17,8 +17,9 @@
 License: Apache License, Version 2.0
 Group: System Environment/Daemons
 BuildRoot: %{_tmppath}/%{name}-root
-BuildPrereq: openldap-devel, db4-devel, expat-devel, findutils, perl, pkgconfig
-Requires: gawk, /usr/share/magic.mime, /usr/bin/find, openldap
+BuildPrereq: apr-devel, apr-util-devel, openldap-devel, db4-devel, expat-devel, findutils,
perl, pkgconfig
+BuildPrereq: /usr/bin/apr-1-config, /usr/bin/apu-1-config
+Requires: apr >= 1.0.2, apr-util >= 1.0.2, gawk, /usr/share/magic.mime, /usr/bin/find,
openldap
 Prereq: /sbin/chkconfig, /bin/mktemp, /bin/rm, /bin/mv
 Prereq: sh-utils, textutils, /usr/sbin/useradd
 Provides: webserver
@@ -36,6 +37,7 @@
 Summary: Development tools for the Apache HTTP server.
 Obsoletes: secureweb-devel, apache-devel
 Requires: libtool, httpd = %{version}
+Requires: apr-devel >= 1.0.2, apr-util-devel >= 1.0.2
 
 %description devel
 The httpd-devel package contains the APXS binary and other files
@@ -109,7 +111,9 @@
 EOF
 ../configure -C \
  	--prefix=%{_sysconfdir}/httpd \
- 	--exec-prefix=%{_prefix} \
+        --with-apr=/usr/bin/apr-1-config \
+        --with-apr-util=/usr/bin/apu-1-config \
+        --exec-prefix=%{_prefix} \
  	--bindir=%{_bindir} \
  	--sbindir=%{_sbindir} \
  	--mandir=%{_mandir} \
@@ -156,17 +160,11 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-# Classify ab and logresolve as section 1 commands, as they are in /usr/bin
-mv docs/man/ab.8 docs/man/ab.1
-sed -e "1s/logresolve 8/logresolve 1/" \
-  < docs/man/logresolve.8 > docs/man/logresolve.1
-rm docs/man/logresolve.8
-
 pushd prefork
 make DESTDIR=$RPM_BUILD_ROOT install
 popd
 # install worker binary
-install -m 755 worker/.libs/httpd $RPM_BUILD_ROOT%{_sbindir}/httpd.worker
+install -m 755 worker/httpd $RPM_BUILD_ROOT%{_sbindir}/httpd.worker
 
 # mod_ssl bits
 for suffix in crl crt csr key prm; do
@@ -187,20 +185,14 @@
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl
 touch $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl/scache.{dir,pag,sem}
 
-# move utilities to /usr/bin
-mv $RPM_BUILD_ROOT%{_sbindir}/{ab,htdbm,logresolve,htpasswd,htdigest} \
-   $RPM_BUILD_ROOT%{_bindir}
-
-# make libtool a symlink
+# move the build directory to within the library directory
 mv $RPM_BUILD_ROOT%{contentdir}/build $RPM_BUILD_ROOT%{_libdir}/httpd/build
-rm $RPM_BUILD_ROOT%{_libdir}/httpd/build/libtool
-ln -s ../../../..%{_bindir}/libtool $RPM_BUILD_ROOT%{_libdir}/httpd/build/libtool
 
 # fix up config_vars file: relocate the build directory into libdir;
-# reference correct libtool; remove references to RPM build root.
+# reference correct libtool from apr; remove references to RPM build root.
 sed -e "s|%{contentdir}/build|%{_libdir}/httpd/build|g" \
     -e "/AP_LIBS/d" -e "/abs_srcdir/d" \
-    -e "/^LIBTOOL/s|/[^ ]*/libtool|%{_bindir}/libtool|" \
+    -e "/^LIBTOOL/s|/[^ ]*/libtool|`/usr/bin/apr-1-config --apr-libtool`|" \
     -e "/^EXTRA_INCLUDES/s|-I$RPM_BUILD_DIR[^ ]* ||g" \
   < prefork/build/config_vars.mk \
   > $RPM_BUILD_ROOT%{_libdir}/httpd/build/config_vars.mk
@@ -236,11 +228,7 @@
 	$RPM_BUILD_ROOT/etc/logrotate.d/httpd
 
 # Remove unpackaged files
-rm -rf $RPM_BUILD_ROOT%{_libdir}/libapr{,util}.{a,la} \
-       $RPM_BUILD_ROOT%{_libdir}/APRVARS $RPM_BUILD_ROOT%{_libdir}/*.exp \
-       $RPM_BUILD_ROOT%{_libdir}/httpd/modules/*.exp \
-       $RPM_BUILD_ROOT%{_bindir}/ap?-config \
-       $RPM_BUILD_ROOT%{_sbindir}/{checkgid,dbmmanage,envvars*} \
+rm -rf $RPM_BUILD_ROOT%{_libdir}/httpd/modules/*.exp \
        $RPM_BUILD_ROOT%{contentdir}/htdocs/* \
        $RPM_BUILD_ROOT%{contentdir}/cgi-bin/* 
 
@@ -310,20 +298,18 @@
 %config %{_sysconfdir}/logrotate.d/httpd
 %config %{_sysconfdir}/rc.d/init.d/httpd
 
-#%dir %{_sysconfdir}/httpd/conf
-
-%{_bindir}/ab
-%{_bindir}/ht*
-%{_bindir}/logresolve
+%{_sbindir}/ab
+%{_sbindir}/htcacheclean
+%{_sbindir}/htdbm
+%{_sbindir}/htdigest
+%{_sbindir}/htpasswd
+%{_sbindir}/logresolve
 %{_sbindir}/httpd
 %{_sbindir}/httpd.worker
 %{_sbindir}/apachectl
 %{_sbindir}/rotatelogs
 %attr(4510,root,%{suexec_caller}) %{_sbindir}/suexec
 
-%{_libdir}/libapr-1.so.*
-%{_libdir}/libaprutil-1.so.*
-
 %dir %{_libdir}/httpd
 %dir %{_libdir}/httpd/modules
 # everything but mod_ssl.so:
@@ -347,11 +333,13 @@
 %attr(0700,apache,apache) %dir %{_localstatedir}/lib/dav
 
 %{_mandir}/man1/*
-
+%{_mandir}/man8/ab*
 %{_mandir}/man8/rotatelogs*
+%{_mandir}/man8/logresolve*
 %{_mandir}/man8/suexec*
 %{_mandir}/man8/apachectl.8*
 %{_mandir}/man8/httpd.8*
+%{_mandir}/man8/htcacheclean.8*
 
 %files manual
 %defattr(-,root,root)
@@ -377,23 +365,22 @@
 
 %files devel
 %defattr(-,root,root)
-#%{_libdir}/libapr-0.so
-#%{_libdir}/libaprutil-0.so
-%{_libdir}/libapr-1.a
-%{_libdir}/libapr-1.la
-%{_libdir}/libaprutil-1.a
-%{_libdir}/libaprutil-1.la
-%{_libdir}/httpd/build/config.nice
 %{_includedir}/httpd
 %{_sysconfdir}/httpd/build
 %{_sbindir}/apxs
+%{_sbindir}/checkgid
+%{_sbindir}/dbmmanage
+%{_sbindir}/envvars*
 %{_mandir}/man8/apxs.8*
 %dir %{_libdir}/httpd/build
 %{_libdir}/httpd/build/*.mk
 %{_libdir}/httpd/build/instdso.sh
-%{_libdir}/httpd/build/libtool
+%{_libdir}/httpd/build/config.nice
 
 %changelog
+* Thu Dec 16 2004 Graham Leggett <minfrin@apache.org> 2.1.3-dev
+- Changed build to use external apr and apr-util
+
 * Thu May 20 2004 Graham Leggett <minfrin@apache.org> 2.0.50-dev
 - Changed default dependancy to link to db4 instead of db3.
 - Fixed complaints about unpackaged files.

Modified: httpd/httpd/trunk/buildconf
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/buildconf?view=diff&rev=122711&p1=httpd/httpd/trunk/buildconf&r1=122710&p2=httpd/httpd/trunk/buildconf&r2=122711
==============================================================================
--- httpd/httpd/trunk/buildconf	(original)
+++ httpd/httpd/trunk/buildconf	Sat Dec 18 01:53:10 2004
@@ -110,6 +110,7 @@
         echo "./buildconf failed for apr"
         exit 1
     }
+    rm -f srclib/apr/apr.spec
 fi
 
 if [ -d srclib/apr-util ]; then
@@ -118,6 +119,7 @@
         echo "./buildconf failed for apr-util" 
         exit 1
     }
+    rm -f srclib/apr-util/apr-util.spec
 fi
 
 echo copying build files

Mime
View raw message