1 |
%define name smeserver-roundcube |
%define name smeserver-roundcube |
2 |
%define version 1.2 |
%define version 1.2 |
3 |
%define release 19 |
%define release 22 |
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} |
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.5.3 |
Requires: roundcubemail >= 1.6 |
21 |
Requires: git |
Requires: git |
22 |
Requires: smeserver-dovecot-extras |
Requires: smeserver-dovecot-extras |
23 |
Requires: jq |
Requires: jq |
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 |
Patch5: smeserver-roundcube-1.2-Update-params-forv1_6-roundcube.patch |
34 |
|
Patch6: smeserver-roundcube-1.2-bz12489-bz12263.patch |
35 |
|
Patch7: smeserver-roundcube-1.2-useSSL.patch |
36 |
|
|
37 |
%description |
%description |
38 |
smeserver rpm to setup the roundcube IMAP mail client. |
smeserver rpm to setup the roundcube IMAP mail client. |
39 |
|
|
40 |
%changelog |
%changelog |
41 |
|
* Fri Mar 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 1.2-22.sme |
42 |
|
- fix roundcube unable to send mail after smeserver-qpsmtpd disabling auth on port 25 |
43 |
|
|
44 |
|
* Sat Feb 24 2024 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-21.sme |
45 |
|
- add nextcloud_attachements plugin support [SME: 12489] |
46 |
|
- simplify access setting using access(private,public)/status [SME: 12263] |
47 |
|
- Requires roundcube >= 1.6 |
48 |
|
up to php81, add dedicated php pool |
49 |
|
using update event to config plugins |
50 |
|
|
51 |
* Tue Oct 31 2023 Brian Read <brianr@koozali.org> 1.2-19.sme |
* Tue Oct 31 2023 Brian Read <brianr@koozali.org> 1.2-19.sme |
52 |
- Update params for changes from v1.6 roundcube [SME: 12415] |
- Update params for changes from v1.6 roundcube [SME: 12415] |
53 |
|
|
205 |
%patch3 -p1 |
%patch3 -p1 |
206 |
%patch4 -p1 |
%patch4 -p1 |
207 |
%patch5 -p1 |
%patch5 -p1 |
208 |
|
%patch6 -p1 |
209 |
rm -rf root/etc/e-smith/templates/usr/share/roundcubemail/plugins/sieverules |
rm -rf root/etc/e-smith/templates/usr/share/roundcubemail/plugins/sieverules |
210 |
mkdir -p root/usr/local/bin/ |
mkdir -p root/usr/local/bin/ |
211 |
cp %{SOURCE1} root/usr/local/bin/composer |
cp %{SOURCE1} root/usr/local/bin/composer |
212 |
|
mkdir -p root/var/lib/php/roundcube/{session,tmp,opcache} |
213 |
|
mkdir -p root/var/log/php/roundcube |
214 |
|
%patch7 -p1 |
215 |
|
|
216 |
%build |
%build |
217 |
perl createlinks |
perl createlinks |
222 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
223 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
224 |
--file /usr/local/bin/composer 'attr(0755,root,www)' \ |
--file /usr/local/bin/composer 'attr(0755,root,www)' \ |
225 |
|
--dir /var/log/php/roundcube 'attr(0755,www,www)' \ |
226 |
|
--dir /var/lib/php/roundcube 'attr(0755,www,www)' \ |
227 |
|
--dir /var/lib/php/roundcube/tmp 'attr(0755,www,www)' \ |
228 |
|
--dir /var/lib/php/roundcube/opcache 'attr(0755,www,www)' \ |
229 |
|
--dir /var/lib/php/roundcube/session 'attr(0755,www,www)' \ |
230 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
231 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
232 |
|
|
239 |
|
|
240 |
%post |
%post |
241 |
#Update the plugins |
#Update the plugins |
242 |
echo "" |
# now in smeserver-roundcube-update event |
243 |
echo "Update the Roundcube Plugins, please wait" |
#echo "" |
244 |
echo "" |
#echo "Update the Roundcube Plugins, please wait" |
245 |
/usr/bin/rcplugin_update.sh |
#echo "" |
246 |
echo "" |
#/usr/bin/rcplugin_update.sh |
247 |
|
#echo "" |
248 |
|
|
249 |
%postun |
%postun |
250 |
#uninstall |
#uninstall |
251 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
252 |
/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 |
|
253 |
fi |
fi |
254 |
|
|
255 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |