summaryrefslogtreecommitdiffstats
path: root/roundcubemail.spec
diff options
context:
space:
mode:
Diffstat (limited to 'roundcubemail.spec')
-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