Name: roundcubemail Version: 1.7.0 Release: 1%{?dist} Summary: Roundcube Webmail is a browser-based multilingual IMAP client License: GPL-3.0-or-later AND GPL-2.0-only AND LGPL-2.0-or-later AND CC-BY-SA-3.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND PHP-3.01 URL: https://www.roundcube.net Source0: https://github.com/roundcube/%{name}/releases/download/%{version}/%{name}-%{version}-complete.tar.gz # Simple script to dump name, version and licenses of bundled libraries Source5: roundcubemail-bundled.php BuildArch: noarch BuildRequires: php85-php BuildRequires: php85-php-cli Requires: php85-php Requires: php85-php-xml Requires: php85-php-intl Requires: php85-php-mbstring Requires: php85-php-pdo Requires: php85-php-process Recommends: php85-php-gd Recommends: php85-php-ldap Recommends: php85-php-pecl-uploadprogress Recommends: php85-php-sodium Recommends: php85-php-pecl-apcu # Bundled JS libraries # see https://github.com/roundcube/roundcubemail/blob/master/jsdeps.json Provides: bundled(js-lessjs) = 4.4.2 Provides: bundled(js-publickey) = 0e011cb1 Provides: bundled(js-openpgp) = 5.0.0 Provides: bundled(js-tinymce) = 5.10.9 Provides: bundled(js-bootstrap) = 4.5.3 Provides: bundled(js-codemirror) = 5.58.3 Provides: bundled(js-jquery) = 3.7.1 Provides: bundled(js-tinymce-langs) = 5.10.9 %description Roundcube Webmail is a browser-based multilingual IMAP client with an application-like user interface. %prep %autosetup -n %{name}-%{version} php85 %{SOURCE5} https://raw.githubusercontent.com/roundcube/%{name}/%{version}/jsdeps.json # fix permissions and remove any .htaccess files find . -type f -exec chmod a-x {} + find . -name '.htaccess' -delete -print # Wipe bbcode plugin from bundled TinyMCE to make doubleplus sure we cannot # be vulnerable to CVE-2012-4230, unaddressed upstream echo "CVE-2012-4230: removing tinymce bbcode plugin, check path if this fails." test -d program/js/*mce/plugins/bbcode && rm -rf program/js/*mce/plugins/bbcode || exit 1 %install install -d %{buildroot}%{_datadir}/%{name} cp -a * %{buildroot}%{_datadir}/%{name} # clean up the buildroot rm -rf %{buildroot}%{_datadir}/%{name}/{config,logs,temp} rm -f %{buildroot}%{_datadir}/%{name}/README.md %files %{_datadir}/roundcubemail %changelog %autochangelog