SPECS: php.spec - apache packages split finished

glen glen at pld-linux.org
Tue Aug 16 11:28:58 CEST 2005


Author: glen                         Date: Tue Aug 16 09:28:57 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- apache packages split finished

---- Files affected:
SPECS:
   php.spec (1.462 -> 1.463) 

---- Diffs:

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.462 SPECS/php.spec:1.463
--- SPECS/php.spec:1.462	Tue Aug 16 01:31:40 2005
+++ SPECS/php.spec	Tue Aug 16 11:28:52 2005
@@ -14,12 +14,6 @@
 # - make additional headers added by mail patch configurable
 # - apply -hardened patch by default ?
 # - ftp module needs to be linked with -lssl if openssl module is enabled
-# - finish apache1/apache2 package split. currently don't know how to resolve:
-#  apache1-mod_php4-4.4.0-4.44 obsoleted by apache-mod_php-5.0.4-8.3
-#  it's because apache1-mod_php4 Provides:   php = %{epoch}:%{version}-%{release}
-#  and new apache-mod_php:
-#  # Obsolete last version when apache module was in main package
-#  Obsoletes:  php < 4:5.0.4-8.1
 #
 # Conditional build:
 %bcond_with	db3		# use db3 packages instead of db (4.x) for Berkeley DB support
@@ -55,16 +49,12 @@
 %bcond_without	tidy		# without Tidy extension module
 %bcond_without	wddx		# without WDDX extension module
 %bcond_without	xmlrpc		# without XML-RPC extension module
-%bcond_with		apache1		# enable building apache 1.3.x module (disables apache2)
+%bcond_without	apache1		# disable building apache 1.3.x module
 %bcond_without	apache2		# disable building apache 2.x module
 
 %define apxs1		/usr/sbin/apxs1
 %define	apxs2		/usr/sbin/apxs
 
-%if %{with apache1}
-%undefine	with_apache2
-%endif
-
 # some problems with apache 2.x
 %if %{with apache2}
 %undefine	with_mm
@@ -88,7 +78,7 @@
 Summary(uk):	PHP ÷ĹŇÓŚ§ 5 - ÍĎ×Á ĐŇĹĐŇĎĂĹÓŐ×ÁÎÎŃ HTML-ĆÁĘĚŚ×, ×ÉËĎÎŐ×ÁÎÁ ÎÁ ÓĹŇ×ĹŇŚ
 Name:		php
 Version:	5.0.4
-Release:	9.23%{?with_hardening:hardened}
+Release:	9.28%{?with_hardening:hardened}
 Epoch:		4
 Group:		Libraries
 License:	PHP
@@ -203,18 +193,11 @@
 BuildRequires:	zlib-devel >= 1.0.9
 %if %{with apache1}
 BuildRequires:	apache1-devel
-PreReq:		%{name}-common = %{epoch}:%{version}-%{release}
-PreReq:		apache1(EAPI) >= 1.3.9
-Requires(post,preun):	%{apxs1}
-Requires(post,preun):	%{__perl}
 %endif
 %if %{with apache2}
 BuildRequires:	apache-devel >= 2.0.52-2
 BuildRequires:	apr-devel >= 1:1.0.0
 BuildRequires:	apr-util-devel >= 1:1.0.0
-PreReq:		%{name}-common = %{epoch}:%{version}-%{release}
-PreReq:		apache >= 2.0.52-2
-Requires:	apache(modules-api) = %{apache_modules_api}
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -300,8 +283,8 @@
 Provides:	php = %{epoch}:%{version}-%{release}
 Obsoletes:	phpfi
 Obsoletes:	apache-mod_php < 1:4.1.1
-# Obsolete last version when apache module was in main package
-Obsoletes:	php <= 4:5.0.4-9
+# Obsolete all php5 packages, this is not to obsolete php4 companion
+Obsoletes:	php >= 4:5.0.0
 
 %description -n apache1-mod_php
 PHP as DSO module for apache 1.3.x.
@@ -320,8 +303,8 @@
 Provides:	php = %{epoch}:%{version}-%{release}
 Obsoletes:	phpfi
 Obsoletes:	apache-mod_php < 1:4.1.1
-# Obsolete last version when apache module was in main package
-Obsoletes:	php <= 4:5.0.4-9
+# Obsolete all php5 packages, this is not to obsolete php4 companion
+Obsoletes:	php >= 4:5.0.0
 
 %description -n apache-mod_php
 PHP as DSO module for apache 2.x.
@@ -1745,17 +1728,21 @@
 install php.ini	$RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
-install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
-install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE1} .
 
-install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/httpd/icons
+%if %{with apache1}
 install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/apache/icons
-install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE4} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
+%endif
 
-install %{SOURCE1} .
+%if %{with apache2}
+install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/httpd/icons
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
+%endif
 
 cp -f Zend/LICENSE{,.Zend}
 
@@ -2479,11 +2466,10 @@
 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
 [ ! -x %{_sbindir}/php-module-install ] || %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
 
-%files
-#%%defattr(644,root,root,755)
+#%files
 
 %if %{with apache1}
-#%files -n apache1-mod_php
+%files -n apache1-mod_php
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/apache/conf.d/*_mod_php.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-apache.ini
@@ -2492,7 +2478,7 @@
 %endif
 
 %if %{with apache2}
-#%files -n apache-mod_php
+%files -n apache-mod_php
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/httpd/httpd.conf/*_mod_php.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-apache2handler.ini
@@ -2923,6 +2909,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.463  2005/08/16 09:28:52  glen
+- apache packages split finished
+
 Revision 1.462  2005/08/15 23:31:40  glen
 - BR: rpm-build >= 4.4.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php.spec?r1=1.462&r2=1.463&f=u




More information about the pld-cvs-commit mailing list