## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://gitlab.com/davical-project/davical Name: davical Summary: CalDAV Server Version: 1.1.13 %global tag r%{version} Release: %autorelease %forgemeta Group: System Environment/Daemons License: GPL and LGPL URL: %{forgeurl} Source: %{forgesource} BuildArch: noarch BuildRequires: php-awl sed rpm_macro(forgemeta) rpm_macro(forgesetup) demus-packaging make gettext phpunit Requires: php php-gettext php-pgsql Requires: postgresql postgresql-server Requires: php-awl Requires: perl-YAML Requires: perl-DBD-Pg %description The DAViCal CalDAV Server is designed to trivially store CalDAV calendars, such as those from Evolution, Sunbird/Lightning, Mulberry, iCal, iPhone or SOHO Organizer, in a central location, providing shared calendars, free/busy publication and a basic administration interface. %prep %verify_source_checksum %forgesetup %build 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 sed -i 's:../../awl/inc:%{_datadir}/php/awl/inc:' htdocs/always.php sed -i 's:AWL_LOCATION="../awl":AWL_LOCATION="%{_datadir}/php/awl":' scripts/po/rebuild-translations.sh make %install install -D -p -m 755 scripts/sync-remote-caldav.php %{buildroot}/%{_bindir}/sync-remote-caldav mkdir -p %{buildroot}%{_datadir}/%{name} cp -a dba htdocs locale inc %{buildroot}/%{_datadir}/%{name} install -D -p -m 644 config/example-config.php %{buildroot}/%{_sysconfdir}/%{name}/config.php install -D -p -m 644 config/apache-davical.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/davical.conf %check sed -i "s#set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/awl/inc' . PATH_SEPARATOR . 'inc');#set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/php/awl/inc' . PATH_SEPARATOR . 'inc');#" testing/phpunit/ExpansionTest.php sed -i "s#set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/awl/inc' . PATH_SEPARATOR . 'inc');#set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/php/awl/inc' . PATH_SEPARATOR . 'inc');#" testing/phpunit/RangeTest.php make test %files %defattr(-,root,root) %{_datadir}/%{name}/* %config(noreplace) %{_sysconfdir}/%{name}/config.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_bindir}/sync-remote-caldav %doc README ChangeLog %changelog ## START: Generated by rpmautospec * Tue Feb 22 2011 Felix Möller - 0.9.9.4 - Initial Version of DAViCal package ## END: Generated by rpmautospec