summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pie.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/pie.spec b/pie.spec
index 40a6811..d00beef 100644
--- a/pie.spec
+++ b/pie.spec
@@ -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