2007-05-22 14:35:55 +02:00
|
|
|
#
|
2011-02-21 15:47:06 +01:00
|
|
|
# spec file for package roundcubemail
|
2007-05-22 14:35:55 +02:00
|
|
|
#
|
2012-02-13 14:41:00 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-23 13:07:28 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-05-22 14:35:55 +02:00
|
|
|
#
|
|
|
|
|
2011-09-23 13:07:28 +02:00
|
|
|
|
2006-10-27 02:50:51 +02:00
|
|
|
Name: roundcubemail
|
2011-02-21 15:47:06 +01:00
|
|
|
Summary: A modern browser-based multilingual IMAP client
|
2012-10-29 08:37:48 +01:00
|
|
|
License: GPL-3.0+ and GPL-2.0 and BSD-3-Clause
|
2006-10-27 02:50:51 +02:00
|
|
|
Group: Productivity/Networking/Email/Clients
|
2007-05-22 14:35:55 +02:00
|
|
|
Url: http://www.roundcube.net/
|
2012-11-20 08:12:34 +01:00
|
|
|
Version: 0.8.4
|
2008-09-23 13:17:36 +02:00
|
|
|
Release: 0
|
2012-02-13 14:41:00 +01:00
|
|
|
BuildRequires: apache2-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pcre-devel
|
2012-04-15 21:12:01 +02:00
|
|
|
Requires: http_daemon
|
|
|
|
Requires: mod_php_any
|
2012-09-26 20:25:58 +02:00
|
|
|
Requires: php-exif
|
2012-04-15 21:12:01 +02:00
|
|
|
Requires: php-gettext
|
|
|
|
Requires: php-iconv
|
|
|
|
Requires: php-mbstring
|
|
|
|
Requires: php-mcrypt
|
|
|
|
Requires: php-openssl
|
|
|
|
Requires: php-session
|
|
|
|
Requires: php_any_db
|
2012-02-13 14:41:00 +01:00
|
|
|
Recommends: php-mysql
|
2012-05-13 00:09:12 +02:00
|
|
|
Recommends: php5-intl
|
|
|
|
Recommends: php5-fileinfo
|
2011-09-30 15:12:49 +02:00
|
|
|
## Requires: for upstream dep package
|
2012-05-13 00:09:12 +02:00
|
|
|
#Requires: php5-pear-Auth_SASL
|
2012-02-13 14:41:00 +01:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2010-11-24 22:11:15 +01:00
|
|
|
Source2: %{name}-httpd.conf
|
2011-09-23 13:07:28 +02:00
|
|
|
Source3: %{name}-rpmlintrc
|
2012-05-13 00:09:12 +02:00
|
|
|
Source4: README.openSUSE
|
2010-11-24 22:11:15 +01:00
|
|
|
# PATCH-FIX-OPENSUSE use the general config directory /etc
|
|
|
|
Patch0: %{name}-config-dir.patch
|
2006-10-27 02:50:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-05-22 14:35:55 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%define apache_serverroot %(/usr/sbin/apxs2 -q DATADIR)
|
|
|
|
%define apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)
|
|
|
|
%define roundcubepath %{apache_serverroot}/%name
|
2008-09-23 13:17:36 +02:00
|
|
|
%define roundcubeconfigpath %_sysconfdir/%name
|
2006-10-27 02:50:51 +02:00
|
|
|
|
|
|
|
%description
|
2009-11-05 23:03:03 +01:00
|
|
|
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.
|
2007-05-22 14:35:55 +02:00
|
|
|
|
2011-02-21 15:47:06 +01:00
|
|
|
RoundCube Webmail is written in PHP and requires the MySQL database.
|
2007-05-22 14:35:55 +02:00
|
|
|
The user interface is fully skinnable using XHTML and CSS 2.
|
|
|
|
|
2006-10-27 02:50:51 +02:00
|
|
|
|
|
|
|
%prep
|
2009-03-10 16:17:20 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2010-11-24 22:11:15 +01:00
|
|
|
%patch0 -p1
|
2012-05-13 00:09:12 +02:00
|
|
|
cp %{SOURCE4} .
|
2012-08-25 23:09:15 +02:00
|
|
|
# remove cruft from source archive
|
|
|
|
find . -name ".gitignore" -exec rm {} \;
|
2006-10-27 02:50:51 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2012-02-13 14:41:00 +01:00
|
|
|
install -d -m 0755 %buildroot%roundcubepath
|
|
|
|
cp -a * %buildroot%{roundcubepath}/
|
2008-09-23 13:17:36 +02:00
|
|
|
mkdir -p %buildroot/%_sysconfdir/%name
|
|
|
|
cp config/* %buildroot/%{roundcubeconfigpath}/
|
2012-05-13 00:09:12 +02:00
|
|
|
cp %buildroot/%{roundcubeconfigpath}/main.inc.php.dist %buildroot/%{roundcubeconfigpath}/main.inc.php
|
|
|
|
cp %buildroot/%{roundcubeconfigpath}/db.inc.php.dist %buildroot/%{roundcubeconfigpath}/db.inc.php
|
2012-02-13 14:41:00 +01:00
|
|
|
rm -rf %buildroot%{roundcubepath}/config
|
2007-05-22 14:35:55 +02:00
|
|
|
|
|
|
|
# install httpd.conf file and adapt the configuration
|
|
|
|
install -d -m 0755 %buildroot/%{apache_sysconfdir}/conf.d
|
2012-02-13 14:41:00 +01:00
|
|
|
sed -e "s#__ROUNDCUBEPATH__#%{roundcubepath}#g" %{SOURCE2} > %buildroot%{apache_sysconfdir}/conf.d/roundcubemail.conf
|
2007-05-22 14:35:55 +02:00
|
|
|
|
2012-02-13 14:41:00 +01:00
|
|
|
# install docs
|
|
|
|
install -d -m 0755 %buildroot%_defaultdocdir/%name
|
2012-08-25 23:09:15 +02:00
|
|
|
for i in CHANGELOG INSTALL UPGRADING LICENSE README.md README.openSUSE; do
|
2012-02-13 14:41:00 +01:00
|
|
|
mv -v %{buildroot}%{roundcubepath}/$i %{buildroot}%{_defaultdocdir}/%name/
|
2007-05-22 14:35:55 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# no need to check .htaccess each time, the apache config takes care of the restrictions
|
2008-09-23 13:17:36 +02:00
|
|
|
find %buildroot/%{roundcubepath} -name .htaccess -delete
|
2012-02-13 14:41:00 +01:00
|
|
|
|
|
|
|
# fdupes
|
|
|
|
%fdupes %{buildroot}%{roundcubepath}
|
2006-10-27 02:50:51 +02:00
|
|
|
|
|
|
|
%clean
|
2007-05-22 14:35:55 +02:00
|
|
|
rm -rf %buildroot
|
|
|
|
|
2012-02-13 14:41:00 +01:00
|
|
|
%post
|
|
|
|
# enable apache required apache modules
|
2012-05-13 00:09:12 +02:00
|
|
|
if [ -x /usr/sbin/a2enmod ]; then
|
2012-02-13 14:41:00 +01:00
|
|
|
a2enmod -q alias || a2enmod alias
|
|
|
|
a2enmod -q rewrite || a2enmod rewrite
|
|
|
|
fi
|
2012-05-13 00:09:12 +02:00
|
|
|
if [ ! -f %{roundcubeconfigpath}/main.inc.php ]; then
|
|
|
|
cp %{roundcubeconfigpath}/main.inc.php.dist %{roundcubeconfigpath}/main.inc.php
|
|
|
|
fi
|
|
|
|
if [ ! -f %{roundcubeconfigpath}/db.inc.php ]; then
|
|
|
|
cp %{roundcubeconfigpath}/db.inc.php.dist %{roundcubeconfigpath}/db.inc.php
|
|
|
|
fi
|
|
|
|
exit 0
|
2012-02-13 14:41:00 +01:00
|
|
|
|
2006-10-27 02:50:51 +02:00
|
|
|
%files
|
2008-09-23 13:17:36 +02:00
|
|
|
%defattr(0644, root, root,0755)
|
2011-02-21 15:47:06 +01:00
|
|
|
%doc %_defaultdocdir/%name/
|
2007-05-22 14:35:55 +02:00
|
|
|
%dir %{roundcubepath}
|
2008-09-23 13:17:36 +02:00
|
|
|
%dir %{roundcubeconfigpath}
|
2012-05-13 00:09:12 +02:00
|
|
|
%ghost %config(noreplace) %{roundcubeconfigpath}/db.inc.php
|
|
|
|
%ghost %config(noreplace) %{roundcubeconfigpath}/main.inc.php
|
2012-02-13 14:41:00 +01:00
|
|
|
%config %{roundcubeconfigpath}/*
|
|
|
|
%config %{roundcubeconfigpath}/mimetypes.php
|
2007-05-22 14:35:55 +02:00
|
|
|
%config(noreplace) %{apache_sysconfdir}/conf.d/roundcubemail.conf
|
|
|
|
%{roundcubepath}/index.php
|
2008-07-24 12:56:48 +02:00
|
|
|
%{roundcubepath}/robots.txt
|
2008-09-23 13:17:36 +02:00
|
|
|
%attr(0755,root,root) %{roundcubepath}/bin/*.sh
|
2009-11-05 23:03:03 +01:00
|
|
|
%dir %{roundcubepath}/bin
|
2008-07-24 12:56:48 +02:00
|
|
|
%{roundcubepath}/installer/
|
2009-11-05 23:03:03 +01:00
|
|
|
%{roundcubepath}/plugins/
|
2007-05-22 14:35:55 +02:00
|
|
|
%{roundcubepath}/program/
|
|
|
|
%{roundcubepath}/skins/
|
2012-02-13 14:41:00 +01:00
|
|
|
%{roundcubepath}/SQL
|
|
|
|
%attr(-, wwwrun, root) %{roundcubepath}/logs/
|
2011-02-21 15:47:06 +01:00
|
|
|
%attr(-, wwwrun, root) %{roundcubepath}/temp/
|
2008-09-23 13:17:36 +02:00
|
|
|
|
|
|
|
%changelog
|