1
0
forked from pool/roundcubemail

Accepting request 867791 from server:php:applications

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/867791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/roundcubemail?expand=0&rev=70
This commit is contained in:
Dominique Leuenberger 2021-01-30 12:56:40 +00:00 committed by Git OBS Bridge
commit b08f7e6e6d
2 changed files with 38 additions and 31 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 22 17:46:59 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- add PHP version to Requires: and Recommends: to make sure the same
version is installed as used during packaging
- drop Requires: http_daemon (fixes boo#1180132) and Suggests: apache2
(which is already required though mod_php_any)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 28 10:17:11 UTC 2020 - Lars Vogdt <lars@linux-schulserver.de> Mon Dec 28 10:17:11 UTC 2020 - Lars Vogdt <lars@linux-schulserver.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package roundcubemail # spec file for package roundcubemail
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define roundcubepath %{apache_serverroot}/%{name} %define roundcubepath %{apache_serverroot}/%{name}
%define roundcubeconfigpath %{_sysconfdir}/%{name} %define roundcubeconfigpath %{_sysconfdir}/%{name}
%define php_major_version %(php -r "echo PHP_MAJOR_VERSION;") %define php_name %(php -r "print 'php' . PHP_MAJOR_VERSION;")
Name: roundcubemail Name: roundcubemail
Version: 1.4.10 Version: 1.4.10
Release: 0 Release: 0
@ -39,17 +39,17 @@ Source8: robots.txt
Patch0: %{name}-config_dir.patch Patch0: %{name}-config_dir.patch
BuildRequires: apache-rpm-macros BuildRequires: apache-rpm-macros
BuildRequires: apache2 BuildRequires: apache2
BuildRequires: php BuildRequires: php-cli
Requires: http_daemon Requires: %{php_name}-dom
Requires: mod_php_any >= 5.4 Requires: %{php_name}-exif
Requires: php-dom Requires: %{php_name}-gettext
Requires: php-exif Requires: %{php_name}-iconv
Requires: php-gettext Requires: %{php_name}-json
Requires: php-iconv Requires: %{php_name}-mbstring
Requires: php-json Requires: %{php_name}-openssl
Requires: php-mbstring Requires: apache2-mod_%{php_name}
Requires: php-openssl
## Requires: for upstream dep package ## Requires: for upstream dep package
Requires: %{php_name}-sockets
Requires: php-pear-Auth_SASL >= 1.0.6 Requires: php-pear-Auth_SASL >= 1.0.6
Requires: php-pear-MDB2_Driver_mysqli Requires: php-pear-MDB2_Driver_mysqli
Requires: php-pear-Mail_Mime >= 1.10.0 Requires: php-pear-Mail_Mime >= 1.10.0
@ -58,17 +58,14 @@ Requires: php-pear-Net_LDAP2
Requires: php-pear-Net_SMTP >= 1.8.1 Requires: php-pear-Net_SMTP >= 1.8.1
Requires: php-pear-Net_Sieve >= 1.4.3 Requires: php-pear-Net_Sieve >= 1.4.3
Requires: php-pear-Net_Socket >= 1.0.12 Requires: php-pear-Net_Socket >= 1.0.12
Requires: php-session Requires: (%{php_name}-mysql or %{php_name}-pgsql)
Requires: php-sockets
Requires: php_any_db
Recommends: logrotate Recommends: logrotate
Recommends: php-fileinfo Recommends: %{php_name}-fileinfo
Recommends: php-intl Recommends: %{php_name}-intl
Recommends: php-imagick Recommends: %{php_name}-imagick
Recommends: php-mysql
Recommends: php-pear-Crypt_GPG >= 1.6.3 Recommends: php-pear-Crypt_GPG >= 1.6.3
Recommends: php-zip Recommends: %{php_name}-zip
Suggests: apache2 Suggests: %{php_name}-mysql
Conflicts: roundcube-framework Conflicts: roundcube-framework
Provides: roundcube_framework = %{version} Provides: roundcube_framework = %{version}
BuildArch: noarch BuildArch: noarch
@ -117,8 +114,11 @@ sed -i '1d' plugins/password/helpers/chpass-wrapper.py
# remove INSTALL doc # remove INSTALL doc
rm INSTALL rm INSTALL
# fix interpreter for shell scripts # fix interpreter for shell scripts
sed -e 's|%{_bindir}/env php|%{_bindir}/php|' -i bin/*.sh sed -i 's|/usr/bin/env php|%{_bindir}/php|' \
sed -e 's|%{_bindir}/env php|%{_bindir}/php|' -i vendor/pear/crypt_gpg/scripts/crypt-gpg-pinentry vendor/roundcube/plugin-installer/src/bin/rcubeinitdb.sh bin/*.sh \
vendor/pear/crypt_gpg/scripts/crypt-gpg-pinentry \
vendor/roundcube/plugin-installer/src/bin/rcubeinitdb.sh \
plugins/enigma/bin/import_keys.sh
%build %build
@ -128,8 +128,8 @@ install -d -m 0755 %{buildroot}/%{_sysconfdir}/logrotate.d
install %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name} install %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
# extract roundcube-framework # extract roundcube-framework
install -d -m 0755 %{buildroot}/%{_datadir}/php%{php_major_version} install -d -m 0755 %{buildroot}/%{_datadir}/%{php_name}
mv program/lib/Roundcube %{buildroot}%{_datadir}/php%{php_major_version}/Roundcube mv program/lib/Roundcube %{buildroot}%{_datadir}/%{php_name}/Roundcube
# install roundcubemail # install roundcubemail
install -d -m 0755 %{buildroot}/%{roundcubepath} install -d -m 0755 %{buildroot}/%{roundcubepath}
@ -250,7 +250,7 @@ if [ ${1:-0} -eq 1 ]; then
# enable required apache modules # enable required apache modules
%if 0%{?suse_version} > 01500 %if 0%{?suse_version} > 01500
if ! grep -q php %{_sysconfdir}/sysconfig/apache2 1>&2 2>/dev/null; then if ! grep -q php %{_sysconfdir}/sysconfig/apache2 1>&2 2>/dev/null; then
%{_sbindir}/a2enmod -q php7 || %{_sbindir}/a2enmod php7 %{_sbindir}/a2enmod -q %{php_name} || %{_sbindir}/a2enmod %{php_name}
fi fi
%endif %endif
for module in alias brotli deflate expires filter headers rewrite setenvif version ; do for module in alias brotli deflate expires filter headers rewrite setenvif version ; do
@ -306,7 +306,7 @@ exit 0
%doc CHANGELOG %doc CHANGELOG
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%license LICENSE %license LICENSE
%else %else
%doc LICENSE %doc LICENSE
%endif %endif
%doc README.md %doc README.md
@ -329,7 +329,7 @@ exit 0
%config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf %config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf
%config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.inc %config(noreplace) %{apache_sysconfdir}/conf.d/%{name}.inc
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{roundcubeconfigpath}/skins/elastic/styles/_styles.less %config(noreplace) %{roundcubeconfigpath}/skins/elastic/styles/_styles.less
%config(noreplace) %{roundcubeconfigpath}/skins/elastic/styles/_variables.less %config(noreplace) %{roundcubeconfigpath}/skins/elastic/styles/_variables.less
%{roundcubepath}/composer.json-dist %{roundcubepath}/composer.json-dist
%{roundcubepath}/composer.json %{roundcubepath}/composer.json
@ -340,7 +340,7 @@ exit 0
%dir %{roundcubepath}/bin %dir %{roundcubepath}/bin
%attr(0755,root,root) %{roundcubepath}/bin/*.sh %attr(0755,root,root) %{roundcubepath}/bin/*.sh
%attr(0755,root,root) %{roundcubepath}/vendor/roundcube/plugin-installer/src/bin/rcubeinitdb.sh %attr(0755,root,root) %{roundcubepath}/vendor/roundcube/plugin-installer/src/bin/rcubeinitdb.sh
%attr(0755,root,root) %{roundcubepath}/plugins/password/helpers/change_ldap_pass.pl %attr(0755,root,root) %{roundcubepath}/plugins/password/helpers/change_ldap_pass.pl
%attr(0755,root,root) %{roundcubepath}/vendor/pear/crypt_gpg/scripts/crypt-gpg-pinentry %attr(0755,root,root) %{roundcubepath}/vendor/pear/crypt_gpg/scripts/crypt-gpg-pinentry
%{roundcubepath}/installer/ %{roundcubepath}/installer/
%{roundcubepath}/logs %{roundcubepath}/logs
@ -353,8 +353,7 @@ exit 0
%{roundcubepath}/SQL %{roundcubepath}/SQL
%{roundcubepath}/temp %{roundcubepath}/temp
%{roundcubepath}/vendor/ %{roundcubepath}/vendor/
%dir %{_datadir}/php%{php_major_version} %{_datadir}/%{php_name}/Roundcube
%{_datadir}/php%{php_major_version}/Roundcube/
%attr(-, wwwrun, root) %{_localstatedir}/log/%{name} %attr(-, wwwrun, root) %{_localstatedir}/log/%{name}
%attr(-, wwwrun, root) %{_localstatedir}/lib/%{name} %attr(-, wwwrun, root) %{_localstatedir}/lib/%{name}