/[packages]/cauldron/php/current/SPECS/php.spec
ViewVC logotype

Diff of /cauldron/php/current/SPECS/php.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 264565 by spuhler, Wed Jun 27 20:21:06 2012 UTC revision 270746 by spuhler, Sat Jul 14 15:12:42 2012 UTC
# Line 1  Line 1 
1  %define build_libmagic 0  %define _build_pkgcheck_set %{nil}
2  %{?_with_libmagic: %{expand: %%global build_libmagic 1}}  %define _build_pkgcheck_srpm %{nil}
3  %{?_without_libmagic: %{expand: %%global build_libmagic 0}}  
4    %define mod_name mod_php
5    %define load_order 70
6    %define extname apache2handler
7    %define apache_version 2.2.0
8    
9  %define build_test 1  %define build_test 1
10  %{?_with_test: %{expand: %%global build_test 1}}  %{?_with_test: %{expand: %%global build_test 1}}
11  %{?_without_test: %{expand: %%global build_test 0}}  %{?_without_test: %{expand: %%global build_test 0}}
12    
13    %define build_libmagic 0
14    %{?_with_libmagic: %{expand: %%global build_libmagic 1}}
15    %{?_without_libmagic: %{expand: %%global build_libmagic 0}}
16    
17  %define _requires_exceptions BEGIN\\|mkinstalldirs\\|pear(\\|/usr/bin/tclsh  %define _requires_exceptions BEGIN\\|mkinstalldirs\\|pear(\\|/usr/bin/tclsh
18    
19  %define php5_common_major 5  %define php5_common_major 5
# Line 17  Summary:       The PHP5 scripting language Line 25  Summary:       The PHP5 scripting language
25  Name:           php  Name:           php
26  Version:        5.4.3  Version:        5.4.3
27  Release:        %mkrel 1  Release:        %mkrel 1
28    Source0:        http://se.php.net/distributions/php-%{version}.tar.gz
29  Group:          Development/PHP  Group:          Development/PHP
30  License:        PHP License  License:        PHP License
31  URL:            http://www.php.net  URL:            http://www.php.net
 Source0:        http://se.php.net/distributions/php-%{version}.tar.gz  
32  Source1:        php-test.ini  Source1:        php-test.ini
33  Source2:        maxlifetime  Source2:        maxlifetime
34  Source3:        php.crond  Source3:        php.crond
35  Source4:        php-fpm.service  Source4:        php-fpm.service
36  Source5:        php-fpm.sysconf  Source5:        php-fpm.sysconf
37  Source6:        php-fpm.logrotate  Source6:        php-fpm.logrotate
38  Source7:        php.ini  # S7 comes from ext/fileinfo/create_data_file.php but could be removed someday
39  # do replace a macro in zend.h, to copy a value instead of assigning it  Source7:        create_data_file.php
40  # S8 comes from ext/fileinfo/create_data_file.php but could be removed someday  Source8:        php.ini
 Source8:        create_data_file.php  
41  Patch0:         php-init.diff  Patch0:         php-init.diff
42  Patch1:         php-shared.diff  Patch1:         php-shared.diff
43  Patch3:         php-libtool.diff  Patch3:         php-libtool.diff
 # See http://bugs.php.net/53436  
44  Patch4:         php-phpize.diff  Patch4:         php-phpize.diff
45  Patch5:         php-phpbuilddir.diff  Patch5:         php-phpbuilddir.diff
46  # http://www.outoforder.cc/projects/apache/mod_transform/  # http://www.outoforder.cc/projects/apache/mod_transform/
# Line 73  Patch102:      php-install.diff Line 79  Patch102:      php-install.diff
79  Patch105:       php-umask.diff  Patch105:       php-umask.diff
80  # Fixes for extension modules  # Fixes for extension modules
81  Patch111:       php-5.3.6-jpegversion.patch  Patch111:       php-5.3.6-jpegversion.patch
 #Patch112:      php-4.3.11-shutdown.patch  
82  Patch113:       php-libc-client.diff  Patch113:       php-libc-client.diff
83  Patch114:       php-no_pam_in_c-client.diff  Patch114:       php-no_pam_in_c-client.diff
84  # Functional changes  # Functional changes
# Line 82  Patch115:      php-dlopen.diff Line 87  Patch115:      php-dlopen.diff
87  Patch120:       php-tests-wddx.diff  Patch120:       php-tests-wddx.diff
88  Patch121:       php-bug43221.diff  Patch121:       php-bug43221.diff
89  Patch123:       php-bug43589.diff  Patch123:       php-bug43589.diff
 #Patch224:      php-5.1.0RC6-CVE-2005-3388.diff  
90  Patch226:       php-no-fvisibility_hidden_fix.diff  Patch226:       php-no-fvisibility_hidden_fix.diff
91  Patch227:       php-5.3.0RC1-enchant_lib64_fix.diff  Patch227:       php-5.3.0RC1-enchant_lib64_fix.diff
92  Patch228:       php-5.3.0RC2-xmlrpc-epi_fix.diff  Patch228:       php-5.3.0RC2-xmlrpc-epi_fix.diff
 #Patch230:      php-5.3.10-add-missing-function-argument.patch  
 # http://www.suhosin.org/  
 #Patch301:      suhosin-patch-5.3.11RC1-%{suhosin_version}.diff  
93  Patch302:       php-no_egg.diff  Patch302:       php-no_egg.diff
94  Patch303:       php-5.4.3-mageia-logo.patch  Patch303:       php-5.4.3-mageia-logo.patch
 #Patch304:      php-5.3.11RC1-aconf26x.patch  
   
   
95  BuildRequires:  apache-devel >= 2.2.0  BuildRequires:  apache-devel >= 2.2.0
96  BuildRequires:  autoconf  BuildRequires:  autoconf
97    BuildRequires:  automake
98    BuildRequires:  libtool
99  BuildRequires:  bison  BuildRequires:  bison
100  BuildRequires:  byacc  BuildRequires:  byacc
101  BuildRequires:  bzip2-devel  BuildRequires:  bzip2-devel
# Line 114  BuildRequires: gd-devel >= 2.0.33 Line 114  BuildRequires: gd-devel >= 2.0.33
114  BuildRequires:  gettext-devel  BuildRequires:  gettext-devel
115  BuildRequires:  gmp-devel  BuildRequires:  gmp-devel
116  BuildRequires:  gpm-devel  BuildRequires:  gpm-devel
117  BuildRequires:  icu-devel >= 3.4  BuildRequires:  icu-devel >= 49.0
118  BuildRequires:  lemon  BuildRequires:  lemon
119  BuildRequires:  libjpeg-devel  BuildRequires:  libjpeg-devel
120  BuildRequires:  libldap-devel  BuildRequires:  libldap-devel
# Line 142  BuildRequires: re2c >= 0.13.4 Line 142  BuildRequires: re2c >= 0.13.4
142  BuildRequires:  readline-devel  BuildRequires:  readline-devel
143  BuildRequires:  recode-devel  BuildRequires:  recode-devel
144  BuildRequires:  sqlite3-devel  BuildRequires:  sqlite3-devel
 BuildRequires:  sqlite-devel  
145  BuildRequires:  t1lib-devel  BuildRequires:  t1lib-devel
146  BuildRequires:  tidy-devel  BuildRequires:  tidy-devel
147  BuildRequires:  unixODBC-devel >= 2.2.1  BuildRequires:  unixODBC-devel >= 2.2.1
148  BuildRequires:  xmlrpc-epi-devel  BuildRequires:  xmlrpc-epi-devel
 Obsoletes:      php-pspell  
149  %if %{build_libmagic}  %if %{build_libmagic}
150  BuildRequires:  file-devel  BuildRequires:  file-devel
151  %endif  %endif
152  Epoch: 3  Epoch: 3
153    
   
154  # stupid postgresql... stupid build system...  # stupid postgresql... stupid build system...
155  # this is needed due to the postgresql packaging and due to bugs like this:  # this is needed due to the postgresql packaging and due to bugs like this:
156  # https://qa.mandriva.org/show_bug.cgi?id=52527  # https://qa.mandriva.org/show_bug.cgi?id=52527
# Line 165  integration for several commercial and n Line 162  integration for several commercial and n
162  systems, so writing a database-enabled script with PHP5 is fairly simple. The  systems, so writing a database-enabled script with PHP5 is fairly simple. The
163  most common use of PHP5 coding is probably as a replacement for CGI scripts.  most common use of PHP5 coding is probably as a replacement for CGI scripts.
164    
165  This version of php has the suhosin patch %{suhosin_version} applied. Please  Please report bugs here: http://bugs.mafgeia.org/ so that the official maintainer
166  report bugs to the official maintainer of  of this Mageia package can help you.
167  this Mageia package. More information regarding the  
 suhosin patch %{suhosin_version} here: http://www.suhosin.org/  
168    
169  %package        ini  %package        ini
170  Summary:        INI files for PHP  Summary:        INI files for PHP
# Line 177  Group:         Development/Other Line 173  Group:         Development/Other
173  %description ini  %description ini
174  The php-ini package contains the ini file required for PHP.  The php-ini package contains the ini file required for PHP.
175    
176  %package        cli  
177  Summary:        PHP5 CLI interface  %package -n apache-mod_php
178  Group:          Development/Other  Summary:        The PHP5 HTML-embedded scripting language for use with apache
179  Requires:       %{libname} >= %{epoch}:%{version}  Group:          System/Servers
180    Requires(pre): rpm-helper
181    Requires(postun): rpm-helper
182    Requires:       apache-mpm
183    #TODO are theses really required ?
184  Requires:       php-ctype >= %{epoch}:%{version}  Requires:       php-ctype >= %{epoch}:%{version}
185  Requires:       php-filter >= %{epoch}:%{version}  Requires:       php-filter >= %{epoch}:%{version}
186  Requires:       php-ftp >= %{epoch}:%{version}  Requires:       php-ftp >= %{epoch}:%{version}
# Line 192  Requires:      php-openssl >= %{epoch}:%{vers Line 192  Requires:      php-openssl >= %{epoch}:%{vers
192  Requires:       php-pcre >= %{epoch}:%{version}  Requires:       php-pcre >= %{epoch}:%{version}
193  Requires:       php-posix >= %{epoch}:%{version}  Requires:       php-posix >= %{epoch}:%{version}
194  Requires:       php-session >= %{epoch}:%{version}  Requires:       php-session >= %{epoch}:%{version}
195  Suggests:       php-suhosin >= 0.9.33  Suggests:       php-suhosin >= %{suhosin_version}
196  Requires:       php-sysvsem >= %{epoch}:%{version}  Requires:       php-sysvsem >= %{epoch}:%{version}
197  Requires:       php-sysvshm >= %{epoch}:%{version}  Requires:       php-sysvshm >= %{epoch}:%{version}
 Requires:       php-timezonedb >= 3:2009.10  
198  Requires:       php-tokenizer >= %{epoch}:%{version}  Requires:       php-tokenizer >= %{epoch}:%{version}
199  Requires:       php-xmlreader >= %{epoch}:%{version}  Requires:       php-xmlreader >= %{epoch}:%{version}
200  Requires:       php-xmlwriter >= %{epoch}:%{version}  Requires:       php-xmlwriter >= %{epoch}:%{version}
201  Requires:       php-zlib >= %{epoch}:%{version}  Requires:       php-zlib >= %{epoch}:%{version}
202  Requires:       php-xml >= %{epoch}:%{version}  Requires:       php-xml >= %{epoch}:%{version}
203  Provides:       php = %{epoch}:%{version}  Requires:       php-timezonedb
204    # php is not fully thread safe
205    # http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
206    # http://stackoverflow.com/questions/681081/is-php-thread-safe
207    Conflicts:      apache-mpm-worker >= %{apache_version}
208    Conflicts:      apache-mpm-event >= %{apache_version}
209    Epoch:          %{epoch}
210    
211  %description    cli  %description -n apache-mod_php
212  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database
213  integration for several commercial and non-commercial database management  integration for several commercial and non-commercial database management
214  systems, so writing a database-enabled script with PHP5 is fairly simple. The  systems, so writing a database-enabled script with PHP5 is fairly simple. The
215  most common use of PHP5 coding is probably as a replacement for CGI scripts.  most common use of PHP5 coding is probably as a replacement for CGI scripts.
216    
217  This package contains a command-line (CLI) version of php.  This package contains the PHP apache module.
218    
219  This version of php has the suhosin patch %{suhosin_version} applied. Please  This version of php has the suhosin patch %{suhosin_version} applied. Please
220  report bugs here: http://bugs.mageia.org/ so that the official maintainer of  report bugs here: http://bugs.mageia.org/ so that the official maintainer of
221  this Mageia package can help you. More information regarding the  this Mageia package can help you. More information regarding the
222  suhosin patch %{suhosin_version} here: http://www.suhosin.org/  suhosin patch %{suhosin_version} here: http://www.suhosin.org/
223    
224  %package        cgi  %package        cli
225  Summary:        PHP5 CGI interface  Summary:        PHP5 CLI interface
226  Group:          Development/Other  Group:          Development/Other
227  Requires:       %{libname} >= %{epoch}:%{version}  Requires:       %{libname} >= %{epoch}:%{version}
228  Requires:       php-ctype >= %{epoch}:%{version}  Requires:       php-ctype >= %{epoch}:%{version}
# Line 231  Requires:      php-openssl >= %{epoch}:%{vers Line 236  Requires:      php-openssl >= %{epoch}:%{vers
236  Requires:       php-pcre >= %{epoch}:%{version}  Requires:       php-pcre >= %{epoch}:%{version}
237  Requires:       php-posix >= %{epoch}:%{version}  Requires:       php-posix >= %{epoch}:%{version}
238  Requires:       php-session >= %{epoch}:%{version}  Requires:       php-session >= %{epoch}:%{version}
239  Suggests:       php-suhosin >= 0.9.33  Suggests:       php-suhosin >= %{suhosin_version}
240  Requires:       php-sysvsem >= %{epoch}:%{version}  Requires:       php-sysvsem >= %{epoch}:%{version}
241  Requires:       php-sysvshm >= %{epoch}:%{version}  Requires:       php-sysvshm >= %{epoch}:%{version}
242  Requires:       php-timezonedb >= 3:2009.10  Requires:       php-timezonedb >= 3:2009.10
# Line 241  Requires:      php-xmlwriter >= %{epoch}:%{ve Line 246  Requires:      php-xmlwriter >= %{epoch}:%{ve
246  Requires:       php-zlib >= %{epoch}:%{version}  Requires:       php-zlib >= %{epoch}:%{version}
247  Requires:       php-xml >= %{epoch}:%{version}  Requires:       php-xml >= %{epoch}:%{version}
248  Provides:       php = %{epoch}:%{version}  Provides:       php = %{epoch}:%{version}
 Provides:       php-fcgi = %{epoch}:%{version}-%{release}  
 Obsoletes:      php-fcgi  
 # because of a added compat softlink  
 Conflicts:      php-fcgi < %{epoch}:%{version}-%{release}  
249    
250  %description    cgi  %description    cli
251  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database
252  integration for several commercial and non-commercial database management  integration for several commercial and non-commercial database management
253  systems, so writing a database-enabled script with PHP5 is fairly simple. The  systems, so writing a database-enabled script with PHP5 is fairly simple. The
254  most common use of PHP5 coding is probably as a replacement for CGI scripts.  most common use of PHP5 coding is probably as a replacement for CGI scripts.
255    
256  This package contains a standalone (CGI) version of php with FastCGI support.  This package contains a command-line (CLI) version of php. You must also
257    install libphp5_common. If you need apache module support, you also need to
258  This version of php has the suhosin patch %{suhosin_version} applied. Please  install the apache-mod_php package.
 report bugs here: http://bugs.mageia.org/ so that the official maintainer of  
 this Mageia package can help you. More information regarding the  
 suhosin patch %{suhosin_version} here: http://www.suhosin.org/  
259    
260    Please report bugs here: http://bugs.mageia.org/ so that the official maintainer
261    of this Mageia package can help you.
262    
263  %package -n apache-mod_php  %package        cgi
264  Summary:        The PHP5 HTML-embedded scripting language for use with apache  Summary:        PHP5 CGI interface
265  Group:          System/Servers  Group:          Development/Other
266  Requires(pre): rpm-helper  Requires:       %{libname} >= %{epoch}:%{version}
 Requires(postun): rpm-helper  
 Requires:       apache-mpm  
 #TODO are theses really required ?  
267  Requires:       php-ctype >= %{epoch}:%{version}  Requires:       php-ctype >= %{epoch}:%{version}
268  Requires:       php-filter >= %{epoch}:%{version}  Requires:       php-filter >= %{epoch}:%{version}
269  Requires:       php-ftp >= %{epoch}:%{version}  Requires:       php-ftp >= %{epoch}:%{version}
# Line 278  Requires:      php-openssl >= %{epoch}:%{vers Line 275  Requires:      php-openssl >= %{epoch}:%{vers
275  Requires:       php-pcre >= %{epoch}:%{version}  Requires:       php-pcre >= %{epoch}:%{version}
276  Requires:       php-posix >= %{epoch}:%{version}  Requires:       php-posix >= %{epoch}:%{version}
277  Requires:       php-session >= %{epoch}:%{version}  Requires:       php-session >= %{epoch}:%{version}
278  Suggests:       php-suhosin >= 0.9.29  Suggests:       php-suhosin >= 0.9.33
279  Requires:       php-sysvsem >= %{epoch}:%{version}  Requires:       php-sysvsem >= %{epoch}:%{version}
280  Requires:       php-sysvshm >= %{epoch}:%{version}  Requires:       php-sysvshm >= %{epoch}:%{version}
281    Requires:       php-timezonedb >= 3:2009.10
282  Requires:       php-tokenizer >= %{epoch}:%{version}  Requires:       php-tokenizer >= %{epoch}:%{version}
283  Requires:       php-xmlreader >= %{epoch}:%{version}  Requires:       php-xmlreader >= %{epoch}:%{version}
284  Requires:       php-xmlwriter >= %{epoch}:%{version}  Requires:       php-xmlwriter >= %{epoch}:%{version}
285  Requires:       php-zlib >= %{epoch}:%{version}  Requires:       php-zlib >= %{epoch}:%{version}
286  Requires:       php-xml >= %{epoch}:%{version}  Requires:       php-xml >= %{epoch}:%{version}
287  Requires:       php-timezonedb  Provides:       php = %{epoch}:%{version}
288  # php is not fully thread safe  Provides:       php-fcgi = %{epoch}:%{version}-%{release}
289  # http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2  Obsoletes:      php-fcgi
290  # http://stackoverflow.com/questions/681081/is-php-thread-safe  # because of a added compat softlink
291  Conflicts:      apache-mpm-worker  Conflicts:      php-fcgi < %{epoch}:%{version}-%{release}
 Conflicts:      apache-mpm-event  
 Epoch:          %{epoch}  
292    
293  %description -n apache-mod_php  %description    cgi
294  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database  PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database
295  integration for several commercial and non-commercial database management  integration for several commercial and non-commercial database management
296  systems, so writing a database-enabled script with PHP5 is fairly simple. The  systems, so writing a database-enabled script with PHP5 is fairly simple. The
297  most common use of PHP5 coding is probably as a replacement for CGI scripts.  most common use of PHP5 coding is probably as a replacement for CGI scripts.
298    
299  This package contains the PHP apache module.  This package contains a standalone (CGI) version of php with FastCGI support.
300    You must also install libphp5_common. If you need apache module support, you
301    also need to install the apache-mod_php package.
302    
303  This version of php has the suhosin patch %{suhosin_version} applied. Please  Please report bugs here: http://bugs.mageia.org/ so that the official maintainer
304  report bugs here: http://bugs.mageia.org/ so that the official maintainer of  of this Mageia package can help you.
 this Mageia package can help you. More information regarding the  
 suhosin patch %{suhosin_version} here: http://www.suhosin.org/  
305    
306  %package -n     %{libname}  %package -n     %{libname}
307  Summary:        Shared library for PHP5  Summary:        Shared library for PHP5
# Line 319  Requires(postun): systemd-units Line 315  Requires(postun): systemd-units
315    
316  %description -n %{libname}  %description -n %{libname}
317  This package provides the common files to run with different implementations of  This package provides the common files to run with different implementations of
318  PHP5.  PHP5. You need this package if you install the php standalone package or a
319    webserver with php support (ie: apache-mod_php).
320    
321    Please report bugs here: http://bugs.mageia.org/ so that the official maintainer
322    of this Mageia package can help you.
323    
324  %package        devel  %package        devel
325  Summary:        Development package for PHP5  Summary:        Development package for PHP5
326  Group:          Development/C  Group:          Development/C
327  Requires:       %{libname} >= %{epoch}:%{version}  Requires:       %{libname} >= %{epoch}:%{version}
328  Requires:       autoconf  Requires:       autoconf automake libtool
 Requires:       automake  
 Requires:       libtool  
329  Requires:       bison  Requires:       bison
330  Requires:       byacc  Requires:       byacc
331  Requires:       chrpath  Requires:       chrpath
# Line 335  Requires:      dos2unix Line 333  Requires:      dos2unix
333  Requires:       flex  Requires:       flex
334  Requires:       libxml2-devel >= 2.6  Requires:       libxml2-devel >= 2.6
335  Requires:       libxslt-devel >= 1.1.0  Requires:       libxslt-devel >= 1.1.0
336  Requires:       openssl  Requires:       openssl >= 0.9.7
337  Requires:       openssl-devel  Requires:       openssl-devel >= 0.9.7
338  Requires:       pam-devel  Requires:       pam-devel
339  Requires:       pcre-devel >= 6.6  Requires:       pcre-devel >= 6.6
340  Requires:       re2c >= 0.9.11  Requires:       re2c >= 0.9.11
# Line 749  about MySQL can be found at http://www.m Line 747  about MySQL can be found at http://www.m
747    
748  Documentation for MySQL can be found at http://dev.mysql.com/doc/.  Documentation for MySQL can be found at http://dev.mysql.com/doc/.
749    
   
750  %package        odbc  %package        odbc
751  Summary:        ODBC extension module for PHP  Summary:        ODBC extension module for PHP
752  Group:          Development/PHP  Group:          Development/PHP
# Line 924  too, which traditionally have been part Line 921  too, which traditionally have been part
921  system specific functions have not been available before, though, and this  system specific functions have not been available before, though, and this
922  module tries to remedy this by providing easy access to these functions.  module tries to remedy this by providing easy access to these functions.
923    
 #%package       pspell  
 #Summary:       Pspell extension module for PHP  
 #Group:         Development/PHP  
 #Requires:      %{libname} >= %{epoch}:%{version}  
   
 #%description   pspell  
 #This is a dynamic shared object (DSO) for PHP that will add pspell support to  
 #PHP.  
   
 These functions allow you to check the spelling of a word and offer  
 suggestions.  
   
924  %package        readline  %package        readline
925  Summary:        Readline extension module for PHP  Summary:        Readline extension module for PHP
926  Group:          Development/PHP  Group:          Development/PHP
# Line 971  between almost any pair. Most RFC 1345 c Line 956  between almost any pair. Most RFC 1345 c
956  %package        session  %package        session
957  Summary:        Session extension module for PHP  Summary:        Session extension module for PHP
958  Group:          Development/PHP  Group:          Development/PHP
959  Requires(pre):  rpm-helper  Requires(pre): rpm-helper
960  Requires(postun): rpm-helper  Requires(postun): rpm-helper
 # for apache user  
 Requires(pre):  webserver-base  
961  Requires:       %{libname} >= %{epoch}:%{version}  Requires:       %{libname} >= %{epoch}:%{version}
962    
963  %description    session  %description    session
# Line 1039  possibility to act as a socket server as Line 1022  possibility to act as a socket server as
1022  Summary:        SQLite database bindings for PHP  Summary:        SQLite database bindings for PHP
1023  Group:          Development/PHP  Group:          Development/PHP
1024  Requires:       php-pdo >= %{epoch}:%{version}  Requires:       php-pdo >= %{epoch}:%{version}
 Obsoletes:      php-sqlite  
 Provides:       php-sqlite = %{epoch}:%{version}  
1025  Requires:       %{libname} >= %{epoch}:%{version}  Requires:       %{libname} >= %{epoch}:%{version}
1026    Obsoletes:      %name-sqlite
1027    
1028  %description    sqlite3  %description    sqlite3
1029  This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a  This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a
# Line 1053  SQLite is not a client library used to c Line 1035  SQLite is not a client library used to c
1035  is the server. The SQLite library reads and writes directly to and from the  is the server. The SQLite library reads and writes directly to and from the
1036  database files on disk.  database files on disk.
1037    
 %package        sqlite  
 Summary:        SQLite v2 database bindings for PHP  
 Group:          Development/PHP  
 Requires:       php-pdo >= %{epoch}:%{version}  
 Requires:       %{libname} >= %{epoch}:%{version}  
   
 %description    sqlite  
 This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a  
 C library that implements an embeddable SQL database engine. Programs that link  
 with the SQLite library can have SQL database access without running a separate  
 RDBMS process.  
   
 SQLite is not a client library used to connect to a big database server. SQLite  
 is the server. The SQLite library reads and writes directly to and from the  
 database files on disk.  
   
1038  %package        sybase_ct  %package        sybase_ct
1039  Summary:        Sybase extension module for PHP  Summary:        Sybase extension module for PHP
1040  Group:          Development/PHP  Group:          Development/PHP
# Line 1248  of this Mageia package can help you. Line 1214  of this Mageia package can help you.
1214  %prep  %prep
1215    
1216  %setup -q -n php-%{version}  %setup -q -n php-%{version}
1217    cp -dpR %{_usrsrc}/php-devel/sapi/%{extname}/* .
1218    cp %{_usrsrc}/php-devel/internal_functions.c .
1219    cp %{_includedir}/php/ext/date/lib/timelib_config.h .
1220    
1221    # drop php5 here
1222    perl -pi -e "s|php5_module|php_module|g" *
1223    cp mod_php5.c mod_php.c
1224    
1225    
1226  %if %{build_libmagic}  %if %{build_libmagic}
1227  if ! [ -f %{_datadir}/misc/magic.mgc ]; then  if ! [ -f %{_datadir}/misc/magic.mgc ]; then
# Line 1309  fi Line 1283  fi
1283  %patch228 -p0 -b .xmlrpc-epi_fix.droplet  %patch228 -p0 -b .xmlrpc-epi_fix.droplet
1284    
1285  %patch302 -p1 -b .no_egg.droplet  %patch302 -p1 -b .no_egg.droplet
1286  %patch303 -p1 -b .mageia_logo.droplet  %patch303 -p1 -b .mdv_logo.droplet
1287  cp %{SOURCE1} php-test.ini  cp %{SOURCE1} php-test.ini
1288  cp %{SOURCE2} maxlifetime  cp %{SOURCE2} maxlifetime
1289  cp %{SOURCE3} php.crond  cp %{SOURCE3} php.crond
1290  cp %{SOURCE4} php-fpm.service  cp %{SOURCE4} php-fpm.service
1291  cp %{SOURCE5} php-fpm.sysconf  cp %{SOURCE5} php-fpm.sysconf
1292  cp %{SOURCE6} php-fpm.logrotate  cp %{SOURCE6} php-fpm.logrotate
1293  cp %{SOURCE8} create_data_file.php  cp %{SOURCE7} create_data_file.php
1294    cp %{SOURCE8} php.ini
1295    cp %{SOURCE8} php-cgi-fcgi.ini
1296    
1297  # lib64 hack  # lib64 hack
1298  perl -p -i -e "s|/usr/lib|%{_libdir}|" php.crond  perl -p -i -e "s|/usr/lib|%{_libdir}|" php.crond
1299    
1300  # nuke bogus checks because i fixed this years ago in our recode package  # nuke bogus checks becuase i fixed this years ago in our recode package
1301  rm -f ext/recode/config9.m4  rm -f ext/recode/config9.m4
1302    
1303  # Change perms otherwise rpm would get fooled while finding requires  # Change perms otherwise rpm would get fooled while finding requires
# Line 1358  find php-devel -name "*.dsp" | xargs rm Line 1334  find php-devel -name "*.dsp" | xargs rm
1334  find php-devel -name "*.mak" | xargs rm -f  find php-devel -name "*.mak" | xargs rm -f
1335  find php-devel -name "*.w32" | xargs rm  find php-devel -name "*.w32" | xargs rm
1336    
1337  # make sure using system libs  # maek sure using system libs
1338  rm -rf ext/pcre/pcrelib  rm -rf ext/pcre/pcrelib
1339  rm -rf ext/pdo_sqlite/sqlite  rm -rf ext/pdo_sqlite/sqlite
1340  rm -rf ext/xmlrpc/libxmlrpc  rm -rf ext/xmlrpc/libxmlrpc
# Line 1527  cp -p ext/fileinfo/data_file.c php-devel Line 1503  cp -p ext/fileinfo/data_file.c php-devel
1503  %make  %make
1504  %endif  %endif
1505    
   
1506  # make php-cgi  # make php-cgi
1507  cp -af php_config.h.cgi main/php_config.h  cp -af php_config.h.cgi main/php_config.h
1508  make -f Makefile.cgi sapi/cgi/php-cgi  make -f Makefile.cgi sapi/cgi/php-cgi
# Line 1538  cp -af php_config.h.fpm main/php_config. Line 1513  cp -af php_config.h.fpm main/php_config.
1513  make -f Makefile.fpm sapi/fpm/php-fpm  make -f Makefile.fpm sapi/fpm/php-fpm
1514  cp -af php_config.h.apxs main/php_config.h  cp -af php_config.h.apxs main/php_config.h
1515    
1516  # apache  # make apache-mod_php
1517  mkdir build-apache  %{_sbindir}/apxs \
1518  pushd build-apache      `php-config --includes` \
 build --with-apxs2=%{_sbindir}/apxs  
   
 cp ../sapi/apache2handler/* .  
 %{_sbindir}/apxs -c \  
1519      `apr-1-config --link-ld --libs` \      `apr-1-config --link-ld --libs` \
1520      `xml2-config --cflags` \      `xml2-config --cflags` \
1521      -I .. -I ../main -I ../Zend -I ../TSRM \      -I%{_usrsrc}php-devel \
1522      -I Zend -I TSRM -I main -I ext/date/lib \      -I. -lphp5_common \
1523      -lphp5_common \      -c mod_php.c sapi_apache2.c apache_config.c \
1524      mod_php5.c \      php_functions.c internal_functions.c
     sapi_apache2.c \  
     apache_config.c \  
     php_functions.c \  
     main/internal_functions.c  
 popd  
1525    
1526  %install  %install
 rm -rf %{buildroot}  
1527    
1528  install -d %{buildroot}%{_libdir}  install -d %{buildroot}%{_libdir}
1529  install -d %{buildroot}%{_bindir}  install -d %{buildroot}%{_bindir}
# Line 1569  install -d %{buildroot}%{_usrsrc}/php-de Line 1534  install -d %{buildroot}%{_usrsrc}/php-de
1534  install -d %{buildroot}%{_mandir}/man1  install -d %{buildroot}%{_mandir}/man1
1535  install -d %{buildroot}%{_sysconfdir}/cron.d  install -d %{buildroot}%{_sysconfdir}/cron.d
1536  install -d %{buildroot}/var/lib/php  install -d %{buildroot}/var/lib/php
1537  #Install apache-mod_php  install -d %{buildroot}%{_datadir}/php
 install -d %{buildroot}%{_libdir}/apache  
 install -d %{buildroot}%{_sysconfdir}/httpd/modules.d  
 install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache/  
   
 cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{load_order}_%{mod_name}.conf << EOF  
 LoadModule php_module %{_libdir}/apache/%{mod_name}.so  
   
 AddType application/x-httpd-php .php  
 AddType application/x-httpd-php .phtml  
 AddType application/x-httpd-php-source .phps  
   
 DirectoryIndex index.php index.phtml  
 EOF  
1538    
1539  make -f Makefile.apxs install \  make -f Makefile.apxs install \
1540          INSTALL_ROOT=%{buildroot} \          INSTALL_ROOT=%{buildroot} \
# Line 1593  rm -f %{buildroot}%{_bindir}/php %{build Line 1545  rm -f %{buildroot}%{_bindir}/php %{build
1545  ./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php  ./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php
1546  ./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi  ./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi
1547    
1548  # compat php-fcgi symlink  # compat php-fcgi symink
1549  ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi  ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi
1550    
1551  cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/  cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/
# Line 1604  install -m0644 sapi/cli/php.1 %{buildroo Line 1556  install -m0644 sapi/cli/php.1 %{buildroo
1556  install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/  install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/
1557  install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/  install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/
1558    
 #perl -pi -e "s|^libdir=.*|libdir='%{_libdir}'|g" .libs/*.la*  
   
 make -C build-apache install \  
     INSTALL_ROOT=%{buildroot} \  
         INSTALL_IT="\$(LIBTOOL) --mode=install install libphp5_common.la %{buildroot}%{_libdir}/" \  
         INSTALL_CLI="\$(LIBTOOL) --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php"  
   
1559  # fpm  # fpm
1560  install -d %{buildroot}/lib/systemd/system  install -d %{buildroot}/lib/systemd/system
1561  install -d %{buildroot}%{_sysconfdir}/logrotate.d  install -d %{buildroot}%{_sysconfdir}/logrotate.d
# Line 1633  install -m0644 php-fpm.logrotate %{build Line 1578  install -m0644 php-fpm.logrotate %{build
1578    
1579  ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext  ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext
1580    
1581    install -d %{buildroot}%{_libdir}/apache
1582  install -d %{buildroot}%{_sysconfdir}/httpd/modules.d  install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
1583    
1584  cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/70_mod_php.conf <<EOF  install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache/
1585  <IfModule !mod_php5.c>  
1586      LoadModule php5_module    extramodules/mod_php5.so  cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{load_order}_%{mod_name}.conf <<EOF
1587  </IfModule>  LoadModule php_module %{_libdir}/apache/%{mod_name}.so
1588    
1589  <IfModule mod_mime.c>  AddType application/x-httpd-php .php
1590      AddType application/x-httpd-php .php  AddType application/x-httpd-php .phtml
1591      AddType application/x-httpd-php .phtml  AddType application/x-httpd-php-source .phps
1592      AddType application/x-httpd-php-source .phps  
1593  </IfModule>  DirectoryIndex index.php index.phtml
   
 <IfModule mod_php5.c>  
     <IfModule mod_dir.c>  
         DirectoryIndex index.php index.phtml  
     </IfModule>  
 </IfModule>  
1594  EOF  EOF
1595    
1596  # rpm filetrigger to reload httpd when installing/removing php extensions  # rpm filetrigger to reload httpd when installing/removing php extensions
# Line 1663  cat > %{buildroot}%{_localstatedir}/lib/ Line 1603  cat > %{buildroot}%{_localstatedir}/lib/
1603  service httpd reload 2>/dev/null || :  service httpd reload 2>/dev/null || :
1604  EOF  EOF
1605    
   
1606  # extensions  # extensions
1607  echo "extension = openssl.so"   > %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini  echo "extension = openssl.so"           > %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini
1608  echo "extension = zlib.so"              > %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini  echo "extension = zlib.so"              > %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini
1609  echo "extension = bcmath.so"    > %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini  echo "extension = bcmath.so"            > %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini
1610  echo "extension = bz2.so"               > %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini  echo "extension = bz2.so"               > %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini
1611  echo "extension = calendar.so"  > %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini  echo "extension = calendar.so"          > %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini
1612  echo "extension = ctype.so"             > %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini  echo "extension = ctype.so"             > %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini
1613  echo "extension = curl.so"              > %{buildroot}%{_sysconfdir}/php.d/13_curl.ini  echo "extension = curl.so"              > %{buildroot}%{_sysconfdir}/php.d/13_curl.ini
1614  echo "extension = dba.so"               > %{buildroot}%{_sysconfdir}/php.d/14_dba.ini  echo "extension = dba.so"               > %{buildroot}%{_sysconfdir}/php.d/14_dba.ini
1615  echo "extension = dom.so"               > %{buildroot}%{_sysconfdir}/php.d/18_dom.ini  echo "extension = dom.so"               > %{buildroot}%{_sysconfdir}/php.d/18_dom.ini
1616  echo "extension = exif.so"              > %{buildroot}%{_sysconfdir}/php.d/19_exif.ini  echo "extension = exif.so"              > %{buildroot}%{_sysconfdir}/php.d/19_exif.ini
1617  echo "extension = filter.so"    > %{buildroot}%{_sysconfdir}/php.d/81_filter.ini  echo "extension = filter.so"            > %{buildroot}%{_sysconfdir}/php.d/81_filter.ini
1618  echo "extension = ftp.so"               > %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini  echo "extension = ftp.so"               > %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini
1619  echo "extension = gd.so"                > %{buildroot}%{_sysconfdir}/php.d/23_gd.ini  echo "extension = gd.so"                > %{buildroot}%{_sysconfdir}/php.d/23_gd.ini
1620  echo "extension = gettext.so"   > %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini  echo "extension = gettext.so"           > %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini
1621  echo "extension = gmp.so"               > %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini  echo "extension = gmp.so"               > %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini
1622  echo "extension = hash.so"              > %{buildroot}%{_sysconfdir}/php.d/54_hash.ini  echo "extension = hash.so"              > %{buildroot}%{_sysconfdir}/php.d/54_hash.ini
1623  echo "extension = iconv.so"             > %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini  echo "extension = iconv.so"             > %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini
1624  echo "extension = imap.so"              > %{buildroot}%{_sysconfdir}/php.d/27_imap.ini  echo "extension = imap.so"              > %{buildroot}%{_sysconfdir}/php.d/27_imap.ini
1625  echo "extension = intl.so"              > %{buildroot}%{_sysconfdir}/php.d/27_intl.ini  echo "extension = intl.so"              > %{buildroot}%{_sysconfdir}/php.d/27_intl.ini
1626  echo "extension = ldap.so"              > %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini  echo "extension = ldap.so"              > %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini
1627  echo "extension = mbstring.so"  > %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini  echo "extension = mbstring.so"          > %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini
1628  echo "extension = mcrypt.so"    > %{buildroot}%{_sysconfdir}/php.d/30_mcrypt.ini  echo "extension = mcrypt.so"            > %{buildroot}%{_sysconfdir}/php.d/30_mcrypt.ini
1629  echo "extension = fileinfo.so"  > %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini  echo "extension = fileinfo.so"          > %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini
1630  echo "extension = mssql.so"             > %{buildroot}%{_sysconfdir}/php.d/35_mssql.ini  echo "extension = mssql.so"             > %{buildroot}%{_sysconfdir}/php.d/35_mssql.ini
1631  echo "extension = mysql.so"             > %{buildroot}%{_sysconfdir}/php.d/36_mysql.ini  echo "extension = mysql.so"             > %{buildroot}%{_sysconfdir}/php.d/36_mysql.ini
1632  echo "extension = mysqli.so"    > %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini  echo "extension = mysqli.so"            > %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini
1633  echo "extension = enchant.so"   > %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini  echo "extension = enchant.so"           > %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini
1634  echo "extension = odbc.so"              > %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini  echo "extension = odbc.so"              > %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini
1635  echo "extension = pcntl.so"             > %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini  echo "extension = pcntl.so"             > %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini
1636  echo "extension = pdo.so"               > %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini  echo "extension = pdo.so"               > %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini
1637  echo "extension = pdo_dblib.so" > %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini  echo "extension = pdo_dblib.so"         > %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini
1638  echo "extension = pdo_mysql.so" > %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini  echo "extension = pdo_mysql.so"         > %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini
1639  echo "extension = pdo_odbc.so"  > %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini  echo "extension = pdo_odbc.so"          > %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini
1640  echo "extension = pdo_pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini  echo "extension = pdo_pgsql.so"         > %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini
1641  echo "extension = pdo_sqlite.so"> %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini  echo "extension = pdo_sqlite.so"        > %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini
1642  echo "extension = mysqlnd.so"   > %{buildroot}%{_sysconfdir}/php.d/78_mysqlnd.ini  echo "extension = mysqlnd.so"           > %{buildroot}%{_sysconfdir}/php.d/78_mysqlnd.ini
1643  echo "extension = pgsql.so"             > %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini  echo "extension = pgsql.so"             > %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini
1644  echo "extension = posix.so"             > %{buildroot}%{_sysconfdir}/php.d/43_posix.ini  echo "extension = posix.so"             > %{buildroot}%{_sysconfdir}/php.d/43_posix.ini
1645  # echo "extension = pspell.so"  > %{buildroot}%{_sysconfdir}/php.d/44_pspell.ini  echo "extension = readline.so"          > %{buildroot}%{_sysconfdir}/php.d/45_readline.ini
1646  echo "extension = readline.so"  > %{buildroot}%{_sysconfdir}/php.d/45_readline.ini  echo "extension = recode.so"            > %{buildroot}%{_sysconfdir}/php.d/46_recode.ini
1647  echo "extension = recode.so"    > %{buildroot}%{_sysconfdir}/php.d/46_recode.ini  echo "extension = session.so"           > %{buildroot}%{_sysconfdir}/php.d/47_session.ini
 echo "extension = session.so"   > %{buildroot}%{_sysconfdir}/php.d/47_session.ini  
1648  echo "extension = shmop.so"             > %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini  echo "extension = shmop.so"             > %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini
1649  echo "extension = snmp.so"              > %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini  echo "extension = snmp.so"              > %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini
1650  echo "extension = soap.so"              > %{buildroot}%{_sysconfdir}/php.d/51_soap.ini  echo "extension = soap.so"              > %{buildroot}%{_sysconfdir}/php.d/51_soap.ini
1651  echo "extension = sockets.so"   > %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini  echo "extension = sockets.so"           > %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini
1652  echo "extension = sqlite.so"    > %{buildroot}%{_sysconfdir}/php.d/78_sqlite.ini  echo "extension = sqlite3.so"           > %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini
1653  echo "extension = sqlite3.so"   > %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini  echo "extension = sybase_ct.so"         > %{buildroot}%{_sysconfdir}/php.d/46_sybase_ct.ini
1654  echo "extension = sybase_ct.so" > %{buildroot}%{_sysconfdir}/php.d/46_sybase_ct.ini  echo "extension = sysvmsg.so"           > %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini
1655  echo "extension = sysvmsg.so"   > %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini  echo "extension = sysvsem.so"           > %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini
1656  echo "extension = sysvsem.so"   > %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini  echo "extension = sysvshm.so"           > %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini
 echo "extension = sysvshm.so"   > %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini  
1657  echo "extension = tidy.so"              > %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini  echo "extension = tidy.so"              > %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini
1658  echo "extension = tokenizer.so" > %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini  echo "extension = tokenizer.so"         > %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini
1659  echo "extension = xml.so"               > %{buildroot}%{_sysconfdir}/php.d/62_xml.ini  echo "extension = xml.so"               > %{buildroot}%{_sysconfdir}/php.d/62_xml.ini
1660  echo "extension = xmlreader.so" > %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini  echo "extension = xmlreader.so"         > %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini
1661  echo "extension = xmlrpc.so"    > %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini  echo "extension = xmlrpc.so"            > %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini
1662  echo "extension = xmlwriter.so" > %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini  echo "extension = xmlwriter.so"         > %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini
1663  echo "extension = xsl.so"               > %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini  echo "extension = xsl.so"               > %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini
1664  echo "extension = wddx.so"              > %{buildroot}%{_sysconfdir}/php.d/63_wddx.ini  echo "extension = wddx.so"              > %{buildroot}%{_sysconfdir}/php.d/63_wddx.ini
1665  echo "extension = json.so"              > %{buildroot}%{_sysconfdir}/php.d/82_json.ini  echo "extension = json.so"              > %{buildroot}%{_sysconfdir}/php.d/82_json.ini
# Line 1731  echo "extension = phar.so"             > %{buildroo Line 1668  echo "extension = phar.so"             > %{buildroo
1668    
1669  install -m0755 maxlifetime %{buildroot}%{_libdir}/php/maxlifetime  install -m0755 maxlifetime %{buildroot}%{_libdir}/php/maxlifetime
1670  install -m0644 php.crond %{buildroot}%{_sysconfdir}/cron.d/php  install -m0644 php.crond %{buildroot}%{_sysconfdir}/cron.d/php
1671    install -m0644 php.ini %{buildroot}%{_sysconfdir}/php.ini
1672    install -m0644 php-cgi-fcgi.ini %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini
1673    
1674    # install doc manually in %{_docdir}/php, rather than %{_docdir}/php-doc
1675    install -d -m 755 %{buildroot}%{_docdir}/php
1676    install -m 644 \
1677        CREDITS INSTALL LICENSE NEWS \
1678        php.ini-production php.ini-development \
1679        README.PHP4-TO-PHP5-THIN-CHANGES README.EXTENSIONS README.EXT_SKEL \
1680        README.input_filter README.PARAMETER_PARSING_API README.STREAMS \
1681        %{buildroot}%{_docdir}/php
1682    
1683  # fix docs  # fix docs
1684  cp Zend/LICENSE Zend/ZEND_LICENSE  cp Zend/LICENSE Zend/ZEND_LICENSE
# Line 1869  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl Line 1817  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl
1817  %endif  %endif
1818    
1819    
1820    
1821    %post fpm
1822    if [ $1 = 1 ]; then
1823        # Initial installation
1824        /bin/systemctl daemon-reload >/dev/null 2>&1 || :
1825    fi
1826    
1827  %pre fpm  %pre fpm
1828  %_pre_useradd apache /var/www /bin/sh  %_pre_useradd apache /var/www /bin/sh
1829    
1830  %_postun_userdel apache  %preun fpm
1831    if [ $1 = 0 ]; then
1832        # Package removal, not upgrade
1833        /bin/systemctl --no-reload disable php-fpm.service >/dev/null 2>&1 || :
1834        /bin/systemctl stop php-fpm.service >/dev/null 2>&1 || :
1835    fi
1836    
1837    
1838    %_postun_userdel apache
1839    
1840  %files doc  %files doc
1841  %doc CREDITS INSTALL LICENSE NEWS Zend/ZEND_LICENSE  %doc CREDITS INSTALL LICENSE NEWS Zend/ZEND_LICENSE
# Line 1884  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl Line 1845  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl
1845  %doc README.EXTENSIONS README.EXT_SKEL README.input_filter  %doc README.EXTENSIONS README.EXT_SKEL README.input_filter
1846  %doc README.PARAMETER_PARSING_API README.STREAMS  %doc README.PARAMETER_PARSING_API README.STREAMS
1847    
1848    %files ini
1849    %{_docdir}/php
1850    %config(noreplace) %{_sysconfdir}/php.ini
1851    %config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini
1852    %dir %{_sysconfdir}/php.d
1853    %dir %{_libdir}/php
1854    %dir %{_datadir}/php
1855    %dir %{_libdir}/php/extensions
1856    
1857    %files -n apache-mod_php
1858    %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*.conf
1859    %attr(0755,root,root) %{_libdir}/apache/*.so
1860    %{_localstatedir}/lib/rpm/filetriggers/httpd-php.filter
1861    %attr(0755,root,root) %{_localstatedir}/lib/rpm/filetriggers/httpd-php.script
1862    
1863  %files -n %{libname}  %files -n %{libname}
1864  %{_libdir}/libphp5_common.so.%{php5_common_major}*  %{_libdir}/libphp5_common.so.%{php5_common_major}*
1865    
# Line 1897  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl Line 1873  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl
1873  %attr(0755,root,root) %{_bindir}/php-cgi  %attr(0755,root,root) %{_bindir}/php-cgi
1874  %attr(0755,root,root) %{_bindir}/php-fcgi  %attr(0755,root,root) %{_bindir}/php-fcgi
1875    
 %files -n apache-mod_php  
 %config(noreplace) %{_sysconfdir}/httpd/modules.d/70_mod_php.conf  
 #%{_libdir}/apache-extramodules/mod_php5.so  
 %{_localstatedir}/lib/rpm/filetriggers/httpd-php.filter  
 %attr(0755,root,root) %{_localstatedir}/lib/rpm/filetriggers/httpd-php.script  
   
1876  %files devel  %files devel
1877  %doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* EXTENSIONS  %doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* EXTENSIONS
1878  %doc Zend/ZEND_* README.TESTING*  %doc Zend/ZEND_* README.TESTING*
# Line 2178  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl Line 2148  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl
2148  %attr(0711,apache,apache) %dir /var/lib/php-fpm  %attr(0711,apache,apache) %dir /var/lib/php-fpm
2149  %attr(0711,apache,apache) %dir /var/log/php-fpm  %attr(0711,apache,apache) %dir /var/log/php-fpm
2150  %attr(0711,apache,apache) %dir /var/run/php-fpm  %attr(0711,apache,apache) %dir /var/run/php-fpm
   
   

Legend:
Removed from v.264565  
changed lines
  Added in v.270746

  ViewVC Help
Powered by ViewVC 1.1.30