From 5cdd9d1c580b60dd29e56c7cdb859a3ca30feeb2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Oct 2024 15:30:10 +0200 Subject: use composer-generators --- roundcubemail.spec | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit