summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-10-11 15:30:10 +0200
committerRemi Collet <remi@php.net>2024-10-11 15:30:10 +0200
commit5cdd9d1c580b60dd29e56c7cdb859a3ca30feeb2 (patch)
tree783c454a9be5280f2cb335518579302941ec21dc
parent1f8794df1aab64038176f4b9a4411ca1e39a0b9f (diff)
use composer-generatorsHEADmaster
-rw-r--r--roundcubemail.spec8
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail.spec b/roundcubemail.spec
index c200012..ec548ce 100644
--- a/roundcubemail.spec
+++ b/roundcubemail.spec
@@ -9,6 +9,7 @@
#
%bcond_with internet
+%bcond_with generators
# support for apache / nginx / php-fpm
%global with_phpfpm 1
@@ -55,6 +56,9 @@ BuildRequires: gnupg2
BuildRequires: php(language) >= 7.3
# For test
BuildRequires: php-cli
+%if %{with generators}
+BuildRequires: composer-generators
+%endif
%if %{with_phpfpm}
Requires: webserver
@@ -133,6 +137,7 @@ Provides: bundled(js-jstimezonedetect) = 1.0.7
# License Unkown
Provides: bundled(js-tinymce-langs) = 5.8.2
+%if %{without generators}
# Bundled PHP libraries
# see vendor/composer/installed.json
# License BSD
@@ -170,6 +175,7 @@ Provides: bundled(php-ralouphie-getallheaders) = 3.0.3
Provides: bundled(php-symfony-deprecation-contracts) = v2.5.3
# License PHP License
Provides: bundled(php-pear-net-socket) = v1.2.2
+%endif
%description
@@ -189,8 +195,10 @@ CSS 2.
%setup -q -n roundcubemail-%{upstream_version}%{?upstream_prever:-%{upstream_prever}}
%patch -P1 -p1 -b .rpm
+%if %{without generators}
: PHP bundled libraries
php %{SOURCE5} vendor/composer/installed.json
+%endif
%if %{with internet}
: JS bundled libraries