diff options
author | Remi Collet <remi@remirepo.net> | 2024-10-11 15:30:26 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-10-11 15:30:26 +0200 |
commit | 3a9b6d7bac8ef00a639559ee5e63f3853275de7d (patch) | |
tree | ba9e61428d6a35e1754d84b6a8133be5862b481e | |
parent | 70ebc25b69eccd0aafe96c49a2b2a8ce81341f53 (diff) |
use composer-generators
-rw-r--r-- | pie.spec | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -11,6 +11,8 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs +%bcond_with generators + %global gh_commit 51f0d5072d7346c90d20bf9a5633e67938fefcca %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20241003 @@ -50,6 +52,9 @@ BuildRequires: php-cli BuildRequires: php-json BuildRequires: php-zip BuildRequires: pkgconfig(bash-completion) +%if %{with generators} +BuildRequires: composer-generators +%endif # From composer.json, "require": { # "php": "8.1.*||8.2.*||8.3.*||8.4.*", @@ -70,6 +75,7 @@ Requires: php-mbstring Requires: php-posix Requires: php-phar +%if %{without generators} # Bundled libraries # License MIT Provides: bundled(php-composer-ca-bundle) = 1.5.2 @@ -115,7 +121,7 @@ Provides: bundled(php-webmozart-assert) = 1.11.0 # Composer library Provides: php-composer(php/pie) = %{version} - +%endif %description PIE (PHP Installer for Extensions). @@ -137,6 +143,7 @@ find . \( -name \*.rpm -o -name \*noxdg \) -delete -print : Set version sed -e 's/@pie_version@/%{upstream_version}%{?upstream_prever}/' -i bin/pie +%if %{without generators} : List bundled libraries and Licenses php -r ' $pkgs = file_get_contents("vendor/composer/installed.json"); @@ -155,6 +162,7 @@ php -r ' sort($lib); printf("# License %s\n%s\n", $lic, implode("\n", $lib)); }' +%endif %build |