Update website to reflect new default calendar name.
[davical.git] / davical.spec.in
blob44035ee6911fbc6c9639e868835c7ac5437dc3bb
1 %define issnapshot @@ISSNAPSHOT@@
2 %define gitrev @@GITREV@@
4 %if 0%{issnapshot}
5 %define snapshotversionstring .%{gitrev}git
6 %define snapshotpackagestring -git%{gitrev}
7 %endif
9 Name: davical
10 Summary: CalDAV Server
11 Version: @@VERSION@@
12 Release: 1%{?snapshotversionstring}%{?dist}
13 Group: System Environment/Daemons
14 License: GPL and LGPL
15 Source: http://debian.mcmillan.net.nz/packages/davical/davical-%{version}%{?snapshotpackagestring}.tar.gz
17 URL: http://davical.org/
18 BuildArch: noarch
19 BuildRequires: php-awl
20 BuildRequires: sed
21 Requires: php php-gettext php-pgsql
22 Requires: postgresql postgresql-server
23 Requires: php-awl
24 Requires: perl-YAML
25 Requires: perl-DBD-Pg
27 %description
28 The DAViCal CalDAV Server is designed to trivially store
29 CalDAV calendars, such as those from Evolution, Sunbird/Lightning,
30 Mulberry, iCal, iPhone or SOHO Organizer, in a central location,
31 providing shared calendars, free/busy publication and a basic
32 administration interface.
35 %prep
36 %setup -q -n "davical-%{version}%{?snapshotpackagestring}"
38 %build
39 sed -i "s#set_include_path('../inc:../htdocs:/usr/share/awl/inc');#set_include_path('/usr/share/davical/inc:/usr/share/davical/htdocs:/usr/share/php/awl/inc');#" scripts/sync-remote-caldav.php
40 sed -i 's:../../awl/inc:%{_datadir}/php/awl/inc:' htdocs/always.php
41 sed -i 's:AWL_LOCATION="../awl":AWL_LOCATION="%{_datadir}/php/awl":' scripts/po/rebuild-translations.sh
42 make
44 %install
45 install -D -p -m 755 scripts/sync-remote-caldav.php %{buildroot}/%{_bindir}/sync-remote-caldav
47 mkdir -p %{buildroot}%{_datadir}/%{name}
48 cp -a dba htdocs locale inc %{buildroot}/%{_datadir}/%{name}
50 install -D -p -m 644 config/example-config.php %{buildroot}/%{_sysconfdir}/%{name}/config.php
52 install -D -p -m 644 config/apache-davical.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/davical.conf
54 %files
55 %defattr(-,root,root)
56 %{_datadir}/%{name}/*
57 %config(noreplace) %{_sysconfdir}/%{name}/config.php
58 %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
59 %{_bindir}/sync-remote-caldav
60 %doc README ChangeLog
62 %changelog
63 * Tue Feb 22 2011 Felix Möller <mail@felixmoeller.de> - 0.9.9.4
64 - Initial Version of DAViCal package