SPECS (DEVEL): php.spec - 5.1.0 final; merged some changes from HE...

arekm arekm at pld-linux.org
Fri Nov 25 02:35:39 CET 2005


Author: arekm                        Date: Fri Nov 25 01:35:39 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- 5.1.0 final; merged some changes from HEAD; TODO: test, review patches, merge to HEAD

---- Files affected:
SPECS:
   php.spec (1.467.2.22 -> 1.467.2.23) 

---- Diffs:

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.467.2.22 SPECS/php.spec:1.467.2.23
--- SPECS/php.spec:1.467.2.22	Sun Nov 20 00:25:20 2005
+++ SPECS/php.spec	Fri Nov 25 02:35:34 2005
@@ -33,6 +33,7 @@
 %bcond_without	mm		# without mm support for session storage
 %bcond_without	msession	# without msession extension module
 %bcond_without	mssql		# without MS SQL extension module
+%bcond_without	mime_magic	# without mime-magic module
 %bcond_without	odbc		# without ODBC extension module
 %bcond_without	openssl		# without OpenSSL support and OpenSSL extension (module)
 %bcond_without	pcre		# without PCRE extension module
@@ -80,15 +81,12 @@
 Summary(uk):	PHP ÷ĹŇÓŚ§ 5 - ÍĎ×Á ĐŇĹĐŇĎĂĹÓŐ×ÁÎÎŃ HTML-ĆÁĘĚŚ×, ×ÉËĎÎŐ×ÁÎÁ ÎÁ ÓĹŇ×ĹŇŚ
 Name:		php
 Version:	5.1.0
-%define	_rc	RC4
-%define	_rel 0.4
-Release:	0.%{_rc}.%{_rel}%{?with_hardening:hardened}
+Release:	0.1%{?with_hardening:hardened}
 Epoch:		4
 Group:		Libraries
 License:	PHP
-# Source0:	http://www.php.net/distributions/%{name}-%{version}%{_rc}.tar.bz2
-Source0:	http://downloads.php.net/ilia/%{name}-%{version}%{_rc}.tar.bz2
-# Source0-md5:	4afd68f8e4fe532cea83f30bd2ff26f5
+Source0:	http://www.php.net/distributions/%{name}-%{version}.tar.bz2
+# Source0-md5:	4b9caa2f201f6b1f6a24de6c435cd4b1
 Source1:	FAQ.%{name}
 Source2:	zend.gif
 Source3:	%{name}-module-install
@@ -360,6 +358,7 @@
 
 %package program
 Summary:	/usr/bin/php symlink
+Summary(pl):	Dowizanie symboliczne /usr/bin/php
 Group:		Development/Languages/PHP
 Requires:	%{name}-cli = %{epoch}:%{version}-%{release}
 Provides:	php(program)
@@ -368,6 +367,9 @@
 %description program
 Package providing /usr/bin/php symlink to PHP CLI.
 
+%description program -l pl
+Pakiet dostarczajcy dowizanie symboliczne /usr/bin/php do PHP CLI.
+
 %package common
 Summary:	Common files needed by both apache module and CGI
 Summary(pl):	Wspólne pliki dla modułu apache'a i programu CGI
@@ -416,6 +418,8 @@
 Group:		Development/Languages/PHP
 Requires:	autoconf
 Requires:	automake
+Requires:	libtool
+Requires:	shtool
 Requires:	%{name}-common = %{epoch}:%{version}-%{release}
 Obsoletes:	php-pear-devel
 Obsoletes:	php4-devel
@@ -1502,7 +1506,7 @@
 Moduł PHP umożliwiający używanie kompresji zlib.
 
 %prep
-%setup -q -n %{name}-%{version}%{_rc}
+%setup -q
 # this patch is broken by design, breaks --enable-versioning for example
 # update: --enable-version is broken by itself, it disables dynamic modules.
 %patch0 -p1
@@ -1704,7 +1708,7 @@
 	%{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
 	--with-mcrypt=shared \
 	%{?with_mhash:--with-mhash=shared} \
-	--with-mime-magic=shared,/usr/share/file/magic.mime \
+	%{?with_mime_magic:--with-mime-magic=shared,/usr/share/file/magic.mime}%{!?with_mime_magic:--disable-mime-magic} \
 	%{?with_ming:--with-ming=shared} \
 	%{?with_mm:--with-mm} \
 	%{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
@@ -1860,7 +1864,10 @@
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
 for so in modules/*.so; do
 	mod=$(basename $so .so)
-	cat > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/${mod}.ini <<EOF
+	conf="%{_sysconfdir}/conf.d/${mod}.ini"
+	# xml needs to be loaded before wddx
+	[ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_${mod}.ini"
+	cat > $RPM_BUILD_ROOT${conf} <<EOF
 ; Enable ${mod} extension module
 extension=${mod}.so
 EOF
@@ -1869,6 +1876,12 @@
 # Not in all SAPI, so don't need the .ini fragments.
 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/{ncurses,pcntl,readline}.ini
 
+# use system automake and {lib,sh}tool
+ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
+ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
+ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
+ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -2763,10 +2776,12 @@
 %attr(755,root,root) %{extensionsdir}/mhash.so
 %endif
 
+%if %{with mime_magic}
 %files mime_magic
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
 %attr(755,root,root) %{extensionsdir}/mime_magic.so
+%endif
 
 %if %{with ming}
 %files ming
@@ -3005,7 +3020,7 @@
 %if %{with wddx}
 %files wddx
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/wddx.ini
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
 %attr(755,root,root) %{extensionsdir}/wddx.so
 %endif
 
@@ -3042,6 +3057,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.467.2.23  2005/11/25 01:35:34  arekm
+- 5.1.0 final; merged some changes from HEAD; TODO: test, review patches, merge to HEAD
+
 Revision 1.467.2.22  2005/11/19 23:25:20  zergin
 - added missing BR: libwrap-devel
 
================================================================

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




More information about the pld-cvs-commit mailing list