[php-extras/el6] add a spec file for upcoming php-5.4 in RHEL7 and SCL-1 ...

Dmitry Butskoy buc at fedoraproject.org
Thu Jul 18 15:58:04 UTC 2013


commit 695d09efbc7976a3d5b7c5a6a702d3a3c395c2e6
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date:   Thu Jul 18 19:57:23 2013 +0400

    add a spec file for upcoming php-5.4 in RHEL7 and SCL-1 ...

 php-extras.spec-5.4 |  273 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 273 insertions(+), 0 deletions(-)
---
diff --git a/php-extras.spec-5.4 b/php-extras.spec-5.4
new file mode 100644
index 0000000..7948420
--- /dev/null
+++ b/php-extras.spec-5.4
@@ -0,0 +1,273 @@
+%if 0%{?scl:1}
+%scl_package php-extras
+%else
+%global pkg_name %{name}
+%endif
+
+#  EPEL6:  recode, mcrypt, tidy, mssql, interbase
+
+%define def()	%%{!?_without_default:%%{!?_without_%1: %%global _with_%1 --with-%1}}
+
+%{expand:%def interbase}
+%{expand:%def mcrypt}
+%{expand:%def mssql}
+%{expand:%def recode}
+%{expand:%def tidy}
+
+%define list	%{?_with_recode:recode} %{?_with_mcrypt:mcrypt} %{?_with_tidy:tidy} %{?_with_mssql:mssql pdo_dblib} %{?_with_interbase:interbase pdo_firebird}
+%define opts	%{?_with_interbase:--with-interbase=%{_libdir}/firebird --with-pdo-firebird=%{_libdir}/firebird}
+
+
+Name:       %{?scl_prefix}php-extras
+Summary:    Additional PHP modules from the standard PHP distribution
+Version:    5.4.16
+Release:    2%{?dist}
+Group:      Development/Languages
+License:    The PHP License
+URL:        http://www.php.net/
+Source0:    http://www.php.net/distributions/php-%{version}.tar.bz2
+BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: %{?scl_prefix}php-devel >= 5.4
+
+
+%description
+PHP is an HTML-embedded scripting language.
+
+This package contains various additional modules for PHP, which
+have not been included in the basic PHP package for Fedora Core.
+
+
+%package -n %{?scl_prefix}php-recode
+Summary:     Standard PHP module provides GNU recode support
+Group:       Development/Languages
+Requires:    %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires:    %{?scl_prefix}php(api) = %{php_core_api}
+%{?_with_recode:BuildRequires: recode-devel}
+
+%description -n %{?scl_prefix}php-recode
+Standard PHP module provides GNU recode support
+
+
+%package -n %{?scl_prefix}php-mcrypt
+Summary:     Standard PHP module provides mcrypt library support
+Group:       Development/Languages
+Requires:    %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires:    %{?scl_prefix}php(api) = %{php_core_api}
+%{?_with_mcrypt:BuildRequires: libmcrypt-devel}
+
+%description -n %{?scl_prefix}php-mcrypt
+Standard PHP module provides mcrypt library support
+
+
+%package -n %{?scl_prefix}php-tidy
+Summary:     Standard PHP module provides tidy library support
+Group:       Development/Languages
+Requires:    %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires:    %{?scl_prefix}php(api) = %{php_core_api}
+%{?_with_tidy:BuildRequires: libtidy-devel}
+
+%description -n %{?scl_prefix}php-tidy
+Standard PHP module provides tidy library support
+
+
+%package -n %{?scl_prefix}php-mssql
+Summary: Standard PHP module provides mssql support
+Group: Development/Languages
+Requires:    %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires:    %{?scl_prefix}php(api) = %{php_core_api}
+Requires:    %{?scl_prefix}php(pdo-abi) = %{php_pdo_api}
+Provides:    php_database
+%{?_with_mssql:BuildRequires: freetds-devel}
+
+%description -n %{?scl_prefix}php-mssql
+Standard PHP module provides mssql support
+
+
+%package -n %{?scl_prefix}php-interbase
+Summary:     Standard PHP module provides interbase/firebird support
+Group:       Development/Languages
+Requires:    %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires:    %{?scl_prefix}php(api) = %{php_core_api}
+Requires:    %{?scl_prefix}php(pdo-abi) = %{php_pdo_api}
+Provides: php_database, php-firebird
+%{?_with_interbase:BuildRequires: firebird-devel}
+
+%description -n %{?scl_prefix}php-interbase
+Standard PHP module provides interbase/firebird support
+
+
+# Filter private shared
+%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
+%{?filter_setup}
+
+
+%prep
+%setup -q -n php-%{version}
+
+# avoid tests which requires databases
+rm -rf ext/{mssql,pdo_dblib,interbase,pdo_firebird}/tests
+
+
+%build
+for mod in %{list}
+do
+    pushd ext/$mod
+
+    %{_bindir}/phpize
+    %configure \
+       --with-libdir=%{_lib} \
+       %{opts} \
+       --with-php-config=%{_bindir}/php-config
+
+    make %{?_smp_mflags}
+
+    popd
+done
+
+
+%check
+fail=0
+for mod in %{list}
+do
+    [ -d ext/$mod/tests ] || continue
+
+    pushd ext/$mod
+
+    make test NO_INTERACTION=1 | tee rpmtests.log
+    if grep -q "FAILED TEST" rpmtests.log
+    then
+        for t in tests/*.diff
+        do
+            echo "TEST FAILURE: $PWD/$t --"
+            diff -u tests/$(basename $t .diff).exp tests/$(basename $t .diff).out || :
+            fail=1
+        done
+    fi
+    popd
+done
+exit $fail
+
+
+%install
+rm -rf %{buildroot}
+
+install -d %{buildroot}%{php_extdir}
+install -d %{buildroot}%{_sysconfdir}/php.d
+
+for mod in %{list}
+do
+    make -C ext/${mod} install INSTALL_ROOT=%{buildroot}
+
+    cat > %{buildroot}%{_sysconfdir}/php.d/${mod}.ini <<EOF
+; Enable ${mod} extension module
+extension=${mod}.so
+EOF
+    cat > files.${mod} <<EOF
+%defattr(-,root,root)
+%{php_extdir}/${mod}.so
+%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
+EOF
+done
+
+%{?_with_mssql:cat files.pdo_dblib >>files.mssql}
+%{?_with_interbase:cat files.pdo_firebird >>files.interbase}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%define fil()	%%{?_with_%1:%%files -n %{?scl_prefix}php-%1 -f files.%1}
+%{expand:%fil recode}
+%{expand:%fil mcrypt}
+%{expand:%fil tidy}
+%{expand:%fil mssql}
+%{expand:%fil interbase}
+
+
+%changelog
+* Thu Jul 18 2013 Remi Collet <rcollet at redhat.com> - 5.4.16-2
+- rebuild for new value of php(zend-abi) and php(api)
+
+* Tue Jul 16 2013 Remi Collet <rcollet at redhat.com> - 5.4.16-1
+- update to 5.4.16
+- adapt for SCL
+- enable recode
+
+* Tue Sep 13 2011 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.3.3-1
+- update to 5.3.3
+- avoid explicit php dependencies in favour of php-api (#737956)
+
+* Wed Dec 22 2010 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.3.2-3
+- drop readline (now in the main php package)
+- drop mhash (no more provided in php, hash used instead)
+- spec file cleanup
+
+* Tue Dec 21 2010 Nick Bebout <nb at fedoraproject.org> - 5.3.2-2
+- Disable php-readline for now so we can get the rest built
+
+* Sun Dec 19 2010 Jon Ciesla <limb at jcomserv.net> - 5.3.2-1
+- Update for EL-6.
+
+* Tue May 12 2009 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.6-5
+- add pdo_dblib module for php-mssql
+- add php-interbase support (both interbase and pdo_firebird modules)
+  (initial patch from Remi Collet <fedora at famillecollet.com>)
+
+* Wed Jun 20 2007 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.6-4
+- add patch for mssql (#244736), a backport of some php-5.2 changes
+
+* Fri Jun 15 2007 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.6-3
+- add --with-libdir=%%{_lib} to handle 64bit arches properly
+
+* Thu Jun 14 2007 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.6-2
+- add php-mssql support
+
+* Fri Sep  1 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.6-1
+- update to 5.1.6
+
+* Thu Jun 22 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.4-2
+- auto-detect extdir and apiver again (needed for x86_64)
+
+* Fri Jun 16 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.4-1
+- update to upstream php 5.1.4
+- an easier way to auto-detect php-api version
+- specify extdir and apiver explicitly, because FE build system
+  is not able to auto-detect it now.
+
+* Fri Mar 31 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.2-3
+- ppc arch hack: change dir before %%apiver auto-detecting
+
+* Sat Mar 25 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.2-2
+- Accepted for Fedora Extras
+  (review by Tom "spot" Callaway <tcallawa at redhat.com>)
+ 
+* Wed Mar  1 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.2-2
+- more accurate Requires for the main php
+  (using php-api, provided now by the Core php package).
+
+* Tue Feb 28 2006 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.2-1
+- update to 5.1.2
+- replace readline patch (old issue go away and a new appears).
+- apply well-known "libtool-rpath-workaround" (see in Internet ;-))
+  to avoid use -rpath for linking
+
+* Sat Dec 17 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.1.1-1
+- upgrade to 5.1.1 for FC5
+- drop now missed "fam" and obsolete "sqlite" (sqlite2) modules
+
+* Mon Nov 14 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.0.4-1
+- spec file cleanups
+
+* Mon Oct 10 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 5.0.4-0
+- adaptation for php5
+- drop tests patch (no more needed).
+
+* Fri Oct  7 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 4.3.11-0
+- initial release
+- create test stuff for check section. A lot of work because we play
+  with extra modules by our own way...
+- add patch to fix some pathes in tests
+- add patch for readline configure
+


More information about the scm-commits mailing list