1 %define hordeapp kronolith
3 %include /usr/lib/rpm/macros.php
4 Summary: Kronolith - calendar for Horde
5 Summary(pl.UTF-8): Kronolith - kalendarz dla Horde
6 Name: horde-%{hordeapp}
10 Group: Applications/WWW
11 Source0: ftp://ftp.horde.org/pub/kronolith/%{hordeapp}-h3-%{version}.tar.gz
12 # Source0-md5: 3305f6f2951c863b57c39d258d796ae6
13 Source1: %{hordeapp}-apache.conf
14 Source2: %{hordeapp}-httpd.conf
15 URL: http://www.horde.org/kronolith/
16 BuildRequires: rpm-php-pearprov >= 4.0.2-98
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires: horde >= 3.1
19 Requires: php(core) >= 4.1.0
22 Suggests: php-pear-Date
23 Suggests: php-pear-Date_Holidays >= 0.17.1
24 Suggests: php-pear-XML_Serializer
26 Conflicts: apache-base < 2.4.0-1
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _noautoreq 'pear(Horde.*)'
32 %define hordedir /usr/share/horde
33 %define _appdir %{hordedir}/%{hordeapp}
34 %define _webapps /etc/webapps
35 %define _webapp horde-%{hordeapp}
36 %define _sysconfdir %{_webapps}/%{_webapp}
39 Kronolith is the Horde calendar application. It provides a stable and
40 featureful individual calendar system for every Horde user, with
41 integrated collaboration/scheduling features. It makes extensive use
42 of the Horde Framework to provide integration with other applications.
44 Right now, Kronolith implements a solid, stand-alone calendar system,
45 allowing repeating events, all-day events, custom fields, keywords,
46 shared calendars, iCalendar support, generation of free/busy
47 information, and managing multiple users through Horde Authentication.
48 The calendar API that Kronolith uses is abstracted such that it could
49 work with any backend, but right now we provide SQL (abstracted to
50 support most databases, including MySQL, PostgreSQL, Oracle, and MSSQL
51 via PEAR DB), MCAL, and Kolab backend libraries.
53 %description -l pl.UTF-8
54 Kronolith to kalendarz będący aplikacją dla Horde. Dostarcza stabilny
55 system kalendarza o dużych możliwościach dla każdego użytkownika Horde
56 wraz ze zintegrowanymi możliwościami współpracy/planowania.
57 Intensywnie wykorzystuje szkielet Horde w celu integracji z innymi
60 Jak na razie Kronolith implementuje solidny, samodzielny system
61 kalendarza, pozwalający na powtarzanie zdarzeń, zdarzenia codzienne,
62 własne pola, słowa kluczowe, współdzielone kalendarze, obsługę
63 iCalendar, generowanie informacji o wolnym i zajętym czasie oraz
64 zarządzanie wieloma użytkownikami poprzez uwierzytelnianie Horde. API
65 kalendarza używane przez Kronolith jest abstrakcyjne, tak że może
66 działać z dowolnym backendem, ale aktualnie dostarczane są biblioteki
67 backendów SQL (jako abstrakcja do obsługi większości baz, w tym MySQL,
68 PostgreSQL, Oracle i MS SQL poprzez PEAR DB), MCAL i Kolab.
71 %setup -q -n %{hordeapp}-h3-%{version}
73 for i in config/*.dist; do
74 mv $i config/$(basename $i .dist)
77 # Described in documentation as dangerous file...
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/docs}
84 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
85 cp -a config/* $RPM_BUILD_ROOT%{_sysconfdir}
86 echo '<?php ?>' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.php
87 touch $RPM_BUILD_ROOT%{_sysconfdir}/conf.php.bak
88 cp -a calendars feed js lib locale templates themes $RPM_BUILD_ROOT%{_appdir}
89 cp -a docs/CREDITS $RPM_BUILD_ROOT%{_appdir}/docs
91 ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/config
92 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
93 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
96 rm -rf $RPM_BUILD_ROOT
99 if [ ! -f %{_sysconfdir}/conf.php.bak ]; then
100 install /dev/null -o root -g http -m660 %{_sysconfdir}/conf.php.bak
103 if [ "$1" = 1 ]; then
104 %banner %{name} -e <<EOF
106 If you are installing Kronolith for the first time, you must now
107 create the Kronolith database tables. Look into directory
108 %{_docdir}/%{name}-%{version}/sql
109 to find out how to do this for your database.
113 %triggerin -- apache1 < 1.3.37-3, apache1-base
114 %webapp_register apache %{_webapp}
116 %triggerun -- apache1 < 1.3.37-3, apache1-base
117 %webapp_unregister apache %{_webapp}
119 %triggerin -- apache-base
120 %webapp_register httpd %{_webapp}
122 %triggerun -- apache-base
123 %webapp_unregister httpd %{_webapp}
126 %defattr(644,root,root,755)
127 %doc README docs/* scripts/*
128 %dir %attr(750,root,http) %{_sysconfdir}
129 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
130 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
131 %attr(660,root,http) %config(noreplace) %{_sysconfdir}/conf.php
132 %attr(660,root,http) %config(noreplace) %ghost %{_sysconfdir}/conf.php.bak
133 %attr(640,root,http) %config(noreplace) %{_sysconfdir}/[!c]*.php
134 %attr(640,root,http) %{_sysconfdir}/conf.xml