]>
Commit | Line | Data |
---|---|---|
fdbf13b1 ER |
1 | # TODO 5.5: |
2 | # - enable --with-fpm-systemd, but ensure it checks for sd_booted() | |
6807c643 | 3 | # - build with system libgd 2.1, see 73c5128 |
02d2dcbb | 4 | # TODO 5.4: |
02d2dcbb | 5 | # - check php-sapi-ini-file.patch for safe mode removal |
02d2dcbb ER |
6 | # - update imap annotations patch (needs api porting) |
7 | # - update imap myrights patch (needs api porting) | |
02d2dcbb | 8 | # --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base install directory BUNDLED |
ea0fc5e3 | 9 | # --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. |
13f02a12 ER |
10 | # NOTE: mysqlnd does not support ssl or compression (see FAQ at http://dev.mysql.com/downloads/connector/php-mysqlnd/) |
11 | # UNPACKAGED EXTENSION NOTES: | |
12 | # - com_dotnet is Win32-only | |
c0240cb1 | 13 | # TODO: |
ef621865 ER |
14 | # - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M |
15 | # - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64 | |
16 | # - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64 | |
17 | # - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64 | |
c0240cb1 | 18 | # - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820 |
19 | # - wddx: restore session support (not compiled in due DL extension check) | |
20 | # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere | |
21 | # - removed from php 5.0 (currently in php4): | |
22 | # db [pecl-svn], hyperwave [pecl-svn], java [pecl-svn], mcal [pecl-svn], qtdom [pecl-svn] | |
23 | # - removed from php 5.1: | |
24 | # oracle [pecl-svn] | |
25 | # - removed from php 5.2: | |
26 | # filepro [pecl-svn], hwapi [pecl-svn] | |
27 | # - make additional headers and checking added by mail patch configurable | |
28 | # - modularize standard (output from pure php -m)? | |
29 | # - lib64 patch obsolete by $PHP_LIBDIR ? | |
30 | # - WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is | |
31 | # built shared, also PHAR_HAVE_OPENSSL is false if openssl is built shared. | |
32 | # make it runtime dep and add Suggests (or php warning messages) | |
33 | # - some mods should be shared: | |
34 | #$ php -m | |
35 | # [PHP Modules] | |
36 | #+Core | |
37 | # date | |
38 | #+ereg | |
39 | # libxml | |
40 | # Reflection | |
41 | # | |
42 | # Conditional build: | |
0a498a94 JB |
43 | # - packaging options |
44 | %bcond_without alternatives # use alternatives system to select default phar and php-fpm | |
45 | %bcond_with default_php # build this PHP as default PHP in system (disables alternatives) | |
46 | # - General options: | |
47 | %bcond_without embed # disable building Embedded API | |
48 | %bcond_with gcov # Enable Code coverage reporting | |
49 | %bcond_without kerberos5 # without Kerberos5 support | |
50 | %bcond_with suhosin # with suhosin patch, has little point in PHP>=5.3, see https://github.com/stefanesser/suhosin/issues/42#issuecomment-41728178 | |
51 | %bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test" | |
52 | %bcond_with type_hints # experimental support for strict typing/casting | |
53 | %bcond_with zts # Zend Thread Safety | |
54 | # - SAPI | |
55 | %bcond_without apache1 # disable building Apache 1.3.x SAPI | |
56 | %bcond_without apache2 # disable building Apache 2.x SAPI | |
57 | %bcond_without cgi # disable CGI/FCGI SAPI | |
58 | %bcond_without fpm # disable FPM SAPI | |
59 | %bcond_without litespeed # build litespeed SAPI | |
60 | # - Extensions | |
61 | %bcond_without bcmath # without bcmath extension module | |
62 | %bcond_without bz2 # without bz2 extension module | |
63 | %bcond_without calendar # without calendar extension module | |
64 | %bcond_without ctype # without ctype extension module | |
c0240cb1 | 65 | %bcond_without curl # without CURL extension module |
13f02a12 | 66 | %bcond_without enchant # without Enchant extension module |
d8c3b589 | 67 | %bcond_without filter # without filter extension module |
c0240cb1 | 68 | %bcond_without imap # without IMAP extension module |
69 | %bcond_without interbase # without InterBase extension module | |
689a4e56 | 70 | %bcond_without intl # without Intl extension module |
c0240cb1 | 71 | %bcond_without ldap # without LDAP extension module |
72 | %bcond_without mhash # without mhash extension (supported by hash extension) | |
c0240cb1 | 73 | %bcond_without mssql # without MS SQL extension module |
74 | # don't turn it on by default; see TODO item for mysqlnd in this spec | |
75 | %bcond_with mysqlnd # with mysqlnd support in mysql related extensions | |
76 | %bcond_without mysqli # without mysqli support (Requires mysql > 4.1) | |
0a498a94 | 77 | %bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs) |
c0240cb1 | 78 | %bcond_without odbc # without ODBC extension module |
8328535b | 79 | %bcond_without opcache # without Enable Zend OPcache extension support |
c0240cb1 | 80 | %bcond_without openssl # without OpenSSL support and OpenSSL extension (module) |
81 | %bcond_without pcre # without PCRE extension module | |
82 | %bcond_without pdo_sqlite # without PDO SQLite extension module | |
83 | %bcond_without pgsql # without PostgreSQL extension module | |
84 | %bcond_without phar # without phar extension module | |
85 | %bcond_without pspell # without pspell extension module | |
86 | %bcond_without recode # without recode extension module | |
87 | %bcond_without snmp # without SNMP extension module | |
88 | %bcond_without sqlite2 # without SQLite extension module | |
89 | %bcond_without sqlite3 # without SQLite3 extension module | |
90 | %bcond_without sybase_ct # without Sybase-CT extension module | |
91 | %bcond_without tidy # without Tidy extension module | |
92 | %bcond_without wddx # without WDDX extension module | |
93 | %bcond_without xmlrpc # without XML-RPC extension module | |
0a498a94 JB |
94 | # extensions options |
95 | %bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package | |
96 | %bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs) | |
97 | %bcond_with mm # without mm support for session storage | |
98 | %bcond_with system_gd # with system gd (imageantialias function is missing then) | |
99 | %bcond_with system_libzip # with system libzip (reported broken currently) | |
100 | %bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp) | |
c0240cb1 | 101 | |
102 | %define apxs1 /usr/sbin/apxs1 | |
103 | %define apxs2 /usr/sbin/apxs | |
c0240cb1 | 104 | |
105 | # disable all sapis | |
106 | %if %{with gcov} | |
107 | %undefine with_apache1 | |
108 | %undefine with_apache2 | |
109 | %undefine with_cgi | |
110 | %undefine with_litespeed | |
111 | %endif | |
112 | ||
0a498a94 JB |
113 | %if %{with default_php} |
114 | %undefine with_alternatives | |
115 | %endif | |
116 | ||
c0240cb1 | 117 | # mm is not thread safe |
118 | %if %{with zts} | |
119 | %undefine with_mm | |
120 | %endif | |
121 | ||
dc101b85 | 122 | %ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha |
c0240cb1 | 123 | # ppc disabled (broken on th-ppc) |
124 | %undefine with_interbase | |
125 | %endif | |
126 | ||
dc101b85 | 127 | %ifnarch %{ix86} %{x8664} x32 |
c0240cb1 | 128 | # unsupported, see sapi/cgi/fpm/fpm_atomic.h |
129 | %undefine with_fpm | |
130 | %endif | |
131 | ||
132 | %if 0 | |
133 | %if %{without apache1} && %{without apache2} | |
134 | ERROR: You need to select at least one Apache SAPI to build shared modules. | |
135 | %endif | |
136 | %endif | |
137 | ||
138 | # filter depends on pcre | |
139 | %if %{without pcre} | |
140 | %undefine with_filter | |
141 | %endif | |
142 | ||
756f3314 | 143 | %define rel 23 |
580d93e0 ER |
144 | %define orgname php |
145 | %define ver_suffix 55 | |
146 | %define php_suffix %{!?with_default_php:%{ver_suffix}} | |
c0240cb1 | 147 | Summary: PHP: Hypertext Preprocessor |
148 | Summary(fr.UTF-8): Le langage de script embarque-HTML PHP | |
149 | Summary(pl.UTF-8): Język skryptowy PHP | |
150 | Summary(pt_BR.UTF-8): A linguagem de script PHP | |
151 | Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере | |
152 | Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері | |
a3c07000 | 153 | Name: %{orgname}%{php_suffix} |
cd61c523 | 154 | Version: 5.5.38 |
6cec851c | 155 | Release: %{rel}%{?with_type_hints:.th} |
c0240cb1 | 156 | Epoch: 4 |
46464c9c ER |
157 | # All files licensed under PHP version 3.01, except |
158 | # Zend is licensed under Zend | |
159 | # TSRM is licensed under BSD | |
160 | License: PHP 3.01 and Zend and BSD | |
c0240cb1 | 161 | Group: Libraries |
44db6831 | 162 | Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.xz |
cd61c523 | 163 | # Source0-md5: 72302e26f153687e2ca922909f927443 |
a3c07000 ER |
164 | Source2: %{orgname}-mod_%{orgname}.conf |
165 | Source3: %{orgname}-cgi-fcgi.ini | |
166 | Source4: %{orgname}-apache.ini | |
167 | Source5: %{orgname}-cli.ini | |
a3c07000 ER |
168 | Source10: %{orgname}-fpm.init |
169 | Source11: %{orgname}-fpm.logrotate | |
170 | Source12: %{orgname}-branch.sh | |
c0240cb1 | 171 | Source13: dep-tests.sh |
172 | Source14: skip-tests.sh | |
a3c07000 ER |
173 | Patch0: %{orgname}-shared.patch |
174 | Patch1: %{orgname}-pldlogo.patch | |
175 | Patch2: %{orgname}-mail.patch | |
176 | Patch3: %{orgname}-link-libs.patch | |
cd8282f1 | 177 | Patch4: php-bug-71475.patch |
a3c07000 ER |
178 | Patch5: %{orgname}-filter-shared.patch |
179 | Patch6: %{orgname}-build_modules.patch | |
180 | Patch7: %{orgname}-sapi-ini-file.patch | |
ba5a9013 | 181 | Patch8: openssl.patch |
a3c07000 | 182 | Patch10: %{orgname}-ini.patch |
13f02a12 | 183 | Patch11: embed.patch |
c0240cb1 | 184 | %if %{with type_hints} |
185 | Patch12: http://ilia.ws/patch/type_hint_53_v2.txt | |
186 | %endif | |
a3c07000 | 187 | Patch14: %{orgname}-no_pear_install.patch |
a3c07000 ER |
188 | Patch17: %{orgname}-readline.patch |
189 | Patch18: %{orgname}-nohttpd.patch | |
a3c07000 ER |
190 | Patch20: %{orgname}-uint32_t.patch |
191 | Patch21: %{orgname}-dba-link.patch | |
192 | Patch22: %{orgname}-both-apxs.patch | |
193 | Patch23: %{orgname}-builddir.patch | |
194 | Patch24: %{orgname}-zlib-for-getimagesize.patch | |
195 | Patch25: %{orgname}-stupidapache_version.patch | |
196 | Patch26: %{orgname}-pear.patch | |
197 | Patch27: %{orgname}-config-dir.patch | |
198 | Patch29: %{orgname}-fcgi-graceful.patch | |
199 | Patch31: %{orgname}-fcgi-error_log-no-newlines.patch | |
a3c07000 ER |
200 | Patch34: %{orgname}-libtool.patch |
201 | Patch35: %{orgname}-tds.patch | |
202 | Patch36: %{orgname}-mysql-charsetphpini.patch | |
203 | Patch37: %{orgname}-mysqli-charsetphpini.patch | |
204 | Patch38: %{orgname}-pdo_mysql-charsetphpini.patch | |
205 | Patch39: %{orgname}-use-prog_sendmail.patch | |
206 | Patch41: %{orgname}-fpm-config.patch | |
207 | Patch42: %{orgname}-fpm-shared.patch | |
208 | Patch43: %{orgname}-silent-session-cleanup.patch | |
209 | Patch44: %{orgname}-include_path.patch | |
210 | Patch45: %{orgname}-imap-annotations.patch | |
211 | Patch46: %{orgname}-imap-myrights.patch | |
c0240cb1 | 212 | Patch47: suhosin.patch |
c0240cb1 | 213 | Patch50: extension-shared-optional-dep.patch |
214 | Patch51: spl-shared.patch | |
215 | Patch52: pcre-shared.patch | |
216 | Patch53: fix-test-run.patch | |
c0240cb1 | 217 | Patch55: bug-52078-fileinode.patch |
a3c07000 ER |
218 | Patch59: %{orgname}-systzdata.patch |
219 | Patch60: %{orgname}-oracle-instantclient.patch | |
c0240cb1 | 220 | Patch62: mcrypt-libs.patch |
a3c07000 | 221 | Patch63: %{orgname}-mysql-nowarning.patch |
13f02a12 | 222 | Patch65: system-libzip.patch |
89f3bdfa | 223 | Patch66: php-db.patch |
f141d13b | 224 | Patch67: mysql-lib-ver-mismatch.patch |
dc101b85 | 225 | Patch68: x32.patch |
b604e307 | 226 | Patch69: fpm-conf-split.patch |
8d5b3144 | 227 | Patch70: php-icu64.patch |
c0240cb1 | 228 | URL: http://www.php.net/ |
229 | %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}} | |
230 | %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0} | |
9eb543e2 | 231 | BuildRequires: autoconf >= 2.59 |
c0240cb1 | 232 | BuildRequires: automake >= 1.4d |
233 | BuildRequires: bison | |
234 | BuildRequires: bzip2-devel | |
235 | %{?with_curl:BuildRequires: curl-devel >= 7.12.0} | |
236 | BuildRequires: cyrus-sasl-devel | |
237 | BuildRequires: db-devel >= 4.0 | |
238 | BuildRequires: elfutils-devel | |
13f02a12 | 239 | %{?with_enchant:BuildRequires: enchant-devel >= 1.1.3} |
c0240cb1 | 240 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
3f5c4b2e | 241 | %{?with_system_libzip:BuildRequires: libzip-devel >= 0.10.1-2} |
81d9fe7d | 242 | %{!?with_mysqlnd:BuildRequires: mysql-devel} |
c0240cb1 | 243 | BuildRequires: pkgconfig |
244 | BuildRequires: sed >= 4.0 | |
245 | %if %{with mssql} || %{with sybase_ct} | |
246 | BuildRequires: freetds-devel >= 0.82 | |
247 | %endif | |
7d68bd4f | 248 | BuildRequires: freetype-devel >= 1:2.5.1 |
c0240cb1 | 249 | %if %{with system_gd} |
73c5128c | 250 | BuildRequires: gd-devel >= 2.1 |
c0240cb1 | 251 | %endif |
252 | BuildRequires: gdbm-devel | |
253 | BuildRequires: gmp-devel | |
254 | %{?with_imap:BuildRequires: imap-devel >= 1:2007e-2} | |
9efb5102 | 255 | %{?with_intl:BuildRequires: libicu-devel >= 4.4} |
c0240cb1 | 256 | BuildRequires: libjpeg-devel |
257 | BuildRequires: libltdl-devel >= 1.4 | |
258 | BuildRequires: libmcrypt-devel >= 2.4.4 | |
259 | BuildRequires: libpng-devel >= 1.0.8 | |
a1c3512c | 260 | %{?with_intl:BuildRequires: libstdc++-devel} |
d8c3b589 | 261 | %{?with_webp:BuildRequires: libvpx-devel} |
36fd40c8 | 262 | BuildRequires: tokyocabinet-devel |
c0240cb1 | 263 | %if "%{pld_release}" != "ac" |
2fc95094 | 264 | BuildRequires: libtool >= 2:2.4.6 |
c0240cb1 | 265 | %else |
266 | BuildRequires: libtool >= 1.4.3 | |
267 | %endif | |
c0240cb1 | 268 | BuildRequires: libxml2-devel >= 1:2.7.6-4 |
269 | BuildRequires: libxslt-devel >= 1.1.0 | |
270 | %{?with_mm:BuildRequires: mm-devel >= 1.3.0} | |
271 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} | |
272 | %if %{with openssl} || %{with ldap} | |
273 | BuildRequires: openssl-devel >= 0.9.7d | |
274 | %endif | |
275 | %{?with_gcov:BuildRequires: lcov} | |
276 | %{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}} | |
277 | %{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7} | |
329b4394 | 278 | %{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}} |
c0240cb1 | 279 | BuildRequires: pam-devel |
fdafc4af | 280 | %{?with_pcre:BuildRequires: pcre-devel >= 8.38} |
c0240cb1 | 281 | BuildRequires: pkgconfig |
282 | %{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2} | |
283 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
284 | BuildRequires: readline-devel | |
285 | %{?with_recode:BuildRequires: recode-devel >= 3.5d-3} | |
286 | BuildRequires: rpm >= 4.4.9-56 | |
287 | BuildRequires: rpm-build >= 4.4.0 | |
288 | BuildRequires: rpmbuild(macros) >= 1.566 | |
9efb5102 ER |
289 | BuildRequires: tar >= 1:1.22 |
290 | BuildRequires: xz | |
c0240cb1 | 291 | %if %{with sqlite3} || %{with pdo_sqlite} |
292 | BuildRequires: sqlite3-devel >= 3.3.9 | |
293 | %endif | |
294 | BuildRequires: t1lib-devel | |
295 | %{?with_tidy:BuildRequires: tidy-devel} | |
296 | %{?with_odbc:BuildRequires: unixODBC-devel} | |
297 | %{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1} | |
298 | BuildRequires: zlib-devel >= 1.0.9 | |
299 | %if %{with apache1} | |
300 | BuildRequires: apache1-devel | |
301 | %endif | |
302 | %if %{with apache2} | |
303 | BuildRequires: apache-devel >= 2.0.52-2 | |
304 | BuildRequires: apr-devel >= 1:1.0.0 | |
305 | BuildRequires: apr-util-devel >= 1:1.0.0 | |
306 | %endif | |
c0240cb1 | 307 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
308 | ||
cfb6f787 ER |
309 | %define php_sysconfdir /etc/%{name} |
310 | %define php_extensiondir %{_libdir}/%{name} | |
c0240cb1 | 311 | %define _sysconfdir %{php_sysconfdir} |
312 | ||
313 | # must be in sync with source. extra check ensuring that it is so is done in %%build | |
9efb5102 | 314 | %define php_api_version 20121113 |
153a312d ER |
315 | %define zend_module_api 20121212 |
316 | %define zend_extension_api 220121212 | |
a6af2a14 | 317 | %define php_pdo_api_version 20080721 |
c0240cb1 | 318 | |
13f02a12 ER |
319 | # Extension versions |
320 | %define bz2ver 1.0 | |
321 | %define enchantver 1.1.0 | |
2e0e7ed6 | 322 | %define fileinfover 1.0.5 |
13f02a12 ER |
323 | %define hashver 1.0 |
324 | %define intlver 1.1.0 | |
325 | %define jsonver 1.2.1 | |
ddd998b3 | 326 | %define opcachever 7.0.6-dev |
ece5522f | 327 | %define pharver 2.0.2 |
9efb5102 | 328 | %define sqlite3ver 0.7-dev |
ce9aa3af | 329 | %define zipver 1.11.0 |
13f02a12 | 330 | |
a6af2a14 | 331 | %define _zend_zts %{!?with_zts:0}%{?with_zts:1} |
c0240cb1 | 332 | %define php_debug %{!?debug:0}%{?debug:1} |
333 | ||
334 | %if %{with gcov} | |
335 | %undefine with_ccache | |
336 | %endif | |
337 | ||
329b4394 | 338 | %if %{with oci} |
c0240cb1 | 339 | # ORACLE_HOME is required for oci8 ext to build |
340 | %define _preserve_env %_preserve_env_base ORACLE_HOME | |
341 | %endif | |
342 | ||
343 | %description | |
344 | PHP is an HTML-embedded scripting language. PHP attempts to make it | |
345 | easy for developers to write dynamically generated web pages. PHP also | |
346 | offers built-in database integration for several commercial and | |
347 | non-commercial database management systems, so writing a | |
348 | database-enabled web page with PHP is fairly simple. The most common | |
349 | use of PHP coding is probably as a replacement for CGI scripts. The | |
350 | mod_php module enables the Apache web server to understand and process | |
351 | the embedded PHP language in web pages. This package contains PHP | |
352 | version %{version}. | |
353 | ||
354 | %description -l fr.UTF-8 | |
355 | PHP est un langage de script embarque dans le HTM. PHP essaye de | |
356 | rendre simple aux developpeurs d'ecrire des pages web generees | |
357 | dynamiquement. PHP incorpore egalement une integration avec plusieurs | |
358 | systemes de gestion de bases de donnees commerciaux et | |
359 | non-connerciaux, qui rent facile la creation de pages web liees avec | |
360 | des bases de donnees. L'utilisation la plus commune de PHP est | |
361 | probablement en remplacement de scripts CGI. Le module mod_php permet | |
362 | au serveur web Apache de comprendre et de traiter le langage PHP | |
363 | integre dans des pages web. Ce package contient PHP version | |
364 | %{version}. | |
365 | ||
366 | %description -l pl.UTF-8 | |
367 | PHP jest językiem skryptowym, którego polecenia umieszcza się w | |
368 | plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie | |
369 | generowanych stron WWW. Oferuje także wbudowaną integrację z bazami | |
370 | danych dla kilku komercyjnych i niekomercyjnych systemów baz danych, | |
371 | co czyni tworzenie stron korzystających z baz danych w miarę łatwym. | |
372 | Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów | |
373 | CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać | |
374 | język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji | |
375 | %{version}. | |
376 | ||
377 | %description -l pt_BR.UTF-8 | |
378 | PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script | |
379 | embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl, | |
380 | com algumas características únicas, específicas ao PHP. O objetivo da | |
381 | linguagem é permitir que desenvolvedores web escrevam páginas | |
382 | dinamicamente geradas de forma rápida. | |
383 | ||
384 | %description -l ru.UTF-8 | |
385 | PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP | |
386 | предлагает интерграцию с множеством СУБД, поэтому написание скриптов | |
387 | для работы с базами данных относительно просто. Наиболее популярное | |
388 | использование PHP - замена для CGI скриптов. | |
389 | ||
390 | %description -l uk.UTF-8 | |
391 | PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP | |
392 | пропонує інтеграцію з багатьма СУБД, тому написання скриптів для | |
393 | роботи з базами даних є доволі простим. Найбільш популярне | |
394 | використання PHP - заміна для CGI скриптів. | |
395 | ||
aa424f73 | 396 | %package -n apache1-mod_%{name} |
c0240cb1 | 397 | Summary: PHP DSO module for Apache 1.3.x |
398 | Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x | |
399 | Group: Development/Languages/PHP | |
c0240cb1 | 400 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
401 | Requires: apache1(EAPI) >= 1.3.33-2 | |
402 | Requires: apache1-mod_mime | |
403 | Provides: webserver(php) = %{version} | |
404 | Obsoletes: apache-mod_php < 1:4.1.1 | |
d6634248 | 405 | Obsoletes: apache1-mod_php < 4:5.3.28-7 |
c0240cb1 | 406 | Obsoletes: phpfi |
407 | ||
aa424f73 | 408 | %description -n apache1-mod_%{name} |
c0240cb1 | 409 | PHP as DSO module for Apache 1.3.x. |
410 | ||
aa424f73 | 411 | %description -n apache1-mod_%{name} -l pl.UTF-8 |
c0240cb1 | 412 | PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x. |
413 | ||
aa424f73 | 414 | %package -n apache-mod_%{name} |
51f5a9e3 AM |
415 | Summary: PHP support for Apache 2.x |
416 | Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x | |
c0240cb1 | 417 | Group: Development/Languages/PHP |
51f5a9e3 | 418 | Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release} |
c0240cb1 | 419 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
c0240cb1 | 420 | Provides: webserver(php) = %{version} |
d6634248 | 421 | Obsoletes: apache-mod_php < 4:5.3.28-7 |
c0240cb1 | 422 | Obsoletes: phpfi |
423 | ||
aa424f73 | 424 | %description -n apache-mod_%{name} |
51f5a9e3 | 425 | PHP support for Apache 2.x. |
c0240cb1 | 426 | |
aa424f73 | 427 | %description -n apache-mod_%{name} -l pl.UTF-8 |
51f5a9e3 AM |
428 | Wsparcie PHP dla Apache 2.x. |
429 | ||
430 | %package -n apache-mod_%{name}-core | |
431 | Summary: PHP DSO module for Apache 2.x | |
432 | Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x | |
433 | Group: Development/Languages/PHP | |
434 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
435 | Requires: apache(modules-api) = %{apache_modules_api} | |
436 | Requires: apache-mod_mime | |
437 | ||
438 | %description -n apache-mod_%{name}-core | |
439 | PHP as DSO module for Apache 2.x. | |
440 | ||
441 | %description -n apache-mod_%{name}-core -l pl.UTF-8 | |
c0240cb1 | 442 | PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x. |
443 | ||
444 | %package litespeed | |
445 | Summary: PHP for litespeed HTTP server | |
446 | Summary(pl.UTF-8): PHP dla serwera HTTP litespeed | |
447 | Group: Development/Languages/PHP | |
448 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
2ca856d0 | 449 | Provides: php(litespeed) |
c0240cb1 | 450 | Provides: webserver(php) = %{version} |
d6634248 | 451 | Obsoletes: php-litespeed < 4:5.3.28-7 |
c0240cb1 | 452 | |
453 | %description litespeed | |
454 | PHP for litespeed HTTP server. | |
455 | ||
456 | %description litespeed -l pl.UTF-8 | |
457 | PHP dla serwera HTTP litespeed. | |
458 | ||
459 | %package cgi | |
460 | Summary: PHP as CGI/FastCGI program | |
461 | Summary(pl.UTF-8): PHP jako program CGI/FastCGI | |
462 | Group: Development/Languages/PHP | |
463 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
464 | Provides: %{name}-fcgi = %{epoch}:%{version}-%{release} | |
465 | Provides: php(cgi) | |
466 | Provides: php(fcgi) | |
ecbcdf28 | 467 | Provides: webserver(php) = %{version} |
d6634248 | 468 | Obsoletes: php-cgi < 4:5.3.28-7 |
c0240cb1 | 469 | Obsoletes: php-fcgi < 4:5.3.0 |
470 | ||
471 | %description cgi | |
472 | PHP as CGI or FastCGI program. | |
473 | ||
474 | %description cgi -l pl.UTF-8 | |
475 | PHP jako program CGI lub FastCGI. | |
476 | ||
477 | %package cli | |
478 | Summary: PHP as CLI interpreter | |
479 | Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń | |
480 | Group: Development/Languages/PHP | |
481 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
d6634248 | 482 | Obsoletes: php-cli < 4:5.3.28-7 |
c0240cb1 | 483 | |
484 | %description cli | |
485 | PHP as CLI interpreter. | |
486 | ||
487 | %description cli -l pl.UTF-8 | |
488 | PHP jako interpreter działający z linii poleceń. | |
489 | ||
13f02a12 ER |
490 | %package embedded |
491 | Summary: PHP library for embedding in applications | |
0bbc8abe | 492 | Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach |
13f02a12 ER |
493 | Group: Libraries |
494 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
d6634248 | 495 | Obsoletes: php-embedded < 4:5.3.28-7 |
13f02a12 ER |
496 | |
497 | %description embedded | |
498 | The php-embedded package contains a library which can be embedded into | |
499 | applications to provide PHP scripting language support. | |
500 | ||
0bbc8abe | 501 | %description embedded -l pl.UTF-8 |
cfb6f787 | 502 | Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w |
0bbc8abe JB |
503 | celu obsługi PHP jako języka skryptowego. |
504 | ||
c0240cb1 | 505 | %package program |
506 | Summary: /usr/bin/php symlink | |
507 | Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php | |
508 | Group: Development/Languages/PHP | |
509 | Requires: %{name}-cli = %{epoch}:%{version}-%{release} | |
e54798c7 | 510 | Obsoletes: php-program < 4:5.3.28-7 |
756f3314 AG |
511 | Obsoletes: php4-program |
512 | Obsoletes: php52-program | |
513 | Obsoletes: php53-program | |
514 | Obsoletes: php54-program | |
515 | Obsoletes: php56-program | |
516 | Obsoletes: php70-program | |
517 | Obsoletes: php71-program | |
518 | Obsoletes: php72-program | |
519 | Obsoletes: php73-program | |
520 | Obsoletes: php74-program | |
521 | Obsoletes: php80-program | |
c0240cb1 | 522 | |
523 | %description program | |
524 | Package providing /usr/bin/php symlink to PHP CLI. | |
525 | ||
526 | %description program -l pl.UTF-8 | |
527 | Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI. | |
528 | ||
529 | %package fpm | |
530 | Summary: PHP FastCGI Process Manager | |
531 | Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI | |
532 | Group: Development/Languages/PHP | |
533 | URL: http://www.php-fpm.org/ | |
534 | Requires(post,preun): /sbin/chkconfig | |
535 | Requires(postun): /usr/sbin/userdel | |
536 | Requires(pre): /bin/id | |
537 | Requires(pre): /usr/sbin/useradd | |
538 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
0a498a94 | 539 | %{?with_alternatives:Requires: alternatives} |
d79f8108 | 540 | Requires: php-dirs >= 1.4-2 |
49d5c4ee | 541 | Requires: rc-scripts |
2ca856d0 | 542 | Provides: php(fpm) |
c0240cb1 | 543 | Provides: user(http) |
544 | Provides: webserver(php) = %{version} | |
d6634248 | 545 | Obsoletes: php-fpm < 4:5.3.28-7 |
0443386d TP |
546 | %if "%{pld_release}" != "ac" |
547 | Conflicts: logrotate < 3.8.0 | |
548 | %endif | |
c0240cb1 | 549 | |
550 | %description fpm | |
551 | PHP FastCGI Process Manager. | |
552 | ||
553 | %description fpm -l pl.UTF-8 | |
554 | PHP FastCGI Process Manager - zarządca procesów FastCGI. | |
555 | ||
556 | %package common | |
557 | Summary: Common files needed by both Apache modules and CGI/CLI SAPIs | |
558 | Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI | |
559 | Summary(ru.UTF-8): Разделяемые библиотеки для PHP | |
560 | Summary(uk.UTF-8): Бібліотеки спільного використання для PHP | |
561 | Group: Libraries | |
562 | Requires(post): sed >= 4.0 | |
563 | # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit | |
564 | Requires: glibc >= 6:2.3.5 | |
3f8f8051 | 565 | Requires: php-dirs >= 1.4 |
c0240cb1 | 566 | Requires: rpm-whiteout >= 1.28 |
567 | Requires: tzdata | |
d87d42cb ER |
568 | Provides: %{name}(debug) = %{php_debug} |
569 | Provides: %{name}(modules_api) = %{php_api_version} | |
a6af2a14 | 570 | Provides: %{name}(thread-safety) = %{_zend_zts} |
d87d42cb ER |
571 | Provides: %{name}(zend_extension_api) = %{zend_extension_api} |
572 | Provides: %{name}(zend_module_api) = %{zend_module_api} | |
93e7acf8 | 573 | Provides: %{name}-core |
d87d42cb ER |
574 | Provides: %{name}-date |
575 | Provides: %{name}-ereg | |
576 | Provides: %{name}-reflection | |
577 | Provides: %{name}-standard | |
93e7acf8 | 578 | Provides: php(core) = %{version} |
c0240cb1 | 579 | Provides: php(date) |
580 | Provides: php(ereg) | |
c0240cb1 | 581 | Provides: php(libxml) |
c0240cb1 | 582 | Provides: php(reflection) |
583 | Provides: php(standard) | |
c0240cb1 | 584 | %{!?with_mysqlnd:Obsoletes: php-mysqlnd} |
585 | %{?with_pcre:%requires_ge_to pcre pcre-devel} | |
9f2b265f | 586 | Suggests: browscap |
d6634248 | 587 | Obsoletes: php-common < 4:5.3.28-7 |
c0240cb1 | 588 | Obsoletes: php-pecl-domxml |
589 | Conflicts: php4-common < 3:4.4.4-8 | |
e2d9e36f | 590 | Conflicts: php55-common < 4:5.5.10-4 |
c0240cb1 | 591 | Conflicts: rpm < 4.4.2-0.2 |
592 | ||
593 | %description common | |
594 | Common files needed by both Apache modules and CGI/CLI SAPIs. | |
595 | ||
596 | %description common -l pl.UTF-8 | |
597 | Wspólne pliki dla modułu Apache'a i programu CGI. | |
598 | ||
599 | %description common -l ru.UTF-8 | |
600 | Этот пакет содержит общие файлы для разных вариантов реализации PHP | |
601 | (самодостаточной и в качестве модуля Apache). | |
602 | ||
603 | %description common -l uk.UTF-8 | |
604 | Цей пакет містить спільні файли для різних варіантів реалізації PHP | |
605 | (самодостатньої та в якості модуля Apache). | |
606 | ||
607 | %package devel | |
608 | Summary: Files for PHP modules development | |
609 | Summary(pl.UTF-8): Pliki do kompilacji modułów PHP | |
610 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP | |
611 | Summary(ru.UTF-8): Пакет разработки для построения расширений PHP | |
612 | Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP | |
613 | Group: Development/Languages/PHP | |
614 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
13f02a12 | 615 | Requires: autoconf >= 2.13 |
c0240cb1 | 616 | Requires: automake |
617 | %if "%{pld_release}" != "ac" | |
2fc95094 | 618 | Requires: libtool >= 2:2.4.6 |
c0240cb1 | 619 | %else |
620 | Requires: libtool | |
621 | %endif | |
622 | %{?with_pcre:Requires: pcre-devel >= 8.10} | |
623 | Requires: shtool | |
e2ce7e4a | 624 | Provides: php-devel = %{epoch}:%{version}-%{release} |
cfb6f787 | 625 | Obsoletes: php-devel |
c0240cb1 | 626 | Obsoletes: php-pear-devel |
627 | Obsoletes: php4-devel | |
cfb6f787 | 628 | Obsoletes: php52-devel |
6ef8f74a | 629 | Obsoletes: php53-devel |
dce223f2 | 630 | Obsoletes: php54-devel |
d251846d | 631 | Obsoletes: php56-devel |
ab7a6ecf | 632 | Obsoletes: php70-devel |
04721411 | 633 | Obsoletes: php71-devel |
cd5fcd6b | 634 | Obsoletes: php72-devel |
992bb37e | 635 | Obsoletes: php73-devel |
c0240cb1 | 636 | |
637 | %description devel | |
638 | The php-devel package lets you compile dynamic extensions to PHP. | |
639 | Included here is the source for the PHP extensions. Instead of | |
640 | recompiling the whole PHP binary to add support for, say, oracle, | |
641 | install this package and use the new self-contained extensions | |
642 | support. For more information, read the file | |
643 | README.SELF-CONTAINED-EXTENSIONS. | |
644 | ||
645 | %description devel -l pl.UTF-8 | |
646 | Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast | |
647 | rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu | |
648 | tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o | |
649 | samodzielnych rozszerzeniach można znaleźć w pliku | |
650 | README.SELF-CONTAINED-EXTENSIONS. | |
651 | ||
652 | %description devel -l pt_BR.UTF-8 | |
653 | Este pacote contém arquivos usados no desenvolvimento de programas ou | |
654 | módulos PHP. | |
655 | ||
656 | %description devel -l ru.UTF-8 | |
657 | Пакет php-devel дает возможность компилировать динамические расширения | |
658 | PHP. Пакет включает исходный код этих расширений. Вместо повторной | |
659 | компиляции бинарного файла PHP для добавления, например, поддержки | |
660 | oracle, установите этот пакет для компилирования отдельных расширений. | |
661 | Подробности - в файле README.SELF-CONTAINED-EXTENSIONS. | |
662 | ||
663 | %description devel -l uk.UTF-8 | |
664 | Пакет php-devel дає можливість компілювати динамічні розширення PHP. | |
665 | До пакету включено вихідний код для розширень. Замість повторної | |
666 | компіляції бінарного файлу PHP для додання, наприклад, підтримки | |
667 | oracle, встановіть цей пакет для компіляції окремих розширень. | |
668 | Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS. | |
669 | ||
670 | %package bcmath | |
671 | Summary: bcmath extension module for PHP | |
672 | Summary(pl.UTF-8): Moduł bcmath dla PHP | |
673 | Group: Libraries | |
674 | URL: http://www.php.net/manual/en/book.bc.php | |
675 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
676 | Provides: php(bcmath) | |
d6634248 | 677 | Obsoletes: php-bcmath < 4:5.3.28-7 |
c0240cb1 | 678 | |
679 | %description bcmath | |
680 | This is a dynamic shared object (DSO) for PHP that will add bc style | |
681 | precision math functions support. | |
682 | ||
683 | %description bcmath -l pl.UTF-8 | |
684 | Moduł PHP umożliwiający korzystanie z dokładnych funkcji | |
685 | matematycznych takich jak w programie bc. | |
686 | ||
687 | %package bz2 | |
688 | Summary: Bzip2 extension module for PHP | |
689 | Summary(pl.UTF-8): Moduł bzip2 dla PHP | |
690 | Group: Libraries | |
691 | URL: http://www.php.net/manual/en/book.bzip2.php | |
692 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
13f02a12 | 693 | Provides: php(bz2) = %{bz2ver} |
c0240cb1 | 694 | Provides: php(bzip2) |
695 | Provides: php-bzip2 = %{epoch}:%{version}-%{release} | |
d6634248 | 696 | Obsoletes: php-bz2 < 4:5.3.28-7 |
c0240cb1 | 697 | Obsoletes: php-bzip2 < 4:5.2.14-3 |
13f02a12 | 698 | Obsoletes: php-pecl-bz2 < %{bz2ver} |
c0240cb1 | 699 | |
700 | %description bz2 | |
701 | This is a dynamic shared object (DSO) for PHP that will add bzip2 | |
702 | compression support to PHP. | |
703 | ||
704 | %description bz2 -l pl.UTF-8 | |
705 | Moduł PHP umożliwiający używanie kompresji bzip2. | |
706 | ||
707 | %package calendar | |
708 | Summary: Calendar extension module for PHP | |
709 | Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP | |
710 | Group: Libraries | |
711 | URL: http://www.php.net/manual/en/book.calendar.php | |
712 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
713 | Provides: php(calendar) | |
d6634248 | 714 | Obsoletes: php-calendar < 4:5.3.28-7 |
c0240cb1 | 715 | |
716 | %description calendar | |
717 | This is a dynamic shared object (DSO) for PHP that will add calendar | |
718 | support. | |
719 | ||
720 | %description calendar -l pl.UTF-8 | |
721 | Moduł PHP dodający wsparcie dla kalendarza. | |
722 | ||
723 | %package ctype | |
724 | Summary: ctype extension module for PHP | |
725 | Summary(pl.UTF-8): Moduł ctype dla PHP | |
726 | Group: Libraries | |
727 | URL: http://www.php.net/manual/en/book.ctype.php | |
728 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
729 | Provides: php(ctype) | |
d6634248 | 730 | Obsoletes: php-ctype < 4:5.3.28-7 |
c0240cb1 | 731 | |
732 | %description ctype | |
733 | This is a dynamic shared object (DSO) for PHP that will add ctype | |
734 | support. | |
735 | ||
736 | %description ctype -l pl.UTF-8 | |
737 | Moduł PHP umożliwiający korzystanie z funkcji ctype. | |
738 | ||
739 | %package curl | |
740 | Summary: curl extension module for PHP | |
741 | Summary(pl.UTF-8): Moduł curl dla PHP | |
742 | Group: Libraries | |
743 | URL: http://www.php.net/manual/en/book.curl.php | |
744 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
745 | Provides: php(curl) | |
d6634248 | 746 | Obsoletes: php-curl < 4:5.3.28-7 |
c0240cb1 | 747 | |
748 | %description curl | |
749 | This is a dynamic shared object (DSO) for PHP that will add curl | |
750 | support. | |
751 | ||
752 | %description curl -l pl.UTF-8 | |
753 | Moduł PHP umożliwiający korzystanie z biblioteki curl. | |
754 | ||
755 | %package dba | |
756 | Summary: DBA extension module for PHP | |
757 | Summary(pl.UTF-8): Moduł DBA dla PHP | |
758 | Group: Libraries | |
759 | URL: http://www.php.net/manual/en/book.dba.php | |
760 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
761 | Provides: php(dba) | |
d6634248 | 762 | Obsoletes: php-dba < 4:5.3.28-7 |
c0240cb1 | 763 | |
764 | %description dba | |
765 | This is a dynamic shared object (DSO) for PHP that will add flat-file | |
766 | databases (DBA) support. | |
767 | ||
768 | %description dba -l pl.UTF-8 | |
769 | Moduł dla PHP dodający obsługę dla baz danych opartych na plikach | |
770 | (DBA). | |
771 | ||
772 | %package dom | |
773 | Summary: DOM extension module for PHP | |
774 | Summary(pl.UTF-8): Moduł DOM dla PHP | |
775 | Group: Libraries | |
776 | URL: http://www.php.net/manual/en/book.dom.php | |
777 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
778 | Provides: php(dom) | |
779 | # it has some compatibility functions | |
d87d42cb | 780 | Provides: %{name}-domxml = %{epoch}:%{version}-%{release} |
c0240cb1 | 781 | Provides: php(domxml) |
d6634248 | 782 | Obsoletes: php-dom < 4:5.3.28-7 |
c0240cb1 | 783 | Obsoletes: php-domxml <= 3:4.3.8-1 |
784 | ||
785 | %description dom | |
786 | This is a dynamic shared object (DSO) for PHP that will add new DOM | |
787 | support. | |
788 | ||
789 | %description dom -l pl.UTF-8 | |
790 | Moduł PHP dodający nową obsługę DOM. | |
791 | ||
13f02a12 ER |
792 | %package enchant |
793 | Summary: libenchant binder | |
794 | Summary(pl.UTF-8): dowiązania biblioteki libenchant | |
795 | Group: Libraries | |
796 | URL: http://www.php.net/manual/en/book.exif.php | |
797 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
798 | Provides: php(enchant) = %{enchantver} | |
d6634248 | 799 | Obsoletes: php-enchant < 4:5.3.28-7 |
13f02a12 ER |
800 | Obsoletes: php-pecl-enchant < %{enchantver} |
801 | ||
802 | %description enchant | |
803 | Enchant is a binder for libenchant. Libenchant provides a common API | |
804 | for many spell libraries: | |
805 | - aspell/pspell (intended to replace ispell) | |
806 | - hspell (hebrew) | |
807 | - ispell | |
808 | - myspell (OpenOffice.org project, mozilla) | |
809 | - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A | |
810 | plugin system allows to add custom spell support. | |
811 | ||
812 | %description enchant -l pl.UTF-8 | |
813 | Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia | |
814 | ujednolicone API dla wielu narzędzi sprawdzających pisownię: | |
815 | - aspell/pspell (w zamierzeniu ma zastąpić ispell) | |
816 | - hspell (hebrajski) | |
817 | - ispell | |
818 | - myspell (projekt OpenOffice.org, mozilla) | |
819 | - uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie) | |
820 | System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi. | |
821 | ||
c0240cb1 | 822 | %package exif |
823 | Summary: exif extension module for PHP | |
824 | Summary(pl.UTF-8): Moduł exif dla PHP | |
825 | Group: Libraries | |
826 | URL: http://www.php.net/manual/en/book.exif.php | |
827 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
828 | Provides: php(exif) | |
d6634248 | 829 | Obsoletes: php-exif < 4:5.3.28-7 |
c0240cb1 | 830 | |
831 | %description exif | |
832 | This is a dynamic shared object (DSO) for PHP that will add EXIF tags | |
833 | support in image files. | |
834 | ||
835 | %description exif -l pl.UTF-8 | |
836 | Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków. | |
837 | ||
838 | %package fileinfo | |
839 | Summary: libmagic bindings | |
840 | Summary(pl.UTF-8): Wiązania do libmagic | |
841 | Group: Libraries | |
842 | URL: http://www.php.net/manual/en/book.fileinfo.php | |
843 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
844 | Requires: %{name}-pcre = %{epoch}:%{version}-%{release} | |
13f02a12 | 845 | Provides: php(fileinfo) = %{fileinfover} |
d6634248 | 846 | Obsoletes: php-fileinfo < 4:5.3.28-7 |
c0240cb1 | 847 | Obsoletes: php-mime_magic |
13f02a12 | 848 | Obsoletes: php-pecl-fileinfo < %{fileinfover} |
c0240cb1 | 849 | |
850 | %description fileinfo | |
851 | This extension allows retrieval of information regarding vast majority | |
852 | of file. This information may include dimensions, quality, length | |
853 | etc... | |
854 | ||
855 | Additionally it can also be used to retrieve the MIME type for a | |
856 | particular file and for text files proper language encoding. | |
857 | ||
858 | %description fileinfo -l pl.UTF-8 | |
859 | To rozszerzenie pozwala na uzyskanie informacji dotyczących większości | |
860 | plików. Informacje mogą zawierać wymiary, jakość, długość itp. | |
861 | ||
862 | Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego | |
863 | pliku oraz kodowania plików tekstowych. | |
864 | ||
865 | %package filter | |
866 | Summary: Extension for safely dealing with input parameters | |
867 | Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych | |
868 | Group: Libraries | |
869 | URL: http://www.php.net/manual/en/book.filter.php | |
870 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
871 | Requires: %{name}-pcre = %{epoch}:%{version}-%{release} | |
872 | Provides: php(filter) | |
d6634248 | 873 | Obsoletes: php-filter < 4:5.3.28-7 |
c0240cb1 | 874 | Obsoletes: php-pecl-filter |
875 | ||
876 | %description filter | |
877 | We all know that you should always check input variables, but PHP does | |
878 | not offer really good functionality for doing this in a safe way. The | |
879 | Input Filter extension is meant to address this issue by implementing | |
880 | a set of filters and mechanisms that users can use to safely access | |
881 | their input data. | |
882 | ||
883 | %description filter -l pl.UTF-8 | |
884 | Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie | |
885 | oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób | |
886 | bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez | |
887 | zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy | |
888 | mogą bezpiecznie używać do dostępu do danych. | |
889 | ||
890 | %package ftp | |
891 | Summary: FTP extension module for PHP | |
892 | Summary(pl.UTF-8): Moduł FTP dla PHP | |
893 | Group: Libraries | |
894 | URL: http://www.php.net/manual/en/book.ftp.php | |
895 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
896 | Provides: php(ftp) | |
d6634248 | 897 | Obsoletes: php-ftp < 4:5.3.28-7 |
c0240cb1 | 898 | |
899 | %description ftp | |
900 | This is a dynamic shared object (DSO) for PHP that will add FTP | |
901 | support. | |
902 | ||
903 | %description ftp -l pl.UTF-8 | |
904 | Moduł PHP dodający obsługę protokołu FTP. | |
905 | ||
906 | %package gd | |
907 | Summary: GD extension module for PHP | |
908 | Summary(pl.UTF-8): Moduł GD dla PHP | |
909 | Group: Libraries | |
910 | URL: http://www.php.net/manual/en/book.image.php | |
911 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
912 | %if %{with system_gd} | |
0282b86e | 913 | Requires: gd >= 2.1 |
c0240cb1 | 914 | Requires: gd(gif) |
c0240cb1 | 915 | %endif |
916 | Provides: php(gd) | |
d6634248 | 917 | Obsoletes: php-gd < 4:5.3.28-7 |
c0240cb1 | 918 | |
919 | %description gd | |
920 | This is a dynamic shared object (DSO) for PHP that will add GD | |
921 | support, allowing you to create and manipulate images with PHP. | |
922 | ||
923 | %description gd -l pl.UTF-8 | |
924 | Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na | |
925 | tworzenie i obróbkę obrazków. | |
926 | ||
927 | %package gettext | |
928 | Summary: gettext extension module for PHP | |
929 | Summary(pl.UTF-8): Moduł gettext dla PHP | |
930 | Group: Libraries | |
931 | URL: http://www.php.net/manual/en/book.gettext.php | |
932 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
933 | Provides: php(gettext) | |
d6634248 | 934 | Obsoletes: php-gettext < 4:5.3.28-7 |
c0240cb1 | 935 | |
936 | %description gettext | |
937 | This is a dynamic shared object (DSO) for PHP that will add gettext | |
938 | support. | |
939 | ||
940 | %description gettext -l pl.UTF-8 | |
941 | Moduł PHP dodający obsługę lokalizacji przez gettext. | |
942 | ||
943 | %package gmp | |
944 | Summary: gmp extension module for PHP | |
945 | Summary(pl.UTF-8): Moduł gmp dla PHP | |
946 | Group: Libraries | |
947 | URL: http://www.php.net/manual/en/book.gmp.php | |
948 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
949 | Provides: php(gmp) | |
d6634248 | 950 | Obsoletes: php-gmp < 4:5.3.28-7 |
c0240cb1 | 951 | |
952 | %description gmp | |
953 | This is a dynamic shared object (DSO) for PHP that will add arbitrary | |
954 | length number support with GNU MP library. | |
955 | ||
956 | %description gmp -l pl.UTF-8 | |
957 | Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na | |
958 | liczbach o dowolnej długości. | |
959 | ||
960 | %package hash | |
961 | Summary: HASH Message Digest Framework | |
962 | Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości | |
963 | Group: Libraries | |
964 | URL: http://www.php.net/manual/en/book.gmp.php | |
965 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
13f02a12 | 966 | Provides: php(hash) = %{hashver} |
c0240cb1 | 967 | %if %{with mhash} |
968 | Provides: php(mhash) | |
969 | Provides: php-mhash = %{epoch}:%{version}-%{release} | |
970 | Obsoletes: php-mhash < 4:5.3.0 | |
971 | %endif | |
d6634248 | 972 | Obsoletes: php-hash < 4:5.3.28-7 |
13f02a12 | 973 | Obsoletes: php-pecl-hash < %{hashver} |
c0240cb1 | 974 | |
975 | %description hash | |
976 | Native implementations of common message digest algorithms using a | |
977 | generic factory method. | |
978 | ||
979 | %description hash -l pl.UTF-8 | |
980 | Natywne implementacje popularnych algorytmów obliczania skrótów | |
981 | wiadomości przy użyciu wspólnego interfejsu. | |
982 | ||
983 | %package iconv | |
984 | Summary: iconv extension module for PHP | |
985 | Summary(pl.UTF-8): Moduł iconv dla PHP | |
986 | Group: Libraries | |
987 | URL: http://www.php.net/manual/en/book.iconv.php | |
988 | Requires: %{_libdir}/gconv | |
989 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
990 | Requires: iconv | |
991 | Provides: php(iconv) | |
d6634248 | 992 | Obsoletes: php-iconv < 4:5.3.28-7 |
c0240cb1 | 993 | |
994 | %description iconv | |
995 | This is a dynamic shared object (DSO) for PHP that will add iconv | |
996 | support. | |
997 | ||
998 | %description iconv -l pl.UTF-8 | |
999 | Moduł PHP dodający obsługę iconv. | |
1000 | ||
1001 | %package imap | |
1002 | Summary: IMAP extension module for PHP | |
1003 | Summary(pl.UTF-8): Moduł IMAP dla PHP | |
1004 | Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP | |
1005 | Group: Libraries | |
1006 | URL: http://www.php.net/manual/en/book.imap.php | |
1007 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1008 | Requires: %{name}-pcre = %{epoch}:%{version}-%{release} | |
1009 | Requires: imap-lib >= 1:2007e-2 | |
1010 | Provides: php(imap) | |
d6634248 | 1011 | Obsoletes: php-imap < 4:5.3.28-7 |
c0240cb1 | 1012 | |
1013 | %description imap | |
1014 | This is a dynamic shared object (DSO) for PHP that will add IMAP | |
1015 | support. | |
1016 | ||
1017 | %description imap -l pl.UTF-8 | |
1018 | Moduł PHP dodający obsługę skrzynek IMAP. | |
1019 | ||
1020 | %description imap -l pt_BR.UTF-8 | |
1021 | Um módulo para aplicações PHP que usam IMAP. | |
1022 | ||
1023 | %package interbase | |
1024 | Summary: InterBase/Firebird database module for PHP | |
1025 | Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP | |
1026 | Group: Libraries | |
1027 | URL: http://www.php.net/manual/en/book.ibase.php | |
6cec851c ER |
1028 | %if %{with interbase_inst} |
1029 | %{?requires_php_extension} | |
1030 | %else | |
c0240cb1 | 1031 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
6cec851c | 1032 | %endif |
c0240cb1 | 1033 | Provides: php(interbase) |
d6634248 | 1034 | Obsoletes: php-interbase < 4:5.3.28-7 |
c0240cb1 | 1035 | |
1036 | %description interbase | |
1037 | This is a dynamic shared object (DSO) for PHP that will add InterBase | |
1038 | and Firebird database support. | |
1039 | ||
1040 | %description interbase -l pl.UTF-8 | |
1041 | Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird. | |
1042 | ||
1043 | %package intl | |
1044 | Summary: Internationalization extension (ICU wrapper) | |
1045 | Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU) | |
1046 | Group: Libraries | |
1047 | URL: http://www.php.net/intl | |
1048 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
13f02a12 | 1049 | Provides: php(intl) = %{intlver} |
d6634248 | 1050 | Obsoletes: php-intl < 4:5.3.28-7 |
13f02a12 | 1051 | Obsoletes: php-pecl-intl < %{intlver} |
c0240cb1 | 1052 | |
1053 | %description intl | |
1054 | Internationalization extension (further is referred as Intl) is a | |
1055 | wrapper for ICU library, enabling PHP programmers to perform | |
1056 | UCA-conformant collation and date/time/number/currency formatting in | |
1057 | their scripts. | |
1058 | ||
1059 | %description intl -l pl.UTF-8 | |
1060 | Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest | |
1061 | interfejsem do biblioteki ICU, pozwalającym programistom PHP na | |
1062 | wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania | |
1063 | daty/czasu/walut. | |
1064 | ||
1065 | %package json | |
1066 | Summary: PHP C extension for JSON serialization | |
1067 | Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON | |
1068 | Group: Libraries | |
1069 | URL: http://www.php.net/manual/en/book.json.php | |
1070 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
13f02a12 | 1071 | Provides: php(json) = %{jsonver} |
d6634248 | 1072 | Obsoletes: php-json < 4:5.3.28-7 |
13f02a12 | 1073 | Obsoletes: php-pecl-json < %{jsonver} |
c0240cb1 | 1074 | |
1075 | %description json | |
1076 | php-json is an extremely fast PHP C extension for JSON (JavaScript | |
1077 | Object Notation) serialisation. | |
1078 | ||
1079 | %description json -l pl.UTF-8 | |
1080 | php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON | |
1081 | (JavaScript Object Notation). | |
1082 | ||
1083 | %package ldap | |
1084 | Summary: LDAP extension module for PHP | |
1085 | Summary(pl.UTF-8): Moduł LDAP dla PHP | |
1086 | Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP | |
1087 | Group: Libraries | |
1088 | URL: http://www.php.net/manual/en/book.ldap.php | |
1089 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1090 | Provides: php(ldap) | |
d6634248 | 1091 | Obsoletes: php-ldap < 4:5.3.28-7 |
c0240cb1 | 1092 | |
1093 | %description ldap | |
1094 | This is a dynamic shared object (DSO) for PHP that will add LDAP | |
1095 | support. | |
1096 | ||
1097 | %description ldap -l pl.UTF-8 | |
1098 | Moduł PHP dodający obsługę LDAP. | |
1099 | ||
1100 | %description ldap -l pt_BR.UTF-8 | |
1101 | Um módulo para aplicações PHP que usam LDAP. | |
1102 | ||
1103 | %package mbstring | |
1104 | Summary: mbstring extension module for PHP | |
1105 | Summary(pl.UTF-8): Moduł mbstring dla PHP | |
1106 | Group: Libraries | |
1107 | URL: http://www.php.net/manual/en/book.mbstring.php | |
1108 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1109 | Provides: php(mbstring) | |
d6634248 | 1110 | Obsoletes: php-mbstring < 4:5.3.28-7 |
c0240cb1 | 1111 | |
1112 | %description mbstring | |
1113 | This is a dynamic shared object (DSO) for PHP that will add multibyte | |
1114 | string support. | |
1115 | ||
1116 | %description mbstring -l pl.UTF-8 | |
1117 | Moduł PHP dodający obsługę ciągów znaków wielobajtowych. | |
1118 | ||
1119 | %package mcrypt | |
1120 | Summary: mcrypt extension module for PHP | |
1121 | Summary(pl.UTF-8): Moduł mcrypt dla PHP | |
1122 | Group: Libraries | |
1123 | URL: http://www.php.net/manual/en/book.mcrypt.php | |
1124 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1125 | Provides: php(mcrypt) | |
d6634248 | 1126 | Obsoletes: php-mcrypt < 4:5.3.28-7 |
c0240cb1 | 1127 | |
1128 | %description mcrypt | |
1129 | This is a dynamic shared object (DSO) for PHP that will add mcrypt | |
1130 | support. | |
1131 | ||
1132 | %description mcrypt -l pl.UTF-8 | |
1133 | Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt. | |
1134 | ||
1135 | %package mssql | |
1136 | Summary: MS SQL extension module for PHP | |
1137 | Summary(pl.UTF-8): Moduł MS SQL dla PHP | |
1138 | Group: Libraries | |
1139 | URL: http://www.php.net/manual/en/book.mssql.php | |
1140 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1141 | Provides: php(mssql) | |
d6634248 | 1142 | Obsoletes: php-mssql < 4:5.3.28-7 |
c0240cb1 | 1143 | |
1144 | %description mssql | |
1145 | This is a dynamic shared object (DSO) for PHP that will add MS SQL | |
1146 | databases support through FreeTDS library. | |
1147 | ||
1148 | %description mssql -l pl.UTF-8 | |
1149 | Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę | |
1150 | FreeTDS. | |
1151 | ||
1152 | %package mysql | |
1153 | Summary: MySQL database module for PHP | |
1154 | Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP | |
1155 | Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL | |
1156 | Group: Libraries | |
1157 | URL: http://www.php.net/manual/en/book.mysql.php | |
1158 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1159 | %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}} | |
1160 | Provides: php(mysql) | |
d6634248 | 1161 | Obsoletes: php-mysql < 4:5.3.28-7 |
c0240cb1 | 1162 | |
1163 | %description mysql | |
1164 | This is a dynamic shared object (DSO) for PHP that will add MySQL | |
1165 | database support. | |
1166 | ||
1167 | %description mysql -l pl.UTF-8 | |
1168 | Moduł PHP umożliwiający dostęp do bazy danych MySQL. | |
1169 | ||
1170 | %description mysql -l pt_BR.UTF-8 | |
1171 | Um módulo para aplicações PHP que usam bancos de dados MySQL. | |
1172 | ||
1173 | %package mysqli | |
1174 | Summary: MySQLi module for PHP | |
1175 | Summary(pl.UTF-8): Moduł MySQLi dla PHP | |
1176 | Group: Libraries | |
1177 | URL: http://www.php.net/manual/en/book.mysqli.php | |
1178 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1179 | %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}} | |
1180 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} | |
1181 | Provides: php(mysqli) | |
d6634248 | 1182 | Obsoletes: php-mysqli < 4:5.3.28-7 |
c0240cb1 | 1183 | |
1184 | %description mysqli | |
1185 | This is a dynamic shared object (DSO) for PHP that will add MySQLi | |
1186 | (Improved MySQL) support. The difference between it and mysql module | |
1187 | is that it provides access to functionality of MySQL 4.1 and above. | |
1188 | ||
1189 | %description mysqli -l pl.UTF-8 | |
1190 | Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL. | |
1191 | Różnicą między nim a modułem mysql jest dostęp do funkcjonalności | |
1192 | MySQL w wersji 4.1 i nowszych. | |
1193 | ||
1194 | %package mysqlnd | |
1195 | Summary: MySQL Native Client Driver for PHP | |
1196 | Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP | |
1197 | Group: Libraries | |
1198 | URL: http://www.php.net/manual/en/book.mysqlnd.php | |
1199 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1200 | Provides: php(mysqlnd) | |
d6634248 | 1201 | Obsoletes: php-mysqlnd < 4:5.3.28-7 |
c0240cb1 | 1202 | |
1203 | %description mysqlnd | |
1204 | MySQL Native Driver is a replacement for the MySQL Client Library | |
1205 | (libmysql). | |
1206 | ||
1207 | Because MySQL Native Driver is written as a PHP extension, it is | |
1208 | tightly coupled to the workings of PHP. This leads to gains in | |
1209 | efficiency, especially when it comes to memory usage, as the driver | |
1210 | uses the PHP memory management system. It also supports the PHP memory | |
1211 | limit. Using MySQL Native Driver leads to comparable or better | |
1212 | performance than using MySQL Client Library, it always ensures the | |
1213 | most efficient use of memory. One example of the memory efficiency is | |
1214 | the fact that when using the MySQL Client Library, each row is stored | |
1215 | in memory twice, whereas with the MySQL Native Driver each row is only | |
1216 | stored once in memory. | |
1217 | ||
1218 | %description mysqlnd -l pl.UTF-8 | |
1219 | MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki | |
1220 | klienckiej MySQL (libmysql). | |
1221 | ||
1222 | Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest | |
1223 | ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza | |
1224 | jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje | |
1225 | system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci | |
1226 | z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż | |
1227 | biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej. | |
1228 | Przykładem tego może być fakt, że w przypadku biblioteki klienckiej | |
1229 | każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy | |
1230 | tym sterowniku - tylko raz. | |
1231 | ||
1232 | %package oci8 | |
1233 | Summary: Oracle 8+ database module for PHP | |
1234 | Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP | |
1235 | Group: Libraries | |
1236 | URL: http://www.php.net/manual/en/book.oci8.php | |
6cec851c | 1237 | %{?requires_php_extension} |
c0240cb1 | 1238 | Provides: php(oci8) |
d6634248 | 1239 | Obsoletes: php-oci8 < 4:5.3.28-7 |
c0240cb1 | 1240 | |
1241 | %description oci8 | |
1242 | This is a dynamic shared object (DSO) for PHP that will add Oracle 7, | |
1243 | 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8). | |
1244 | ||
1245 | %description oci8 -l pl.UTF-8 | |
1246 | Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10 | |
1247 | poprzez interfejs Oracle8 Call-Interface (OCI8). | |
1248 | ||
1249 | %package odbc | |
1250 | Summary: ODBC extension module for PHP | |
1251 | Summary(pl.UTF-8): Moduł ODBC dla PHP | |
1252 | Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC | |
1253 | Group: Libraries | |
1254 | URL: http://www.php.net/manual/en/book.uodbc.php | |
1255 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1256 | Requires: unixODBC >= 2.1.1-3 | |
1257 | Provides: php(odbc) | |
d6634248 | 1258 | Obsoletes: php-odbc < 4:5.3.28-7 |
c0240cb1 | 1259 | |
1260 | %description odbc | |
1261 | This is a dynamic shared object (DSO) for PHP that will add ODBC | |
1262 | support. | |
1263 | ||
1264 | %description odbc -l pl.UTF-8 | |
1265 | Moduł PHP ze wsparciem dla ODBC. | |
1266 | ||
1267 | %description odbc -l pt_BR.UTF-8 | |
1268 | Um módulo para aplicações PHP que usam ODBC. | |
1269 | ||
8328535b ER |
1270 | %package opcache |
1271 | Summary: Zend Optimizer+ - PHP code optimizer | |
43df1739 | 1272 | Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP |
8328535b ER |
1273 | Group: Libraries |
1274 | URL: https://wiki.php.net/rfc/optimizerplus | |
1275 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1276 | Provides: php(opcache) = %{opcachever} | |
1277 | ||
1278 | %description opcache | |
1279 | The Zend OPcache provides faster PHP execution through opcode caching | |
1280 | and optimization. It improves PHP performance by storing precompiled | |
1281 | script bytecode in the shared memory. This eliminates the stages of | |
1282 | reading code from the disk and compiling it on future access. In | |
1283 | addition, it applies a few bytecode optimization patterns that make | |
1284 | code execution faster. | |
1285 | ||
43df1739 JB |
1286 | %description opcache -l pl.UTF-8 |
1287 | Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu | |
1288 | i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP | |
1289 | przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej. | |
1290 | Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym | |
1291 | dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu, | |
1292 | czyniąc wykonywanie kodu szybszym. | |
1293 | ||
c0240cb1 | 1294 | %package openssl |
1295 | Summary: OpenSSL extension module for PHP | |
1296 | Summary(pl.UTF-8): Moduł OpenSSL dla PHP | |
1297 | Group: Libraries | |
1298 | URL: http://www.php.net/manual/en/book.openssl.php | |
1299 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1300 | Provides: php(openssl) | |
d6634248 | 1301 | Obsoletes: php-openssl < 4:5.3.28-7 |
c0240cb1 | 1302 | |
1303 | %description openssl | |
1304 | This is a dynamic shared object (DSO) for PHP that will add OpenSSL | |
1305 | support. | |
1306 | ||
1307 | %description openssl -l pl.UTF-8 | |
1308 | Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL. | |
1309 | ||
1310 | %package pcntl | |
1311 | Summary: Process Control extension module for PHP | |
1312 | Summary(pl.UTF-8): Moduł Process Control dla PHP | |
1313 | Group: Libraries | |
1314 | URL: http://www.php.net/manual/en/book.pcntl.php | |
1315 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1316 | Provides: php(pcntl) | |
d6634248 | 1317 | Obsoletes: php-pcntl < 4:5.3.28-7 |
c0240cb1 | 1318 | |
1319 | %description pcntl | |
1320 | This is a dynamic shared object (DSO) for PHP that will add process | |
1321 | spawning and control support. It supports functions like fork(), | |
1322 | waitpid(), signal() etc. | |
1323 | ||
1324 | %description pcntl -l pl.UTF-8 | |
1325 | Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi. | |
1326 | Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne. | |
1327 | ||
1328 | %package pcre | |
1329 | Summary: PCRE extension module for PHP | |
1330 | Summary(pl.UTF-8): Moduł PCRE dla PHP | |
1331 | Group: Libraries | |
1332 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1333 | Provides: php(pcre) | |
d6634248 | 1334 | Obsoletes: php-pcre < 4:5.3.28-7 |
c0240cb1 | 1335 | |
1336 | %description pcre | |
1337 | This is a dynamic shared object (DSO) for PHP that will add Perl | |
1338 | Compatible Regular Expression support. | |
1339 | ||
1340 | %description pcre -l pl.UTF-8 | |
1341 | Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych | |
1342 | (Perl Compatible Regular Expressions) | |
1343 | ||
1344 | %package pdo | |
1345 | Summary: PHP Data Objects (PDO) | |
1346 | Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO) | |
1347 | Group: Libraries | |
1348 | URL: http://www.php.net/manual/en/book.pdo.php | |
1349 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1350 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} | |
a6af2a14 | 1351 | Provides: %{name}(PDO_API) = %{php_pdo_api_version} |
c0240cb1 | 1352 | Provides: php(pdo) |
d6634248 | 1353 | Obsoletes: php-pdo < 4:5.3.28-7 |
c0240cb1 | 1354 | Obsoletes: php-pecl-PDO |
1355 | ||
1356 | %description pdo | |
1357 | This is a dynamic shared object (DSO) for PHP that will add PDO | |
1358 | support. | |
1359 | ||
1360 | %description pdo -l pl.UTF-8 | |
1361 | Moduł PHP dodający obsługę PDO (PHP Data Objects). | |
1362 | ||
1363 | %package pdo-dblib | |
1364 | Summary: PHP Data Objects (PDO) FreeTDS support | |
1365 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS | |
1366 | Group: Libraries | |
1367 | URL: http://www.php.net/manual/en/ref.pdo-dblib.php | |
1368 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1369 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
ca82088b | 1370 | Provides: php(pdo_dblib) |
d6634248 | 1371 | Obsoletes: php-pdo-dblib < 4:5.3.28-7 |
c0240cb1 | 1372 | |
1373 | %description pdo-dblib | |
1374 | This is a dynamic shared object (DSO) for PHP that will add PDO | |
1375 | FreeTDS support. | |
1376 | ||
1377 | %description pdo-dblib -l pl.UTF-8 | |
1378 | Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem | |
1379 | interfejsu PDO. | |
1380 | ||
1381 | %package pdo-firebird | |
1382 | Summary: PHP Data Objects (PDO) Firebird support | |
1383 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda | |
1384 | Group: Libraries | |
1385 | URL: http://www.php.net/manual/en/ref.pdo-firebird.php | |
1386 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1387 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
1388 | Provides: php(pdo-firebird) | |
5bf3d1ae | 1389 | Provides: php(pdo_firebird) |
d6634248 | 1390 | Obsoletes: php-pdo-firebird < 4:5.3.28-7 |
c0240cb1 | 1391 | Obsoletes: php-pecl-PDO_FIREBIRD |
1392 | ||
1393 | %description pdo-firebird | |
1394 | This is a dynamic shared object (DSO) for PHP that will add PDO | |
1395 | Firebird support. | |
1396 | ||
1397 | %description pdo-firebird -l pl.UTF-8 | |
1398 | Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem | |
1399 | interfejsu PDO. | |
1400 | ||
1401 | %package pdo-mysql | |
1402 | Summary: PHP Data Objects (PDO) MySQL support | |
1403 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a | |
1404 | Group: Libraries | |
1405 | URL: http://www.php.net/manual/en/ref.pdo-mysql.php | |
1406 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1407 | %{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}} | |
1408 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
1409 | Provides: php(pdo-mysql) | |
5bf3d1ae | 1410 | Provides: php(pdo_mysql) |
d6634248 | 1411 | Obsoletes: php-pdo-mysql < 4:5.3.28-7 |
c0240cb1 | 1412 | Obsoletes: php-pecl-PDO_MYSQL |
1413 | ||
1414 | %description pdo-mysql | |
1415 | This is a dynamic shared object (DSO) for PHP that will add PDO MySQL | |
1416 | support. | |
1417 | ||
1418 | %description pdo-mysql -l pl.UTF-8 | |
1419 | Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem | |
1420 | interfejsu PDO. | |
1421 | ||
1422 | %package pdo-oci | |
1423 | Summary: PHP Data Objects (PDO) Oracle support | |
1424 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a | |
1425 | Group: Libraries | |
1426 | URL: http://www.php.net/manual/en/ref.pdo-oci.php | |
6cec851c ER |
1427 | %{?requires_php_extension} |
1428 | %{?requires_php_pdo_module} | |
c0240cb1 | 1429 | Provides: php(pdo-oci) |
5bf3d1ae | 1430 | Provides: php(pdo_oci) |
d6634248 | 1431 | Obsoletes: php-pdo-oci < 4:5.3.28-7 |
c0240cb1 | 1432 | Obsoletes: php-pecl-PDO_OCI |
1433 | ||
1434 | %description pdo-oci | |
1435 | This is a dynamic shared object (DSO) for PHP that will add PDO Oracle | |
1436 | support. | |
1437 | ||
1438 | %description pdo-oci -l pl.UTF-8 | |
1439 | Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem | |
1440 | interfejsu PDO. | |
1441 | ||
1442 | %package pdo-odbc | |
1443 | Summary: PHP Data Objects (PDO) ODBC support | |
1444 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC | |
1445 | Group: Libraries | |
1446 | URL: http://www.php.net/manual/en/ref.pdo-odbc.php | |
1447 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1448 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
1449 | Provides: php(pdo-odbc) | |
5bf3d1ae | 1450 | Provides: php(pdo_odbc) |
d6634248 | 1451 | Obsoletes: php-pdo-odbc < 4:5.3.28-7 |
c0240cb1 | 1452 | Obsoletes: php-pecl-PDO_ODBC |
1453 | ||
1454 | %description pdo-odbc | |
1455 | This is a dynamic shared object (DSO) for PHP that will add PDO ODBC | |
1456 | support. | |
1457 | ||
1458 | %description pdo-odbc -l pl.UTF-8 | |
1459 | Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem | |
1460 | interfejsu PDO. | |
1461 | ||
1462 | %package pdo-pgsql | |
1463 | Summary: PHP Data Objects (PDO) PostgreSQL support | |
1464 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a | |
1465 | Group: Libraries | |
1466 | URL: http://www.php.net/manual/en/ref.pdo-pgsql.php | |
1467 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1468 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
1469 | Provides: php(pdo-pgsql) | |
5bf3d1ae | 1470 | Provides: php(pdo_pgsql) |
d6634248 | 1471 | Obsoletes: php-pdo-pgsql < 4:5.3.28-7 |
c0240cb1 | 1472 | Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2 |
1473 | ||
1474 | %description pdo-pgsql | |
1475 | This is a dynamic shared object (DSO) for PHP that will add PDO | |
1476 | PostgreSQL support. | |
1477 | ||
1478 | %description pdo-pgsql -l pl.UTF-8 | |
1479 | Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem | |
1480 | interfejsu PDO. | |
1481 | ||
1482 | %package pdo-sqlite | |
1483 | Summary: PHP Data Objects (PDO) SQLite support | |
1484 | Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite | |
1485 | Group: Libraries | |
1486 | URL: http://www.php.net/manual/en/ref.pdo-sqlite.php | |
1487 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1488 | Requires: %{name}-pdo = %{epoch}:%{version}-%{release} | |
1489 | Provides: php(pdo-sqlite) | |
5bf3d1ae | 1490 | Provides: php(pdo_sqlite) |
d6634248 | 1491 | Obsoletes: php-pdo-sqlite < 4:5.3.28-7 |
c0240cb1 | 1492 | Obsoletes: php-pecl-PDO_SQLITE |
1493 | ||
1494 | %description pdo-sqlite | |
1495 | This is a dynamic shared object (DSO) for PHP that will add PDO SQLite | |
1496 | support. | |
1497 | ||
1498 | %description pdo-sqlite -l pl.UTF-8 | |
1499 | Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem | |
1500 | interfejsu PDO. | |
1501 | ||
1502 | %package pgsql | |
1503 | Summary: PostgreSQL database module for PHP | |
1504 | Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP | |
1505 | Group: Libraries | |
1506 | URL: http://www.php.net/manual/en/book.pgsql.php | |
1507 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1508 | Provides: php(pgsql) | |
d6634248 | 1509 | Obsoletes: php-pgsql < 4:5.3.28-7 |
c0240cb1 | 1510 | |
1511 | %description pgsql | |
1512 | This is a dynamic shared object (DSO) for PHP that will add PostgreSQL | |
1513 | database support. | |
1514 | ||
1515 | %description pgsql -l pl.UTF-8 | |
1516 | Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL. | |
1517 | ||
1518 | %description pgsql -l pt_BR.UTF-8 | |
1519 | Um módulo para aplicações PHP que usam bancos de dados postgresql. | |
1520 | ||
1521 | %package phar | |
fe41a400 | 1522 | Summary: Phar archive module for PHP |
c0240cb1 | 1523 | Summary(pl.UTF-8): Moduł phar dla PHP |
1524 | Group: Libraries | |
1525 | URL: http://www.php.net/manual/en/book.phar.php | |
1526 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1527 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} | |
0a498a94 | 1528 | %{?with_alternatives:Requires: alternatives} |
a2d3b4b6 | 1529 | Suggests: %{name}-cli |
13f02a12 ER |
1530 | # zlib is required by phar program, but as phar cli is optional should the dep be too |
1531 | Suggests: %{name}-zlib | |
13f02a12 ER |
1532 | Provides: php(phar) = %{pharver} |
1533 | Obsoletes: php-pecl-phar < %{pharver} | |
d6634248 | 1534 | Obsoletes: php-phar < 4:5.3.28-7 |
3c2ec9fb | 1535 | Conflicts: php-ioncube < 4.0.9 |
c0240cb1 | 1536 | |
1537 | %description phar | |
1538 | This is a dynamic shared object (DSO) for PHP that will add phar | |
1539 | archive a support. | |
1540 | ||
1541 | %description phar -l pl.UTF-8 | |
1542 | Moduł PHP umożliwiający dostęp do achiwów .phar. | |
1543 | ||
1544 | %package posix | |
1545 | Summary: POSIX extension module for PHP | |
1546 | Summary(pl.UTF-8): Moduł POSIX dla PHP | |
1547 | Group: Libraries | |
1548 | URL: http://www.php.net/manual/en/book.posix.php | |
1549 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1550 | Provides: php(posix) | |
d6634248 | 1551 | Obsoletes: php-posix < 4:5.3.28-7 |
c0240cb1 | 1552 | |
1553 | %description posix | |
1554 | This is a dynamic shared object (DSO) for PHP that will add POSIX | |
1555 | functions support to PHP. | |
1556 | ||
1557 | %description posix -l pl.UTF-8 | |
1558 | Moduł PHP umożliwiający korzystanie z funkcji POSIX. | |
1559 | ||
1560 | %package pspell | |
1561 | Summary: pspell extension module for PHP | |
1562 | Summary(pl.UTF-8): Moduł pspell dla PHP | |
1563 | Group: Libraries | |
1564 | URL: http://www.php.net/manual/en/book.pspell.php | |
1565 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1566 | Provides: php(pspell) | |
d6634248 | 1567 | Obsoletes: php-pspell < 4:5.3.28-7 |
c0240cb1 | 1568 | |
1569 | %description pspell | |
1570 | This is a dynamic shared object (DSO) for PHP that will add pspell | |
1571 | support to PHP. It allows to check the spelling of a word and offer | |
1572 | suggestions. | |
1573 | ||
1574 | %description pspell -l pl.UTF-8 | |
1575 | Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na | |
1576 | sprawdzanie pisowni słowa i sugerowanie poprawek. | |
1577 | ||
1578 | %package readline | |
1579 | Summary: readline extension module for PHP | |
1580 | Summary(pl.UTF-8): Moduł readline dla PHP | |
1581 | Group: Libraries | |
1582 | URL: http://www.php.net/manual/en/book.readline.php | |
1583 | Requires: %{name}-cli = %{epoch}:%{version}-%{release} | |
1584 | Provides: php(readline) | |
d6634248 | 1585 | Obsoletes: php-readline < 4:5.3.28-7 |
c0240cb1 | 1586 | |
1587 | %description readline | |
1588 | This PHP module adds support for readline functions (only for cli and | |
1589 | cgi SAPIs). | |
1590 | ||
1591 | %description readline -l pl.UTF-8 | |
1592 | Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi). | |
1593 | ||
1594 | %package recode | |
1595 | Summary: recode extension module for PHP | |
1596 | Summary(pl.UTF-8): Moduł recode dla PHP | |
1597 | Group: Libraries | |
1598 | URL: http://www.php.net/manual/en/book.recode.php | |
1599 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1600 | Requires: recode >= 3.5d-3 | |
1601 | Provides: php(recode) | |
d6634248 | 1602 | Obsoletes: php-recode < 4:5.3.28-7 |
c0240cb1 | 1603 | |
1604 | %description recode | |
1605 | This is a dynamic shared object (DSO) for PHP that will add recode | |
1606 | support. | |
1607 | ||
1608 | %description recode -l pl.UTF-8 | |
1609 | Moduł PHP dodający możliwość konwersji kodowania plików (poprzez | |
1610 | bibliotekę recode). | |
1611 | ||
1612 | %package session | |
1613 | Summary: session extension module for PHP | |
1614 | Summary(pl.UTF-8): Moduł session dla PHP | |
1615 | Group: Libraries | |
1616 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1617 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} | |
1618 | Suggests: %{name}-hash = %{epoch}:%{version}-%{release} | |
7c02bb46 | 1619 | Suggests: tmpwatch |
c0240cb1 | 1620 | Provides: php(session) |
d6634248 | 1621 | Obsoletes: php-session < 4:5.3.28-7 |
c0240cb1 | 1622 | |
1623 | %description session | |
1624 | This is a dynamic shared object (DSO) for PHP that will add session | |
1625 | support. | |
1626 | ||
1627 | %description session -l pl.UTF-8 | |
1628 | Moduł PHP dodający obsługę sesji. | |
1629 | ||
1630 | %package shmop | |
1631 | Summary: Shared Memory Operations extension module for PHP | |
1632 | Summary(pl.UTF-8): Moduł shmop dla PHP | |
1633 | Group: Libraries | |
1634 | URL: http://www.php.net/manual/en/book.shmop.php | |
1635 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1636 | Provides: php(shmop) | |
d6634248 | 1637 | Obsoletes: php-shmop < 4:5.3.28-7 |
c0240cb1 | 1638 | |
1639 | %description shmop | |
1640 | This is a dynamic shared object (DSO) for PHP that will add Shared | |
1641 | Memory Operations support. | |
1642 | ||
1643 | %description shmop -l pl.UTF-8 | |
1644 | Moduł PHP umożliwiający korzystanie z pamięci dzielonej. | |
1645 | ||
1646 | %package simplexml | |
1647 | Summary: Simple XML extension module for PHP | |
1648 | Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP | |
1649 | Group: Libraries | |
1650 | URL: http://www.php.net/manual/en/book.simplexml.php | |
1651 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1652 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} | |
1653 | Provides: php(simplexml) | |
d6634248 | 1654 | Obsoletes: php-simplexml < 4:5.3.28-7 |
c0240cb1 | 1655 | |
1656 | %description simplexml | |
1657 | This is a dynamic shared object (DSO) for PHP that will add Simple XML | |
1658 | support. | |
1659 | ||
1660 | %description simplexml -l pl.UTF-8 | |
1661 | Moduł PHP dodający obsługę prostego XML-a. | |
1662 | ||
1663 | %package snmp | |
1664 | Summary: SNMP extension module for PHP | |
1665 | Summary(pl.UTF-8): Moduł SNMP dla PHP | |
1666 | Group: Libraries | |
1667 | URL: http://www.php.net/manual/en/book.snmp.php | |
1668 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1669 | Requires: %{name}-sockets = %{epoch}:%{version}-%{release} | |
ee044483 | 1670 | Requires: %{name}-spl = %{epoch}:%{version}-%{release} |
c0240cb1 | 1671 | Provides: php(snmp) |
d6634248 | 1672 | Obsoletes: php-snmp < 4:5.3.28-7 |
c0240cb1 | 1673 | |
1674 | %description snmp | |
1675 | This is a dynamic shared object (DSO) for PHP that will add SNMP | |
1676 | support. | |
1677 | ||
1678 | %description snmp -l pl.UTF-8 | |
1679 | Moduł PHP dodający obsługę SNMP. | |
1680 | ||
1681 | %package soap | |
1682 | Summary: soap extension module for PHP | |
1683 | Summary(pl.UTF-8): Moduł soap dla PHP | |
1684 | Group: Libraries | |
1685 | URL: http://www.php.net/manual/en/book.soap.php | |
1686 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1687 | Provides: php(soap) | |
d6634248 | 1688 | Obsoletes: php-soap < 4:5.3.28-7 |
c0240cb1 | 1689 | |
1690 | %description soap | |
1691 | This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL | |
1692 | support. | |
1693 | ||
1694 | %description soap -l pl.UTF-8 | |
1695 | Moduł PHP dodający obsługę SOAP/WSDL. | |
1696 | ||
1697 | %package sockets | |
1698 | Summary: sockets extension module for PHP | |
1699 | Summary(pl.UTF-8): Moduł socket dla PHP | |
1700 | Group: Libraries | |
1701 | URL: http://www.php.net/manual/en/book.sockets.php | |
1702 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1703 | Provides: php(sockets) | |
d6634248 | 1704 | Obsoletes: php-sockets < 4:5.3.28-7 |
c0240cb1 | 1705 | |
1706 | %description sockets | |
1707 | This is a dynamic shared object (DSO) for PHP that will add sockets | |
1708 | support. | |
1709 | ||
1710 | %description sockets -l pl.UTF-8 | |
1711 | Moduł PHP dodający obsługę gniazdek. | |
1712 | ||
1713 | %package spl | |
1714 | Summary: Standard PHP Library module for PHP | |
1715 | Summary(pl.UTF-8): Moduł biblioteki standardowej (Standard PHP Library) dla PHP | |
1716 | Group: Libraries | |
1717 | URL: http://php.net/manual/en/book.spl.php | |
1718 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1719 | Requires: %{name}-pcre = %{epoch}:%{version}-%{release} | |
1720 | Requires: %{name}-simplexml = %{epoch}:%{version}-%{release} | |
1721 | Provides: php(spl) | |
d6634248 | 1722 | Obsoletes: php-spl < 4:5.3.28-7 |
c0240cb1 | 1723 | |
1724 | %description spl | |
1725 | This is a dynamic shared object (DSO) for PHP that will add Standard | |
1726 | PHP Library support. | |
1727 | ||
1728 | %description spl -l pl.UTF-8 | |
1729 | Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library). | |
1730 | ||
c0240cb1 | 1731 | %package sqlite3 |
1732 | Summary: SQLite3 extension module for PHP | |
1733 | Summary(pl.UTF-8): Moduł SQLite3 dla PHP | |
1734 | Group: Libraries | |
1735 | URL: http://php.net/manual/en/book.sqlite3.php | |
1736 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
ce39c8ba | 1737 | Provides: php(sqlite3) = %{sqlite3ver} |
d6634248 | 1738 | Obsoletes: php-sqlite3 < 4:5.3.28-7 |
c0240cb1 | 1739 | |
1740 | %description sqlite3 | |
1741 | SQLite is a C library that implements an embeddable SQL database | |
1742 | engine. Programs that link with the SQLite library can have SQL | |
1743 | database access without running a separate RDBMS process. | |
1744 | ||
1745 | SQLite is not a client library used to connect to a big database | |
1746 | server. SQLite is the server. The SQLite library reads and writes | |
1747 | directly to and from the database files on disk. | |
1748 | ||
1749 | %description sqlite3 -l pl.UTF-8 | |
1750 | SQLite jest napisaną w C biblioteką implementującą osadzalny silnik | |
1751 | bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć | |
1752 | dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu | |
1753 | RDBMS. | |
1754 | ||
1755 | SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami | |
1756 | baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i | |
1757 | zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na | |
1758 | dysku. | |
1759 | ||
1760 | %package sybase-ct | |
1761 | Summary: Sybase-CT extension module for PHP | |
1762 | Summary(pl.UTF-8): Moduł Sybase-CT dla PHP | |
1763 | Group: Libraries | |
1764 | URL: http://www.php.net/manual/en/book.sybase.php | |
1765 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1766 | Provides: php(sybase-ct) | |
1767 | Obsoletes: php-sybase | |
d6634248 | 1768 | Obsoletes: php-sybase-ct < 4:5.3.28-7 |
c0240cb1 | 1769 | |
1770 | %description sybase-ct | |
1771 | This is a dynamic shared object (DSO) for PHP that will add Sybase and | |
1772 | MS SQL databases support through CT-lib. | |
1773 | ||
1774 | %description sybase-ct -l pl.UTF-8 | |
1775 | Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez | |
1776 | CT-lib. | |
1777 | ||
1778 | %package sysvmsg | |
1779 | Summary: SysV msg extension module for PHP | |
1780 | Summary(pl.UTF-8): Moduł SysV msg dla PHP | |
1781 | Group: Libraries | |
1782 | URL: http://www.php.net/manual/en/book.sem.php | |
1783 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1784 | Provides: php(sysvmsg) | |
d6634248 | 1785 | Obsoletes: php-sysvmsg < 4:5.3.28-7 |
c0240cb1 | 1786 | |
1787 | %description sysvmsg | |
1788 | This is a dynamic shared object (DSO) for PHP that will add SysV | |
1789 | message queues support. | |
1790 | ||
1791 | %description sysvmsg -l pl.UTF-8 | |
1792 | Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV. | |
1793 | ||
1794 | %package sysvsem | |
1795 | Summary: SysV sem extension module for PHP | |
1796 | Summary(pl.UTF-8): Moduł SysV sem dla PHP | |
1797 | Group: Libraries | |
1798 | URL: http://www.php.net/manual/en/book.sem.php | |
1799 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1800 | Provides: php(sysvsem) | |
d6634248 | 1801 | Obsoletes: php-sysvsem < 4:5.3.28-7 |
c0240cb1 | 1802 | |
1803 | %description sysvsem | |
1804 | This is a dynamic shared object (DSO) for PHP that will add SysV | |
1805 | semaphores support. | |
1806 | ||
1807 | %description sysvsem -l pl.UTF-8 | |
1808 | Moduł PHP umożliwiający korzystanie z semaforów SysV. | |
1809 | ||
1810 | %package sysvshm | |
1811 | Summary: SysV shm extension module for PHP | |
1812 | Summary(pl.UTF-8): Moduł SysV shm dla PHP | |
1813 | Group: Libraries | |
1814 | URL: http://www.php.net/manual/en/book.shmop.php | |
1815 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1816 | Provides: php(sysvshm) | |
d6634248 | 1817 | Obsoletes: php-sysvshm < 4:5.3.28-7 |
c0240cb1 | 1818 | |
1819 | %description sysvshm | |
1820 | This is a dynamic shared object (DSO) for PHP that will add SysV | |
1821 | Shared Memory support. | |
1822 | ||
1823 | %description sysvshm -l pl.UTF-8 | |
1824 | Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV. | |
1825 | ||
1826 | %package tests | |
1827 | Summary: Contains unit test files for PHP and extensions | |
1828 | Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń | |
1829 | Group: Libraries | |
1830 | URL: http://qa.php.net/ | |
1831 | Requires: %{name}-cli | |
1832 | ||
1833 | %description tests | |
13f02a12 | 1834 | This package contains unit tests for PHP and its extensions. |
c0240cb1 | 1835 | |
1836 | %description tests -l pl.UTF-8 | |
13f02a12 | 1837 | Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń. |
c0240cb1 | 1838 | |
1839 | %package tidy | |
1840 | Summary: Tidy extension module for PHP | |
1841 | Summary(pl.UTF-8): Moduł Tidy dla PHP | |
1842 | Group: Libraries | |
1843 | URL: http://www.php.net/manual/en/book.tidy.php | |
1844 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1845 | Requires: tidy | |
1846 | Provides: php(tidy) | |
d6634248 | 1847 | Obsoletes: php-tidy < 4:5.3.28-7 |
c0240cb1 | 1848 | |
1849 | %description tidy | |
1850 | This is a dynamic shared object (DSO) for PHP that will add Tidy | |
1851 | support. | |
1852 | ||
1853 | %description tidy -l pl.UTF-8 | |
1854 | Moduł PHP umożliwiający korzystanie z tidy. | |
1855 | ||
1856 | %package tokenizer | |
1857 | Summary: tokenizer extension module for PHP | |
1858 | Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP | |
1859 | Group: Libraries | |
1860 | URL: http://www.php.net/manual/en/book.tokenizer.php | |
1861 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1862 | Provides: php(tokenizer) | |
d6634248 | 1863 | Obsoletes: php-tokenizer < 4:5.3.28-7 |
c0240cb1 | 1864 | |
1865 | %description tokenizer | |
1866 | This is a dynamic shared object (DSO) for PHP that will add tokenizer | |
1867 | support. | |
1868 | ||
1869 | %description tokenizer -l pl.UTF-8 | |
1870 | Moduł PHP dodający obsługę tokenizera do PHP. | |
1871 | ||
1872 | %package wddx | |
1873 | Summary: wddx extension module for PHP | |
1874 | Summary(pl.UTF-8): Moduł wddx dla PHP | |
1875 | Group: Libraries | |
1876 | URL: http://www.php.net/manual/en/book.wddx.php | |
1877 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1878 | # - wddx doesn't require session as it's disabled at compile time: | |
1879 | # if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) | |
1880 | # see also php.spec#rev1.120.2.22 | |
1881 | #Requires: %{name}-session = %{epoch}:%{version}-%{release} | |
1882 | Requires: %{name}-xml = %{epoch}:%{version}-%{release} | |
1883 | Provides: php(wddx) | |
d6634248 | 1884 | Obsoletes: php-wddx < 4:5.3.28-7 |
c0240cb1 | 1885 | |
1886 | %description wddx | |
1887 | This is a dynamic shared object (DSO) for PHP that will add wddx | |
1888 | support. | |
1889 | ||
1890 | %description wddx -l pl.UTF-8 | |
1891 | Moduł PHP umożliwiający korzystanie z wddx. | |
1892 | ||
1893 | %package xml | |
1894 | Summary: XML extension module for PHP | |
1895 | Summary(pl.UTF-8): Moduł XML dla PHP | |
1896 | Group: Libraries | |
1897 | URL: http://www.php.net/manual/en/book.xml.php | |
1898 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1899 | Provides: php(xml) | |
d6634248 | 1900 | Obsoletes: php-xml < 4:5.3.28-7 |
c0240cb1 | 1901 | |
1902 | %description xml | |
1903 | This is a dynamic shared object (DSO) for PHP that will add XML | |
1904 | support. This extension lets you create XML parsers and then define | |
1905 | handlers for different XML events. | |
1906 | ||
1907 | %description xml -l pl.UTF-8 | |
1908 | Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń | |
1909 | związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i | |
1910 | następnie definiować procedury obsługi dla różnych zdarzeń XML. | |
1911 | ||
1912 | %package xmlreader | |
1913 | Summary: XML Reader extension module for PHP | |
1914 | Summary(pl.UTF-8): Moduł XML Reader dla PHP | |
1915 | Group: Libraries | |
1916 | URL: http://www.php.net/manual/en/book.xmlreader.php | |
1917 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
026b752b | 1918 | Requires: %{name}-dom = %{epoch}:%{version}-%{release} |
c0240cb1 | 1919 | Provides: php(xmlreader) |
d6634248 | 1920 | Obsoletes: php-xmlreader < 4:5.3.28-7 |
c0240cb1 | 1921 | |
1922 | %description xmlreader | |
1923 | This is a dynamic shared object (DSO) for PHP that will add XML Reader | |
1924 | support. The XMLReader extension is an XML Pull parser. The reader | |
1925 | acts as a cursor going forward on the document stream and stopping at | |
1926 | each node on the way. | |
1927 | ||
1928 | %description xmlreader -l pl.UTF-8 | |
1929 | Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik | |
1930 | działa jako kursor przechodzący przez strumień dokumentu i | |
1931 | zatrzymujący się na każdym węźle po drodze. | |
1932 | ||
1933 | %package xmlrpc | |
1934 | Summary: xmlrpc extension module for PHP | |
1935 | Summary(pl.UTF-8): Moduł xmlrpc dla PHP | |
1936 | Group: Libraries | |
1937 | URL: http://www.php.net/manual/en/book.xmlrpc.php | |
1938 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1939 | Requires: %{name}-xml = %{epoch}:%{version}-%{release} | |
1940 | Provides: php(xmlrpc) | |
d6634248 | 1941 | Obsoletes: php-xmlrpc < 4:5.3.28-7 |
c0240cb1 | 1942 | |
1943 | %description xmlrpc | |
1944 | This is a dynamic shared object (DSO) for PHP that will add XMLRPC | |
1945 | support. | |
1946 | ||
1947 | %description xmlrpc -l pl.UTF-8 | |
1948 | Moduł PHP dodający obsługę XMLRPC. | |
1949 | ||
1950 | %package xmlwriter | |
1951 | Summary: Fast, non-cached, forward-only means to write XML data | |
1952 | Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML | |
1953 | Group: Libraries | |
1954 | URL: http://www.php.net/manual/en/book.xmlwriter.php | |
1955 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1956 | Provides: php(xmlwriter) | |
1957 | Obsoletes: php-pecl-xmlwriter | |
d6634248 | 1958 | Obsoletes: php-xmlwriter < 4:5.3.28-7 |
c0240cb1 | 1959 | |
1960 | %description xmlwriter | |
1961 | This extension wraps the libxml xmlWriter API. Represents a writer | |
1962 | that provides a non-cached, forward-only means of generating streams | |
1963 | or files containing XML data. | |
1964 | ||
1965 | %description xmlwriter -l pl.UTF-8 | |
1966 | To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę | |
1967 | zapisu dostarczającą nie cachowanych metod generowania strumieni lub | |
1968 | plików zawierających dane XML. | |
1969 | ||
1970 | %package xsl | |
1971 | Summary: xsl extension module for PHP | |
1972 | Summary(pl.UTF-8): Moduł xsl dla PHP | |
1973 | Group: Libraries | |
1974 | URL: http://www.php.net/manual/en/book.xsl.php | |
1975 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
1976 | Requires: %{name}-dom = %{epoch}:%{version}-%{release} | |
1977 | Requires: libxslt >= 1.0.18 | |
c0240cb1 | 1978 | Provides: php(xsl) |
d6634248 | 1979 | Obsoletes: php-xsl < 4:5.3.28-7 |
0282b86e | 1980 | # actually not true, functionality is similar, but API differs |
c0240cb1 | 1981 | Obsoletes: php-xslt <= 3:4.3.8-1 |
1982 | ||
1983 | %description xsl | |
1984 | This is a dynamic shared object (DSO) for PHP that will add new XSL | |
1985 | support (using libxslt). | |
1986 | ||
1987 | %description xsl -l pl.UTF-8 | |
1988 | Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt). | |
1989 | ||
1990 | %package zip | |
1991 | Summary: Zip management extension | |
1992 | Summary(pl.UTF-8): Zarządzanie archiwami zip | |
1993 | Group: Libraries | |
1994 | URL: http://www.php.net/manual/en/book.zip.php | |
1995 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
3f5c4b2e | 1996 | %{?with_system_libzip:Requires: libzip >= 0.10.1-2} |
13f02a12 ER |
1997 | Provides: php(zip) = %{zipver} |
1998 | Obsoletes: php-pecl-zip < %{zipver} | |
d6634248 | 1999 | Obsoletes: php-zip < 4:5.3.28-7 |
c0240cb1 | 2000 | |
2001 | %description zip | |
2002 | Zip is an extension to create, modify and read zip files. | |
2003 | ||
2004 | %description zip -l pl.UTF-8 | |
2005 | Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz | |
2006 | odczyt archiwów zip. | |
2007 | ||
2008 | %package zlib | |
2009 | Summary: Zlib extension module for PHP | |
2010 | Summary(pl.UTF-8): Moduł zlib dla PHP | |
2011 | Group: Libraries | |
2012 | URL: http://www.php.net/manual/en/book.zlib.php | |
2013 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
2014 | Provides: php(zlib) | |
d6634248 | 2015 | Obsoletes: php-zlib < 4:5.3.28-7 |
c0240cb1 | 2016 | |
2017 | %description zlib | |
2018 | This is a dynamic shared object (DSO) for PHP that will add zlib | |
2019 | compression support to PHP. | |
2020 | ||
2021 | %description zlib -l pl.UTF-8 | |
2022 | Moduł PHP umożliwiający używanie kompresji zlib. | |
2023 | ||
2024 | %prep | |
0786b457 | 2025 | %setup -q -n %{orgname}-%{version} |
c0240cb1 | 2026 | %patch0 -p1 |
5eecc0ee | 2027 | %patch1 -p1 |
c0240cb1 | 2028 | %patch2 -p1 |
2029 | %patch3 -p1 | |
cd8282f1 | 2030 | %patch4 -p1 |
c0240cb1 | 2031 | %patch5 -p1 |
2032 | %patch6 -p1 | |
c0240cb1 | 2033 | %patch7 -p1 |
ba5a9013 | 2034 | %patch8 -p1 |
218d0141 | 2035 | |
13f02a12 | 2036 | cp -p php.ini-production php.ini |
c0240cb1 | 2037 | %patch10 -p1 |
2038 | %if %{with type_hints} | |
2039 | %patch12 -p0 | |
2040 | %endif | |
2041 | %patch14 -p1 | |
c0240cb1 | 2042 | %patch17 -p1 |
2043 | %patch18 -p1 | |
c0240cb1 | 2044 | %patch20 -p1 |
2045 | %patch21 -p1 | |
2046 | %patch22 -p1 | |
2047 | %patch23 -p1 | |
2048 | %patch24 -p1 | |
2049 | %patch25 -p1 | |
2050 | %patch26 -p1 | |
2051 | %patch27 -p1 | |
2052 | %patch29 -p1 | |
2053 | %patch31 -p1 | |
c0240cb1 | 2054 | %if "%{pld_release}" != "ac" |
2055 | %patch34 -p1 | |
2056 | %endif | |
2057 | %patch35 -p1 | |
2058 | %patch36 -p1 | |
2059 | %patch37 -p1 | |
2060 | %patch38 -p1 | |
2061 | %patch39 -p1 | |
2062 | %if %{with fpm} | |
848fed0e ER |
2063 | %if 0 |
2064 | # create split php-fpm.conf patch. review (restore other diffs) and commit | |
2065 | cp sapi/fpm/php-fpm.conf.in{,.orig} | |
2066 | %{__sed} -n -e '/; Start a new pool named/,$p' sapi/fpm/php-fpm.conf.in > sapi/fpm/php-fpm.conf-d.in | |
2067 | %{__sed} -i -e '/; Include one or more files/,/include=etc\/fpm\.d/d' sapi/fpm/php-fpm.conf.in | |
2068 | %{__sed} -i -e '/; Start a new pool named/,$d' sapi/fpm/php-fpm.conf.in | |
2069 | set +e | |
2070 | cd .. | |
2071 | diff -u %{orgname}-%{version}/sapi/fpm/php-fpm.conf.in{.orig,} > %{PATCH69} | |
2072 | diff -u /dev/null %{orgname}-%{version}/sapi/fpm/php-fpm.conf-d.in >> %{PATCH69} | |
2073 | exit 1 | |
2074 | %else | |
2075 | %patch69 -p1 | |
2076 | %endif | |
c0240cb1 | 2077 | %patch41 -p1 |
2078 | %patch42 -p1 | |
2079 | %endif | |
2080 | %patch43 -p1 | |
2081 | %patch44 -p1 | |
02d2dcbb ER |
2082 | #%patch45 -p1 # imap annotations. fixme |
2083 | #%patch46 -p1 # imap myrights. fixme | |
c0240cb1 | 2084 | %if %{with suhosin} |
2085 | %patch47 -p1 | |
99c34bd8 | 2086 | %patch68 -p1 |
c0240cb1 | 2087 | %endif |
c0240cb1 | 2088 | %patch50 -p1 |
2089 | %patch51 -p1 | |
2090 | %patch52 -p1 | |
2091 | %patch53 -p1 | |
c0240cb1 | 2092 | %undos ext/spl/tests/SplFileInfo_getInode_basic.phpt |
2093 | %patch55 -p1 | |
c0240cb1 | 2094 | %patch59 -p1 |
2095 | %patch60 -p1 | |
c0240cb1 | 2096 | %patch62 -p1 |
2097 | %patch63 -p1 | |
13f02a12 | 2098 | %{?with_system_libzip:%patch65 -p1} |
89f3bdfa | 2099 | %patch66 -p1 |
f141d13b | 2100 | %patch67 -p1 |
8d5b3144 | 2101 | %patch70 -p1 |
c0240cb1 | 2102 | |
d80112ca JP |
2103 | sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \ |
2104 | run-tests.php | |
2105 | ||
b7a18119 | 2106 | %{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4 |
c0240cb1 | 2107 | |
2108 | # cleanup backups after patching | |
2109 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
2110 | ||
2111 | # conflict seems to be resolved by recode patches | |
2112 | %{__rm} ext/recode/config9.m4 | |
2113 | ||
2114 | # remove all bundled libraries not to link with them accidentally | |
c0240cb1 | 2115 | %{__rm} -r ext/sqlite3/libsqlite |
2116 | #%{__rm} -r ext/bcmath/libbcmath | |
2117 | #%{__rm} -r ext/date/lib | |
2118 | #%{__rm} -r ext/fileinfo/libmagic | |
2119 | #%{__rm} -r ext/dba/libcdb | |
2120 | #%{__rm} -r ext/dba/libflatfile | |
2121 | #%{__rm} -r ext/dba/libinifile | |
2122 | #%{__rm} -r ext/gd/libgd | |
2123 | #%{__rm} -r ext/mbstring/libmbfl | |
2124 | #%{__rm} -r ext/mbstring/oniguruma | |
2125 | %{__rm} -r ext/pcre/pcrelib | |
2126 | #%{__rm} -r ext/soap/interop | |
2127 | %{__rm} -r ext/xmlrpc/libxmlrpc | |
2128 | #%{__rm} -r ext/zip/lib | |
3790806a | 2129 | %{__rm} ext/date/lib/timezonedb.h |
c0240cb1 | 2130 | |
13f02a12 | 2131 | cp -pf Zend/LICENSE{,.Zend} |
c0240cb1 | 2132 | install -p %{SOURCE13} dep-tests.sh |
2133 | ||
2134 | # breaks build | |
2135 | sed -i -e 's#-fvisibility=hidden##g' configure* | |
2136 | ||
2137 | # disable broken tests | |
2138 | # says just "Terminated" twice and fails | |
0a498a94 | 2139 | %{__mv} sapi/cli/tests/022.phpt{,.broken} |
c0240cb1 | 2140 | |
a33e71d0 ER |
2141 | # really dumb test, executable binary name is .libs/ something when building |
2142 | # https://bugs.php.net/bug.php?id=54514 | |
0a498a94 | 2143 | %{__mv} tests/basic/bug54514.phpt{,.disable} |
a33e71d0 ER |
2144 | |
2145 | # breaks whole testsuite unexpectedly: | |
2146 | # Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714 | |
2147 | # probably broken as zlib is built as shared | |
0a498a94 | 2148 | %{__mv} ext/soap/tests/server019.phpt{,disable} |
d1a2645a | 2149 | # Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728 |
0a498a94 | 2150 | %{__mv} ext/soap/tests/server020.phpt{,disable} |
f8be3881 ER |
2151 | |
2152 | # runs out of memory and kills carme vserver | |
2153 | # PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt] | |
0a498a94 | 2154 | %{__mv} Zend/tests/bug39438.phpt{,.disable} |
a33e71d0 | 2155 | |
c0240cb1 | 2156 | # php-5.3.3/ext/standard/tests/file/statpage.phpt |
2157 | %{__rm} ext/standard/tests/file/statpage.phpt | |
2158 | ||
2159 | # idiotic test, it will fail if somebody else makes space on disk or if disk | |
2160 | # space is not yet allocated (xfs). report upstream to advice bogus test is | |
2161 | # probably pointless. | |
2162 | %{__rm} ext/standard/tests/file/disk_free_space_basic.phpt | |
2163 | ||
482166f6 ER |
2164 | %ifarch %{x8664} |
2165 | # all pdo_sqlite, sqlite3 tests die with Aborted on carme | |
2166 | %{__rm} -r ext/pdo_sqlite/tests | |
2167 | %{__rm} -r ext/sqlite3/tests | |
2168 | %endif | |
2169 | ||
bbf35c27 ER |
2170 | # skip XFAILs |
2171 | # no point testing stuff that is knowingly broken | |
2172 | find -name '*.phpt' | xargs grep XFAIL -l | xargs rm -v | |
2173 | ||
482166f6 ER |
2174 | env \ |
2175 | %ifarch %{ix86} | |
2176 | ix86= x8664=: | |
2177 | %endif | |
2178 | %ifarch %{x8664} | |
2179 | ix86=: x8664= \ | |
dc101b85 JR |
2180 | %endif |
2181 | %ifarch x32 | |
2182 | ix86=: x8664=: \ | |
482166f6 ER |
2183 | %endif |
2184 | sh -xe %{_sourcedir}/skip-tests.sh | |
c0240cb1 | 2185 | |
2186 | %build | |
2187 | API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h) | |
2188 | if [ $API != %{php_api_version} ]; then | |
2189 | echo "Set %%define php_api_version to $API and re-run." | |
2190 | exit 1 | |
2191 | fi | |
2192 | ||
2193 | API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h) | |
2194 | if [ $API != %{zend_module_api} ]; then | |
2195 | echo "Set %%define zend_module_api to $API and re-run." | |
2196 | exit 1 | |
2197 | fi | |
2198 | ||
2199 | API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h) | |
2200 | if [ $API != %{zend_extension_api} ]; then | |
2201 | echo "Set %%define zend_extension_api to $API and re-run." | |
2202 | exit 1 | |
2203 | fi | |
2204 | ||
a6af2a14 ER |
2205 | API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h) |
2206 | if [ $API != %{php_pdo_api_version} ]; then | |
2207 | echo "Set %%define php_pdo_api_version to $API and re-run." | |
2208 | exit 1 | |
2209 | fi | |
2210 | ||
13f02a12 ER |
2211 | # Check for some extension version |
2212 | ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h) | |
2213 | if test "$ver" != "%{fileinfover}"; then | |
2214 | : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}. | |
2215 | : Update the fileinfover macro and rebuild. | |
2216 | exit 1 | |
2217 | fi | |
2218 | ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h) | |
2219 | if test "$ver" != "%{pharver}"; then | |
2220 | : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}. | |
2221 | : Update the pharver macro and rebuild. | |
2222 | exit 1 | |
2223 | fi | |
ce39c8ba ER |
2224 | ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h) |
2225 | if test "$ver" != "%{sqlite3ver}"; then | |
2226 | : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}. | |
2227 | : Update the sqlite3ver macro and rebuild. | |
2228 | exit 1 | |
2229 | fi | |
13f02a12 ER |
2230 | ver=$(sed -n '/#define PHP_ZIP_VERSION_STRING /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h) |
2231 | if test "$ver" != "%{zipver}"; then | |
2232 | : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}. | |
2233 | : Update the zipver macro and rebuild. | |
2234 | exit 1 | |
2235 | fi | |
2236 | ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h) | |
2237 | if test "$ver" != "%{jsonver}"; then | |
2238 | : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}. | |
2239 | : Update the jsonver macro and rebuild. | |
2240 | exit 1 | |
2241 | fi | |
3790806a | 2242 | ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h) |
8328535b | 2243 | if test "$ver" != "%{opcachever}"; then |
3790806a | 2244 | : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}. |
8328535b ER |
2245 | : Update the opcachever macro and rebuild. |
2246 | exit 1 | |
2247 | fi | |
13f02a12 ER |
2248 | ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml) |
2249 | if test "$ver" != "%{bz2ver}"; then | |
2250 | : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}. | |
2251 | : Update the bz2ver macro and rebuild. | |
2252 | exit 1 | |
2253 | fi | |
2254 | ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h) | |
2255 | if test "$ver" != "%{enchantver}"; then | |
2256 | : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}. | |
2257 | : Update the enchantver macro and rebuild. | |
2258 | exit 1 | |
2259 | fi | |
2260 | ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs) | |
2261 | if test "$ver" != "%{hashver}"; then | |
2262 | : Error: Upstream HASH version is now ${ver}, expecting %{hashver}. | |
2263 | : Update the hashver macro and rebuild. | |
2264 | exit 1 | |
2265 | fi | |
2266 | ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h) | |
2267 | if test "$ver" != "%{intlver}"; then | |
2268 | : Error: Upstream Intl version is now ${ver}, expecting %{intlver}. | |
2269 | : Update the intlver macro and rebuild. | |
2270 | exit 1 | |
2271 | fi | |
2272 | ||
c0240cb1 | 2273 | export EXTENSION_DIR="%{php_extensiondir}" |
2274 | # configure once (for faster debugging purposes) | |
2275 | if [ ! -f _built-conf ]; then | |
2276 | # now remove Makefile copies | |
2277 | rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed} | |
2278 | %{__libtoolize} | |
2279 | %{__aclocal} | |
2280 | cp -f /usr/share/automake/config.* . | |
2281 | ./buildconf --force | |
2282 | touch _built-conf | |
2283 | fi | |
2284 | export PROG_SENDMAIL="/usr/lib/sendmail" | |
37a01857 | 2285 | export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP -DOPENSSL_NO_SSL2=1 -DOPENSSL_NO_SSL3=1 %{rpmcppflags} \ |
c0240cb1 | 2286 | -I%{_includedir}/xmlrpc-epi" |
2287 | ||
2288 | sapis=" | |
2289 | cli | |
2290 | %if %{with cgi} | |
2291 | cgi-fcgi | |
2292 | %endif | |
2293 | %if %{with litespeed} | |
2294 | litespeed | |
2295 | %endif | |
2296 | %if %{with fpm} | |
2297 | fpm | |
2298 | %endif | |
13f02a12 ER |
2299 | %if %{with embed} |
2300 | embed | |
2301 | %endif | |
c0240cb1 | 2302 | %if %{with apache1} |
2303 | apxs1 | |
2304 | %endif | |
2305 | %if %{with apache2} | |
2306 | apxs2 | |
2307 | %endif | |
2308 | " | |
2309 | for sapi in $sapis; do | |
2310 | : SAPI $sapi | |
2311 | # skip if already configured (for faster debugging purposes) | |
2312 | [ -f Makefile.$sapi ] && continue | |
2313 | ||
2314 | sapi_args='' | |
2315 | case $sapi in | |
2316 | cgi-fcgi) | |
2317 | sapi_args='--disable-cli' | |
2318 | ;; | |
2319 | cli) | |
2320 | sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}' | |
2321 | ;; | |
2322 | fpm) | |
96ae08b1 | 2323 | sapi_args='--disable-cli --disable-cgi --enable-fpm' |
c0240cb1 | 2324 | ;; |
13f02a12 | 2325 | embed) |
82e4c42c | 2326 | sapi_args='--disable-cli --disable-cgi --enable-embed' |
13f02a12 | 2327 | ;; |
c0240cb1 | 2328 | apxs1) |
2329 | ver=$(rpm -q --qf '%{V}' apache1-devel) | |
96ae08b1 | 2330 | sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver" |
c0240cb1 | 2331 | ;; |
2332 | apxs2) | |
2333 | ver=$(rpm -q --qf '%{V}' apache-devel) | |
96ae08b1 | 2334 | sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver" |
c0240cb1 | 2335 | ;; |
2336 | litespeed) | |
96ae08b1 | 2337 | sapi_args='--disable-cli --disable-cgi --with-litespeed ' |
c0240cb1 | 2338 | ;; |
2339 | esac | |
2340 | ||
2341 | %configure \ | |
b7a18119 | 2342 | EXTRA_LDFLAGS="%{rpmldflags}" \ |
c0240cb1 | 2343 | $sapi_args \ |
2344 | %if "%{!?configure_cache:0}%{?configure_cache}" == "0" | |
2345 | --cache-file=config.cache \ | |
2346 | %endif | |
2347 | --with-libdir=%{_lib} \ | |
2348 | --with-config-file-path=%{_sysconfdir} \ | |
2349 | --with-config-file-scan-dir=%{_sysconfdir}/conf.d \ | |
c0240cb1 | 2350 | --with-system-tzdata \ |
2351 | --%{!?debug:dis}%{?debug:en}able-debug \ | |
2352 | %{?with_zts:--enable-maintainer-zts} \ | |
2353 | --enable-inline-optimization \ | |
2354 | --enable-bcmath=shared \ | |
2355 | --enable-calendar=shared \ | |
2356 | --enable-ctype=shared \ | |
2357 | --enable-dba=shared \ | |
2358 | --enable-dom=shared \ | |
2359 | --enable-exif=shared \ | |
2360 | --enable-fileinfo=shared \ | |
2361 | --enable-ftp=shared \ | |
2362 | --enable-gd-native-ttf \ | |
689a4e56 | 2363 | %{?with_intl:--enable-intl=shared} \ |
c0240cb1 | 2364 | --enable-libxml \ |
c0240cb1 | 2365 | --enable-mbstring=shared,all \ |
2366 | --enable-mbregex \ | |
2367 | --enable-pcntl=shared \ | |
2368 | --enable-pdo=shared \ | |
2369 | --enable-json=shared \ | |
2370 | --enable-hash=shared \ | |
2371 | --enable-xmlwriter=shared \ | |
2372 | %if %{with fpm} | |
2373 | --with-fpm-user=http \ | |
2374 | --with-fpm-group=http \ | |
2375 | %endif | |
2376 | %if %{with mssql} || %{with sybase_ct} | |
2377 | --with-pdo-dblib=shared \ | |
2378 | %endif | |
2379 | %if %{with interbase} && %{without interbase_inst} | |
2380 | --with-pdo-firebird=shared,/usr \ | |
2381 | %endif | |
2382 | %{?with_mhash:--with-mhash=yes} \ | |
2383 | --with-mysql-sock=/var/lib/mysql/mysql.sock \ | |
81d9fe7d | 2384 | --with-pdo-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \ |
329b4394 | 2385 | %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \ |
c0240cb1 | 2386 | %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \ |
2387 | %{?with_pgsql:--with-pdo-pgsql=shared} \ | |
2388 | %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \ | |
d8c3b589 | 2389 | %{?with_webp:--with-vpx-dir=/usr} \ |
c0240cb1 | 2390 | --without-libexpat-dir \ |
2391 | --enable-posix=shared \ | |
2392 | --enable-shared \ | |
2393 | --enable-session=shared \ | |
2394 | --enable-shmop=shared \ | |
2395 | --enable-simplexml=shared \ | |
2396 | --enable-sysvmsg=shared \ | |
2397 | --enable-sysvsem=shared \ | |
2398 | --enable-sysvshm=shared \ | |
c0240cb1 | 2399 | --enable-soap=shared \ |
2400 | --enable-sockets=shared \ | |
2401 | --enable-tokenizer=shared \ | |
c0240cb1 | 2402 | %{?with_wddx:--enable-wddx=shared} \ |
2403 | --enable-xml=shared \ | |
2404 | --enable-xmlreader=shared \ | |
2405 | --with-bz2=shared \ | |
2406 | %{__with_without curl curl shared} \ | |
2407 | --with-db4 \ | |
2408 | --with-iconv=shared \ | |
13f02a12 | 2409 | %{?with_enchant:--with-enchant=shared,/usr} \ |
c0240cb1 | 2410 | --with-freetype-dir=shared \ |
2411 | --with-gettext=shared \ | |
2412 | --with-gd=shared%{?with_system_gd:,/usr} \ | |
2413 | --with-gdbm \ | |
2414 | --with-gmp=shared \ | |
2415 | %{?with_imap:--with-imap=shared --with-imap-ssl} \ | |
2416 | %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \ | |
2417 | --with-jpeg-dir=/usr \ | |
2418 | %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \ | |
2419 | --with-mcrypt=shared \ | |
2420 | %{?with_mm:--with-mm} \ | |
2421 | %{?with_mssql:--with-mssql=shared} \ | |
81d9fe7d ER |
2422 | %{?with_mysqlnd:--enable-mysqlnd=shared} \ |
2423 | --with-mysql=shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd} \ | |
2424 | %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \ | |
329b4394 | 2425 | %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \ |
8328535b | 2426 | %{?with_opcache:--enable-opcache=shared} \ |
c0240cb1 | 2427 | %{?with_openssl:--with-openssl=shared} \ |
2428 | %{?with_kerberos5:--with-kerberos} \ | |
36fd40c8 | 2429 | --with-tcadb=/usr \ |
c0240cb1 | 2430 | %{__with_without pcre pcre-regex /usr} \ |
2431 | %{__enable_disable filter filter shared} \ | |
2432 | --with-pear=%{php_pear_dir} \ | |
2433 | %{__with_without pgsql pgsql shared,/usr} \ | |
2434 | %{__enable_disable phar phar shared} \ | |
2435 | --with-png-dir=/usr \ | |
2436 | %{?with_pspell:--with-pspell=shared} \ | |
2437 | --with-readline=shared \ | |
2438 | %{?with_recode:--with-recode=shared} \ | |
2439 | --with-regex=system \ | |
2440 | %{?with_snmp:--with-snmp=shared} \ | |
2441 | %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \ | |
c0240cb1 | 2442 | %{!?with_pdo_sqlite:--without-pdo-sqlite} \ |
2443 | %{__with_without sqlite3 sqlite3 shared,/usr} \ | |
2444 | --with-t1lib=shared \ | |
2445 | %{?with_tidy:--with-tidy=shared} \ | |
2446 | %{?with_odbc:--with-unixODBC=shared,/usr} \ | |
2447 | %{__with_without xmlrpc xmlrpc shared,/usr} \ | |
2448 | --with-xsl=shared \ | |
2449 | --with-zlib=shared \ | |
2450 | --with-zlib-dir=shared,/usr \ | |
13f02a12 | 2451 | %{?with_system_libzip:--with-libzip} \ |
c0240cb1 | 2452 | --enable-zip=shared,/usr \ |
2453 | ||
2454 | # save for debug | |
2455 | cp -f Makefile Makefile.$sapi | |
2456 | cp -f main/php_config.h php_config.h.$sapi | |
2457 | cp -f config.log config.log.$sapi | |
2458 | done | |
2459 | ||
2460 | # as we build each SAPI in own make, adjust php-config.in forehead | |
529e9ea3 ER |
2461 | sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs) |
2462 | %{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in | |
c0240cb1 | 2463 | |
2464 | # must make libphp_common first, so modules can link against it. | |
2465 | cp -af php_config.h.cli main/php_config.h | |
2466 | cp -af Makefile.cli Makefile | |
2467 | %{__make} libphp_common.la | |
2468 | %{__make} build-modules | |
2469 | ||
2470 | %if %{with apache1} | |
2471 | %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1 | |
2472 | %endif | |
2473 | ||
2474 | %if %{with apache2} | |
2475 | %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2 | |
2476 | %endif | |
2477 | ||
2478 | %if %{with litespeed} | |
96ae08b1 | 2479 | %{__make} -f Makefile.litespeed litespeed |
c0240cb1 | 2480 | %endif |
2481 | ||
4d241919 ER |
2482 | %if %{with embed} |
2483 | %{__make} -f Makefile.embed libphp5.la | |
2484 | %endif | |
2485 | ||
c0240cb1 | 2486 | # CGI/FCGI |
2487 | %if %{with cgi} | |
13f02a12 | 2488 | cp -pf php_config.h.cgi-fcgi main/php_config.h |
c0240cb1 | 2489 | %{__make} -f Makefile.cgi-fcgi |
3aeda88b | 2490 | [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ] |
c0240cb1 | 2491 | %endif |
2492 | ||
2493 | # PHP FPM | |
2494 | %if %{with fpm} | |
13f02a12 | 2495 | cp -pf php_config.h.fpm main/php_config.h |
c0240cb1 | 2496 | %{__make} -f Makefile.fpm |
3aeda88b | 2497 | [ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ] |
c0240cb1 | 2498 | %endif |
2499 | ||
2500 | # CLI | |
13f02a12 | 2501 | cp -pf php_config.h.cli main/php_config.h |
c0240cb1 | 2502 | %{__make} -f Makefile.cli |
3aeda88b | 2503 | [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ] |
c0240cb1 | 2504 | |
2505 | # check for stupid xml parse breakage where < and > just get lost in parse result | |
2506 | ./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x><</x>", $vals, $index); exit((int )empty($vals[0]["value"]));' | |
2507 | ||
2508 | # Generate stub .ini files for each extension | |
2509 | rm -rf conf.d | |
2510 | install -d conf.d | |
2511 | generate_inifiles() { | |
2512 | for so in modules/*.so; do | |
2513 | mod=$(basename $so .so) | |
8328535b ER |
2514 | ext=extension |
2515 | # opcache.so is zend extension | |
2516 | nm $so | grep -q zend_extension_entry && ext=zend_extension | |
c0240cb1 | 2517 | conf="$mod.ini" |
2518 | # xml needs to be loaded before wddx | |
2519 | [ "$mod" = "wddx" ] && conf="xml_$mod.ini" | |
2520 | # pre needs to be loaded before SPL | |
2521 | [ "$mod" = "pcre" ] && conf="PCRE.ini" | |
2522 | # spl needs to be loaded before mysqli | |
2523 | [ "$mod" = "spl" ] && conf="SPL.ini" | |
2524 | # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql | |
2525 | [ "$mod" = "session" ] && conf="Session.ini" | |
2526 | # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli | |
2527 | [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini" | |
2528 | echo "+ $conf" | |
2529 | cat > conf.d/$conf <<-EOF | |
8328535b ER |
2530 | ; Enable $mod $ext module |
2531 | $ext=$mod.so | |
c0240cb1 | 2532 | EOF |
2533 | done | |
2534 | } | |
2535 | generate_inifiles | |
2536 | ||
2537 | # Check that the module inner-dependencies are intact | |
2538 | PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log | |
2539 | if grep -v OK dep-tests.log; then | |
2540 | echo >&2 "The results above were not expected" | |
2541 | exit 1 | |
2542 | fi | |
2543 | ||
2544 | %if %{with gcov} | |
2545 | # Use CLI SAPI | |
13f02a12 ER |
2546 | cp -pf php_config.h.cli main/php_config.h |
2547 | cp -pf Makefile.cli Makefile | |
c0240cb1 | 2548 | %{__make} lcov |
2549 | # you really don't want to package result of gcov build | |
2550 | exit 1 | |
2551 | %endif | |
2552 | ||
c0240cb1 | 2553 | cat <<'EOF' > run-tests.sh |
2554 | #!/bin/sh | |
2555 | export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2 | |
2556 | unset TZ LANG LC_ALL || : | |
2557 | %{__make} test \ | |
2558 | EXTENSION_DIR=modules \ | |
2559 | PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \ | |
2560 | RUN_TESTS_SETTINGS="-q $*" | |
2561 | EOF | |
2562 | chmod +x run-tests.sh | |
336b95c5 ER |
2563 | |
2564 | %if %{with tests} | |
2565 | # Run tests, using the CLI SAPI | |
2566 | cp -pf php_config.h.cli main/php_config.h | |
2567 | cp -pf Makefile.cli Makefile | |
2568 | ||
482166f6 | 2569 | ./run-tests.sh -w failed.log -s tests.log |
c0240cb1 | 2570 | |
2571 | # collect failed tests into cleanup script used in prep. | |
482166f6 ER |
2572 | sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log |
2573 | sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \ | |
c0240cb1 | 2574 | >> %{_sourcedir}/skip-tests.sh |
2575 | ||
482166f6 ER |
2576 | # if on builders, dump test log |
2577 | tty -q || cat tests.log | |
5279719f ER |
2578 | |
2579 | test ! -s failed.log | |
c0240cb1 | 2580 | %endif |
2581 | ||
2582 | %install | |
2583 | rm -rf $RPM_BUILD_ROOT | |
2584 | install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \ | |
2585 | $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \ | |
2586 | $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \ | |
2587 | $RPM_BUILD_ROOT%{_mandir}/man{1,8} \ | |
2588 | ||
13f02a12 ER |
2589 | cp -pf php_config.h.cli main/php_config.h |
2590 | cp -pf Makefile.cli Makefile | |
c0240cb1 | 2591 | %{__make} install \ |
b27ad7c4 | 2592 | phpbuilddir=%{_libdir}/%{name}/build \ |
c0240cb1 | 2593 | INSTALL_ROOT=$RPM_BUILD_ROOT |
2594 | ||
0a498a94 | 2595 | %if %{without default_php} |
513e5b2c | 2596 | # version the .phar files |
0a498a94 JB |
2597 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar |
2598 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1 | |
2599 | %endif | |
2600 | %if %{with alternatives} | |
dba84b01 ER |
2601 | # touch for ghost |
2602 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/phar | |
2603 | touch $RPM_BUILD_ROOT%{_bindir}/phar | |
2604 | touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1 | |
0a498a94 | 2605 | %endif |
c0240cb1 | 2606 | |
c04c07ff ER |
2607 | # version suffix |
2608 | v=$(echo %{version} | cut -d. -f1-2) | |
2609 | ||
c0240cb1 | 2610 | # install Apache1 DSO module |
2611 | %if %{with apache1} | |
13f02a12 | 2612 | libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1 |
0a498a94 | 2613 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so |
901e8824 | 2614 | ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so |
c0240cb1 | 2615 | %endif |
2616 | ||
2617 | # install Apache2 DSO module | |
2618 | %if %{with apache2} | |
13f02a12 | 2619 | libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache |
0a498a94 | 2620 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so |
901e8824 | 2621 | ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so |
c0240cb1 | 2622 | %endif |
2623 | ||
2624 | # install litespeed sapi | |
2625 | %if %{with litespeed} | |
f9101cd2 | 2626 | libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed |
c0240cb1 | 2627 | %endif |
2628 | ||
13f02a12 | 2629 | libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir} |
c0240cb1 | 2630 | |
2631 | # install CGI/FCGI | |
2632 | %if %{with cgi} | |
13f02a12 | 2633 | # install-cgi |
694e535c ER |
2634 | libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi |
2635 | ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi | |
13f02a12 | 2636 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini |
c0240cb1 | 2637 | %endif |
2638 | ||
2639 | # install FCGI PM | |
2640 | %if %{with fpm} | |
2641 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}} | |
f9101cd2 ER |
2642 | libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm |
2643 | cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8 | |
13f02a12 | 2644 | cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir} |
b604e307 | 2645 | cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf |
c0240cb1 | 2646 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
f9101cd2 | 2647 | install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm |
d307ed78 ER |
2648 | install -d $RPM_BUILD_ROOT/etc/logrotate.d |
2649 | cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm | |
db9dad5e ER |
2650 | %if "%{pld_release}" == "ac" |
2651 | %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm | |
2652 | %endif | |
d307ed78 | 2653 | |
0a498a94 | 2654 | %if %{with alternatives} |
49d5c4ee ER |
2655 | # touch for ghost for alternatives |
2656 | touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm | |
0a498a94 | 2657 | %endif |
49d5c4ee | 2658 | |
f9101cd2 ER |
2659 | %{__sed} -i -e ' |
2660 | s#/usr/lib/php#%{php_extensiondir}# | |
2661 | s#/etc/php#%{_sysconfdir}# | |
2662 | s#@processname@#%{name}-fpm#g | |
b604e307 | 2663 | ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf} |
13f02a12 ER |
2664 | %endif |
2665 | ||
2666 | # install Embedded API | |
2667 | %if %{with embed} | |
13f02a12 | 2668 | # we could use install-headers from Makefile.embed, but that would reinstall all headers |
82e4c42c | 2669 | # install-sapi installs to wrong dir, so just do it all manually |
13f02a12 | 2670 | install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed |
82e4c42c | 2671 | install -p libs/libphp5.so $RPM_BUILD_ROOT%{_libdir} |
13f02a12 | 2672 | cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed |
c0240cb1 | 2673 | %endif |
2674 | ||
2675 | # install CLI | |
580d93e0 ER |
2676 | # versioned suffix is always installed |
2677 | libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix} | |
2678 | cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1 | |
2679 | echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1 | |
2680 | ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php | |
c0240cb1 | 2681 | |
f831b4f0 | 2682 | cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini |
13f02a12 | 2683 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini |
c0240cb1 | 2684 | |
2685 | %if %{with apache1} | |
13f02a12 ER |
2686 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf |
2687 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini | |
2688 | %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la | |
c0240cb1 | 2689 | %endif |
2690 | ||
2691 | %if %{with apache2} | |
13f02a12 ER |
2692 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf |
2693 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini | |
2694 | %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la | |
c0240cb1 | 2695 | %endif |
2696 | ||
f831b4f0 | 2697 | # ensure that paths are correct for current php version and arch |
37a42448 | 2698 | grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \ |
f831b4f0 ER |
2699 | %{__sed} -i -e ' |
2700 | s#/usr/lib/php#%{php_extensiondir}# | |
2701 | s#/etc/php#%{_sysconfdir}# | |
63bcb1b6 | 2702 | ' |
f831b4f0 | 2703 | |
c0240cb1 | 2704 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d |
13f02a12 | 2705 | cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d |
c0240cb1 | 2706 | |
2707 | # per SAPI ini directories | |
2708 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d | |
2709 | ||
2710 | # for CLI SAPI only | |
0a498a94 | 2711 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d} |
c0240cb1 | 2712 | |
2713 | # use system automake and {lib,sh}tool | |
77ee6bb7 | 2714 | ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build |
b27ad7c4 | 2715 | ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build |
77ee6bb7 ER |
2716 | for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do |
2717 | f=%{_aclocaldir}/$fn | |
2718 | test -f $f || continue | |
2719 | ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build | |
2720 | done | |
2721 | for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do | |
2722 | f=/usr/share/libtool/$fn | |
2723 | test -f $f || continue | |
2724 | ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build | |
2725 | break | |
2726 | done | |
b27ad7c4 | 2727 | sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize |
c0240cb1 | 2728 | |
2729 | # for php-pecl-mailparse | |
2730 | install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring | |
13f02a12 | 2731 | cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring |
c0240cb1 | 2732 | |
2733 | # tests | |
2734 | install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php | |
2735 | install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php | |
2736 | cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php | |
2737 | ||
13f02a12 ER |
2738 | # fix install paths, avoid evil rpaths |
2739 | sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la | |
13f02a12 | 2740 | # better solution? |
b27ad7c4 | 2741 | sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4 |
13f02a12 | 2742 | |
c0240cb1 | 2743 | %clean |
2744 | rm -rf $RPM_BUILD_ROOT | |
2745 | ||
aa424f73 | 2746 | %post -n apache1-mod_%{name} |
c0240cb1 | 2747 | if [ "$1" = "1" ]; then |
2748 | %service -q apache restart | |
2749 | fi | |
2750 | ||
aa424f73 | 2751 | %postun -n apache1-mod_%{name} |
c0240cb1 | 2752 | if [ "$1" = "0" ]; then |
2753 | %service -q apache restart | |
2754 | fi | |
2755 | ||
aa424f73 | 2756 | %post -n apache-mod_%{name} |
c0240cb1 | 2757 | if [ "$1" = "1" ]; then |
2758 | %service -q httpd restart | |
2759 | fi | |
2760 | ||
aa424f73 | 2761 | %postun -n apache-mod_%{name} |
c0240cb1 | 2762 | if [ "$1" = "0" ]; then |
2763 | %service -q httpd restart | |
2764 | fi | |
2765 | ||
2766 | %pre fpm | |
2767 | %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http | |
2768 | ||
2769 | %post fpm | |
ff9cec3f ER |
2770 | /sbin/chkconfig --add %{name}-fpm |
2771 | %service %{name}-fpm restart | |
0a498a94 | 2772 | %if %{with alternatives} |
49d5c4ee | 2773 | update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || : |
0a498a94 | 2774 | %endif |
c0240cb1 | 2775 | |
2776 | %preun fpm | |
2ef5b611 | 2777 | if [ "$1" = "0" ]; then |
ff9cec3f ER |
2778 | %service %{name}-fpm stop |
2779 | /sbin/chkconfig --del %{name}-fpm | |
0a498a94 | 2780 | %if %{with alternatives} |
49d5c4ee | 2781 | update-alternatives --remove php-fpm %{_sbindir}/php-fpm || : |
0a498a94 | 2782 | %endif |
c0240cb1 | 2783 | fi |
2784 | ||
2785 | %postun fpm | |
2786 | if [ "$1" = "0" ]; then | |
2787 | %userremove http | |
2788 | fi | |
2789 | ||
13f02a12 ER |
2790 | %post embedded -p /sbin/ldconfig |
2791 | %postun embedded -p /sbin/ldconfig | |
2792 | ||
4cf34644 | 2793 | %posttrans common |
c0240cb1 | 2794 | # PHP 5.3 requires timezone being setup, try setup it from tzdata |
5d43dd0d ER |
2795 | if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then |
2796 | TIMEZONE= | |
2797 | . /etc/sysconfig/timezone | |
2798 | if [ "$TIMEZONE" ]; then | |
2799 | %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini | |
c0240cb1 | 2800 | fi |
2801 | fi | |
2802 | ||
c0240cb1 | 2803 | # minimizing apache restarts logics. we restart webserver: |
2804 | # | |
2805 | # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2) | |
2806 | # 2. first install of extension (post: $1 = 1) | |
2807 | # 2. uninstall of extension (postun: $1 == 0) | |
2808 | # | |
2809 | # the strict internal deps between extensions (and apache modules) and | |
2810 | # common package are very important for all this to work. | |
2811 | ||
2812 | # restart webserver at the end of transaction | |
2813 | [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart | |
2814 | [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart | |
2815 | ||
263ef8fe ER |
2816 | %triggerpostun common -- php-common < 4:5.3.28-7 |
2817 | # migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/ | |
2818 | # do config migration in php-common trigger, as the trigger is ran after all packages are upgraded | |
2819 | # this way we can stick to one trigger, instead of attaching one for each (sub)package! | |
2820 | for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do | |
2821 | test -f "$f" || continue | |
2822 | bn=${f#/etc/php/} | |
2823 | dn=${bn%/*} | |
2824 | fn=${bn#*/} | |
2825 | test "$dn" = "$fn" && dn= | |
2826 | fn=${fn%.rpmsave} | |
2827 | nf=%{_sysconfdir}/$dn/$fn | |
2828 | test -f "$nf" || continue | |
2ef5b611 TP |
2829 | cp -vfb $nf{,.rpmnew} |
2830 | cp -vfb $f $nf | |
396b93df ER |
2831 | %{__sed} -i -e ' |
2832 | s#%{_libdir}/php#%{_libdir}/%{name}# | |
2833 | s#/etc/php#%{_sysconfdir}# | |
2834 | ' $nf | |
263ef8fe ER |
2835 | done |
2836 | ||
9f2b265f ER |
2837 | %triggerpostun common -- %{name}-common < 4:5.5.20-2, php-common < 4:5.5.20-2 |
2838 | # switch to browscap package if the ini file has original value | |
2839 | %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini | |
06903eea ER |
2840 | # disable browscap, if optional package not present |
2841 | if [ ! -e /usr/share/browscap/php_browscap.ini ]; then | |
2842 | %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini | |
2843 | fi | |
9f2b265f | 2844 | |
901e8824 AM |
2845 | %triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 4:5.5.30-2 |
2846 | sed -i -e 's#modules/libphp5.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php.conf | |
2847 | ||
2848 | %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:5.5.30-2 | |
2849 | sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf | |
2850 | ||
c0240cb1 | 2851 | # common macros called at extension post/postun scriptlet |
dba84b01 | 2852 | %define ext_post \ |
c0240cb1 | 2853 | if [ "$1" = "1" ]; then \ |
2854 | %php_webserver_restart \ | |
2855 | fi \ | |
dba84b01 ER |
2856 | %{nil} |
2857 | ||
2858 | %define ext_postun \ | |
c0240cb1 | 2859 | if [ "$1" = "0" ]; then \ |
2860 | %php_webserver_restart \ | |
dba84b01 ER |
2861 | fi \ |
2862 | %{nil} | |
2863 | ||
2864 | %define extension_scripts() \ | |
2865 | %post %1 \ | |
2866 | %ext_post \ | |
2867 | \ | |
2868 | %postun %1 \ | |
fe8ba9b5 | 2869 | %ext_postun \ |
c0240cb1 | 2870 | %{nil} |
2871 | ||
2872 | # extension scripts defines | |
2873 | %extension_scripts bcmath | |
2874 | %extension_scripts bz2 | |
2875 | %extension_scripts calendar | |
2876 | %extension_scripts ctype | |
2877 | %extension_scripts curl | |
2878 | %extension_scripts dba | |
2879 | %extension_scripts dom | |
13f02a12 | 2880 | %extension_scripts enchant |
c0240cb1 | 2881 | %extension_scripts exif |
2882 | %extension_scripts fileinfo | |
2883 | %extension_scripts filter | |
2884 | %extension_scripts ftp | |
2885 | %extension_scripts gd | |
2886 | %extension_scripts gettext | |
2887 | %extension_scripts gmp | |
2888 | %extension_scripts hash | |
2889 | %extension_scripts iconv | |
2890 | %extension_scripts imap | |
2891 | %extension_scripts interbase | |
2892 | %extension_scripts intl | |
2893 | %extension_scripts json | |
2894 | %extension_scripts ldap | |
2895 | %extension_scripts mbstring | |
2896 | %extension_scripts mcrypt | |
2897 | %extension_scripts mssql | |
2898 | %extension_scripts mysql | |
2899 | %extension_scripts mysqli | |
2900 | %extension_scripts mysqlnd | |
2901 | %extension_scripts oci8 | |
2902 | %extension_scripts odbc | |
8328535b | 2903 | %extension_scripts opcache |
c0240cb1 | 2904 | %extension_scripts openssl |
2905 | %extension_scripts pcre | |
e12b4121 | 2906 | %extension_scripts pdo |
c0240cb1 | 2907 | %extension_scripts pdo-dblib |
2908 | %extension_scripts pdo-firebird | |
56b7d841 | 2909 | %extension_scripts pdo-oci |
c0240cb1 | 2910 | %extension_scripts pdo-mysql |
2911 | %extension_scripts pdo-odbc | |
2912 | %extension_scripts pdo-pgsql | |
2913 | %extension_scripts pdo-sqlite | |
2914 | %extension_scripts pgsql | |
e12b4121 | 2915 | %extension_scripts pcntl |
c0240cb1 | 2916 | %extension_scripts posix |
2917 | %extension_scripts pspell | |
2918 | %extension_scripts recode | |
2919 | %extension_scripts session | |
2920 | %extension_scripts shmop | |
e12b4121 | 2921 | %extension_scripts simplexml |
c0240cb1 | 2922 | %extension_scripts snmp |
2923 | %extension_scripts soap | |
2924 | %extension_scripts sockets | |
2925 | %extension_scripts spl | |
c0240cb1 | 2926 | %extension_scripts sqlite3 |
2927 | %extension_scripts sybase-ct | |
2928 | %extension_scripts sysvmsg | |
2929 | %extension_scripts sysvsem | |
2930 | %extension_scripts sysvshm | |
2931 | %extension_scripts tidy | |
2932 | %extension_scripts tokenizer | |
2933 | %extension_scripts wddx | |
2934 | %extension_scripts xml | |
2935 | %extension_scripts xmlreader | |
2936 | %extension_scripts xmlrpc | |
2937 | %extension_scripts xmlwriter | |
2938 | %extension_scripts xsl | |
2939 | %extension_scripts zip | |
2940 | %extension_scripts zlib | |
2941 | ||
dba84b01 ER |
2942 | %post phar |
2943 | %ext_post | |
0a498a94 | 2944 | %if %{with alternatives} |
dba84b01 ER |
2945 | update-alternatives \ |
2946 | --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \ | |
2947 | --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || : | |
0a498a94 | 2948 | %endif |
dba84b01 ER |
2949 | |
2950 | %postun phar | |
2951 | %ext_postun | |
0a498a94 | 2952 | %if %{with alternatives} |
dba84b01 ER |
2953 | if [ $1 -eq 0 ]; then |
2954 | update-alternatives --remove phar %{_bindir}/phar || : | |
2955 | fi | |
0a498a94 | 2956 | %endif |
dba84b01 | 2957 | |
c0240cb1 | 2958 | %if %{with apache1} |
aa424f73 | 2959 | %files -n apache1-mod_%{name} |
c0240cb1 | 2960 | %defattr(644,root,root,755) |
2961 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf | |
2962 | %dir %{_sysconfdir}/apache.d | |
2963 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini | |
901e8824 | 2964 | %attr(755,root,root) %{_libdir}/apache1/mod_php.so |
c04c07ff | 2965 | %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so |
c0240cb1 | 2966 | %endif |
2967 | ||
2968 | %if %{with apache2} | |
aa424f73 | 2969 | %files -n apache-mod_%{name} |
c0240cb1 | 2970 | %defattr(644,root,root,755) |
2971 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf | |
51f5a9e3 AM |
2972 | %attr(755,root,root) %{_libdir}/apache/mod_php.so |
2973 | ||
2974 | %files -n apache-mod_%{name}-core | |
2975 | %defattr(644,root,root,755) | |
c0240cb1 | 2976 | %dir %{_sysconfdir}/apache2handler.d |
2977 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini | |
c04c07ff | 2978 | %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so |
c0240cb1 | 2979 | %endif |
2980 | ||
2981 | %if %{with litespeed} | |
2982 | %files litespeed | |
2983 | %defattr(644,root,root,755) | |
aa424f73 | 2984 | %attr(755,root,root) %{_sbindir}/%{name}.litespeed |
c0240cb1 | 2985 | %endif |
2986 | ||
2987 | %if %{with cgi} | |
2988 | %files cgi | |
2989 | %defattr(644,root,root,755) | |
2990 | %dir %{_sysconfdir}/cgi-fcgi.d | |
2991 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini | |
694e535c ER |
2992 | %attr(755,root,root) %{_bindir}/%{name}.cgi |
2993 | %attr(755,root,root) %{_bindir}/%{name}.fcgi | |
c0240cb1 | 2994 | %endif |
2995 | ||
13f02a12 ER |
2996 | %if %{with embed} |
2997 | %files embedded | |
2998 | %defattr(644,root,root,755) | |
82e4c42c | 2999 | %attr(755,root,root) %{_libdir}/libphp5.so |
13f02a12 ER |
3000 | %endif |
3001 | ||
c0240cb1 | 3002 | %files cli |
3003 | %defattr(644,root,root,755) | |
3004 | %dir %{_sysconfdir}/cli.d | |
3005 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini | |
580d93e0 ER |
3006 | %attr(755,root,root) %{_bindir}/php%{ver_suffix} |
3007 | %{_mandir}/man1/php%{ver_suffix}.1* | |
c0240cb1 | 3008 | |
3009 | %files program | |
3010 | %defattr(644,root,root,755) | |
3011 | %attr(755,root,root) %{_bindir}/php | |
872bc3df | 3012 | %{_mandir}/man1/php.1* |
c0240cb1 | 3013 | |
3014 | %if %{with fpm} | |
3015 | %files fpm | |
3016 | %defattr(644,root,root,755) | |
13f02a12 | 3017 | %doc sapi/fpm/{CREDITS,LICENSE} |
c0240cb1 | 3018 | %dir %{_sysconfdir}/fpm.d |
3019 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf | |
b604e307 | 3020 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf |
f9101cd2 | 3021 | %attr(755,root,root) %{_sbindir}/%{name}-fpm |
0a498a94 | 3022 | %if %{with alternatives} |
49d5c4ee | 3023 | %ghost %{_sbindir}/php-fpm |
0a498a94 | 3024 | %endif |
f9101cd2 ER |
3025 | %{_mandir}/man8/%{name}-fpm.8* |
3026 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm | |
3027 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm | |
c0240cb1 | 3028 | %endif |
3029 | ||
3030 | %files common | |
3031 | %defattr(644,root,root,755) | |
13f02a12 | 3032 | %doc CREDITS EXTENSIONS LICENSE NEWS README.{PHP4-TO-PHP5-THIN-CHANGES,namespaces} UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-* |
c0240cb1 | 3033 | %dir %{_sysconfdir} |
3034 | %dir %{_sysconfdir}/conf.d | |
3035 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini | |
c0240cb1 | 3036 | %attr(755,root,root) %{_libdir}/libphp_common-*.so |
3037 | %dir %{php_extensiondir} | |
3038 | ||
13f02a12 ER |
3039 | %doc ext/session/mod_files.sh |
3040 | ||
c0240cb1 | 3041 | %files devel |
3042 | %defattr(644,root,root,755) | |
13f02a12 | 3043 | %doc CODING_STANDARDS README.{EXTENSIONS,EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter} |
c0240cb1 | 3044 | %attr(755,root,root) %{_bindir}/phpize |
3045 | %attr(755,root,root) %{_bindir}/php-config | |
3046 | %attr(755,root,root) %{_libdir}/libphp_common.so | |
3047 | %{_libdir}/libphp_common.la | |
3048 | %{_includedir}/php | |
b27ad7c4 | 3049 | %{_libdir}/%{name}/build |
c0240cb1 | 3050 | %{_mandir}/man1/php-config.1* |
3051 | %{_mandir}/man1/phpize.1* | |
3052 | ||
3053 | %files bcmath | |
3054 | %defattr(644,root,root,755) | |
3055 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini | |
3056 | %attr(755,root,root) %{php_extensiondir}/bcmath.so | |
3057 | ||
3058 | %files bz2 | |
3059 | %defattr(644,root,root,755) | |
8cd9d573 | 3060 | %doc ext/bz2/CREDITS |
c0240cb1 | 3061 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini |
3062 | %attr(755,root,root) %{php_extensiondir}/bz2.so | |
3063 | ||
3064 | %files calendar | |
3065 | %defattr(644,root,root,755) | |
8cd9d573 | 3066 | %doc ext/calendar/CREDITS |
c0240cb1 | 3067 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini |
3068 | %attr(755,root,root) %{php_extensiondir}/calendar.so | |
3069 | ||
3070 | %files ctype | |
3071 | %defattr(644,root,root,755) | |
8cd9d573 | 3072 | %doc ext/calendar/CREDITS |
c0240cb1 | 3073 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini |
3074 | %attr(755,root,root) %{php_extensiondir}/ctype.so | |
3075 | ||
3076 | %if %{with curl} | |
3077 | %files curl | |
3078 | %defattr(644,root,root,755) | |
8cd9d573 | 3079 | %doc ext/curl/CREDITS |
c0240cb1 | 3080 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini |
3081 | %attr(755,root,root) %{php_extensiondir}/curl.so | |
3082 | %endif | |
3083 | ||
3084 | %files dba | |
3085 | %defattr(644,root,root,755) | |
cd6e98f7 | 3086 | %doc ext/dba/{CREDITS,README} |
c0240cb1 | 3087 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini |
3088 | %attr(755,root,root) %{php_extensiondir}/dba.so | |
3089 | ||
3090 | %files dom | |
3091 | %defattr(644,root,root,755) | |
8cd9d573 | 3092 | %doc ext/dom/{CREDITS,TODO} |
c0240cb1 | 3093 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini |
3094 | %attr(755,root,root) %{php_extensiondir}/dom.so | |
3095 | ||
e5448b0f | 3096 | %if %{with enchant} |
13f02a12 ER |
3097 | %files enchant |
3098 | %defattr(644,root,root,755) | |
3099 | %doc ext/enchant/{CREDITS,docs/examples} | |
3100 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini | |
3101 | %attr(755,root,root) %{php_extensiondir}/enchant.so | |
e5448b0f | 3102 | %endif |
13f02a12 | 3103 | |
c0240cb1 | 3104 | %files exif |
3105 | %defattr(644,root,root,755) | |
8cd9d573 | 3106 | %doc ext/exif/CREDITS |
c0240cb1 | 3107 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini |
3108 | %attr(755,root,root) %{php_extensiondir}/exif.so | |
3109 | ||
3110 | %files fileinfo | |
3111 | %defattr(644,root,root,755) | |
8cd9d573 | 3112 | %doc ext/fileinfo/CREDITS |
c0240cb1 | 3113 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini |
3114 | %attr(755,root,root) %{php_extensiondir}/fileinfo.so | |
3115 | ||
3116 | %if %{with filter} | |
3117 | %files filter | |
3118 | %defattr(644,root,root,755) | |
8cd9d573 | 3119 | %doc ext/filter/{CREDITS,docs/*} |
c0240cb1 | 3120 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini |
3121 | %attr(755,root,root) %{php_extensiondir}/filter.so | |
3122 | %endif | |
3123 | ||
3124 | %files ftp | |
3125 | %defattr(644,root,root,755) | |
8cd9d573 | 3126 | %doc ext/ftp/CREDITS |
c0240cb1 | 3127 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini |
3128 | %attr(755,root,root) %{php_extensiondir}/ftp.so | |
3129 | ||
3130 | %files gd | |
3131 | %defattr(644,root,root,755) | |
8cd9d573 | 3132 | %doc ext/gd/CREDITS |
c0240cb1 | 3133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini |
3134 | %attr(755,root,root) %{php_extensiondir}/gd.so | |
3135 | ||
3136 | %files gettext | |
3137 | %defattr(644,root,root,755) | |
8cd9d573 | 3138 | %doc ext/gettext/CREDITS |
c0240cb1 | 3139 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini |
3140 | %attr(755,root,root) %{php_extensiondir}/gettext.so | |
3141 | ||
3142 | %files gmp | |
3143 | %defattr(644,root,root,755) | |
8cd9d573 | 3144 | %doc ext/gmp/{CREDITS,README,TODO} |
c0240cb1 | 3145 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini |
3146 | %attr(755,root,root) %{php_extensiondir}/gmp.so | |
3147 | ||
3148 | %files hash | |
3149 | %defattr(644,root,root,755) | |
8cd9d573 | 3150 | %doc ext/hash/{CREDITS,README} |
c0240cb1 | 3151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini |
3152 | %attr(755,root,root) %{php_extensiondir}/hash.so | |
3153 | ||
3154 | %files iconv | |
3155 | %defattr(644,root,root,755) | |
8cd9d573 | 3156 | %doc ext/iconv/CREDITS |
c0240cb1 | 3157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini |
3158 | %attr(755,root,root) %{php_extensiondir}/iconv.so | |
3159 | ||
3160 | %if %{with imap} | |
3161 | %files imap | |
3162 | %defattr(644,root,root,755) | |
8cd9d573 | 3163 | %doc ext/imap/CREDITS |
c0240cb1 | 3164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini |
3165 | %attr(755,root,root) %{php_extensiondir}/imap.so | |
3166 | %endif | |
3167 | ||
3168 | %if %{with interbase} | |
3169 | %files interbase | |
3170 | %defattr(644,root,root,755) | |
8cd9d573 | 3171 | %doc ext/interbase/CREDITS |
c0240cb1 | 3172 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini |
3173 | %attr(755,root,root) %{php_extensiondir}/interbase.so | |
3174 | %endif | |
3175 | ||
689a4e56 | 3176 | %if %{with intl} |
c0240cb1 | 3177 | %files intl |
3178 | %defattr(644,root,root,755) | |
8cd9d573 | 3179 | %doc ext/intl/{CREDITS,TODO} |
c0240cb1 | 3180 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini |
3181 | %attr(755,root,root) %{php_extensiondir}/intl.so | |
689a4e56 | 3182 | %endif |
c0240cb1 | 3183 | |
3184 | %files json | |
3185 | %defattr(644,root,root,755) | |
8cd9d573 | 3186 | %doc ext/json/CREDITS |
c0240cb1 | 3187 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini |
3188 | %attr(755,root,root) %{php_extensiondir}/json.so | |
3189 | ||
3190 | %if %{with ldap} | |
3191 | %files ldap | |
3192 | %defattr(644,root,root,755) | |
8cd9d573 | 3193 | %doc ext/ldap/CREDITS |
c0240cb1 | 3194 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini |
3195 | %attr(755,root,root) %{php_extensiondir}/ldap.so | |
3196 | %endif | |
3197 | ||
3198 | %files mbstring | |
3199 | %defattr(644,root,root,755) | |
8cd9d573 | 3200 | %doc ext/mbstring/{CREDITS,README*} |
c0240cb1 | 3201 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini |
3202 | %attr(755,root,root) %{php_extensiondir}/mbstring.so | |
3203 | ||
3204 | %files mcrypt | |
3205 | %defattr(644,root,root,755) | |
8cd9d573 | 3206 | %doc ext/mcrypt/{CREDITS,TODO} |
c0240cb1 | 3207 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini |
3208 | %attr(755,root,root) %{php_extensiondir}/mcrypt.so | |
3209 | ||
3210 | %if %{with mssql} | |
3211 | %files mssql | |
3212 | %defattr(644,root,root,755) | |
8cd9d573 | 3213 | %doc ext/mssql/CREDITS |
c0240cb1 | 3214 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini |
3215 | %attr(755,root,root) %{php_extensiondir}/mssql.so | |
3216 | %endif | |
3217 | ||
3218 | %files mysql | |
3219 | %defattr(644,root,root,755) | |
8cd9d573 | 3220 | %doc ext/mysql/CREDITS |
c0240cb1 | 3221 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini |
3222 | %attr(755,root,root) %{php_extensiondir}/mysql.so | |
3223 | ||
3224 | %if %{with mysqli} | |
3225 | %files mysqli | |
3226 | %defattr(644,root,root,755) | |
8cd9d573 | 3227 | %doc ext/mysqli/{CREDITS,TODO} |
c0240cb1 | 3228 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini |
3229 | %attr(755,root,root) %{php_extensiondir}/mysqli.so | |
3230 | %endif | |
3231 | ||
3232 | %if %{with mysqlnd} | |
3233 | %files mysqlnd | |
3234 | %defattr(644,root,root,755) | |
8cd9d573 | 3235 | %doc ext/mysqlnd/CREDITS |
c0240cb1 | 3236 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini |
3237 | %attr(755,root,root) %{php_extensiondir}/mysqlnd.so | |
3238 | %endif | |
3239 | ||
329b4394 | 3240 | %if %{with oci} |
c0240cb1 | 3241 | %files oci8 |
3242 | %defattr(644,root,root,755) | |
580d93e0 | 3243 | %doc ext/oci8/{CREDITS,README} |
c0240cb1 | 3244 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini |
3245 | %attr(755,root,root) %{php_extensiondir}/oci8.so | |
3246 | %endif | |
3247 | ||
3248 | %if %{with odbc} | |
3249 | %files odbc | |
3250 | %defattr(644,root,root,755) | |
8cd9d573 | 3251 | %doc ext/odbc/CREDITS |
c0240cb1 | 3252 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini |
3253 | %attr(755,root,root) %{php_extensiondir}/odbc.so | |
3254 | %endif | |
3255 | ||
8328535b ER |
3256 | %if %{with opcache} |
3257 | %files opcache | |
3258 | %defattr(644,root,root,755) | |
3259 | %doc ext/opcache/README | |
3260 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini | |
3261 | %attr(755,root,root) %{php_extensiondir}/opcache.so | |
3262 | %endif | |
3263 | ||
c0240cb1 | 3264 | %if %{with openssl} |
3265 | %files openssl | |
3266 | %defattr(644,root,root,755) | |
8cd9d573 | 3267 | %doc ext/openssl/{CREDITS,README} |
c0240cb1 | 3268 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini |
3269 | %attr(755,root,root) %{php_extensiondir}/openssl.so | |
3270 | %endif | |
3271 | ||
3272 | %files pcntl | |
3273 | %defattr(644,root,root,755) | |
8cd9d573 | 3274 | %doc ext/pcntl/{CREDITS,README} |
c0240cb1 | 3275 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini |
3276 | %attr(755,root,root) %{php_extensiondir}/pcntl.so | |
3277 | ||
3278 | %if %{with pcre} | |
3279 | %files pcre | |
3280 | %defattr(644,root,root,755) | |
8cd9d573 | 3281 | %doc ext/pcre/CREDITS |
c0240cb1 | 3282 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini |
3283 | %attr(755,root,root) %{php_extensiondir}/pcre.so | |
3284 | %endif | |
3285 | ||
3286 | %files pdo | |
3287 | %defattr(644,root,root,755) | |
8cd9d573 | 3288 | %doc ext/pdo/{CREDITS,README,TODO} |
c0240cb1 | 3289 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini |
3290 | %attr(755,root,root) %{php_extensiondir}/pdo.so | |
3291 | ||
3292 | %if %{with mssql} || %{with sybase_ct} | |
3293 | %files pdo-dblib | |
3294 | %defattr(644,root,root,755) | |
8cd9d573 | 3295 | %doc ext/pdo_dblib/{CREDITS,README} |
c0240cb1 | 3296 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini |
3297 | %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so | |
3298 | %endif | |
3299 | ||
3300 | %if %{with interbase} && !%{with interbase_inst} | |
3301 | %files pdo-firebird | |
3302 | %defattr(644,root,root,755) | |
8cd9d573 | 3303 | %doc ext/pdo_firebird/CREDITS |
c0240cb1 | 3304 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini |
3305 | %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so | |
3306 | %endif | |
3307 | ||
3308 | %files pdo-mysql | |
3309 | %defattr(644,root,root,755) | |
8cd9d573 | 3310 | %doc ext/pdo_mysql/CREDITS |
c0240cb1 | 3311 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini |
3312 | %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so | |
3313 | ||
329b4394 | 3314 | %if %{with oci} |
c0240cb1 | 3315 | %files pdo-oci |
3316 | %defattr(644,root,root,755) | |
8cd9d573 | 3317 | %doc ext/pdo_oci/CREDITS |
c0240cb1 | 3318 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini |
3319 | %attr(755,root,root) %{php_extensiondir}/pdo_oci.so | |
3320 | %endif | |
3321 | ||
3322 | %if %{with odbc} | |
3323 | %files pdo-odbc | |
3324 | %defattr(644,root,root,755) | |
8cd9d573 | 3325 | %doc ext/pdo_odbc/CREDITS |
c0240cb1 | 3326 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini |
3327 | %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so | |
3328 | %endif | |
3329 | ||
3330 | %if %{with pgsql} | |
3331 | %files pdo-pgsql | |
3332 | %defattr(644,root,root,755) | |
8cd9d573 | 3333 | %doc ext/pdo_pgsql/CREDITS |
c0240cb1 | 3334 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini |
3335 | %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so | |
3336 | %endif | |
3337 | ||
3338 | %if %{with pdo_sqlite} | |
3339 | %files pdo-sqlite | |
3340 | %defattr(644,root,root,755) | |
8cd9d573 | 3341 | %doc ext/pdo_sqlite/CREDITS |
c0240cb1 | 3342 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini |
3343 | %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so | |
3344 | %endif | |
3345 | ||
3346 | %if %{with pgsql} | |
3347 | %files pgsql | |
3348 | %defattr(644,root,root,755) | |
8cd9d573 | 3349 | %doc ext/pgsql/{CREDITS,README} |
c0240cb1 | 3350 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini |
3351 | %attr(755,root,root) %{php_extensiondir}/pgsql.so | |
3352 | %endif | |
3353 | ||
3354 | %if %{with phar} | |
3355 | %files phar | |
3356 | %defattr(644,root,root,755) | |
8cd9d573 | 3357 | %doc ext/phar/{CREDITS,TODO} |
c0240cb1 | 3358 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini |
3359 | %attr(755,root,root) %{php_extensiondir}/phar.so | |
0a498a94 JB |
3360 | %attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar |
3361 | %{_mandir}/man1/phar%{php_suffix}.1* | |
3362 | %{_mandir}/man1/phar.phar.1* | |
3363 | %if %{with alternatives} | |
dba84b01 ER |
3364 | %ghost %{_bindir}/phar |
3365 | %ghost %{_mandir}/man1/phar.1 | |
0a498a94 JB |
3366 | %else |
3367 | %attr(755,root,root) %{_bindir}/phar | |
3368 | %endif | |
c0240cb1 | 3369 | %endif |
3370 | ||
3371 | %files posix | |
3372 | %defattr(644,root,root,755) | |
8cd9d573 | 3373 | %doc ext/posix/CREDITS |
c0240cb1 | 3374 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini |
3375 | %attr(755,root,root) %{php_extensiondir}/posix.so | |
3376 | ||
3377 | %if %{with pspell} | |
3378 | %files pspell | |
3379 | %defattr(644,root,root,755) | |
8cd9d573 | 3380 | %doc ext/pspell/{CREDITS,README} |
c0240cb1 | 3381 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini |
3382 | %attr(755,root,root) %{php_extensiondir}/pspell.so | |
3383 | %endif | |
3384 | ||
3385 | %files readline | |
3386 | %defattr(644,root,root,755) | |
8cd9d573 | 3387 | %doc ext/readline/{CREDITS,README*} |
c0240cb1 | 3388 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini |
3389 | %attr(755,root,root) %{php_extensiondir}/readline.so | |
3390 | ||
3391 | %if %{with recode} | |
3392 | %files recode | |
3393 | %defattr(644,root,root,755) | |
8cd9d573 | 3394 | %doc ext/recode/CREDITS |
c0240cb1 | 3395 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini |
3396 | %attr(755,root,root) %{php_extensiondir}/recode.so | |
3397 | %endif | |
3398 | ||
3399 | %files session | |
3400 | %defattr(644,root,root,755) | |
8cd9d573 | 3401 | %doc ext/session/CREDITS |
c0240cb1 | 3402 | %doc ext/session/mod_files.sh |
3403 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini | |
3404 | %attr(755,root,root) %{php_extensiondir}/session.so | |
3405 | ||
3406 | %files shmop | |
3407 | %defattr(644,root,root,755) | |
8cd9d573 | 3408 | %doc ext/shmop/{CREDITS,README} |
c0240cb1 | 3409 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini |
3410 | %attr(755,root,root) %{php_extensiondir}/shmop.so | |
3411 | ||
3412 | %files simplexml | |
3413 | %defattr(644,root,root,755) | |
8cd9d573 | 3414 | %doc ext/simplexml/{CREDITS,README} |
c0240cb1 | 3415 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini |
3416 | %attr(755,root,root) %{php_extensiondir}/simplexml.so | |
3417 | ||
3418 | %if %{with snmp} | |
3419 | %files snmp | |
3420 | %defattr(644,root,root,755) | |
8cd9d573 | 3421 | %doc ext/snmp/CREDITS |
c0240cb1 | 3422 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini |
3423 | %attr(755,root,root) %{php_extensiondir}/snmp.so | |
3424 | %endif | |
3425 | ||
3426 | %files soap | |
3427 | %defattr(644,root,root,755) | |
8cd9d573 | 3428 | %doc ext/soap/{CREDITS,TODO*} |
c0240cb1 | 3429 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini |
3430 | %attr(755,root,root) %{php_extensiondir}/soap.so | |
3431 | ||
3432 | %files sockets | |
3433 | %defattr(644,root,root,755) | |
8cd9d573 | 3434 | %doc ext/sockets/CREDITS |
c0240cb1 | 3435 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini |
3436 | %attr(755,root,root) %{php_extensiondir}/sockets.so | |
3437 | ||
3438 | %files spl | |
3439 | %defattr(644,root,root,755) | |
13f02a12 | 3440 | %doc ext/spl/{CREDITS,README,TODO,examples} |
c0240cb1 | 3441 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini |
3442 | %attr(755,root,root) %{php_extensiondir}/spl.so | |
3443 | ||
c0240cb1 | 3444 | %if %{with sqlite3} |
3445 | %files sqlite3 | |
3446 | %defattr(644,root,root,755) | |
3447 | %doc ext/sqlite3/CREDITS | |
3448 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini | |
3449 | %attr(755,root,root) %{php_extensiondir}/sqlite3.so | |
3450 | %endif | |
3451 | ||
3452 | %if %{with sybase_ct} | |
3453 | %files sybase-ct | |
3454 | %defattr(644,root,root,755) | |
8cd9d573 | 3455 | %doc ext/sybase_ct/CREDITS |
c0240cb1 | 3456 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini |
3457 | %attr(755,root,root) %{php_extensiondir}/sybase_ct.so | |
3458 | %endif | |
3459 | ||
3460 | %files sysvmsg | |
3461 | %defattr(644,root,root,755) | |
8cd9d573 | 3462 | %doc ext/sysvmsg/CREDITS |
c0240cb1 | 3463 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini |
3464 | %attr(755,root,root) %{php_extensiondir}/sysvmsg.so | |
3465 | ||
3466 | %files sysvsem | |
3467 | %defattr(644,root,root,755) | |
8cd9d573 | 3468 | %doc ext/sysvsem/CREDITS |
c0240cb1 | 3469 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini |
3470 | %attr(755,root,root) %{php_extensiondir}/sysvsem.so | |
3471 | ||
3472 | %files sysvshm | |
3473 | %defattr(644,root,root,755) | |
8cd9d573 | 3474 | %doc ext/sysvshm/CREDITS |
c0240cb1 | 3475 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini |
3476 | %attr(755,root,root) %{php_extensiondir}/sysvshm.so | |
3477 | ||
3478 | %files tests | |
3479 | %defattr(644,root,root,755) | |
a3c07000 | 3480 | %dir %{php_data_dir}/tests |
c0240cb1 | 3481 | %dir %{php_data_dir}/tests/php |
3482 | %{php_data_dir}/tests/php/basic | |
3483 | %{php_data_dir}/tests/php/classes | |
3484 | %{php_data_dir}/tests/php/func | |
3485 | %{php_data_dir}/tests/php/lang | |
3486 | %{php_data_dir}/tests/php/output | |
3487 | %{php_data_dir}/tests/php/run-test | |
3488 | %{php_data_dir}/tests/php/security | |
3489 | %{php_data_dir}/tests/php/strings | |
3490 | %{php_data_dir}/tests/php/quicktester.inc | |
3491 | %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php | |
3492 | ||
3493 | %if %{with tidy} | |
3494 | %files tidy | |
3495 | %defattr(644,root,root,755) | |
8cd9d573 | 3496 | %doc ext/tidy/{CREDITS,README} |
c0240cb1 | 3497 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini |
3498 | %attr(755,root,root) %{php_extensiondir}/tidy.so | |
3499 | %endif | |
3500 | ||
3501 | %files tokenizer | |
3502 | %defattr(644,root,root,755) | |
8cd9d573 | 3503 | %doc ext/tokenizer/CREDITS |
c0240cb1 | 3504 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini |
3505 | %attr(755,root,root) %{php_extensiondir}/tokenizer.so | |
3506 | ||
3507 | %if %{with wddx} | |
3508 | %files wddx | |
3509 | %defattr(644,root,root,755) | |
8cd9d573 | 3510 | %doc ext/wddx/CREDITS |
c0240cb1 | 3511 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini |
3512 | %attr(755,root,root) %{php_extensiondir}/wddx.so | |
3513 | %endif | |
3514 | ||
3515 | %files xml | |
3516 | %defattr(644,root,root,755) | |
8cd9d573 | 3517 | %doc ext/xml/CREDITS |
c0240cb1 | 3518 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini |
3519 | %attr(755,root,root) %{php_extensiondir}/xml.so | |
3520 | ||
3521 | %files xmlreader | |
3522 | %defattr(644,root,root,755) | |
8cd9d573 | 3523 | %doc ext/xmlreader/{CREDITS,README,TODO,examples} |
c0240cb1 | 3524 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini |
3525 | %attr(755,root,root) %{php_extensiondir}/xmlreader.so | |
3526 | ||
3527 | %if %{with xmlrpc} | |
3528 | %files xmlrpc | |
3529 | %defattr(644,root,root,755) | |
8cd9d573 | 3530 | %doc ext/xmlrpc/CREDITS |
c0240cb1 | 3531 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini |
3532 | %attr(755,root,root) %{php_extensiondir}/xmlrpc.so | |
3533 | %endif | |
3534 | ||
3535 | %files xmlwriter | |
3536 | %defattr(644,root,root,755) | |
8cd9d573 | 3537 | %doc ext/xmlwriter/{CREDITS,TODO} |
c0240cb1 | 3538 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini |
3539 | %attr(755,root,root) %{php_extensiondir}/xmlwriter.so | |
3540 | ||
3541 | %files xsl | |
3542 | %defattr(644,root,root,755) | |
8cd9d573 | 3543 | %doc ext/xsl/CREDITS |
c0240cb1 | 3544 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini |
3545 | %attr(755,root,root) %{php_extensiondir}/xsl.so | |
3546 | ||
3547 | %files zip | |
3548 | %defattr(644,root,root,755) | |
8cd9d573 | 3549 | %doc ext/zip/{CREDITS,TODO} |
c0240cb1 | 3550 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini |
3551 | %attr(755,root,root) %{php_extensiondir}/zip.so | |
3552 | ||
3553 | %files zlib | |
3554 | %defattr(644,root,root,755) | |
8cd9d573 | 3555 | %doc ext/zlib/CREDITS |
c0240cb1 | 3556 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini |
3557 | %attr(755,root,root) %{php_extensiondir}/zlib.so |