LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File zarafa-webapp.spec of Package zarafa-webapp (Project spins:invis)

#
# spec file for package zarafa-webapp
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

Name:		zarafa-webapp
Summary:	Improved WebApp for the Zarafa Collaboration Platform
Version:	1.2.1.svn37967
%define rversion	1.2.1.svn37967
Release:	0
Group:		Productivity/Networking/Email/Clients
URL:		https://community.zarafa.com/pg/plugins/project/736/developer/zarq/zarafa-webapp
License:	AGPL-3.0

#DL-URL:	http://download.zarafa.com/community/final/WebApp/
#DL-URL:	http://download.zarafa.com/community/beta/WebApp/
Source:		webapp-%rversion.tar.xz
Patch3:		03-stdout.diff
BuildRoot:	%_tmppath/%name-%version-build
BuildRequires:	ant, fdupes, php, xz
%if 0%{?suse_version} >= 1220
BuildRequires:	libxml2-tools
%else
BuildRequires:	libxml2
%endif
BuildArch:	noarch

# The language files are just in a separate package just to keep the
# file lists relatively short. They are still needed by the base in any case.
Requires:	%name-lang = %version

%define langdir %_datadir/%name/server/language
%define plugindir %_datadir/%name/plugins

%description
Provides a web-client written in PHP that makes use of Jason and ExtJS
to allow users to make full use of the Zarafa Collaboration Platform
through a modern web browser.

%package lang
Summary:	Languages for package %name
Group:		System/Localization

%description lang
Provides translations to the package %name.

%package browsercompatibility
Version:	0.1
Summary:	Browser compatibility plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description browsercompatibility
Displays a pop up on the screen if the current browser is not one of
the supported browsers.

%package clockwidget
Version:	1.0
Summary:	Clock widget for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description clockwidget
Displays a clock in the WebApp Dashboard.

%package contactfax
Version:	0.1
Summary:	Contact fax plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description contactfax
Opens a new "create mail" dialog with contact's fax number in the To:
field of the email.

%package dropboxattachment
Version:	0.1
Summary:	DropBox attachment feature plugin for zarafa-webapp
Requires:   php5-curl, php5-fileinfo
Group:		Productivity/Networking/Email/Clients

%description dropboxattachment
Allows the user to attach the files from DropBox to an email.

%package extbox
Version:	0.1
Summary:	Image attachment preview plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description extbox
Default viewer for image attachments; this will open the image in a
lightbox.

%package facebook
Version:	0.1
Summary:	Facebook integration plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description facebook
Zarafa Facebook Integration allows you to import your Facebook events
into the Zarafa calendar.

%package facebookwidget
Version:	0.1
Summary:	Facebook widget plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description facebookwidget
(Upstream has provided no description.)

%package feedback
Version:	0.1
Summary:	Feedback collector plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description feedback
Adds a "Got feedback" button so all users can give feedback directly
to Zarafa.

%package folderwidgets
Version:	0.1
Summary:	Folder widgets plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description folderwidgets
A collection of widgets which can show the contents of some of the
default folders for a user.

%package gmaps
Version:	0.1
Summary:	Google Maps plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description gmaps
Shows contact address on Google Maps.

%package oauthlib
Version:	1.0
Summary:	OAuth v2.0 protocol library plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description oauthlib
Allows you to easily create your own API classes which utilizes the
OAuth authentication.

%package pdfbox
Version:	0.1
Summary:	PDF attachment viewer plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description pdfbox
Default viewer for PDF document attachments, this will open the
document in a lightbox.

%package quickitems
Version:	0.1
Summary:	Quick Items plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description quickitems
Special widgets for easily creating new Mails, Appointments, Contacts,
Tasks and Notes.

%package salesforce
Version:	0.1
Summary:	Salesforce plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description salesforce
Integrates Salesforce into the Zarafa environment.

%package shellgame
Version:	0.1
Summary:	Shell game plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description shellgame
A nice shellgame.

%package spreed
Version:	1.2
Summary:	Spreed integration plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description spreed
Zarafa Spreed integration allows you to set-up a conference call from
within emails, contact groups, or single contact cards.

%package statslogging
Version:	1.0
Summary:	User interface statistics logging plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description statslogging
Does logging of the user inferface interaction statistics.

%package sugarcrm
Version:	0.1
Summary:	SugarCRM Webapp archive plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description sugarcrm
Allows to archive a selected record to SugarCRM.

%package twidget
Version:	1.1
Summary:	Twitter widget plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description twidget
Displays the Twitter feed of the currently selected email.

%package xmpp
Version:	1.0
Summary:	XMPP plugin for zarafa-webapp
Group:		Productivity/Networking/Email/Clients

%description xmpp
Implements the XMPP based chat client for the Zarafa WebApp.

%package zdeveloper
Version:	0.1
Summary:	Developer plugin for zarafa-webapp
Group:		Development/Debug

%description zdeveloper
Shows all available insertion points on the screen.

%package zperformance
Version:	0.1
Summary:	Performance monitoring plugin for zarafa-webapp
Group:		Development/Debug

%description zperformance
Assistance for measuring performance.

%prep
%setup -qn webapp-%rversion
%patch -P 3 -p1
# Hello Ivo....
find . -type f "(" -name "*.js" -o -name "*.php" ")" \
	-exec chmod a-x "{}" "+";

%build
ant deploy deploy-plugins;

%install
d="%buildroot/%_datadir";
mkdir -p "$d";
cp -a deploy "$d/%name";
mkdir -p "%buildroot/%_sysconfdir/apache2/conf.d"
mv "$d/%name/zarafa-webapp.conf" "%buildroot/%_sysconfdir/apache2/conf.d"
mkdir -p "%buildroot/%_sysconfdir/zarafa/webapp"
mv "$d/%name/config.php.dist" "%buildroot/%_sysconfdir/zarafa/webapp/config.php"
ln -s "%_sysconfdir/zarafa/webapp/config.php" \
	"$d/%name/config.php"
rm "$d/%name/debug.php.dist"
mkdir -p "%buildroot/var/lib/%name/tmp"
%if "%{?fdupes:1}"
%fdupes %buildroot
%endif

%files
%defattr(-,root,root)
%_datadir/%name
%exclude %plugindir/*
%exclude %langdir
%dir %_sysconfdir/zarafa
%dir %_sysconfdir/zarafa/webapp
%config(noreplace) %_sysconfdir/zarafa/webapp/config.php
%dir %_sysconfdir/apache2
%dir %_sysconfdir/apache2/conf.d
%config(noreplace) %_sysconfdir/apache2/conf.d/zarafa-webapp.conf
%dir /var/lib/zarafa-webapp
%dir %attr(0775, wwwrun, www) /var/lib/zarafa-webapp/tmp

%files lang
%defattr(-,root,root)
%dir %langdir
%lang(ca_ES) %langdir/ca_ES.UTF-8
%lang(cs_CZ) %langdir/cs_CZ.UTF-8
%lang(da_DK) %langdir/da_DK.UTF-8
%lang(de_DE) %langdir/de_DE.UTF-8
%lang(en_US) %langdir/en_US.UTF-8
%lang(es_CA) %langdir/es_CA.UTF-8
%lang(es_ES) %langdir/es_ES.UTF-8
%lang(fi_FI) %langdir/fi_FI.UTF-8
%lang(fr_FR) %langdir/fr_FR.UTF-8
%lang(he_IL) %langdir/he_IL.UTF-8
%lang(hu_HU) %langdir/hu_HU.UTF-8
%lang(it_IT) %langdir/it_IT.UTF-8
%lang(ja_JP) %langdir/ja_JP.UTF-8
%lang(lt_LT) %langdir/lt_LT.UTF-8
%lang(nb_NO) %langdir/nb_NO.UTF-8
%lang(nl_NL) %langdir/nl_NL.UTF-8
%lang(pl_PL) %langdir/pl_PL.UTF-8
%lang(pt_BR) %langdir/pt_BR.UTF-8
%lang(pt_PT) %langdir/pt_PT.UTF-8
%lang(ru_RU) %langdir/ru_RU.UTF-8
%lang(sv_SE) %langdir/sv_SE.UTF-8
%lang(uk_UA) %langdir/uk_UA.UTF-8
%lang(zh_CN) %langdir/zh_CN.UTF-8

%files browsercompatibility
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/browsercompatibility

%files clockwidget
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/clockwidget

%files contactfax
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/contactfax

%files dropboxattachment
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/dropboxattachment

%files extbox
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/extbox

%files facebook
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/facebook

%files facebookwidget
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/facebookwidget

%files feedback
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/feedback

%files folderwidgets
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/folderwidgets

%files gmaps
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/gmaps

%files oauthlib
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/oauthlib

%files pdfbox
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/pdfbox

%files quickitems
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/quickitems

%files salesforce
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/salesforce

%files shellgame
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/shellgame

%files spreed
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/spreed

%files statslogging
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/statslogging

%files sugarcrm
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/sugarcrm

%files twidget
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/twidget

%files xmpp
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/xmpp

%files zdeveloper
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/zdeveloper

%files zperformance
%defattr(-,root,root)
%dir %_datadir/%name
%dir %plugindir
%plugindir/zperformance

%changelog