1 |
%define name smeserver-roundcube |
%define name smeserver-roundcube |
2 |
%define version 1.2 |
%define version 1.2 |
3 |
%define release 13 |
%define release 20 |
4 |
|
|
5 |
Summary: smserver rpm to setup roundcube, an IMAP mail client |
Summary: smserver rpm to setup roundcube, an IMAP mail client |
6 |
Name: %{name} |
Name: %{name} |
7 |
Version: %{version} |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
9 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
10 |
|
Source1: composer.phar |
11 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
12 |
URL: http://www.contribs.org |
URL: http://www.contribs.org |
13 |
Group: SMEserver/addon |
Group: SMEserver/addon |
17 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
18 |
Requires: e-smith-release >= 10.0 |
Requires: e-smith-release >= 10.0 |
19 |
Requires: e-smith-apache >= 2.6.0-19 |
Requires: e-smith-apache >= 2.6.0-19 |
20 |
Requires: roundcubemail >= 1.1.3 |
Requires: roundcubemail >= 1.6 |
21 |
Requires: git |
Requires: git |
22 |
Requires: smeserver-dovecot-extras |
Requires: smeserver-dovecot-extras |
23 |
|
Requires: jq |
24 |
|
Requires: php-kolab-net-ldap3 |
25 |
#Requires: roundcubemail_plugins |
#Requires: roundcubemail_plugins |
26 |
Obsoletes: roundcube |
Obsoletes: roundcube |
27 |
AutoReqProv: no |
AutoReqProv: no |
30 |
Patch2: smeserver-roundcube-1.2-bz12059-24syntax.patch |
Patch2: smeserver-roundcube-1.2-bz12059-24syntax.patch |
31 |
Patch3: smeserver-roundcube-1.2-bz11430-login.patch |
Patch3: smeserver-roundcube-1.2-bz11430-login.patch |
32 |
Patch4: smeserver-roundcube-1.2-bz11430-plugins.patch |
Patch4: smeserver-roundcube-1.2-bz11430-plugins.patch |
33 |
|
Patch5: smeserver-roundcube-1.2-Update-params-forv1_6-roundcube.patch |
34 |
|
Patch6: smeserver-roundcube-1.2-bz12489-bz12263.patch |
35 |
|
|
36 |
%description |
%description |
37 |
smserver rpm to setup the roundcube IMAP mail client. |
smeserver rpm to setup the roundcube IMAP mail client. |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-13.sme |
* Sat Feb 24 2024 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-20.sme |
41 |
|
- add nextcloud_attachements plugin support [SME: 12489] |
42 |
|
- simplify access setting using access(private,public)/status [SME: 12263] |
43 |
|
- Requires roundcube >= 1.6 |
44 |
|
up to php81, add dedicated php pool |
45 |
|
using update event to config plugins |
46 |
|
|
47 |
|
* Tue Oct 31 2023 Brian Read <brianr@koozali.org> 1.2-19.sme |
48 |
|
- Update params for changes from v1.6 roundcube [SME: 12415] |
49 |
|
|
50 |
|
* Sun Dec 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-18.sme |
51 |
|
- fix previous patch [SME: 11430] |
52 |
|
|
53 |
|
* Sat Dec 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme |
54 |
|
- remove sieverules [SME: 11430] |
55 |
|
change skin on availability for 1.6 |
56 |
|
|
57 |
|
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-14.sme |
58 |
- fix list of plugins and add composer [SME: 11430] |
- fix list of plugins and add composer [SME: 11430] |
59 |
do not load in conf plugins without an actual folder. |
do not load in conf plugins without an actual folder. |
60 |
|
|
200 |
%patch2 -p1 |
%patch2 -p1 |
201 |
%patch3 -p1 |
%patch3 -p1 |
202 |
%patch4 -p1 |
%patch4 -p1 |
203 |
|
%patch5 -p1 |
204 |
|
%patch6 -p1 |
205 |
|
rm -rf root/etc/e-smith/templates/usr/share/roundcubemail/plugins/sieverules |
206 |
|
mkdir -p root/usr/local/bin/ |
207 |
|
cp %{SOURCE1} root/usr/local/bin/composer |
208 |
|
|
209 |
%build |
%build |
210 |
perl createlinks |
perl createlinks |
214 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
215 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
216 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
217 |
--exclude-dir /usr/share/roundcubemail \ |
--file /usr/local/bin/composer 'attr(0755,root,www)' \ |
218 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
219 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
220 |
|
|
227 |
|
|
228 |
%post |
%post |
229 |
#Update the plugins |
#Update the plugins |
230 |
echo "" |
# now in smeserver-roundcube-update event |
231 |
echo "Update the Roundcube Plugins, please wait" |
#echo "" |
232 |
echo "" |
#echo "Update the Roundcube Plugins, please wait" |
233 |
/usr/bin/rcplugin_update.sh |
#echo "" |
234 |
echo "" |
#/usr/bin/rcplugin_update.sh |
235 |
|
#echo "" |
236 |
|
|
237 |
%postun |
%postun |
238 |
#uninstall |
#uninstall |
239 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
240 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/usr/bin/systemctl restart httpd-e-smith |
|
/usr/local/bin/svc -h /service/httpd-e-smith |
|
241 |
fi |
fi |
242 |
|
|
243 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |