From 248dea3ffba34fb1ca3cc6819154510e575f4c3b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Dec 10 2021 11:32:17 +0000 Subject: add flag to use all PHP bundled libraries instead of system ones --- diff --git a/phpMyAdmin-bundled.php b/phpMyAdmin-bundled.php new file mode 100644 index 0000000..5f2cb89 --- /dev/null +++ b/phpMyAdmin-bundled.php @@ -0,0 +1,39 @@ += 4.4.9 +%else +# to run phpMyAdmin-bundled.php +BuildRequires: php-cli +%endif Requires(post): coreutils sed Requires: webserver @@ -77,6 +104,7 @@ Requires: php-json Requires: php-mysqli Requires: php-pcre Requires: php-xml +%if %{with syslib} Requires: (php-composer(google/recaptcha) >= 1.1 with php-composer(google/recaptcha) < 2) Requires: (php-composer(nikic/fast-route) >= 1.3 with php-composer(nikic/fast-route) < 2) Requires: (php-composer(phpmyadmin/motranslator) >= 5.0 with php-composer(phpmyadmin/motranslator) < 6) @@ -109,6 +137,47 @@ Requires: php-composer(fedora/autoloader) # "tecnickcom/tcpdf": "<6.2", # "pragmarx/google2fa-qrcode": "<1.0.1", # "samyoul/u2f-php-server": "<1.1" +Recommends: php-opcache +Recommends: php-composer(tecnickcom/tcpdf) >= 6.3 +Recommends: php-composer(pragmarx/google2fa-qrcode) >= 1.0.1 +Recommends: php-composer(samyoul/u2f-php-server) >= 1.1 +Recommends: php-tcpdf-dejavu-sans-fonts >= 6.2 +%else +Provides: bundled(php-bacon-bacon-qr-code) = 2.0.3 +Provides: bundled(php-dasprid-enum) = 1.0.3 +Provides: bundled(php-google-recaptcha) = 1.2.4 +Provides: bundled(php-nikic-fast-route) = v1.3.0 +Provides: bundled(php-paragonie-constant-time-encoding) = v2.4.0 +Provides: bundled(php-phpmyadmin-motranslator) = 5.2.0 +Provides: bundled(php-phpmyadmin-shapefile) = 2.1 +Provides: bundled(php-phpmyadmin-sql-parser) = 5.4.2 +Provides: bundled(php-phpmyadmin-twig-i18n-extension) = v3.0.0 +Provides: bundled(php-phpseclib-phpseclib) = 2.0.31 +Provides: bundled(php-pragmarx-google2fa) = 8.0.0 +Provides: bundled(php-pragmarx-google2fa-qrcode) = v1.0.3 +Provides: bundled(php-psr-cache) = 1.0.1 +Provides: bundled(php-psr-container) = 1.0.0 +Provides: bundled(php-psr-log) = 1.1.4 +Provides: bundled(php-samyoul-u2f-php-server) = v1.1.4 +Provides: bundled(php-symfony-cache) = v4.4.25 +Provides: bundled(php-symfony-cache-contracts) = v1.1.10 +Provides: bundled(php-symfony-config) = v4.4.25 +Provides: bundled(php-symfony-dependency-injection) = v4.4.25 +Provides: bundled(php-symfony-expression-language) = v4.4.25 +Provides: bundled(php-symfony-filesystem) = v4.4.25 +Provides: bundled(php-symfony-polyfill-ctype) = v1.23.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.23.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.23.0 +Provides: bundled(php-symfony-service-contracts) = v1.1.9 +Provides: bundled(php-symfony-var-exporter) = v4.4.25 +Provides: bundled(php-tecnickcom-tcpdf) = 6.4.1 +Provides: bundled(php-twig-twig) = v2.13.1 +Provides: bundled(php-williamdes-mariadb-mysql-kbs) = 1.2.12 +Requires: php-dom +Requires: php-intl +Requires: php-posix +# php-tidy required by tcpdf is not used (fixHTMLCode) +%endif Requires: php-ctype Requires: php-openssl Requires: php-curl @@ -117,11 +186,6 @@ Requires: php-bz2 Requires: php-zip Requires: php-gd Requires: php-mbstring -Recommends: php-opcache -Recommends: php-composer(tecnickcom/tcpdf) >= 6.3 -Recommends: php-composer(pragmarx/google2fa-qrcode) >= 1.0.1 -Recommends: php-composer(samyoul/u2f-php-server) >= 1.1 -Recommends: php-tcpdf-dejavu-sans-fonts >= 6.2 # From phpcompatinfo reports for 4.8.0 # notice: recode is optional (iconv or mbstring are preferred / used first) Requires: php-date @@ -182,6 +246,7 @@ sed -e "/'CHANGELOG_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \ # For debug grep '^define' libraries/vendor_config.php +%if %{with syslib} # Generate autoloader rm -rf vendor/* cat << 'EOF' | tee vendor/autoload.php @@ -214,6 +279,9 @@ require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php'; '%{_datadir}/php/Samyoul/U2F/U2FServer/autoload.php', ]); EOF +%else +php %{SOURCE5} vendor/composer/installed.json +%endif %build @@ -245,8 +313,8 @@ rm -rf %{buildroot}%{_datadir}/%{name}/tmp/ mv %{buildroot}%{_datadir}/%{name}/libraries/cache %{buildroot}/%{_localstatedir}/lib/%{name}/cache # JS libraries sources -#rm -r %{buildroot}%{_datadir}/%{name}/js/jquery/src -#rm -r %{buildroot}%{_datadir}/%{name}/js/openlayers/src +#rm -r %%{buildroot}%%{_datadir}/%{name}/js/jquery/src +#rm -r %%{buildroot}%%{_datadir}/%{name}/js/openlayers/src # Bundled certificates rm -r %{buildroot}%{_datadir}/%{name}/libraries/certs @@ -298,6 +366,9 @@ sed -e "/'blowfish_secret'/s/MUSTBECHANGEDONINSTALL/$SECRET/" \ %changelog +* Fri Dec 10 2021 Remi Collet - 5.1.1-3 +- add flag to use all PHP bundled libraries instead of system ones + * Tue Jul 27 2021 Fedora Release Engineering - 5.1.1-2 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild