1 |
|
%define _build_pkgcheck_set %{nil} |
2 |
|
%define _build_pkgcheck_srpm %{nil} |
3 |
|
|
4 |
%define build_test 1 |
%define build_test 1 |
5 |
%{?_with_test: %{expand: %%global build_test 1}} |
%{?_with_test: %{expand: %%global build_test 1}} |
6 |
%{?_without_test: %{expand: %%global build_test 0}} |
%{?_without_test: %{expand: %%global build_test 0}} |
7 |
|
|
8 |
|
%define build_libmagic 0 |
9 |
|
%{?_with_libmagic: %{expand: %%global build_libmagic 1}} |
10 |
|
%{?_without_libmagic: %{expand: %%global build_libmagic 0}} |
11 |
|
|
12 |
%define _requires_exceptions BEGIN\\|mkinstalldirs\\|pear(\\|/usr/bin/tclsh |
%define _requires_exceptions BEGIN\\|mkinstalldirs\\|pear(\\|/usr/bin/tclsh |
13 |
|
|
14 |
%define php5_common_major 5 |
%define php5_common_major 5 |
15 |
%define libname %mklibname php5_common %{php5_common_major} |
%define libname %mklibname php5_common %{php5_common_major} |
16 |
|
|
|
%define suhosin_version 0.9.10 |
|
|
|
|
17 |
Summary: The PHP5 scripting language |
Summary: The PHP5 scripting language |
18 |
Name: php |
Name: php |
19 |
Version: 5.3.14 |
Version: 5.4.3 |
20 |
Release: %mkrel 1 |
Release: %mkrel 1 |
21 |
|
Source0: http://se.php.net/distributions/php-%{version}.tar.gz |
22 |
Group: Development/PHP |
Group: Development/PHP |
23 |
License: PHP License |
License: PHP License |
24 |
URL: http://www.php.net |
URL: http://www.php.net |
|
Source0: http://se.php.net/distributions/php-%{version}.tar.gz |
|
25 |
Source1: php-test.ini |
Source1: php-test.ini |
26 |
Source2: maxlifetime |
Source2: maxlifetime |
27 |
Source3: php.crond |
Source3: php.crond |
28 |
Source4: php-fpm.init |
Source4: php-fpm.service |
29 |
Source5: php-fpm.sysconf |
Source5: php-fpm.sysconf |
30 |
Source6: php-fpm.logrotate |
Source6: php-fpm.logrotate |
31 |
Source7: php.ini |
# S7 comes from ext/fileinfo/create_data_file.php but could be removed someday |
32 |
# do replace a macro in zend.h, to copy a value instead of assigning it |
Source7: create_data_file.php |
|
# this seems suspicious |
|
33 |
Patch0: php-init.diff |
Patch0: php-init.diff |
34 |
Patch1: php-shared.diff |
Patch1: php-shared.diff |
|
Patch2: php-5.3.7RC1-autoconf26_check_revert.diff |
|
35 |
Patch3: php-libtool.diff |
Patch3: php-libtool.diff |
36 |
# See http://bugs.php.net/53436 |
Patch4: php-phpize.diff |
|
Patch4: php-5.3.4-phpize.patch |
|
37 |
Patch5: php-phpbuilddir.diff |
Patch5: php-phpbuilddir.diff |
38 |
# http://www.outoforder.cc/projects/apache/mod_transform/ |
# http://www.outoforder.cc/projects/apache/mod_transform/ |
39 |
# http://www.outoforder.cc/projects/apache/mod_transform/patches/php5-apache2-filters.patch |
# http://www.outoforder.cc/projects/apache/mod_transform/patches/php5-apache2-filters.patch |
42 |
Patch7: php-no_libedit.diff |
Patch7: php-no_libedit.diff |
43 |
Patch8: php-xmlrpc_epi.patch |
Patch8: php-xmlrpc_epi.patch |
44 |
Patch9: php-xmlrpc_no_rpath.diff |
Patch9: php-xmlrpc_no_rpath.diff |
|
Patch10: php-really_external_sqlite2.diff |
|
45 |
Patch11: php-5.3.8-bdb-5.2.diff |
Patch11: php-5.3.8-bdb-5.2.diff |
46 |
##################################################################### |
##################################################################### |
47 |
# Stolen from PLD |
# Stolen from PLD |
48 |
# Patch20: php-mail.diff |
Patch20: php-mail.diff |
49 |
Patch21: php-filter-shared.diff |
Patch21: php-filter-shared.diff |
50 |
Patch22: php-dba-link.patch |
Patch22: php-dba-link.patch |
51 |
Patch23: php-zlib-for-getimagesize.patch |
Patch23: php-zlib-for-getimagesize.patch |
|
Patch24: php-zlib.patch |
|
52 |
Patch25: php-5.3.10-external_libzip.diff |
Patch25: php-5.3.10-external_libzip.diff |
53 |
Patch26: php-5.3.9RC2-mcrypt-libs.diff |
Patch26: php-5.3.9RC2-mcrypt-libs.diff |
54 |
# for kolab2 |
# for kolab2 |
57 |
# P51 was taken from http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/php/patches/php-5.3.2/ |
# P51 was taken from http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/php/patches/php-5.3.2/ |
58 |
Patch28: php-imap-myrights.diff |
Patch28: php-imap-myrights.diff |
59 |
Patch29: php-5.3.x-fpm-0.6.5-shared.diff |
Patch29: php-5.3.x-fpm-0.6.5-shared.diff |
60 |
Patch30: php-5.3.x-fpm-0.4-mga_conf.diff |
Patch30: php-5.3.x-fpm-0.6.5-mdv_conf.diff |
61 |
##################################################################### |
##################################################################### |
62 |
# stolen from debian |
# stolen from debian |
63 |
Patch50: php-session.save_path.diff |
Patch50: php-session.save_path.diff |
66 |
Patch52: php-5.3.9RC2-fix_broken_sha-2_test.diff |
Patch52: php-5.3.9RC2-fix_broken_sha-2_test.diff |
67 |
##################################################################### |
##################################################################### |
68 |
# Stolen from fedora |
# Stolen from fedora |
69 |
Patch102: php-5.3.0-install.patch |
Patch101: php-cxx.diff |
70 |
|
Patch102: php-install.diff |
71 |
|
Patch105: php-umask.diff |
72 |
# Fixes for extension modules |
# Fixes for extension modules |
73 |
Patch112: php-4.3.11-shutdown.patch |
Patch111: php-5.3.6-jpegversion.patch |
74 |
|
Patch113: php-libc-client.diff |
75 |
|
Patch114: php-no_pam_in_c-client.diff |
76 |
# Functional changes |
# Functional changes |
77 |
Patch115: php-5.0.4-dlopen.patch |
Patch115: php-dlopen.diff |
78 |
# Fix bugs |
# Fix bugs |
79 |
Patch120: php-5.0.4-tests-wddx.patch |
Patch120: php-tests-wddx.diff |
80 |
Patch121: php-bug43221.diff |
Patch121: php-bug43221.diff |
81 |
Patch123: php-bug43589.diff |
Patch123: php-bug43589.diff |
|
Patch224: php-5.1.0RC6-CVE-2005-3388.diff |
|
82 |
Patch226: php-no-fvisibility_hidden_fix.diff |
Patch226: php-no-fvisibility_hidden_fix.diff |
83 |
Patch227: php-5.3.0RC1-enchant_lib64_fix.diff |
Patch227: php-5.3.0RC1-enchant_lib64_fix.diff |
84 |
Patch228: php-5.3.0RC2-xmlrpc-epi_fix.diff |
Patch228: php-5.3.0RC2-xmlrpc-epi_fix.diff |
85 |
Patch230: php-5.3.10-add-missing-function-argument.patch |
Patch302: php-no_egg.diff |
86 |
# http://www.suhosin.org/ |
Patch303: php-5.4.3-mageia-logo.patch |
|
Patch301: suhosin-patch-5.3.11RC1-%{suhosin_version}.diff |
|
|
Patch302: php-5.3.9-no_egg.diff |
|
|
Patch303: php-5.3.9-mageia-logo.patch |
|
|
Patch304: php-5.3.11RC1-aconf26x.patch |
|
|
|
|
|
|
|
87 |
BuildRequires: apache-devel >= 2.2.0 |
BuildRequires: apache-devel >= 2.2.0 |
88 |
#BuildRequires: aspell-devel |
#BuildRequires: aspell-devel |
89 |
BuildRequires: autoconf |
BuildRequires: autoconf |
90 |
|
BuildRequires: automake |
91 |
|
BuildRequires: libtool |
92 |
BuildRequires: bison |
BuildRequires: bison |
93 |
BuildRequires: byacc |
BuildRequires: byacc |
94 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
100 |
BuildRequires: expat-devel |
BuildRequires: expat-devel |
101 |
BuildRequires: file |
BuildRequires: file |
102 |
BuildRequires: flex |
BuildRequires: flex |
103 |
BuildRequires: freetds-devel >= 0.63 |
BuildRequires: freetds-devel >= 0.63 |
104 |
BuildRequires: freetype2-devel |
BuildRequires: freetype2-devel |
105 |
BuildRequires: gdbm-devel |
BuildRequires: gdbm-devel |
106 |
BuildRequires: gd-devel >= 2.0.33 |
BuildRequires: gd-devel >= 2.0.33 |
107 |
BuildRequires: gettext-devel |
BuildRequires: gettext-devel |
108 |
BuildRequires: gmp-devel |
BuildRequires: gmp-devel |
109 |
BuildRequires: gpm-devel |
BuildRequires: gpm-devel |
110 |
BuildRequires: icu-devel >= 3.4 |
BuildRequires: icu-devel >= 49.0 |
111 |
BuildRequires: lemon |
BuildRequires: lemon |
112 |
BuildRequires: libjpeg-devel |
BuildRequires: libjpeg-devel |
113 |
BuildRequires: libldap-devel |
BuildRequires: libldap-devel |
119 |
BuildRequires: libxml2-devel >= 2.6 |
BuildRequires: libxml2-devel >= 2.6 |
120 |
BuildRequires: libxpm-devel |
BuildRequires: libxpm-devel |
121 |
BuildRequires: libxslt-devel >= 1.1.0 |
BuildRequires: libxslt-devel >= 1.1.0 |
122 |
BuildRequires: libzip-devel >= 0.10.1 |
BuildRequires: libzip-devel >= 0.10.1 |
123 |
BuildRequires: mbfl-devel >= 1.1.0 |
BuildRequires: mbfl-devel >= 1.2.0 |
124 |
BuildRequires: mysql-devel >= 4.1.7 |
BuildRequires: mysql-devel >= 4.1.7 |
125 |
BuildRequires: ncurses-devel |
BuildRequires: ncurses-devel |
126 |
BuildRequires: net-snmp-devel |
BuildRequires: net-snmp-devel |
127 |
BuildRequires: net-snmp-mibs |
BuildRequires: net-snmp-mibs |
128 |
BuildRequires: onig-devel >= 5.9.2 |
BuildRequires: onig-devel >= 5.9.2 |
129 |
BuildRequires: openssl >= 0.9.7 |
BuildRequires: openssl |
130 |
BuildRequires: openssl-devel >= 0.9.7 |
BuildRequires: openssl-devel |
131 |
BuildRequires: pam-devel |
BuildRequires: pam-devel |
132 |
BuildRequires: pcre-devel >= 6.6 |
BuildRequires: pcre-devel >= 6.6 |
133 |
BuildRequires: postgresql-devel |
BuildRequires: postgresql-devel |
135 |
BuildRequires: readline-devel |
BuildRequires: readline-devel |
136 |
BuildRequires: recode-devel |
BuildRequires: recode-devel |
137 |
BuildRequires: sqlite3-devel |
BuildRequires: sqlite3-devel |
|
BuildRequires: sqlite-devel |
|
138 |
BuildRequires: t1lib-devel |
BuildRequires: t1lib-devel |
139 |
BuildRequires: tidy-devel |
BuildRequires: tidy-devel |
140 |
BuildRequires: unixODBC-devel >= 2.2.1 |
BuildRequires: unixODBC-devel >= 2.2.1 |
141 |
BuildRequires: xmlrpc-epi-devel |
BuildRequires: xmlrpc-epi-devel |
142 |
Obsoletes: php-pspell |
Obsoletes: php-pspell |
143 |
|
%if %{build_libmagic} |
144 |
|
BuildRequires: file-devel |
145 |
|
%endif |
146 |
Epoch: 3 |
Epoch: 3 |
147 |
|
|
|
|
|
148 |
# stupid postgresql... stupid build system... |
# stupid postgresql... stupid build system... |
149 |
# this is needed due to the postgresql packaging and due to bugs like this: |
# this is needed due to the postgresql packaging and due to bugs like this: |
150 |
# https://qa.mandriva.org/show_bug.cgi?id=52527 |
# https://qa.mandriva.org/show_bug.cgi?id=52527 |
156 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
157 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
158 |
|
|
159 |
This version of php has the suhosin patch %{suhosin_version} applied. Please |
Please report bugs here: http://bugs.mafgeia.org/ so that the official maintainer |
160 |
report bugs to the official maintainer of |
of this Mageia package can help you. |
|
this Mageia package. More information regarding the |
|
|
suhosin patch %{suhosin_version} here: http://www.suhosin.org/ |
|
161 |
|
|
162 |
%package ini |
%package ini |
163 |
Summary: INI files for PHP |
Summary: INI files for PHP |
166 |
%description ini |
%description ini |
167 |
The php-ini package contains the ini file required for PHP. |
The php-ini package contains the ini file required for PHP. |
168 |
|
|
169 |
|
|
170 |
%package cli |
%package cli |
171 |
Summary: PHP5 CLI interface |
Summary: PHP5 CLI interface |
172 |
Group: Development/Other |
Group: Development/Other |
182 |
Requires: php-pcre >= %{epoch}:%{version} |
Requires: php-pcre >= %{epoch}:%{version} |
183 |
Requires: php-posix >= %{epoch}:%{version} |
Requires: php-posix >= %{epoch}:%{version} |
184 |
Requires: php-session >= %{epoch}:%{version} |
Requires: php-session >= %{epoch}:%{version} |
185 |
Suggests: php-suhosin >= 0.9.29 |
Suggests: php-suhosin >= 0.9.33 |
186 |
Requires: php-sysvsem >= %{epoch}:%{version} |
Requires: php-sysvsem >= %{epoch}:%{version} |
187 |
Requires: php-sysvshm >= %{epoch}:%{version} |
Requires: php-sysvshm >= %{epoch}:%{version} |
188 |
Requires: php-timezonedb >= 3:2009.10 |
Requires: php-timezonedb >= 3:2009.10 |
199 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
200 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
201 |
|
|
202 |
This package contains a command-line (CLI) version of php. |
This package contains a command-line (CLI) version of php. You must also |
203 |
|
install libphp5_common. If you need apache module support, you also need to |
204 |
|
install the apache-mod_php package. |
205 |
|
|
206 |
This version of php has the suhosin patch %{suhosin_version} applied. Please |
Please report bugs here: http://bugs.mageia.org/ so that the official maintainer |
207 |
report bugs here: http://bugs.mageia.org/ so that the official maintainer of |
of this Mageia package can help you. |
|
this Mageia package can help you. More information regarding the |
|
|
suhosin patch %{suhosin_version} here: http://www.suhosin.org/ |
|
208 |
|
|
209 |
%package cgi |
%package cgi |
210 |
Summary: PHP5 CGI interface |
Summary: PHP5 CGI interface |
221 |
Requires: php-pcre >= %{epoch}:%{version} |
Requires: php-pcre >= %{epoch}:%{version} |
222 |
Requires: php-posix >= %{epoch}:%{version} |
Requires: php-posix >= %{epoch}:%{version} |
223 |
Requires: php-session >= %{epoch}:%{version} |
Requires: php-session >= %{epoch}:%{version} |
224 |
Requires: php-suhosin >= 0.9.29 |
Suggests: php-suhosin >= 0.9.33 |
225 |
Requires: php-sysvsem >= %{epoch}:%{version} |
Requires: php-sysvsem >= %{epoch}:%{version} |
226 |
Requires: php-sysvshm >= %{epoch}:%{version} |
Requires: php-sysvshm >= %{epoch}:%{version} |
227 |
Requires: php-timezonedb >= 3:2009.10 |
Requires: php-timezonedb >= 3:2009.10 |
243 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
244 |
|
|
245 |
This package contains a standalone (CGI) version of php with FastCGI support. |
This package contains a standalone (CGI) version of php with FastCGI support. |
246 |
|
You must also install libphp5_common. If you need apache module support, you |
247 |
|
also need to install the apache-mod_php package. |
248 |
|
|
249 |
This version of php has the suhosin patch %{suhosin_version} applied. Please |
Please report bugs here: http://bugs.mageia.org/ so that the official maintainer |
250 |
report bugs here: http://bugs.mageia.org/ so that the official maintainer of |
of this Mageia package can help you. |
|
this Mageia package can help you. More information regarding the |
|
|
suhosin patch %{suhosin_version} here: http://www.suhosin.org/ |
|
|
|
|
|
%package fpm |
|
|
Summary: PHP5 FastCGI Process Manager |
|
|
Group: Development/Other |
|
|
Requires(post): rpm-helper |
|
|
Requires(preun): rpm-helper |
|
|
Requires(pre): rpm-helper |
|
|
Requires(postun): rpm-helper |
|
|
# for apache user |
|
|
Requires(pre): webserver-base |
|
|
Requires: %{libname} >= %{epoch}:%{version} |
|
|
Requires: php-ctype >= %{epoch}:%{version} |
|
|
Requires: php-filter >= %{epoch}:%{version} |
|
|
Requires: php-ftp >= %{epoch}:%{version} |
|
|
Requires: php-gettext >= %{epoch}:%{version} |
|
|
Requires: php-hash >= %{epoch}:%{version} |
|
|
Requires: php-ini >= %{version} |
|
|
Requires: php-json >= %{epoch}:%{version} |
|
|
Requires: php-openssl >= %{epoch}:%{version} |
|
|
Requires: php-pcre >= %{epoch}:%{version} |
|
|
Requires: php-posix >= %{epoch}:%{version} |
|
|
Requires: php-session >= %{epoch}:%{version} |
|
|
Requires: php-suhosin >= 0.9.29 |
|
|
Requires: php-sysvsem >= %{epoch}:%{version} |
|
|
Requires: php-sysvshm >= %{epoch}:%{version} |
|
|
Requires: php-timezonedb >= 3:2009.10 |
|
|
Requires: php-tokenizer >= %{epoch}:%{version} |
|
|
Requires: php-xmlreader >= %{epoch}:%{version} |
|
|
Requires: php-xmlwriter >= %{epoch}:%{version} |
|
|
Requires: php-zlib >= %{epoch}:%{version} |
|
|
Requires: php-xml >= %{epoch}:%{version} |
|
|
Provides: php = %{epoch}:%{version} |
|
|
|
|
|
%description fpm |
|
|
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
|
|
integration for several commercial and non-commercial database management |
|
|
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
|
|
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
|
|
|
|
|
This package contains the FastCGI Process Manager. |
|
|
|
|
|
This version of php has the suhosin patch %{suhosin_version} applied. Please |
|
|
report bugs here: http://bugs.mageia.org/ so that the official maintainer of |
|
|
this Mageia package can help you. More information regarding the |
|
|
suhosin patch %{suhosin_version} here: http://www.suhosin.org/ |
|
|
|
|
|
%package -n apache-mod_php |
|
|
Summary: The PHP5 HTML-embedded scripting language for use with apache |
|
|
Group: System/Servers |
|
|
Requires(pre): rpm-helper |
|
|
Requires(postun): rpm-helper |
|
|
Requires: apache-mpm |
|
|
#TODO are theses really required ? |
|
|
Requires: php-ctype >= %{epoch}:%{version} |
|
|
Requires: php-filter >= %{epoch}:%{version} |
|
|
Requires: php-ftp >= %{epoch}:%{version} |
|
|
Requires: php-gettext >= %{epoch}:%{version} |
|
|
Requires: php-hash >= %{epoch}:%{version} |
|
|
Requires: php-ini >= %{version} |
|
|
Requires: php-json >= %{epoch}:%{version} |
|
|
Requires: php-openssl >= %{epoch}:%{version} |
|
|
Requires: php-pcre >= %{epoch}:%{version} |
|
|
Requires: php-posix >= %{epoch}:%{version} |
|
|
Requires: php-session >= %{epoch}:%{version} |
|
|
Suggests: php-suhosin >= 0.9.29 |
|
|
Requires: php-sysvsem >= %{epoch}:%{version} |
|
|
Requires: php-sysvshm >= %{epoch}:%{version} |
|
|
Requires: php-tokenizer >= %{epoch}:%{version} |
|
|
Requires: php-xmlreader >= %{epoch}:%{version} |
|
|
Requires: php-xmlwriter >= %{epoch}:%{version} |
|
|
Requires: php-zlib >= %{epoch}:%{version} |
|
|
Requires: php-xml >= %{epoch}:%{version} |
|
|
Requires: php-timezonedb |
|
|
# php is not fully thread safe |
|
|
# http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 |
|
|
# http://stackoverflow.com/questions/681081/is-php-thread-safe |
|
|
Conflicts: apache-mpm-worker |
|
|
Conflicts: apache-mpm-event |
|
|
Epoch: %{epoch} |
|
|
|
|
|
%description -n apache-mod_php |
|
|
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
|
|
integration for several commercial and non-commercial database management |
|
|
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
|
|
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
|
|
|
|
|
This package contains the PHP apache module. |
|
|
|
|
|
This version of php has the suhosin patch %{suhosin_version} applied. Please |
|
|
report bugs here: http://bugs.mageia.org/ so that the official maintainer of |
|
|
this Mageia package can help you. More information regarding the |
|
|
suhosin patch %{suhosin_version} here: http://www.suhosin.org/ |
|
251 |
|
|
252 |
%package -n %{libname} |
%package -n %{libname} |
253 |
Summary: Shared library for PHP5 |
Summary: Shared library for PHP5 |
254 |
Group: Development/Other |
Group: Development/Other |
255 |
Provides: php-pcre = %{epoch}:%{version} |
Provides: php-pcre = %{epoch}:%{version} |
256 |
Provides: php-simplexml = %{epoch}:%{version} |
Provides: php-simplexml = %{epoch}:%{version} |
257 |
|
Requires: systemd-units |
258 |
|
Requires(post): systemd-units |
259 |
|
Requires(preun): systemd-units |
260 |
|
Requires(postun): systemd-units |
261 |
|
|
262 |
%description -n %{libname} |
%description -n %{libname} |
263 |
This package provides the common files to run with different implementations of |
This package provides the common files to run with different implementations of |
264 |
PHP5. |
PHP5. You need this package if you install the php standalone package or a |
265 |
|
webserver with php support (ie: apache-mod_php). |
266 |
|
|
267 |
|
Please report bugs here: http://bugs.mageia.org/ so that the official maintainer |
268 |
|
of this Mageia package can help you. |
269 |
|
|
270 |
%package devel |
%package devel |
271 |
Summary: Development package for PHP5 |
Summary: Development package for PHP5 |
272 |
Group: Development/C |
Group: Development/C |
273 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
274 |
Requires: autoconf |
Requires: autoconf automake libtool |
|
Requires: automake |
|
|
Requires: libtool |
|
275 |
Requires: bison |
Requires: bison |
276 |
Requires: byacc |
Requires: byacc |
277 |
Requires: chrpath |
Requires: chrpath |
310 |
This is a dynamic shared object (DSO) for PHP that will add zlib compression |
This is a dynamic shared object (DSO) for PHP that will add zlib compression |
311 |
support to PHP. |
support to PHP. |
312 |
|
|
313 |
|
%package doc |
314 |
|
Summary: Documentation for PHP |
315 |
|
Group: Development/PHP |
316 |
|
|
317 |
|
%description doc |
318 |
|
Documentation for php. |
319 |
|
|
320 |
%package bcmath |
%package bcmath |
321 |
Summary: The bcmath module for PHP |
Summary: The bcmath module for PHP |
322 |
Group: Development/PHP |
Group: Development/PHP |
330 |
supports numbers of any size and precision, represented as strings. |
supports numbers of any size and precision, represented as strings. |
331 |
|
|
332 |
%package bz2 |
%package bz2 |
333 |
Summary: Bzip2 extension module for PHP |
Summary: Bzip2 extension module for PHP |
334 |
Group: Development/PHP |
Group: Development/PHP |
335 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
336 |
|
|
342 |
compressed files. |
compressed files. |
343 |
|
|
344 |
%package calendar |
%package calendar |
345 |
Summary: Calendar extension module for PHP |
Summary: Calendar extension module for PHP |
346 |
Group: Development/PHP |
Group: Development/PHP |
347 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
348 |
|
|
361 |
included in these instructions, and are in quotes. |
included in these instructions, and are in quotes. |
362 |
|
|
363 |
%package ctype |
%package ctype |
364 |
Summary: Ctype extension module for PHP |
Summary: Ctype extension module for PHP |
365 |
Group: Development/PHP |
Group: Development/PHP |
366 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
367 |
|
|
373 |
setlocale()). |
setlocale()). |
374 |
|
|
375 |
%package curl |
%package curl |
376 |
Summary: Curl extension module for PHP |
Summary: Curl extension module for PHP |
377 |
Group: Development/PHP |
Group: Development/PHP |
378 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
379 |
|
|
693 |
|
|
694 |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
695 |
|
|
|
|
|
696 |
%package odbc |
%package odbc |
697 |
Summary: ODBC extension module for PHP |
Summary: ODBC extension module for PHP |
698 |
Group: Development/PHP |
Group: Development/PHP |
876 |
#This is a dynamic shared object (DSO) for PHP that will add pspell support to |
#This is a dynamic shared object (DSO) for PHP that will add pspell support to |
877 |
#PHP. |
#PHP. |
878 |
|
|
879 |
These functions allow you to check the spelling of a word and offer |
#These functions allow you to check the spelling of a word and offer |
880 |
suggestions. |
#suggestions. |
881 |
|
|
882 |
%package readline |
%package readline |
883 |
Summary: Readline extension module for PHP |
Summary: Readline extension module for PHP |
914 |
%package session |
%package session |
915 |
Summary: Session extension module for PHP |
Summary: Session extension module for PHP |
916 |
Group: Development/PHP |
Group: Development/PHP |
917 |
Requires(pre): rpm-helper |
Requires(pre): rpm-helper |
918 |
Requires(postun): rpm-helper |
Requires(postun): rpm-helper |
|
# for apache user |
|
|
Requires(pre): webserver-base |
|
919 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
920 |
|
|
921 |
%description session |
%description session |
980 |
Summary: SQLite database bindings for PHP |
Summary: SQLite database bindings for PHP |
981 |
Group: Development/PHP |
Group: Development/PHP |
982 |
Requires: php-pdo >= %{epoch}:%{version} |
Requires: php-pdo >= %{epoch}:%{version} |
|
Obsoletes: php-sqlite |
|
|
Provides: php-sqlite = %{epoch}:%{version} |
|
983 |
Requires: %{libname} >= %{epoch}:%{version} |
Requires: %{libname} >= %{epoch}:%{version} |
984 |
|
Obsoletes: %name-sqlite |
985 |
|
|
986 |
%description sqlite3 |
%description sqlite3 |
987 |
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a |
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a |
993 |
is the server. The SQLite library reads and writes directly to and from the |
is the server. The SQLite library reads and writes directly to and from the |
994 |
database files on disk. |
database files on disk. |
995 |
|
|
|
%package sqlite |
|
|
Summary: SQLite v2 database bindings for PHP |
|
|
Group: Development/PHP |
|
|
Requires: php-pdo >= %{epoch}:%{version} |
|
|
Requires: %{libname} >= %{epoch}:%{version} |
|
|
|
|
|
%description sqlite |
|
|
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a |
|
|
C library that implements an embeddable SQL database engine. Programs that link |
|
|
with the SQLite library can have SQL database access without running a separate |
|
|
RDBMS process. |
|
|
|
|
|
SQLite is not a client library used to connect to a big database server. SQLite |
|
|
is the server. The SQLite library reads and writes directly to and from the |
|
|
database files on disk. |
|
|
|
|
996 |
%package sybase_ct |
%package sybase_ct |
997 |
Summary: Sybase extension module for PHP |
Summary: Sybase extension module for PHP |
998 |
Group: Development/PHP |
Group: Development/PHP |
1127 |
This is a dynamic shared object (DSO) for PHP that will add zip support to |
This is a dynamic shared object (DSO) for PHP that will add zip support to |
1128 |
create and read zip files using the libzip library. |
create and read zip files using the libzip library. |
1129 |
|
|
1130 |
|
%package fpm |
1131 |
|
Summary: PHP5 FastCGI Process Manager |
1132 |
|
Group: Development/Other |
1133 |
|
Requires(post): rpm-helper |
1134 |
|
Requires(preun): rpm-helper |
1135 |
|
Requires(pre): rpm-helper |
1136 |
|
Requires(postun): rpm-helper |
1137 |
|
Requires: %{libname} >= %{epoch}:%{version} |
1138 |
|
Requires: php-ctype >= %{epoch}:%{version} |
1139 |
|
Requires: php-filter >= %{epoch}:%{version} |
1140 |
|
Requires: php-ftp >= %{epoch}:%{version} |
1141 |
|
Requires: php-gettext >= %{epoch}:%{version} |
1142 |
|
Requires: php-hash >= %{epoch}:%{version} |
1143 |
|
Requires: php-ini >= %{version} |
1144 |
|
Requires: php-json >= %{epoch}:%{version} |
1145 |
|
Requires: php-openssl >= %{epoch}:%{version} |
1146 |
|
Requires: php-pcre >= %{epoch}:%{version} |
1147 |
|
Requires: php-posix >= %{epoch}:%{version} |
1148 |
|
Requires: php-session >= %{epoch}:%{version} |
1149 |
|
Suggests: php-suhosin >= 0.9.33 |
1150 |
|
Requires: php-sysvsem >= %{epoch}:%{version} |
1151 |
|
Requires: php-sysvshm >= %{epoch}:%{version} |
1152 |
|
Requires: php-timezonedb >= 3:2009.10 |
1153 |
|
Requires: php-tokenizer >= %{epoch}:%{version} |
1154 |
|
Requires: php-xmlreader >= %{epoch}:%{version} |
1155 |
|
Requires: php-xmlwriter >= %{epoch}:%{version} |
1156 |
|
Requires: php-zlib >= %{epoch}:%{version} |
1157 |
|
Requires: php-xml >= %{epoch}:%{version} |
1158 |
|
Provides: php = %{epoch}:%{version} |
1159 |
|
|
1160 |
|
%description fpm |
1161 |
|
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
1162 |
|
integration for several commercial and non-commercial database management |
1163 |
|
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
1164 |
|
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
1165 |
|
|
1166 |
|
This package contains the FastCGI Process Manager. You must also install |
1167 |
|
libphp5_common. |
1168 |
|
|
1169 |
|
Please report bugs here: http://bugs.mageia.org/ so that the official maintainer |
1170 |
|
of this Mageia package can help you. |
1171 |
|
|
1172 |
%prep |
%prep |
1173 |
|
|
1174 |
%setup -q -n php-%{version} |
%setup -q -n php-%{version} |
1175 |
|
|
1176 |
|
%if %{build_libmagic} |
1177 |
|
if ! [ -f %{_datadir}/misc/magic.mgc ]; then |
1178 |
|
echo "ERROR: the %{_datadir}/misc/magic.mgc file is needed" |
1179 |
|
exit 1 |
1180 |
|
fi |
1181 |
|
%endif |
1182 |
|
|
1183 |
# the ".droplet" suffix is here to nuke the backups later..., we don't want those in php-devel |
# the ".droplet" suffix is here to nuke the backups later..., we don't want those in php-devel |
1184 |
|
|
1185 |
%patch0 -p0 -b .init.droplet |
%patch0 -p0 -b .init.droplet |
1186 |
%patch1 -p1 -b .shared.droplet |
%patch1 -p1 -b .shared.droplet |
|
%patch2 -p0 -b .autoconf26_check_revert.droplet |
|
1187 |
%patch3 -p0 -b .libtool.droplet |
%patch3 -p0 -b .libtool.droplet |
1188 |
%patch4 -p0 -b .phpize.droplet |
%patch4 -p1 -b .phpize.droplet |
1189 |
%patch5 -p1 -b .phpbuilddir.droplet |
%patch5 -p1 -b .phpbuilddir.droplet |
1190 |
%patch6 -p1 -b .apache2-filters.droplet |
%patch6 -p1 -b .apache2-filters.droplet |
1191 |
%patch7 -p0 -b .no_libedit.droplet |
%patch7 -p1 -b .no_libedit.droplet |
1192 |
%patch8 -p0 -b .xmlrpc_epi_header |
%patch8 -p0 -b .xmlrpc_epi_header |
1193 |
%patch9 -p0 -b .xmlrpc_no_rpath.droplet |
%patch9 -p0 -b .xmlrpc_no_rpath.droplet |
|
%patch10 -p0 -b .really_external_sqlite2.droplet |
|
1194 |
%patch11 -p0 -b .bdb-5.2.droplet |
%patch11 -p0 -b .bdb-5.2.droplet |
1195 |
|
|
1196 |
##################################################################### |
##################################################################### |
1197 |
# Stolen from PLD |
# Stolen from PLD |
1198 |
##patch20 -p0 -b .mail.droplet |
%patch20 -p1 -b .mail.droplet |
1199 |
%patch21 -p0 -b .filter-shared.droplet |
%patch21 -p0 -b .filter-shared.droplet |
1200 |
%patch22 -p0 -b .dba-link.droplet |
%patch22 -p0 -b .dba-link.droplet |
1201 |
%patch23 -p0 -b .zlib-for-getimagesize.droplet |
%patch23 -p0 -b .zlib-for-getimagesize.droplet |
|
%patch24 -p1 -b .zlib.droplet |
|
1202 |
%patch25 -p1 -b .external_libzip.droplet |
%patch25 -p1 -b .external_libzip.droplet |
1203 |
%patch26 -p0 -b .mcrypt-libs.droplet |
%patch26 -p0 -b .mcrypt-libs.droplet |
1204 |
# for kolab2 |
# for kolab2 |
1205 |
%patch27 -p1 -b .imap-annotation.droplet |
%patch27 -p1 -b .imap-annotation.droplet |
1206 |
%patch28 -p1 -b .imap-myrights.droplet |
%patch28 -p1 -b .imap-myrights.droplet |
1207 |
# fpm stuff |
# fpm stuff |
1208 |
%patch29 -p1 |
%patch29 -p1 -b .shared-fpm.droplet |
1209 |
%patch30 -p0 |
%patch30 -p1 -b .fpmmdv.droplet |
1210 |
|
|
1211 |
##################################################################### |
##################################################################### |
1212 |
# stolen from debian |
# stolen from debian |
1213 |
%patch50 -p0 -b .session.save_path.droplet |
%patch50 -p1 -b .session.save_path.droplet |
1214 |
%patch51 -p0 -b .exif_nesting_level.droplet |
%patch51 -p0 -b .exif_nesting_level.droplet |
1215 |
%patch52 -p0 -b .fix_broken_sha-2_test.droplet |
%patch52 -p0 -b .fix_broken_sha-2_test.droplet |
1216 |
|
|
1217 |
##################################################################### |
##################################################################### |
1218 |
# Stolen from fedora |
# Stolen from fedora |
1219 |
%patch102 -p1 -b .install.droplet |
%patch101 -p1 -b .cxx.droplet |
1220 |
%patch112 -p1 -b .shutdown.droplet |
%patch102 -p0 -b .install.droplet |
1221 |
%patch115 -p1 -b .dlopen.droplet |
%patch105 -p1 -b .umask.droplet |
1222 |
|
%patch111 -p0 -b .jpegversion |
1223 |
|
%patch113 -p0 -b .libc-client-php.droplet |
1224 |
|
%patch114 -p0 -b .no_pam_in_c-client.droplet |
1225 |
|
%patch115 -p0 -b .dlopen.droplet |
1226 |
|
|
1227 |
# upstream fixes |
# upstream fixes |
1228 |
%patch120 -p1 -b .tests-wddx.droplet |
%patch120 -p1 -b .tests-wddx.droplet |
1229 |
%patch121 -p0 -b .bug43221.droplet |
%patch121 -p0 -b .bug43221.droplet |
1230 |
%patch123 -p0 -b .bug43589.droplet |
%patch123 -p0 -b .bug43589.droplet |
|
%patch224 -p0 -b .CVE-2005-3388.droplet |
|
1231 |
%patch226 -p0 -b .no-fvisibility_hidden.droplet |
%patch226 -p0 -b .no-fvisibility_hidden.droplet |
1232 |
%patch227 -p0 -b .enchant_lib64_fix.droplet |
%patch227 -p0 -b .enchant_lib64_fix.droplet |
1233 |
%patch228 -p0 -b .xmlrpc-epi_fix.droplet |
%patch228 -p0 -b .xmlrpc-epi_fix.droplet |
|
%patch230 -p1 -b .func_arg.droplet |
|
1234 |
|
|
|
%patch301 -p1 -b .suhosin.droplet |
|
1235 |
%patch302 -p1 -b .no_egg.droplet |
%patch302 -p1 -b .no_egg.droplet |
1236 |
%patch303 -p1 -b .mageia_logo.droplet |
%patch303 -p1 -b .mdv_logo.droplet |
1237 |
%patch304 -p1 -b .aconf26x.droplet |
cp %{SOURCE1} php-test.ini |
1238 |
|
cp %{SOURCE2} maxlifetime |
1239 |
|
cp %{SOURCE3} php.crond |
1240 |
|
cp %{SOURCE4} php-fpm.service |
1241 |
|
cp %{SOURCE5} php-fpm.sysconf |
1242 |
|
cp %{SOURCE6} php-fpm.logrotate |
1243 |
|
cp %{SOURCE7} create_data_file.php |
1244 |
|
|
1245 |
# nuke bogus checks because i fixed this years ago in our recode package |
# lib64 hack |
1246 |
|
perl -p -i -e "s|/usr/lib|%{_libdir}|" php.crond |
1247 |
|
|
1248 |
|
# nuke bogus checks becuase i fixed this years ago in our recode package |
1249 |
rm -f ext/recode/config9.m4 |
rm -f ext/recode/config9.m4 |
1250 |
|
|
1251 |
# Change perms otherwise rpm would get fooled while finding requires |
# Change perms otherwise rpm would get fooled while finding requires |
1253 |
find -name "*.php*" | xargs chmod 644 |
find -name "*.php*" | xargs chmod 644 |
1254 |
find -name "*README*" | xargs chmod 644 |
find -name "*README*" | xargs chmod 644 |
1255 |
|
|
1256 |
|
mkdir -p php-devel/extensions |
1257 |
|
mkdir -p php-devel/sapi |
1258 |
|
|
1259 |
|
# Install test files in php-devel |
1260 |
|
cp -a tests php-devel |
1261 |
|
|
1262 |
|
cp -dpR ext/* php-devel/extensions/ |
1263 |
|
rm -f php-devel/extensions/informix/stub.c |
1264 |
|
rm -f php-devel/extensions/standard/.deps |
1265 |
|
rm -f php-devel/extensions/skeleton/EXPERIMENTAL |
1266 |
|
|
1267 |
|
# SAPI |
1268 |
|
cp -dpR sapi/* php-devel/sapi/ |
1269 |
|
rm -f php-devel/sapi/thttpd/stub.c |
1270 |
|
rm -f php-devel/sapi/cgi/php.sym |
1271 |
|
rm -f php-devel/sapi/fastcgi/php.sym |
1272 |
|
rm -f php-devel/sapi/pi3web/php.sym |
1273 |
|
|
1274 |
|
# cleanup |
1275 |
|
find php-devel -name "*.droplet" | xargs rm -f |
1276 |
|
|
1277 |
|
# don't ship MS Windows source |
1278 |
|
rm -rf php-devel/extensions/com_dotnet |
1279 |
|
|
1280 |
|
# likewise with these: |
1281 |
|
find php-devel -name "*.dsp" | xargs rm -f |
1282 |
|
find php-devel -name "*.mak" | xargs rm -f |
1283 |
|
find php-devel -name "*.w32" | xargs rm |
1284 |
|
|
1285 |
# make sure using system libs |
# maek sure using system libs |
1286 |
rm -rf ext/pcre/pcrelib |
rm -rf ext/pcre/pcrelib |
1287 |
rm -rf ext/pdo_sqlite/sqlite |
rm -rf ext/pdo_sqlite/sqlite |
1288 |
rm -rf ext/xmlrpc/libxmlrpc |
rm -rf ext/xmlrpc/libxmlrpc |
1299 |
export CXXFLAGS="${CFLAGS}" |
export CXXFLAGS="${CFLAGS}" |
1300 |
export RPM_OPT_FLAGS="${CFLAGS}" |
export RPM_OPT_FLAGS="${CFLAGS}" |
1301 |
|
|
1302 |
|
cat > php-devel/buildext <<EOF |
1303 |
|
#!/bin/bash |
1304 |
|
gcc -Wall -fPIC -shared $CFLAGS \\ |
1305 |
|
-I. \`%{_bindir}/php-config --includes\` \\ |
1306 |
|
-I%{_includedir}/libxml2 \\ |
1307 |
|
-I%{_includedir}/freetype \\ |
1308 |
|
-I%{_includedir}/openssl \\ |
1309 |
|
-I%{_usrsrc}/php-devel/ext \\ |
1310 |
|
-I%{_includedir}/\$1 \\ |
1311 |
|
\$4 \$2 -o \$1.so \$3 -lc |
1312 |
|
EOF |
1313 |
|
|
1314 |
|
chmod 755 php-devel/buildext |
1315 |
|
|
1316 |
#export PHP_AUTOCONF=autoconf-2.13 |
#export PHP_AUTOCONF=autoconf-2.13 |
1317 |
rm -f configure |
rm -f configure |
1318 |
rm -rf autom4te.cache |
rm -rf autom4te.cache |
1330 |
|
|
1331 |
# never use "--disable-rpath", it does the opposite |
# never use "--disable-rpath", it does the opposite |
1332 |
|
|
1333 |
# Shell function to configure and build a PHP tree. |
# Configure php5 |
1334 |
build() { |
# FIXME switch to external gd (--with-gd=shared,%_prefix) once php bug #60108 is fixed |
1335 |
ln -sf ../configure . |
for i in fpm cgi cli apxs; do |
1336 |
./configure \ |
./configure \ |
1337 |
|
`[ $i = fpm ] && echo --disable-cli --enable-fpm --with-libxml-dir=%{_prefix} --with-fpm-user=apache --with-fpm-group=apache` \ |
1338 |
|
`[ $i = cgi ] && echo --disable-cli` \ |
1339 |
|
`[ $i = cli ] && echo --disable-cgi --enable-cli` \ |
1340 |
|
`[ $i = apxs ] && echo --with-apxs2=%{_sbindir}/apxs` \ |
1341 |
--build=%{_build} \ |
--build=%{_build} \ |
1342 |
--prefix=%{_prefix} \ |
--prefix=%{_prefix} \ |
1343 |
--exec-prefix=%{_prefix} \ |
--exec-prefix=%{_prefix} \ |
1360 |
--with-exec-dir=%{_bindir} \ |
--with-exec-dir=%{_bindir} \ |
1361 |
--with-regex=system \ |
--with-regex=system \ |
1362 |
--with-pcre-regex=%{_prefix} \ |
--with-pcre-regex=%{_prefix} \ |
1363 |
--with-freetype-dir=%{_prefix} \ |
--with-freetype-dir=%{_prefix} --with-zlib=%{_prefix} \ |
1364 |
--with-png-dir=%{_prefix} \ |
--with-png-dir=%{_prefix} \ |
1365 |
--with-pdo-odbc=unixODBC \ |
--with-pdo-odbc=unixODBC \ |
1366 |
--enable-magic-quotes \ |
--enable-magic-quotes \ |
1367 |
--enable-safe-mode \ |
--enable-safe-mode \ |
1368 |
--with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \ |
--with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \ |
1369 |
--with-openssl=shared,%{_prefix} \ |
--with-openssl=shared,%{_prefix} \ |
1370 |
--enable-libxml=shared --with-libxml-dir=%{_prefix} \ |
--enable-libxml=%{_prefix} --with-libxml-dir=%{_prefix} \ |
1371 |
--enable-mod_charset \ |
--enable-mod_charset \ |
1372 |
--without-pear \ |
--without-pear \ |
1373 |
--enable-bcmath=shared \ |
--enable-bcmath=shared \ |
1376 |
--enable-ctype=shared \ |
--enable-ctype=shared \ |
1377 |
--with-curl=shared,%{_prefix} --without-curlwrappers \ |
--with-curl=shared,%{_prefix} --without-curlwrappers \ |
1378 |
--enable-dba=shared --with-gdbm --with-db4 --with-cdb \ |
--enable-dba=shared --with-gdbm --with-db4 --with-cdb \ |
1379 |
--enable-dom=shared,%{_prefix} \ |
--enable-dom=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1380 |
--with-enchant=shared,%{_prefix} \ |
--with-enchant=shared,%{_prefix} \ |
1381 |
--enable-exif=shared \ |
--enable-exif=shared \ |
1382 |
--enable-fileinfo=shared \ |
--enable-fileinfo=shared \ |
1384 |
--enable-intl=shared --with-icu-dir=%{_prefix} \ |
--enable-intl=shared --with-icu-dir=%{_prefix} \ |
1385 |
--enable-json=shared \ |
--enable-json=shared \ |
1386 |
--with-openssl-dir=%{_prefix} --enable-ftp=shared \ |
--with-openssl-dir=%{_prefix} --enable-ftp=shared \ |
1387 |
--with-gd=shared,%{_prefix} --with-jpeg-dir=%{_prefix} --with-png-dir=%{_prefix} --with-xpm-dir=%{_prefix}/X11R6 --with-freetype-dir=%{_prefix} --enable-gd-native-ttf --with-t1lib=%{_prefix} \ |
--with-gd=shared --with-jpeg-dir=%{_prefix} --with-png-dir=%{_prefix} --with-zlib-dir=%{_prefix} --with-xpm-dir=%{_prefix}/X11R6 --with-freetype-dir=%{_prefix} --enable-gd-native-ttf --with-t1lib=%{_prefix} \ |
1388 |
--with-gettext=shared,%{_prefix} \ |
--with-gettext=shared,%{_prefix} \ |
1389 |
--with-gmp=shared,%{_prefix} \ |
--with-gmp=shared,%{_prefix} \ |
1390 |
--enable-hash=shared,%{_prefix} \ |
--enable-hash=shared,%{_prefix} \ |
1394 |
--enable-mbstring=shared,%{_prefix} --enable-mbregex --with-libmbfl=%{_prefix} --with-onig=%{_prefix} \ |
--enable-mbstring=shared,%{_prefix} --enable-mbregex --with-libmbfl=%{_prefix} --with-onig=%{_prefix} \ |
1395 |
--with-mcrypt=shared,%{_prefix} \ |
--with-mcrypt=shared,%{_prefix} \ |
1396 |
--with-mssql=shared,%{_prefix} \ |
--with-mssql=shared,%{_prefix} \ |
1397 |
--with-mysql=shared,%{_prefix} --with-mysql-sock=/var/lib/mysql/mysql.sock \ |
--with-mysql=shared,%{_prefix} --with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib-dir=%{_prefix} \ |
1398 |
--with-mysqli=shared,%{_bindir}/mysql_config \ |
--with-mysqli=shared,%{_bindir}/mysql_config \ |
1399 |
--enable-mysqlnd=shared,%{_prefix} \ |
--enable-mysqlnd=shared,%{_prefix} \ |
1400 |
--with-unixODBC=shared,%{_prefix} \ |
--with-unixODBC=shared,%{_prefix} \ |
1409 |
--enable-shmop=shared,%{_prefix} \ |
--enable-shmop=shared,%{_prefix} \ |
1410 |
--enable-simplexml \ |
--enable-simplexml \ |
1411 |
--with-snmp=shared,%{_prefix} --enable-ucd-snmp-hack \ |
--with-snmp=shared,%{_prefix} --enable-ucd-snmp-hack \ |
1412 |
--enable-soap=shared,%{_prefix} \ |
--enable-soap=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1413 |
--enable-sockets=shared,%{_prefix} \ |
--enable-sockets=shared,%{_prefix} \ |
1414 |
--with-sqlite=shared,%{_prefix} \ |
--with-sqlite=shared,%{_prefix} \ |
1415 |
--with-sqlite3=shared,%{_prefix} \ |
--with-sqlite3=shared,%{_prefix} \ |
1419 |
--enable-sysvshm=shared,%{_prefix} \ |
--enable-sysvshm=shared,%{_prefix} \ |
1420 |
--with-tidy=shared,%{_prefix} \ |
--with-tidy=shared,%{_prefix} \ |
1421 |
--enable-tokenizer=shared,%{_prefix} \ |
--enable-tokenizer=shared,%{_prefix} \ |
1422 |
--enable-xml=shared,%{_prefix} \ |
--enable-xml=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1423 |
--enable-xmlreader=shared,%{_prefix} \ |
--enable-xmlreader=shared,%{_prefix} \ |
1424 |
--with-xmlrpc=shared,%{_prefix} \ |
--with-xmlrpc=shared,%{_prefix} \ |
1425 |
--enable-xmlwriter=shared,%{_prefix} \ |
--enable-xmlwriter=shared,%{_prefix} \ |
1426 |
--with-xsl=shared,%{_prefix} \ |
--with-xsl=shared,%{_prefix} \ |
1427 |
--enable-wddx=shared \ |
--enable-wddx=shared --with-libxml-dir=%{_prefix} \ |
1428 |
--enable-zip=shared --with-libzip=%{_prefix} \ |
--enable-zip=shared --with-libzip=%{_prefix} |
|
$* |
|
1429 |
|
|
1430 |
perl -pi -e "s|-prefer-non-pic -static||g" Makefile |
cp -f Makefile Makefile.$i |
1431 |
|
|
1432 |
%make |
# left for debugging purposes |
1433 |
} |
cp -f main/php_config.h php_config.h.$i |
1434 |
|
|
1435 |
# multiple builds |
# when all else failed... |
1436 |
|
perl -pi -e "s|-prefer-non-pic -static||g" Makefile.$i |
1437 |
|
|
1438 |
# fpm |
done |
1439 |
mkdir build-fpm |
|
1440 |
pushd build-fpm |
# remove all confusion... |
1441 |
build --disable-cli --enable-fpm --with-fpm-user=apache --with-fpm-group=apache |
perl -pi -e "s|^#define CONFIGURE_COMMAND .*|#define CONFIGURE_COMMAND \"This is irrelevant, look inside the %{_docdir}/php-doc/configure_command file. urpmi is your friend, use it to install extensions not shown below.\"|g" main/build-defs.h |
1442 |
popd |
cp config.nice configure_command; chmod 644 configure_command |
1443 |
|
|
1444 |
# cgi |
%make |
1445 |
mkdir build-cgi |
|
1446 |
pushd build-cgi |
%if %{build_libmagic} |
1447 |
build --disable-cli |
# keep in sync with latest system magic, the next best thing when system libmagic can't be used... |
1448 |
popd |
sapi/cli/php create_data_file.php %{_datadir}/misc/magic.mgc > ext/fileinfo/data_file.c |
1449 |
|
rm -rf ext/fileinfo/.libs ext/fileinfo/*.lo ext/fileinfo/*.la modules/fileinfo.so modules/fileinfo.la |
1450 |
# apache |
cp -p ext/fileinfo/data_file.c php-devel/extensions/fileinfo/data_file.c |
1451 |
mkdir build-apache |
%make |
1452 |
pushd build-apache |
%endif |
|
build --with-apxs2=%{_sbindir}/apxs |
|
|
|
|
|
cp ../sapi/apache2handler/* . |
|
|
%{_sbindir}/apxs -c \ |
|
|
`apr-1-config --link-ld --libs` \ |
|
|
`xml2-config --cflags` \ |
|
|
-I .. -I ../main -I ../Zend -I ../TSRM \ |
|
|
-I Zend -I TSRM -I main -I ext/date/lib \ |
|
|
-lphp5_common \ |
|
|
mod_php5.c \ |
|
|
sapi_apache2.c \ |
|
|
apache_config.c \ |
|
|
php_functions.c \ |
|
|
main/internal_functions.c |
|
|
popd |
|
1453 |
|
|
1454 |
|
# make php-cgi |
1455 |
|
cp -af php_config.h.cgi main/php_config.h |
1456 |
|
make -f Makefile.cgi sapi/cgi/php-cgi |
1457 |
|
cp -af php_config.h.apxs main/php_config.h |
1458 |
|
|
1459 |
|
# make php-fpm |
1460 |
|
cp -af php_config.h.fpm main/php_config.h |
1461 |
|
make -f Makefile.fpm sapi/fpm/php-fpm |
1462 |
|
cp -af php_config.h.apxs main/php_config.h |
1463 |
|
|
1464 |
%install |
%install |
|
rm -rf %{buildroot} |
|
1465 |
|
|
1466 |
install -d %{buildroot}%{_libdir} |
install -d %{buildroot}%{_libdir} |
1467 |
install -d %{buildroot}%{_bindir} |
install -d %{buildroot}%{_bindir} |
1468 |
install -d %{buildroot}%{_sysconfdir}/php.d |
install -d %{buildroot}%{_sysconfdir}/php.d |
1469 |
install -d %{buildroot}%{_libdir}/php/extensions |
install -d %{buildroot}%{_libdir}/php/extensions |
1470 |
install -d %{buildroot}%{_libdir}/apache-extramodules |
install -d %{buildroot}%{_usrsrc}/php-devel |
1471 |
install -d %{buildroot}%{_mandir}/man1 |
install -d %{buildroot}%{_mandir}/man1 |
1472 |
install -d %{buildroot}%{_sysconfdir}/cron.d |
install -d %{buildroot}%{_sysconfdir}/cron.d |
1473 |
install -d %{buildroot}/var/lib/php |
install -d %{buildroot}/var/lib/php |
|
install -d %{buildroot}%{_datadir}/php |
|
|
|
|
|
|
|
|
#perl -pi -e "s|^libdir=.*|libdir='%{_libdir}'|g" .libs/*.la* |
|
1474 |
|
|
1475 |
make -C build-apache install \ |
make -f Makefile.apxs install \ |
1476 |
INSTALL_ROOT=%{buildroot} \ |
INSTALL_ROOT=%{buildroot} \ |
1477 |
INSTALL_IT="\$(LIBTOOL) --mode=install install libphp5_common.la %{buildroot}%{_libdir}/" \ |
INSTALL_IT="\$(LIBTOOL) --mode=install install libphp5_common.la %{buildroot}%{_libdir}/" |
1478 |
INSTALL_CLI="\$(LIBTOOL) --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php" |
|
1479 |
|
# borked autopoo |
1480 |
pushd build-cgi |
rm -f %{buildroot}%{_bindir}/php %{buildroot}%{_bindir}/php-cgi |
1481 |
|
./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php |
1482 |
./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi |
./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi |
|
popd |
|
1483 |
|
|
1484 |
# compat php-fcgi symink |
# compat php-fcgi symink |
1485 |
ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi |
ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi |
1486 |
|
|
1487 |
|
cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/ |
1488 |
|
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/ |
1489 |
|
install -m0644 main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/ |
1490 |
|
|
|
pushd build-apache |
|
1491 |
install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/ |
install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/ |
1492 |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
1493 |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
|
install -m0755 .libs/mod_php5.so %{buildroot}%{_libdir}/apache-extramodules/ |
|
|
popd |
|
1494 |
|
|
1495 |
# fpm |
# fpm |
1496 |
install -d %{buildroot}%{_initrddir} |
install -d %{buildroot}/lib/systemd/system |
1497 |
install -d %{buildroot}%{_sysconfdir}/logrotate.d |
install -d %{buildroot}%{_sysconfdir}/logrotate.d |
1498 |
install -d %{buildroot}%{_sysconfdir}/sysconfig |
install -d %{buildroot}%{_sysconfdir}/sysconfig |
1499 |
install -d %{buildroot}%{_sysconfdir}/php-fpm.d |
install -d %{buildroot}%{_sysconfdir}/php-fpm.d |
1505 |
# a small bug here... |
# a small bug here... |
1506 |
echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf |
echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf |
1507 |
|
|
|
pushd build-fpm |
|
1508 |
./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm |
./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm |
1509 |
install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/ |
install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/ |
1510 |
install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/ |
install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/ |
1511 |
install -m0755 %{SOURCE4} %{buildroot}%{_initrddir}/php-fpm |
install -m0644 php-fpm.service %{buildroot}/lib/systemd/system/ |
1512 |
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
1513 |
install -m0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
1514 |
popd |
|
1515 |
|
ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext |
|
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d |
|
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/70_mod_php.conf <<EOF |
|
|
<IfModule !mod_php5.c> |
|
|
LoadModule php5_module extramodules/mod_php5.so |
|
|
</IfModule> |
|
|
|
|
|
<IfModule mod_mime.c> |
|
|
AddType application/x-httpd-php .php |
|
|
AddType application/x-httpd-php .phtml |
|
|
AddType application/x-httpd-php-source .phps |
|
|
</IfModule> |
|
|
|
|
|
<IfModule mod_php5.c> |
|
|
<IfModule mod_dir.c> |
|
|
DirectoryIndex index.php index.phtml |
|
|
</IfModule> |
|
|
</IfModule> |
|
|
EOF |
|
1516 |
|
|
1517 |
# rpm filetrigger to reload httpd when installing/removing php extensions |
# rpm filetrigger to reload httpd when installing/removing php extensions |
1518 |
install -d -m 755 %{buildroot}%{_localstatedir}/lib/rpm/filetriggers |
install -d -m 755 %{buildroot}%{_localstatedir}/lib/rpm/filetriggers |
1524 |
service httpd reload 2>/dev/null || : |
service httpd reload 2>/dev/null || : |
1525 |
EOF |
EOF |
1526 |
|
|
|
|
|
1527 |
# extensions |
# extensions |
1528 |
echo "extension = openssl.so" > %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini |
echo "extension = openssl.so" > %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini |
1529 |
echo "extension = zlib.so" > %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini |
echo "extension = zlib.so" > %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini |
1530 |
echo "extension = bcmath.so" > %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini |
echo "extension = bcmath.so" > %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini |
1531 |
echo "extension = bz2.so" > %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini |
echo "extension = bz2.so" > %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini |
1532 |
echo "extension = calendar.so" > %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini |
echo "extension = calendar.so" > %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini |
1533 |
echo "extension = ctype.so" > %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini |
echo "extension = ctype.so" > %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini |
1534 |
echo "extension = curl.so" > %{buildroot}%{_sysconfdir}/php.d/13_curl.ini |
echo "extension = curl.so" > %{buildroot}%{_sysconfdir}/php.d/13_curl.ini |
1535 |
echo "extension = dba.so" > %{buildroot}%{_sysconfdir}/php.d/14_dba.ini |
echo "extension = dba.so" > %{buildroot}%{_sysconfdir}/php.d/14_dba.ini |
1536 |
echo "extension = dom.so" > %{buildroot}%{_sysconfdir}/php.d/18_dom.ini |
echo "extension = dom.so" > %{buildroot}%{_sysconfdir}/php.d/18_dom.ini |
1537 |
echo "extension = exif.so" > %{buildroot}%{_sysconfdir}/php.d/19_exif.ini |
echo "extension = exif.so" > %{buildroot}%{_sysconfdir}/php.d/19_exif.ini |
1538 |
echo "extension = filter.so" > %{buildroot}%{_sysconfdir}/php.d/81_filter.ini |
echo "extension = filter.so" > %{buildroot}%{_sysconfdir}/php.d/81_filter.ini |
1539 |
echo "extension = ftp.so" > %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini |
echo "extension = ftp.so" > %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini |
1540 |
echo "extension = gd.so" > %{buildroot}%{_sysconfdir}/php.d/23_gd.ini |
echo "extension = gd.so" > %{buildroot}%{_sysconfdir}/php.d/23_gd.ini |
1541 |
echo "extension = gettext.so" > %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini |
echo "extension = gettext.so" > %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini |
1542 |
echo "extension = gmp.so" > %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini |
echo "extension = gmp.so" > %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini |
1543 |
echo "extension = hash.so" > %{buildroot}%{_sysconfdir}/php.d/54_hash.ini |
echo "extension = hash.so" > %{buildroot}%{_sysconfdir}/php.d/54_hash.ini |
1544 |
echo "extension = iconv.so" > %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini |
echo "extension = iconv.so" > %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini |
1545 |
echo "extension = imap.so" > %{buildroot}%{_sysconfdir}/php.d/27_imap.ini |
echo "extension = imap.so" > %{buildroot}%{_sysconfdir}/php.d/27_imap.ini |
1546 |
echo "extension = intl.so" > %{buildroot}%{_sysconfdir}/php.d/27_intl.ini |
echo "extension = intl.so" > %{buildroot}%{_sysconfdir}/php.d/27_intl.ini |
1547 |
echo "extension = ldap.so" > %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini |
echo "extension = ldap.so" > %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini |
1548 |
echo "extension = mbstring.so" > %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini |
echo "extension = mbstring.so" > %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini |
1549 |
echo "extension = mcrypt.so" > %{buildroot}%{_sysconfdir}/php.d/30_mcrypt.ini |
echo "extension = mcrypt.so" > %{buildroot}%{_sysconfdir}/php.d/30_mcrypt.ini |
1550 |
echo "extension = fileinfo.so" > %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini |
echo "extension = fileinfo.so" > %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini |
1551 |
echo "extension = mssql.so" > %{buildroot}%{_sysconfdir}/php.d/35_mssql.ini |
echo "extension = mssql.so" > %{buildroot}%{_sysconfdir}/php.d/35_mssql.ini |
1552 |
echo "extension = mysql.so" > %{buildroot}%{_sysconfdir}/php.d/36_mysql.ini |
echo "extension = mysql.so" > %{buildroot}%{_sysconfdir}/php.d/36_mysql.ini |
1553 |
echo "extension = mysqli.so" > %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini |
echo "extension = mysqli.so" > %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini |
1554 |
echo "extension = enchant.so" > %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini |
echo "extension = enchant.so" > %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini |
1555 |
echo "extension = odbc.so" > %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini |
echo "extension = odbc.so" > %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini |
1556 |
echo "extension = pcntl.so" > %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini |
echo "extension = pcntl.so" > %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini |
1557 |
echo "extension = pdo.so" > %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini |
echo "extension = pdo.so" > %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini |
1558 |
echo "extension = pdo_dblib.so" > %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini |
echo "extension = pdo_dblib.so" > %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini |
1559 |
echo "extension = pdo_mysql.so" > %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini |
echo "extension = pdo_mysql.so" > %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini |
1560 |
echo "extension = pdo_odbc.so" > %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini |
echo "extension = pdo_odbc.so" > %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini |
1561 |
echo "extension = pdo_pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini |
echo "extension = pdo_pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini |
1562 |
echo "extension = pdo_sqlite.so"> %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini |
echo "extension = pdo_sqlite.so" > %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini |
1563 |
echo "extension = mysqlnd.so" > %{buildroot}%{_sysconfdir}/php.d/78_mysqlnd.ini |
echo "extension = mysqlnd.so" > %{buildroot}%{_sysconfdir}/php.d/78_mysqlnd.ini |
1564 |
echo "extension = pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini |
echo "extension = pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini |
1565 |
echo "extension = posix.so" > %{buildroot}%{_sysconfdir}/php.d/43_posix.ini |
echo "extension = posix.so" > %{buildroot}%{_sysconfdir}/php.d/43_posix.ini |
1566 |
# echo "extension = pspell.so" > %{buildroot}%{_sysconfdir}/php.d/44_pspell.ini |
echo "extension = readline.so" > %{buildroot}%{_sysconfdir}/php.d/45_readline.ini |
1567 |
echo "extension = readline.so" > %{buildroot}%{_sysconfdir}/php.d/45_readline.ini |
echo "extension = recode.so" > %{buildroot}%{_sysconfdir}/php.d/46_recode.ini |
1568 |
echo "extension = recode.so" > %{buildroot}%{_sysconfdir}/php.d/46_recode.ini |
echo "extension = session.so" > %{buildroot}%{_sysconfdir}/php.d/47_session.ini |
|
echo "extension = session.so" > %{buildroot}%{_sysconfdir}/php.d/47_session.ini |
|
1569 |
echo "extension = shmop.so" > %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini |
echo "extension = shmop.so" > %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini |
1570 |
echo "extension = snmp.so" > %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini |
echo "extension = snmp.so" > %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini |
1571 |
echo "extension = soap.so" > %{buildroot}%{_sysconfdir}/php.d/51_soap.ini |
echo "extension = soap.so" > %{buildroot}%{_sysconfdir}/php.d/51_soap.ini |
1572 |
echo "extension = sockets.so" > %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini |
echo "extension = sockets.so" > %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini |
1573 |
echo "extension = sqlite.so" > %{buildroot}%{_sysconfdir}/php.d/78_sqlite.ini |
echo "extension = sqlite3.so" > %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini |
1574 |
echo "extension = sqlite3.so" > %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini |
echo "extension = sybase_ct.so" > %{buildroot}%{_sysconfdir}/php.d/46_sybase_ct.ini |
1575 |
echo "extension = sybase_ct.so" > %{buildroot}%{_sysconfdir}/php.d/46_sybase_ct.ini |
echo "extension = sysvmsg.so" > %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini |
1576 |
echo "extension = sysvmsg.so" > %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini |
echo "extension = sysvsem.so" > %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini |
1577 |
echo "extension = sysvsem.so" > %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini |
echo "extension = sysvshm.so" > %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini |
|
echo "extension = sysvshm.so" > %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini |
|
1578 |
echo "extension = tidy.so" > %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini |
echo "extension = tidy.so" > %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini |
1579 |
echo "extension = tokenizer.so" > %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini |
echo "extension = tokenizer.so" > %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini |
1580 |
echo "extension = xml.so" > %{buildroot}%{_sysconfdir}/php.d/62_xml.ini |
echo "extension = xml.so" > %{buildroot}%{_sysconfdir}/php.d/62_xml.ini |
1581 |
echo "extension = xmlreader.so" > %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini |
echo "extension = xmlreader.so" > %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini |
1582 |
echo "extension = xmlrpc.so" > %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini |
echo "extension = xmlrpc.so" > %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini |
1583 |
echo "extension = xmlwriter.so" > %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini |
echo "extension = xmlwriter.so" > %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini |
1584 |
echo "extension = xsl.so" > %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini |
echo "extension = xsl.so" > %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini |
1585 |
echo "extension = wddx.so" > %{buildroot}%{_sysconfdir}/php.d/63_wddx.ini |
echo "extension = wddx.so" > %{buildroot}%{_sysconfdir}/php.d/63_wddx.ini |
1586 |
echo "extension = json.so" > %{buildroot}%{_sysconfdir}/php.d/82_json.ini |
echo "extension = json.so" > %{buildroot}%{_sysconfdir}/php.d/82_json.ini |
1587 |
echo "extension = zip.so" > %{buildroot}%{_sysconfdir}/php.d/83_zip.ini |
echo "extension = zip.so" > %{buildroot}%{_sysconfdir}/php.d/83_zip.ini |
1588 |
echo "extension = phar.so" > %{buildroot}%{_sysconfdir}/php.d/84_phar.ini |
echo "extension = phar.so" > %{buildroot}%{_sysconfdir}/php.d/84_phar.ini |
1589 |
|
|
1590 |
install -m0755 %{SOURCE2} %{buildroot}%{_libdir}/php/maxlifetime |
install -m0755 maxlifetime %{buildroot}%{_libdir}/php/maxlifetime |
1591 |
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.d/php |
install -m0644 php.crond %{buildroot}%{_sysconfdir}/cron.d/php |
|
install -m0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/php.ini |
|
|
install -m0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini |
|
|
|
|
|
perl -pi -e "s|/usr/lib|%{_libdir}|" \ |
|
|
%{buildroot}%{_sysconfdir}/cron.d/php \ |
|
|
%{buildroot}%{_sysconfdir}/php.ini \ |
|
|
%{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini |
|
|
|
|
|
# install doc manually in %{_docdir}/php, rather than %{_docdir}/php-doc |
|
|
install -d -m 755 %{buildroot}%{_docdir}/php |
|
|
install -m 644 \ |
|
|
CREDITS INSTALL LICENSE NEWS \ |
|
|
php.ini-production php.ini-development \ |
|
|
README.PHP4-TO-PHP5-THIN-CHANGES README.EXTENSIONS README.EXT_SKEL \ |
|
|
README.input_filter README.PARAMETER_PARSING_API README.STREAMS \ |
|
|
%{buildroot}%{_docdir}/php |
|
|
install -m 644 Zend/LICENSE %{buildroot}%{_docdir}/php/ZEND_LICENSE |
|
|
install -m 644 ext/openssl/README %{buildroot}%{_docdir}/php/README.openssl |
|
|
install -m 644 ext/spl/README %{buildroot}%{_docdir}/php/README.spl |
|
|
install -m 644 ext/libxml/CREDITS %{buildroot}%{_docdir}/php/CREDITS.libxml |
|
|
install -m 644 ext/zlib/CREDITS %{buildroot}%{_docdir}/php/CREDITS.zlib |
|
1592 |
|
|
1593 |
|
# fix docs |
1594 |
|
cp Zend/LICENSE Zend/ZEND_LICENSE |
1595 |
cp README.SELF-CONTAINED-EXTENSIONS SELF-CONTAINED-EXTENSIONS |
cp README.SELF-CONTAINED-EXTENSIONS SELF-CONTAINED-EXTENSIONS |
1596 |
|
cp ext/openssl/README README.openssl |
1597 |
|
cp ext/spl/README README.spl |
1598 |
|
cp ext/libxml/CREDITS CREDITS.libxml |
1599 |
|
cp ext/zlib/CREDITS CREDITS.zlib |
1600 |
|
|
1601 |
# cgi docs |
# cgi docs |
1602 |
cp sapi/cgi/CREDITS CREDITS.cgi |
cp sapi/cgi/CREDITS CREDITS.cgi |
1617 |
rm -f %{buildroot}%{_bindir}/pear |
rm -f %{buildroot}%{_bindir}/pear |
1618 |
rm -f %{buildroot}%{_libdir}/*.*a |
rm -f %{buildroot}%{_libdir}/*.*a |
1619 |
|
|
1620 |
|
# don't pack useless stuff |
|
# php-devel |
|
|
install -d %{buildroot}%{_usrsrc}/php-devel |
|
|
|
|
|
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/ |
|
|
install -m0644 build-apache/main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/ |
|
|
|
|
|
cat > %{buildroot}%{_usrsrc}/php-devel/buildext <<EOF |
|
|
#!/bin/bash |
|
|
gcc -Wall -fPIC -shared $CFLAGS \\ |
|
|
-I. \`%{_bindir}/php-config --includes\` \\ |
|
|
-I%{_includedir}/libxml2 \\ |
|
|
-I%{_includedir}/freetype \\ |
|
|
-I%{_includedir}/openssl \\ |
|
|
-I%{_usrsrc}/php-devel/ext \\ |
|
|
-I%{_includedir}/\$1 \\ |
|
|
\$4 \$2 -o \$1.so \$3 -lc |
|
|
EOF |
|
|
chmod 755 %{buildroot}%{_usrsrc}/php-devel/buildext |
|
|
|
|
|
# Install test files in php-devel |
|
|
cp -a tests %{buildroot}%{_usrsrc}/php-devel |
|
|
|
|
|
cp -a ext %{buildroot}%{_usrsrc}/php-devel/extensions/ |
|
|
ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext |
|
|
|
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/extensions/informix/stub.c |
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/extensions/standard/.deps |
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/extensions/skeleton/EXPERIMENTAL |
|
|
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/com_dotnet |
|
1621 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bcmath |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bcmath |
1622 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bz2 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bz2 |
1623 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/calendar |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/calendar |
1685 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zip |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zip |
1686 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zlib |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zlib |
1687 |
|
|
1688 |
# SAPI |
# php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL |
1689 |
cp -a sapi %{buildroot}%{_usrsrc}/php-devel/sapi/ |
find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 -exec rm -f {} \; |
|
rm -f %{buildroot}%{_usrsrc}/php-devel/sapi/thttpd/stub.c |
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/sapi/cgi/php.sym |
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/sapi/fastcgi/php.sym |
|
|
rm -f %{buildroot}%{_usrsrc}/php-devel/sapi/pi3web/php.sym |
|
|
|
|
|
# cleanup |
|
|
find %{buildroot}%{_usrsrc}/php-devel -name "*.droplet" | xargs rm -f |
|
|
find %{buildroot}%{_usrsrc}/php-devel -name "*.dsp" | xargs rm -f |
|
|
find %{buildroot}%{_usrsrc}/php-devel -name "*.mak" | xargs rm -f |
|
|
find %{buildroot}%{_usrsrc}/php-devel -name "*.w32" | xargs rm -f |
|
|
find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 | xargs rm -f |
|
|
|
|
|
# fix one strange weirdo |
|
|
%{__perl} -pi -e "s|^libdir=.*|libdir='%{_libdir}'|g" %{buildroot}%{_libdir}/*.la |
|
1690 |
|
|
1691 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/build-defs.h |
%multiarch_includes %{buildroot}%{_includedir}/php/main/build-defs.h |
1692 |
|
|
1693 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/php_config.h |
%multiarch_includes %{buildroot}%{_includedir}/php/main/php_config.h |
1694 |
|
|
1695 |
%if %{build_test} |
%if %{build_test} |
1696 |
cd build-apache |
# do a make test |
|
cp ../run-tests.php . |
|
|
cp -r ../tests . |
|
|
cp %{SOURCE1} php-test.ini |
|
|
|
|
1697 |
export NO_INTERACTION=1 |
export NO_INTERACTION=1 |
1698 |
export PHPRC="." |
export PHPRC="." |
1699 |
export REPORT_EXIT_STATUS=2 |
export REPORT_EXIT_STATUS=2 |
1700 |
export TEST_PHP_DETAILED=0 |
export TEST_PHP_DETAILED=0 |
1701 |
export TEST_PHP_ERROR_STYLE=EMACS |
export TEST_PHP_ERROR_STYLE=EMACS |
1702 |
export TEST_PHP_LOG_FORMAT=LEODC |
export TEST_PHP_LOG_FORMAT=LEODC |
|
export TEST_PHP_EXECUTABLE=sapi/cli/php |
|
1703 |
export PHP_INI_SCAN_DIR=/dev/null |
export PHP_INI_SCAN_DIR=/dev/null |
1704 |
|
|
1705 |
# FAILING TESTS: |
# FAILING TESTS: |
1707 |
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not) |
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not) |
1708 |
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt |
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt |
1709 |
# unknown errors with ext/standard/tests/strings/setlocale_* |
# unknown errors with ext/standard/tests/strings/setlocale_* |
1710 |
|
disable_tests="ext/date/tests/oo_002.phpt \ |
1711 |
for f in \ |
ext/standard/tests/file/bug22414.phpt \ |
1712 |
ext/date/tests/oo_002.phpt \ |
ext/standard/tests/general_functions/phpinfo.phpt \ |
1713 |
ext/standard/tests/file/bug22414.phpt \ |
ext/standard/tests/strings/setlocale_basic1.phpt \ |
1714 |
ext/standard/tests/general_functions/phpinfo.phpt \ |
ext/standard/tests/strings/setlocale_basic2.phpt \ |
1715 |
ext/standard/tests/strings/setlocale_basic1.phpt \ |
ext/standard/tests/strings/setlocale_basic3.phpt \ |
1716 |
ext/standard/tests/strings/setlocale_basic2.phpt \ |
ext/standard/tests/strings/setlocale_variation1.phpt \ |
1717 |
ext/standard/tests/strings/setlocale_basic3.phpt \ |
ext/standard/tests/strings/setlocale_variation3.phpt \ |
1718 |
ext/standard/tests/strings/setlocale_variation1.phpt \ |
ext/standard/tests/strings/setlocale_variation4.phpt \ |
1719 |
ext/standard/tests/strings/setlocale_variation3.phpt \ |
ext/standard/tests/strings/setlocale_variation5.phpt" |
1720 |
ext/standard/tests/strings/setlocale_variation4.phpt \ |
|
1721 |
ext/standard/tests/strings/setlocale_variation5.phpt; do |
[[ -n "$disable_tests" ]] && \ |
1722 |
[[ -f "$f" ]] && mv $f $f.disabled |
for f in $disable_tests; do |
1723 |
|
[[ -f "$f" ]] && mv $f $f.disabled |
1724 |
done |
done |
1725 |
|
|
1726 |
sapi/cli/php -c ./php-test.ini run-tests.php |
TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php |
1727 |
%endif |
%endif |
1728 |
|
|
|
%post fpm |
|
|
%_post_service php-fpm |
|
1729 |
|
|
1730 |
%preun fpm |
%pre fpm |
1731 |
%_preun_service php-fpm |
%_pre_useradd apache /var/www /bin/sh |
1732 |
|
|
1733 |
|
%_postun_userdel apache |
1734 |
|
|
1735 |
%files ini |
|
1736 |
%{_docdir}/php |
|
1737 |
%config(noreplace) %{_sysconfdir}/php.ini |
%files doc |
1738 |
%config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini |
%doc CREDITS INSTALL LICENSE NEWS Zend/ZEND_LICENSE |
1739 |
%dir %{_sysconfdir}/php.d |
%doc php.ini-production php.ini-development configure_command |
1740 |
%dir %{_libdir}/php |
%doc README.openssl README.spl CREDITS.libxml CREDITS.zlib |
1741 |
%dir %{_datadir}/php |
%doc README.PHP4-TO-PHP5-THIN-CHANGES |
1742 |
%dir %{_libdir}/php/extensions |
%doc README.EXTENSIONS README.EXT_SKEL README.input_filter |
1743 |
|
%doc README.PARAMETER_PARSING_API README.STREAMS |
1744 |
|
|
1745 |
%files -n %{libname} |
%files -n %{libname} |
1746 |
%{_libdir}/libphp5_common.so.%{php5_common_major}* |
%{_libdir}/libphp5_common.so.%{php5_common_major}* |
1747 |
|
|
1748 |
%files cli |
%files cli |
1749 |
%doc CREDITS.cli README.cli TODO.cli |
%doc CREDITS.cli README.cli TODO.cli |
1750 |
%{_bindir}/php |
%attr(0755,root,root) %{_bindir}/php |
1751 |
%{_mandir}/man1/php.1* |
%attr(0644,root,root) %{_mandir}/man1/php.1* |
1752 |
|
|
1753 |
%files cgi |
%files cgi |
1754 |
%doc CREDITS.cgi README.fcgi |
%doc CREDITS.cgi README.fcgi |
1755 |
%{_bindir}/php-cgi |
%attr(0755,root,root) %{_bindir}/php-cgi |
1756 |
%{_bindir}/php-fcgi |
%attr(0755,root,root) %{_bindir}/php-fcgi |
|
|
|
|
%files fpm |
|
|
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE |
|
|
%{_initrddir}/php-fpm |
|
|
%config(noreplace) %{_sysconfdir}/php-fpm.conf |
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
|
|
%{_sysconfdir}/logrotate.d/php-fpm |
|
|
%dir %{_sysconfdir}/php-fpm.d |
|
|
%config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf |
|
|
%{_sbindir}/php-fpm |
|
|
%{_mandir}/man8/php-fpm.8* |
|
|
%attr(0711,apache,apache) %dir /var/lib/php-fpm |
|
|
%attr(0711,apache,apache) %dir /var/log/php-fpm |
|
|
%attr(0711,apache,apache) %dir /var/run/php-fpm |
|
|
|
|
|
%files -n apache-mod_php |
|
|
%config(noreplace) %{_sysconfdir}/httpd/modules.d/70_mod_php.conf |
|
|
%{_libdir}/apache-extramodules/mod_php5.so |
|
|
%{_localstatedir}/lib/rpm/filetriggers/httpd-php.filter |
|
|
%attr(0755,root,root) %{_localstatedir}/lib/rpm/filetriggers/httpd-php.script |
|
1757 |
|
|
1758 |
%files devel |
%files devel |
1759 |
%doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* TODO EXTENSIONS |
%doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* EXTENSIONS |
1760 |
%doc Zend/ZEND_* README.TESTING* |
%doc Zend/ZEND_* README.TESTING* |
1761 |
%{_bindir}/php-config |
%attr(0755,root,root) %{_bindir}/php-config |
1762 |
%{_bindir}/phpize |
%attr(0755,root,root) %{_bindir}/phpize |
1763 |
%{_libdir}/libphp5_common.so |
%attr(0755,root,root) %{_libdir}/libphp5_common.so |
1764 |
%{_libdir}/php/build |
%{_libdir}/php/build |
1765 |
%{_usrsrc}/php-devel |
%{_usrsrc}/php-devel |
1766 |
%{multiarch_includedir}/php/main/build-defs.h |
%{multiarch_includedir}/php/main/build-defs.h |
1767 |
%{multiarch_includedir}/php/main/php_config.h |
%{multiarch_includedir}/php/main/php_config.h |
1768 |
%{_includedir}/php |
%{_includedir}/php |
1769 |
%{_mandir}/man1/php-config.1* |
%attr(0644,root,root) %{_mandir}/man1/php-config.1* |
1770 |
%{_mandir}/man1/phpize.1* |
%attr(0644,root,root) %{_mandir}/man1/phpize.1* |
1771 |
|
|
1772 |
%files openssl |
%files openssl |
1773 |
%config(noreplace) %{_sysconfdir}/php.d/21_openssl.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/21_openssl.ini |
1774 |
%{_libdir}/php/extensions/openssl.so |
%attr(0755,root,root) %{_libdir}/php/extensions/openssl.so |
1775 |
|
|
1776 |
%files zlib |
%files zlib |
1777 |
%config(noreplace) %{_sysconfdir}/php.d/21_zlib.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/21_zlib.ini |
1778 |
%{_libdir}/php/extensions/zlib.so |
%attr(0755,root,root) %{_libdir}/php/extensions/zlib.so |
1779 |
|
|
1780 |
%files bcmath |
%files bcmath |
1781 |
%config(noreplace) %{_sysconfdir}/php.d/66_bcmath.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/66_bcmath.ini |
1782 |
%{_libdir}/php/extensions/bcmath.so |
%attr(0755,root,root) %{_libdir}/php/extensions/bcmath.so |
1783 |
|
|
1784 |
%files bz2 |
%files bz2 |
1785 |
%config(noreplace) %{_sysconfdir}/php.d/10_bz2.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/10_bz2.ini |
1786 |
%{_libdir}/php/extensions/bz2.so |
%attr(0755,root,root) %{_libdir}/php/extensions/bz2.so |
1787 |
|
|
1788 |
%files calendar |
%files calendar |
1789 |
%config(noreplace) %{_sysconfdir}/php.d/11_calendar.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/11_calendar.ini |
1790 |
%{_libdir}/php/extensions/calendar.so |
%attr(0755,root,root) %{_libdir}/php/extensions/calendar.so |
1791 |
|
|
1792 |
%files ctype |
%files ctype |
1793 |
%config(noreplace) %{_sysconfdir}/php.d/12_ctype.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/12_ctype.ini |
1794 |
%{_libdir}/php/extensions/ctype.so |
%attr(0755,root,root) %{_libdir}/php/extensions/ctype.so |
1795 |
|
|
1796 |
%files curl |
%files curl |
1797 |
%config(noreplace) %{_sysconfdir}/php.d/13_curl.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/13_curl.ini |
1798 |
%{_libdir}/php/extensions/curl.so |
%attr(0755,root,root) %{_libdir}/php/extensions/curl.so |
1799 |
|
|
1800 |
%files dba |
%files dba |
1801 |
%config(noreplace) %{_sysconfdir}/php.d/14_dba.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/14_dba.ini |
1802 |
%{_libdir}/php/extensions/dba.so |
%attr(0755,root,root) %{_libdir}/php/extensions/dba.so |
1803 |
|
|
1804 |
%files dom |
%files dom |
1805 |
%config(noreplace) %{_sysconfdir}/php.d/18_dom.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/18_dom.ini |
1806 |
%{_libdir}/php/extensions/dom.so |
%attr(0755,root,root) %{_libdir}/php/extensions/dom.so |
1807 |
|
|
1808 |
%files enchant |
%files enchant |
1809 |
%config(noreplace) %{_sysconfdir}/php.d/38_enchant.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/38_enchant.ini |
1810 |
%{_libdir}/php/extensions/enchant.so |
%attr(0755,root,root) %{_libdir}/php/extensions/enchant.so |
1811 |
|
|
1812 |
%files exif |
%files exif |
1813 |
%config(noreplace) %{_sysconfdir}/php.d/19_exif.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/19_exif.ini |
1814 |
%{_libdir}/php/extensions/exif.so |
%attr(0755,root,root) %{_libdir}/php/extensions/exif.so |
1815 |
|
|
1816 |
%files fileinfo |
%files fileinfo |
1817 |
%config(noreplace) %{_sysconfdir}/php.d/32_fileinfo.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/32_fileinfo.ini |
1818 |
%{_libdir}/php/extensions/fileinfo.so |
%attr(0755,root,root) %{_libdir}/php/extensions/fileinfo.so |
1819 |
|
|
1820 |
%files filter |
%files filter |
1821 |
%config(noreplace) %{_sysconfdir}/php.d/81_filter.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/81_filter.ini |
1822 |
%{_libdir}/php/extensions/filter.so |
%attr(0755,root,root) %{_libdir}/php/extensions/filter.so |
1823 |
|
|
1824 |
%files ftp |
%files ftp |
1825 |
%config(noreplace) %{_sysconfdir}/php.d/22_ftp.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/22_ftp.ini |
1826 |
%{_libdir}/php/extensions/ftp.so |
%attr(0755,root,root) %{_libdir}/php/extensions/ftp.so |
1827 |
|
|
1828 |
%files gd |
%files gd |
1829 |
%config(noreplace) %{_sysconfdir}/php.d/23_gd.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/23_gd.ini |
1830 |
%{_libdir}/php/extensions/gd.so |
%attr(0755,root,root) %{_libdir}/php/extensions/gd.so |
1831 |
|
|
1832 |
%files gettext |
%files gettext |
1833 |
%config(noreplace) %{_sysconfdir}/php.d/24_gettext.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/24_gettext.ini |
1834 |
%{_libdir}/php/extensions/gettext.so |
%attr(0755,root,root) %{_libdir}/php/extensions/gettext.so |
1835 |
|
|
1836 |
%files gmp |
%files gmp |
1837 |
%config(noreplace) %{_sysconfdir}/php.d/25_gmp.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/25_gmp.ini |
1838 |
%{_libdir}/php/extensions/gmp.so |
%attr(0755,root,root) %{_libdir}/php/extensions/gmp.so |
1839 |
|
|
1840 |
%files hash |
%files hash |
1841 |
%config(noreplace) %{_sysconfdir}/php.d/54_hash.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/54_hash.ini |
1842 |
%{_libdir}/php/extensions/hash.so |
%attr(0755,root,root) %{_libdir}/php/extensions/hash.so |
1843 |
|
|
1844 |
%files iconv |
%files iconv |
1845 |
%config(noreplace) %{_sysconfdir}/php.d/26_iconv.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/26_iconv.ini |
1846 |
%{_libdir}/php/extensions/iconv.so |
%attr(0755,root,root) %{_libdir}/php/extensions/iconv.so |
1847 |
|
|
1848 |
%files imap |
%files imap |
1849 |
%config(noreplace) %{_sysconfdir}/php.d/27_imap.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/27_imap.ini |
1850 |
%{_libdir}/php/extensions/imap.so |
%attr(0755,root,root) %{_libdir}/php/extensions/imap.so |
1851 |
|
|
1852 |
%files intl |
%files intl |
1853 |
%config(noreplace) %{_sysconfdir}/php.d/27_intl.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/27_intl.ini |
1854 |
%{_libdir}/php/extensions/intl.so |
%attr(0755,root,root) %{_libdir}/php/extensions/intl.so |
1855 |
|
|
1856 |
%files json |
%files json |
1857 |
%config(noreplace) %{_sysconfdir}/php.d/82_json.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/82_json.ini |
1858 |
%{_libdir}/php/extensions/json.so |
%attr(0755,root,root) %{_libdir}/php/extensions/json.so |
1859 |
|
|
1860 |
%files ldap |
%files ldap |
1861 |
%config(noreplace) %{_sysconfdir}/php.d/28_ldap.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/28_ldap.ini |
1862 |
%{_libdir}/php/extensions/ldap.so |
%attr(0755,root,root) %{_libdir}/php/extensions/ldap.so |
1863 |
|
|
1864 |
%files mbstring |
%files mbstring |
1865 |
%config(noreplace) %{_sysconfdir}/php.d/29_mbstring.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/29_mbstring.ini |
1866 |
%{_libdir}/php/extensions/mbstring.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mbstring.so |
1867 |
|
|
1868 |
%files mcrypt |
%files mcrypt |
1869 |
%config(noreplace) %{_sysconfdir}/php.d/30_mcrypt.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/30_mcrypt.ini |
1870 |
%{_libdir}/php/extensions/mcrypt.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mcrypt.so |
1871 |
|
|
1872 |
%files mssql |
%files mssql |
1873 |
%config(noreplace) %{_sysconfdir}/php.d/35_mssql.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/35_mssql.ini |
1874 |
%{_libdir}/php/extensions/mssql.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mssql.so |
1875 |
|
|
1876 |
%files mysql |
%files mysql |
1877 |
%config(noreplace) %{_sysconfdir}/php.d/36_mysql.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/36_mysql.ini |
1878 |
%{_libdir}/php/extensions/mysql.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mysql.so |
1879 |
|
|
1880 |
%files mysqli |
%files mysqli |
1881 |
%config(noreplace) %{_sysconfdir}/php.d/37_mysqli.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/37_mysqli.ini |
1882 |
%{_libdir}/php/extensions/mysqli.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mysqli.so |
1883 |
|
|
1884 |
%files mysqlnd |
%files mysqlnd |
1885 |
%config(noreplace) %{_sysconfdir}/php.d/78_mysqlnd.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/78_mysqlnd.ini |
1886 |
%{_libdir}/php/extensions/mysqlnd.so |
%attr(0755,root,root) %{_libdir}/php/extensions/mysqlnd.so |
1887 |
|
|
1888 |
%files odbc |
%files odbc |
1889 |
%config(noreplace) %{_sysconfdir}/php.d/39_odbc.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/39_odbc.ini |
1890 |
%{_libdir}/php/extensions/odbc.so |
%attr(0755,root,root) %{_libdir}/php/extensions/odbc.so |
1891 |
|
|
1892 |
%files pcntl |
%files pcntl |
1893 |
%config(noreplace) %{_sysconfdir}/php.d/40_pcntl.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/40_pcntl.ini |
1894 |
%{_libdir}/php/extensions/pcntl.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pcntl.so |
1895 |
|
|
1896 |
%files pdo |
%files pdo |
1897 |
%config(noreplace) %{_sysconfdir}/php.d/70_pdo.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/70_pdo.ini |
1898 |
%{_libdir}/php/extensions/pdo.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo.so |
1899 |
|
|
1900 |
%files pdo_dblib |
%files pdo_dblib |
1901 |
%config(noreplace) %{_sysconfdir}/php.d/71_pdo_dblib.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/71_pdo_dblib.ini |
1902 |
%{_libdir}/php/extensions/pdo_dblib.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_dblib.so |
1903 |
|
|
1904 |
%files pdo_mysql |
%files pdo_mysql |
1905 |
%config(noreplace) %{_sysconfdir}/php.d/73_pdo_mysql.ini |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/73_pdo_mysql.ini |
1906 |
%{_libdir}/php/extensions/pdo_mysql.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_mysql.so |
1907 |
|
|
1908 |
%files pdo_odbc |
%files pdo_odbc |
1909 |
%config(noreplace) %{_sysconfdir}/php.d/75_pdo_odbc.ini |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/75_pdo_odbc.ini |
1910 |
%{_libdir}/php/extensions/pdo_odbc.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_odbc.so |
1911 |
|
|
1912 |
%files pdo_pgsql |
%files pdo_pgsql |
1913 |
%config(noreplace) %{_sysconfdir}/php.d/76_pdo_pgsql.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/76_pdo_pgsql.ini |
1914 |
%{_libdir}/php/extensions/pdo_pgsql.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_pgsql.so |
1915 |
|
|
1916 |
%files pdo_sqlite |
%files pdo_sqlite |
1917 |
%config(noreplace) %{_sysconfdir}/php.d/77_pdo_sqlite.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/77_pdo_sqlite.ini |
1918 |
%{_libdir}/php/extensions/pdo_sqlite.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_sqlite.so |
1919 |
|
|
1920 |
%files pgsql |
%files pgsql |
1921 |
%config(noreplace) %{_sysconfdir}/php.d/42_pgsql.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/42_pgsql.ini |
1922 |
%{_libdir}/php/extensions/pgsql.so |
%attr(0755,root,root) %{_libdir}/php/extensions/pgsql.so |
1923 |
|
|
1924 |
%files phar |
%files phar |
1925 |
%config(noreplace) %{_sysconfdir}/php.d/84_phar.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/84_phar.ini |
1926 |
%{_libdir}/php/extensions/phar.so |
%attr(0755,root,root) %{_libdir}/php/extensions/phar.so |
1927 |
%{_bindir}/phar |
%attr(0755,root,root) %{_bindir}/phar |
1928 |
|
|
1929 |
%files posix |
%files posix |
1930 |
%config(noreplace) %{_sysconfdir}/php.d/43_posix.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/43_posix.ini |
1931 |
%{_libdir}/php/extensions/posix.so |
%attr(0755,root,root) %{_libdir}/php/extensions/posix.so |
|
|
|
|
#%files pspell |
|
|
#%config(noreplace) %{_sysconfdir}/php.d/44_pspell.ini |
|
|
#%{_libdir}/php/extensions/pspell.so |
|
1932 |
|
|
1933 |
%files readline |
%files readline |
1934 |
%config(noreplace) %{_sysconfdir}/php.d/45_readline.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/45_readline.ini |
1935 |
%{_libdir}/php/extensions/readline.so |
%attr(0755,root,root) %{_libdir}/php/extensions/readline.so |
1936 |
|
|
1937 |
%files recode |
%files recode |
1938 |
%config(noreplace) %{_sysconfdir}/php.d/46_recode.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/46_recode.ini |
1939 |
%{_libdir}/php/extensions/recode.so |
%attr(0755,root,root) %{_libdir}/php/extensions/recode.so |
1940 |
|
|
1941 |
%files session |
%files session |
1942 |
%config(noreplace) %{_sysconfdir}/php.d/47_session.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/47_session.ini |
1943 |
%config(noreplace) %{_sysconfdir}/cron.d/php |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/php |
1944 |
%{_libdir}/php/extensions/session.so |
%attr(0755,root,root) %{_libdir}/php/extensions/session.so |
1945 |
%{_libdir}/php/maxlifetime |
%attr(0755,root,root) %{_libdir}/php/maxlifetime |
1946 |
%attr(01733,apache,apache) %dir /var/lib/php |
%attr(01733,apache,apache) %dir /var/lib/php |
1947 |
|
|
1948 |
%files shmop |
%files shmop |
1949 |
%config(noreplace) %{_sysconfdir}/php.d/48_shmop.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/48_shmop.ini |
1950 |
%{_libdir}/php/extensions/shmop.so |
%attr(0755,root,root) %{_libdir}/php/extensions/shmop.so |
1951 |
|
|
1952 |
%files snmp |
%files snmp |
1953 |
%config(noreplace) %{_sysconfdir}/php.d/50_snmp.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/50_snmp.ini |
1954 |
%{_libdir}/php/extensions/snmp.so |
%attr(0755,root,root) %{_libdir}/php/extensions/snmp.so |
1955 |
|
|
1956 |
%files soap |
%files soap |
1957 |
%config(noreplace) %{_sysconfdir}/php.d/51_soap.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/51_soap.ini |
1958 |
%{_libdir}/php/extensions/soap.so |
%attr(0755,root,root) %{_libdir}/php/extensions/soap.so |
1959 |
|
|
1960 |
%files sockets |
%files sockets |
1961 |
%config(noreplace) %{_sysconfdir}/php.d/52_sockets.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/52_sockets.ini |
1962 |
%{_libdir}/php/extensions/sockets.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sockets.so |
|
|
|
|
%files sqlite |
|
|
%config(noreplace) %{_sysconfdir}/php.d/78_sqlite.ini |
|
|
%{_libdir}/php/extensions/sqlite.so |
|
1963 |
|
|
1964 |
%files sqlite3 |
%files sqlite3 |
1965 |
%config(noreplace) %{_sysconfdir}/php.d/78_sqlite3.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/78_sqlite3.ini |
1966 |
%{_libdir}/php/extensions/sqlite3.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sqlite3.so |
1967 |
|
|
1968 |
%files sybase_ct |
%files sybase_ct |
1969 |
%config(noreplace) %{_sysconfdir}/php.d/46_sybase_ct.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/46_sybase_ct.ini |
1970 |
%{_libdir}/php/extensions/sybase_ct.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sybase_ct.so |
1971 |
|
|
1972 |
%files sysvmsg |
%files sysvmsg |
1973 |
%config(noreplace) %{_sysconfdir}/php.d/56_sysvmsg.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/56_sysvmsg.ini |
1974 |
%{_libdir}/php/extensions/sysvmsg.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sysvmsg.so |
1975 |
|
|
1976 |
%files sysvsem |
%files sysvsem |
1977 |
%config(noreplace) %{_sysconfdir}/php.d/57_sysvsem.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/57_sysvsem.ini |
1978 |
%{_libdir}/php/extensions/sysvsem.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sysvsem.so |
1979 |
|
|
1980 |
%files sysvshm |
%files sysvshm |
1981 |
%config(noreplace) %{_sysconfdir}/php.d/58_sysvshm.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/58_sysvshm.ini |
1982 |
%{_libdir}/php/extensions/sysvshm.so |
%attr(0755,root,root) %{_libdir}/php/extensions/sysvshm.so |
1983 |
|
|
1984 |
%files tidy |
%files tidy |
1985 |
%config(noreplace) %{_sysconfdir}/php.d/59_tidy.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/59_tidy.ini |
1986 |
%{_libdir}/php/extensions/tidy.so |
%attr(0755,root,root) %{_libdir}/php/extensions/tidy.so |
1987 |
|
|
1988 |
%files tokenizer |
%files tokenizer |
1989 |
%config(noreplace) %{_sysconfdir}/php.d/60_tokenizer.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/60_tokenizer.ini |
1990 |
%{_libdir}/php/extensions/tokenizer.so |
%attr(0755,root,root) %{_libdir}/php/extensions/tokenizer.so |
1991 |
|
|
1992 |
%files xml |
%files xml |
1993 |
%config(noreplace) %{_sysconfdir}/php.d/62_xml.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/62_xml.ini |
1994 |
%{_libdir}/php/extensions/xml.so |
%attr(0755,root,root) %{_libdir}/php/extensions/xml.so |
1995 |
|
|
1996 |
%files xmlreader |
%files xmlreader |
1997 |
%config(noreplace) %{_sysconfdir}/php.d/63_xmlreader.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/63_xmlreader.ini |
1998 |
%{_libdir}/php/extensions/xmlreader.so |
%attr(0755,root,root) %{_libdir}/php/extensions/xmlreader.so |
1999 |
|
|
2000 |
%files xmlrpc |
%files xmlrpc |
2001 |
%config(noreplace) %{_sysconfdir}/php.d/62_xmlrpc.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/62_xmlrpc.ini |
2002 |
%{_libdir}/php/extensions/xmlrpc.so |
%attr(0755,root,root) %{_libdir}/php/extensions/xmlrpc.so |
2003 |
|
|
2004 |
%files xmlwriter |
%files xmlwriter |
2005 |
%config(noreplace) %{_sysconfdir}/php.d/64_xmlwriter.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/64_xmlwriter.ini |
2006 |
%{_libdir}/php/extensions/xmlwriter.so |
%attr(0755,root,root) %{_libdir}/php/extensions/xmlwriter.so |
2007 |
|
|
2008 |
%files xsl |
%files xsl |
2009 |
%config(noreplace) %{_sysconfdir}/php.d/63_xsl.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/63_xsl.ini |
2010 |
%{_libdir}/php/extensions/xsl.so |
%attr(0755,root,root) %{_libdir}/php/extensions/xsl.so |
2011 |
|
|
2012 |
%files wddx |
%files wddx |
2013 |
%config(noreplace) %{_sysconfdir}/php.d/63_wddx.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/63_wddx.ini |
2014 |
%{_libdir}/php/extensions/wddx.so |
%attr(0755,root,root) %{_libdir}/php/extensions/wddx.so |
2015 |
|
|
2016 |
%files zip |
%files zip |
2017 |
%config(noreplace) %{_sysconfdir}/php.d/83_zip.ini |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/83_zip.ini |
2018 |
%{_libdir}/php/extensions/zip.so |
%attr(0755,root,root) %{_libdir}/php/extensions/zip.so |
2019 |
|
|
2020 |
|
%files fpm |
2021 |
|
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE |
2022 |
|
/lib/systemd/system/php-fpm.service |
2023 |
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php-fpm.conf |
2024 |
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
2025 |
|
%attr(0644,root,root) %{_sysconfdir}/logrotate.d/php-fpm |
2026 |
|
%attr(0755,root,root) %dir %{_sysconfdir}/php-fpm.d |
2027 |
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf |
2028 |
|
%attr(0755,root,root) %{_sbindir}/php-fpm |
2029 |
|
%attr(0644,root,root) %{_mandir}/man8/php-fpm.8* |
2030 |
|
%attr(0711,apache,apache) %dir /var/lib/php-fpm |
2031 |
|
%attr(0711,apache,apache) %dir /var/log/php-fpm |
2032 |
|
%attr(0711,apache,apache) %dir /var/run/php-fpm |