2024-01-05 17:28:03 +01:00
|
|
|
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
|
|
|
# To create a customized installation:
|
|
|
|
# autospec -u roundcubemail -a5
|
|
|
|
# -d "installdir=%serverdir/../www.example.com,
|
|
|
|
# sitename=example,
|
|
|
|
# adminmail=webmaster@example.com"
|
|
|
|
|
|
|
|
%if "%{?installdir}" == ""
|
|
|
|
%define installdir %{serverdir}/roundcubemail
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%{?servername}" == ""
|
|
|
|
%define servername %(basename %installdir 2>/dev/null)
|
|
|
|
%endif
|
|
|
|
%define serverlogdir %(apxs -q logfiledir 2>/dev/null)
|
|
|
|
%else
|
|
|
|
%if "%{?aliasdir}" == ""
|
|
|
|
%define aliasdir /roundcubemail
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: %{?sitename:%sitename-website-}roundcubemail
|
2024-01-05 17:28:03 +01:00
|
|
|
Version: 1.3.6
|
2024-01-05 17:28:03 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 17:28:03 +01:00
|
|
|
Summary: A browser-based multilingual IMAP client with an application-like user interface
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://roundcube.net/
|
2024-01-05 17:28:03 +01:00
|
|
|
Source: https://github.com/roundcube/roundcubemail/releases/download/%{version}/roundcubemail-%{version}.tar.gz
|
2024-01-05 17:28:03 +01:00
|
|
|
Patch0: roundcubemail-0.8.5-php-no_strict.patch
|
2024-01-05 17:28:03 +01:00
|
|
|
Patch1: roundcubemail-1.1.4-password-postfix-integration.patch
|
2024-01-05 17:28:03 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: pear-MDB2
|
|
|
|
Requires: pear-MDB2_Driver_mysql
|
|
|
|
Requires: pear-Mail_Mime
|
|
|
|
Requires: pear-Net_Socket
|
|
|
|
Requires: pear-Net_SMTP
|
|
|
|
Requires: pear-Net_IDNA2
|
2024-01-05 17:28:03 +01:00
|
|
|
Requires: php-openssl
|
|
|
|
Requires: php-mysql
|
2024-01-05 17:28:03 +01:00
|
|
|
Requires: php-pear
|
2024-01-05 17:28:03 +01:00
|
|
|
Requires: pear-Net_Sieve
|
2024-01-05 17:28:03 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Roundcube webmail is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an e-mail client, including MIME support, address book, folder manipulation, message searching and spell checking.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 17:28:03 +01:00
|
|
|
%setup -q -n roundcubemail-%{version}
|
2024-01-05 17:28:03 +01:00
|
|
|
%patch1 -p1
|
2024-01-05 17:28:03 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}%{installdir}
|
|
|
|
cp -a * %{buildroot}%{installdir}
|
|
|
|
cp .htaccess %{buildroot}%{installdir}
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{servername}.conf << EOF
|
|
|
|
%else
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF
|
|
|
|
%endif
|
|
|
|
%if "%{?sitename}" == ""
|
|
|
|
%if "%(dirname %installdir)" != "%{serverdir}"
|
|
|
|
Alias %{aliasdir} %{installdir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
<Directory %{installdir}>
|
|
|
|
AllowOverride All
|
|
|
|
RewriteEngine On
|
2024-01-05 17:28:03 +01:00
|
|
|
Require all granted
|
2024-01-05 17:28:03 +01:00
|
|
|
Order allow,deny
|
|
|
|
Allow from All
|
|
|
|
</Directory>
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%(dirname %installdir)" != "%{serverdir}"
|
|
|
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
%{?adminmail:ServerAdmin %adminmail}
|
|
|
|
DocumentRoot %{installdir}
|
|
|
|
ServerName %{servername}
|
|
|
|
ErrorLog %{serverlogdir}/%{servername}-error_log
|
|
|
|
CustomLog %{serverlogdir}/%{servername}-access_log common
|
|
|
|
</VirtualHost>
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
[ -e %{_localstatedir}/lock/subsys/httpd ] && service httpd reload || :
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{servername}.conf
|
|
|
|
%else
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf
|
|
|
|
%endif
|
|
|
|
%dir %{installdir}
|
|
|
|
%{installdir}/.htaccess
|
|
|
|
%{installdir}/*
|
|
|
|
%attr(0755,apache,nobody) %{installdir}/temp
|
|
|
|
%attr(0755,apache,nobody) %{installdir}/logs
|
|
|
|
%doc LICENSE
|
|
|
|
## note: eventually add the remaining documents (if any)
|
|
|
|
# %doc README.md
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Apr 17 2018 Automatic Build System <autodist@mambasoft.it> 1.3.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Mar 20 2018 Automatic Build System <autodist@mambasoft.it> 1.3.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Wed Jan 17 2018 Automatic Build System <autodist@mambasoft.it> 1.3.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Thu Nov 09 2017 Automatic Build System <autodist@mambasoft.it> 1.3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Wed Nov 01 2017 Automatic Build System <autodist@mambasoft.it> 1.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Sep 05 2017 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Wed Aug 09 2017 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Fri Apr 14 2017 Automatic Build System <autodist@mambasoft.it> 1.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Thu Dec 01 2016 Automatic Build System <autodist@mambasoft.it> 1.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Fri Sep 30 2016 Automatic Build System <autodist@mambasoft.it> 1.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-1mamba
|
|
|
|
- update to 1.2.1
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Wed Feb 10 2016 Automatic Build System <autodist@mambasoft.it> 1.1.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Thu Oct 01 2015 Automatic Build System <autodist@mambasoft.it> 1.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Mon Jun 08 2015 Automatic Build System <autodist@mambasoft.it> 1.1.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Sat Mar 21 2015 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 16 2015 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Thu Mar 12 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.5-3mamba
|
|
|
|
- require pear-Net_Sieve
|
|
|
|
- patch password plugin config.php.dist for easy change password integration with postfix/mysql
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Thu Feb 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.5-2mamba
|
|
|
|
- require php-pear
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Mon Jan 26 2015 Automatic Build System <autodist@mambasoft.it> 1.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Wed Dec 24 2014 Automatic Build System <autodist@mambasoft.it> 1.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Sep 30 2014 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Jul 22 2014 Automatic Build System <autodist@mambasoft.it> 1.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Sun Jun 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-2mamba
|
|
|
|
- add requirements for php-openssl and php-mysql
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Fri May 16 2014 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:28:03 +01:00
|
|
|
* Tue Apr 08 2014 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 22 2013 Automatic Build System <autodist@mambasoft.it> 0.9.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Sep 07 2013 Automatic Build System <autodist@mambasoft.it> 0.9.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Aug 22 2013 Automatic Build System <autodist@mambasoft.it> 0.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 17 2013 Automatic Build System <autodist@mambasoft.it> 0.9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon May 20 2013 Automatic Build System <autodist@mambasoft.it> 0.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Apr 23 2013 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 01 2013 Automatic Build System <autodist@mambasoft.it> 0.8.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.5-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|