/[packages]/backports/8/php/current/SPECS/php.spec
ViewVC logotype

Diff of /backports/8/php/current/SPECS/php.spec

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

revision 1620658 by mokraemer, Tue Sep 1 16:49:20 2020 UTC revision 1621366 by mokraemer, Thu Sep 3 15:08:10 2020 UTC
# Line 26  Summary:       The PHP scripting language Line 26  Summary:       The PHP scripting language
26  Name:           php  Name:           php
27  Epoch:          3  Epoch:          3
28  Version:        %{php_common_major}.%{php_common_sub}.10  Version:        %{php_common_major}.%{php_common_sub}.10
29  Release:        %mkrel 1  Release:        %mkrel 2
30  Source0:        http://fr2.php.net/distributions/php-%{version}.tar.xz  Source0:        http://fr2.php.net/distributions/php-%{version}.tar.xz
31  Group:          Development/PHP  Group:          Development/PHP
32  License:        PHP License  License:        PHP License
# Line 223  Requires:      %{libname} = %{epoch}:%{versio Line 223  Requires:      %{libname} = %{epoch}:%{versio
223  # http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2  # http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
224  # http://stackoverflow.com/questions/681081/is-php-thread-safe  # http://stackoverflow.com/questions/681081/is-php-thread-safe
225  Provides:       php-webinterface = %{epoch}:%{version}-%{release}  Provides:       php-webinterface = %{epoch}:%{version}-%{release}
226  Conflicts: php-fpm  Conflicts: php-fpm-apache
227  Epoch:          %{epoch}  Epoch:          %{epoch}
228    
229  %description -n apache-mod_php  %description -n apache-mod_php
# Line 902  enable access from PHP to databases thro Line 902  enable access from PHP to databases thro
902  Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three  Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three
903  different "flavours" of database drivers:  different "flavours" of database drivers:
904    
905   o ibm-db2  - Supports access to IBM DB2 Universal Database, Cloudscape, and  - ibm-db2  - Supports access to IBM DB2 Universal Database, Cloudscape, and
906                Apache Derby servers through the free DB2 client. ibm-db2 is not          Apache Derby servers through the free DB2 client. ibm-db2 is not
907                supported in Mageia.          supported in Mageia.
908    
909   o unixODBC - Supports access to database servers through the unixODBC driver  - unixODBC - Supports access to database servers through the unixODBC driver
910                manager and the database's own ODBC drivers.          manager and the database's own ODBC drivers.
911    
912   o generic  - Offers a compile option for ODBC driver managers that are not  - generic  - Offers a compile option for ODBC driver managers that are not
913                explicitly supported by PDO_ODBC.          explicitly supported by PDO_ODBC.
914    
915  %package        pdo_pgsql  %package        pdo_pgsql
916  Summary:        PostgreSQL interface driver for PDO  Summary:        PostgreSQL interface driver for PDO
# Line 1091  possibility to act as a socket server as Line 1091  possibility to act as a socket server as
1091  Summary:        Wrapper for the Sodium cryptographic library  Summary:        Wrapper for the Sodium cryptographic library
1092  Group:          Development/PHP  Group:          Development/PHP
1093  URL:            http://php.net/manual/en/book.sodium.php  URL:            http://php.net/manual/en/book.sodium.php
1094  Requires:       %{libname} = %{epoch}:%{version}  Requires:       %{libname} = %{epoch}:%{version}
1095    
1096  %description    sodium  %description    sodium
1097  This is a dynamic shared object (DSO) for PHP that will add libsodium support.  This is a dynamic shared object (DSO) for PHP that will add libsodium support.
# Line 1240  Requires:      %{libname} = %{epoch}:%{versio Line 1240  Requires:      %{libname} = %{epoch}:%{versio
1240  Requires:       webserver  Requires:       webserver
1241  Provides:       php-webinterface = %{epoch}:%{version}-%{release}  Provides:       php-webinterface = %{epoch}:%{version}-%{release}
1242  Provides:       php = %{epoch}:%{version}  Provides:       php = %{epoch}:%{version}
1243  Conflicts:      apache-mod_php  Suggests:       php-fpm-apache
1244    
1245  %description    fpm  %description    fpm
1246  PHP is an HTML-embeddable scripting language. PHP offers built-in database  PHP is an HTML-embeddable scripting language. PHP offers built-in database
# Line 1251  most common use of PHP coding is probabl Line 1251  most common use of PHP coding is probabl
1251  This package contains the FastCGI Process Manager. You must also install  This package contains the FastCGI Process Manager. You must also install
1252  %{libname}.  %{libname}.
1253    
1254    %package        fpm-apache
1255    Summary:        PHP FastCGI Process Manager config for apache
1256    Group:          Development/PHP
1257    Requires:       php-fpm
1258    Requires:       apache >= 2.2
1259    Conflicts:      apache-mod_php
1260    
1261    %description    fpm-apache
1262    This provides the configuration files to use php-fpm with apache.
1263    
1264  %package -n     phpdbg  %package -n     phpdbg
1265  Summary:        The interactive PHP debugger  Summary:        The interactive PHP debugger
1266  Group:          Development/PHP  Group:          Development/PHP
# Line 1420  for i in fpm cgi cli apxs; do Line 1430  for i in fpm cgi cli apxs; do
1430      --enable-xmlwriter=shared,%{_prefix} \      --enable-xmlwriter=shared,%{_prefix} \
1431      --with-zip=shared \      --with-zip=shared \
1432      --with-bz2=shared,%{_prefix} \      --with-bz2=shared,%{_prefix} \
1433      --with-cdb  \      --with-cdb \
1434      --with-config-file-path=%{_sysconfdir} \      --with-config-file-path=%{_sysconfdir} \
1435      --with-config-file-scan-dir=%{_sysconfdir}/php.d \      --with-config-file-scan-dir=%{_sysconfdir}/php.d \
1436      --with-curl=shared,%{_prefix} \      --with-curl=shared,%{_prefix} \
# Line 1450  for i in fpm cgi cli apxs; do Line 1460  for i in fpm cgi cli apxs; do
1460      --with-pdo-firebird=shared,%{_libdir}/firebird \      --with-pdo-firebird=shared,%{_libdir}/firebird \
1461      --with-pdo-mysql=shared,mysqlnd \      --with-pdo-mysql=shared,mysqlnd \
1462      --with-pdo-odbc=shared,unixODBC,%{_prefix} \      --with-pdo-odbc=shared,unixODBC,%{_prefix} \
1463      --with-pdo-pgsql=shared,%{_prefix}  \      --with-pdo-pgsql=shared,%{_prefix} \
1464      --with-pdo-sqlite=shared,%{_prefix} \      --with-pdo-sqlite=shared,%{_prefix} \
1465      --with-pgsql=shared,%{_prefix} \      --with-pgsql=shared,%{_prefix} \
1466      --with-readline=shared,%{_prefix} \      --with-readline=shared,%{_prefix} \
1467      --with-snmp=shared,%{_prefix} \      --with-snmp=shared,%{_prefix} \
1468                  --with-sodium=shared,%{_prefix} \      --with-sodium=shared,%{_prefix} \
1469      --with-sqlite3=shared,%{_prefix} \      --with-sqlite3=shared,%{_prefix} \
1470      --with-system-ciphers \      --with-system-ciphers \
1471      --with-tidy=shared,%{_prefix} \      --with-tidy=shared,%{_prefix} \
# Line 1571  install -m0644 %{SOURCE8} %{buildroot}%{ Line 1581  install -m0644 %{SOURCE8} %{buildroot}%{
1581    
1582  # lib64 hack  # lib64 hack
1583  perl -pi -e "s|/usr/lib/|%{_libdir}/|" \  perl -pi -e "s|/usr/lib/|%{_libdir}/|" \
1584      %{buildroot}%{_sysconfdir}/cron.d/php \          %{buildroot}%{_sysconfdir}/cron.d/php \
1585      %{buildroot}%{_sysconfdir}/php.ini \          %{buildroot}%{_sysconfdir}/php.ini \
1586      %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini \          %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini \
1587      php.ini-production \          php.ini-production \
1588      php.ini-development          php.ini-development
1589    
1590  # install doc manually in _docdir/php, rather than _docdir/php-doc  # install doc manually in _docdir/php, rather than _docdir/php-doc
1591  install -d -m 755 %{buildroot}%{_docdir}/php  install -d -m 755 %{buildroot}%{_docdir}/php
1592  install -m 644 \  install -m 644 \
1593      CODING_STANDARDS.md EXTENSIONS LICENSE NEWS \          CODING_STANDARDS.md EXTENSIONS LICENSE NEWS \
1594      php.ini-production php.ini-development \          php.ini-production php.ini-development \
1595      README.md README.REDIST.BINS UPGRADING UPGRADING.INTERNALS \          README.md README.REDIST.BINS UPGRADING UPGRADING.INTERNALS \
1596      %{buildroot}%{_docdir}/php          %{buildroot}%{_docdir}/php
1597    
1598  # fix docs  # fix docs
1599  cp Zend/LICENSE Zend/ZEND_LICENSE  cp Zend/LICENSE Zend/ZEND_LICENSE
# Line 1600  cp sapi/cli/CREDITS CREDITS.cli Line 1610  cp sapi/cli/CREDITS CREDITS.cli
1610    
1611  # phar fixes  # phar fixes
1612  if [ -L %{buildroot}%{_bindir}/phar ]; then  if [ -L %{buildroot}%{_bindir}/phar ]; then
1613      rm -f %{buildroot}%{_bindir}/phar          rm -f %{buildroot}%{_bindir}/phar
1614      mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar          mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar
1615  fi  fi
1616    
1617  # house cleaning  # house cleaning
# Line 1644  ext/standard/tests/strings/setlocale_var Line 1654  ext/standard/tests/strings/setlocale_var
1654    
1655  [[ -n "$disable_tests" ]] && \  [[ -n "$disable_tests" ]] && \
1656  for f in $disable_tests; do  for f in $disable_tests; do
1657    [[ -f "$f" ]] && mv $f $f.disabled          [[ -f "$f" ]] && mv $f $f.disabled
1658  done  done
1659    
1660  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php
# Line 1660  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl Line 1670  TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cl
1670  %_preun_service php-fpm  %_preun_service php-fpm
1671    
1672  # rpm filetrigger to reload httpd when installing/removing php extensions  # rpm filetrigger to reload httpd when installing/removing php extensions
1673  %transfiletriggerin --  %{_libdir}/php/extensions/  %transfiletriggerin -- %{_libdir}/php/extensions/
1674  systemctl reload-or-try-restart httpd.service || :  systemctl reload-or-try-restart httpd.service || :
1675    
1676  %files doc  %files doc
# Line 1947  systemctl reload-or-try-restart httpd.se Line 1957  systemctl reload-or-try-restart httpd.se
1957  %files fpm  %files fpm
1958  %doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html  %doc sapi/fpm/CREDITS sapi/fpm/LICENSE sapi/fpm/status.html
1959  %{_unitdir}/php-fpm.service  %{_unitdir}/php-fpm.service
 %config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE10})  
1960  %config(noreplace) %{_sysconfdir}/php-fpm.conf  %config(noreplace) %{_sysconfdir}/php-fpm.conf
1961  %config(noreplace) %{_sysconfdir}/sysconfig/php-fpm  %config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
1962  %{_sysconfdir}/logrotate.d/php-fpm  %{_sysconfdir}/logrotate.d/php-fpm
# Line 1960  systemctl reload-or-try-restart httpd.se Line 1969  systemctl reload-or-try-restart httpd.se
1969  %attr(0711,apache,apache) %dir /var/log/php-fpm  %attr(0711,apache,apache) %dir /var/log/php-fpm
1970  %{_tmpfilesdir}/php-fpm.conf  %{_tmpfilesdir}/php-fpm.conf
1971    
1972    %files fpm-apache
1973    %config(noreplace) %{_httpd_modconfdir}/%(basename %{SOURCE10})
1974    
1975  %files -n phpdbg  %files -n phpdbg
1976  %doc sapi/phpdbg/CREDITS sapi/phpdbg/README.md  %doc sapi/phpdbg/CREDITS sapi/phpdbg/README.md
1977  %doc sapi/phpdbg/*.php  %doc sapi/phpdbg/*.php

Legend:
Removed from v.1620658  
changed lines
  Added in v.1621366

  ViewVC Help
Powered by ViewVC 1.1.30