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.0.5
|
2024-01-05 17:28:03 +01:00
|
|
|
Release: 2mamba
|
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/
|
|
|
|
Source: http://downloads.sourceforge.net/project/roundcubemail/roundcubemail-dependent/%{version}/roundcubemail-%{version}-dep.tar.gz
|
|
|
|
Patch0: roundcubemail-0.8.5-php-no_strict.patch
|
|
|
|
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
|
|
|
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
|
|
|
|
%setup -q -n roundcubemail-%{version}-dep
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
%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
|
|
|
* 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
|