File horde3-kronolith.spec of Package horde3-kronolith

#
# spec file for package horde3-kronolith
#
# Copyright (c) 2011 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/
#

# norootforbuild

%define _hordedir %(%{_sbindir}/apxs2 -q datadir)/htdocs/horde/
%define _kronolithdir %{_hordedir}/kronolith
%define _pversion 2.3.6

Name:           horde3-kronolith
Version:        2.3.6
Release:        1
Summary:        The Horde calendar application
License:        GPL
Group:          Productivity/Networking/Other
Url:            http://www.horde.org/kronolith
Source0:        ftp://ftp.horde.org/pub/kronolith/kronolith-h3-2.3.6.tar.gz
#Patch1:			HK-GW-Fix_create_new_event.patch
#Patch2:			HK-GW-Fix_share_right_editing.patch
#Patch3:			HK-UV-Fix_list_events.patch
#Patch4:			HK-GW-kronolith_2.2_RC1-Fbview_relevance.patch
#Patch5:			HK-GW-kronolith_2.2_RC1-Fbview_xfb_access.patch
#Patch6:			HK-SB-kronolith_2.2_RC1-Fbview_extra_params.patch
#Patch7:			HK-SB-kronolith_2.2_RC1-Fbview_save_attendees.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       kronolith = %{version}
Obsoletes:      kronolith <= 2.3.4

Requires:       horde3 >= 3.3.0
Requires:       php5
Requires:       php5-pear-HTTP_Request
Requires:       php5-pear-Date, php5-pear-date_holidays
Requires:       php5-pear-DB, php5-pear-Mail
BuildRequires:  apache2-devel horde3

%description
Kronolith is the Horde calendar application. It provides a stable
and featureful individual calendar system for every Horde user, with
integrated collaboration/scheduling features. It makes extensive use
of the Horde Framework to provide integration with other
applications.

Right now, Kronolith implements a solid, stand-alone calendar system,
allowing repeating events, all-day events, custom fields, keywords,
shared calendars, iCalendar support, generation of free/busy
information, and managing multiple users through Horde
Authentication. The calendar API that Kronolith uses is abstracted
such that it could work with any backend, but right now we provide
SQL (abstracted to support most databases, including MySQL,
PostgreSQL, Oracle, and MSSQL via PEAR DB), and Kolab backend
libraries.

Authors:
--------
	
	The Kronolith Team


%prep
%setup -qn kronolith-h3-%{_pversion}

%build
pushd config/
for i in *.dist; do %__mv $i ${i%.dist}; done
popd

%install
%__mkdir_p %{buildroot}%{_kronolithdir}
%__cp -r ./* %{buildroot}%{_kronolithdir}
%__rm -rf %{buildroot}%{_kronolithdir}/{docs,README,COPYING}
%find_lang kronolith

%clean
%__rm -rf %{buildroot}

%files -f kronolith.lang
%defattr(-, root, root)
%doc docs README COPYING
%dir %{_kronolithdir}
%{_kronolithdir}/*.php
%{_kronolithdir}/calendars
%{_kronolithdir}/feed
%{_kronolithdir}/js
%{_kronolithdir}/lib
%{_kronolithdir}/locale
%{_kronolithdir}/po
%{_kronolithdir}/scripts
%{_kronolithdir}/templates
%{_kronolithdir}/themes
%attr(0750, wwwrun, www) %dir %{_kronolithdir}/config
%attr(0640, wwwrun, www) %config(noreplace) %{_kronolithdir}/config/*
%attr(0640, wwwrun, www) %config(noreplace) %{_kronolithdir}/config/.htaccess

%changelog
openSUSE Build Service is sponsored by