%define serverdir %(/usr/sbin/apxs -q htdocsdir 2>/dev/null) %if "%{?installdir}" == "" %define installdir %{serverdir}/horde/kronolith %endif %define pkgname %{name}-h3 Name: kronolith Version: 2.3.4 Release: 1mamba Summary: A robust web-based calendar for individual users Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.horde.org Source: http://ftp.horde.org/pub/kronolith/kronolith-h3-%{version}.tar.gz Patch0: kronolith-h3-2.1.5-fix_php_path.patch License: GPL Requires: php >= 5.1.5 Requires: horde >= 3.1.4 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Kronolith calendar project currently provides a robust web-based calendar for individual users with repeating events, and a smart algorithm to display a whole day of events even if many of them overlap each other. Future plans include support for shared calendars and merging multiple calendars into a single view. %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 %build %install [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" ( cd config; for f in *.dist; do mv $f ${f/.dist/}; done ) install -d %{buildroot}%{installdir} cp -R . %{buildroot}%{installdir} rm -f %{buildroot}%{installdir}/{COPYING,README} %clean [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{installdir} %{installdir}/* %exclude %{installdir}/scripts/migrate_to_sql_driver.php~ %doc COPYING README %changelog * Sun Jun 20 2010 Automatic Build System 2.3.4-1mamba - automatic update by autodist * Thu Jan 14 2010 Automatic Build System 2.3.3-1mamba - automatic update by autodist * Sat Sep 19 2009 Automatic Build System 2.3.2-1mamba - automatic update by autodist * Fri Apr 03 2009 Silvan Calarco 2.3.1-1mamba - automatic update by autodist * Sun Oct 05 2008 Silvan Calarco 2.3-1mamba - automatic update by autodist * Sat Aug 25 2007 Tiziana Ferro 2.1.5-1mamba - update to 2.1.5 * Tue May 03 2005 Davide Madrisan 1.1.4-1qilnx - update to version 1.1.4 by autospec * Tue Sep 10 2003 Silvan Calarco 1.1-1qilnx - first build