Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > c2cf47dfcc93943d2f69d3f71be9f952 > files > 2

kronolith-2.3.5-1.fc13.src.rpm

Name: 		kronolith
Version:	2.3.5
Release:	1%{?dist}
Summary:	The Horde calendar application

Source0:	ftp://ftp.horde.org/pub/%{name}/%{name}-h3-%{version}.tar.gz
Group:		Applications/Internet
License:	GPLv2
URL:		http://www.horde.org/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	gettext
Requires:	php >= 4.3.0
Requires:       php-pear-Date
Requires:	horde >= 3

%description
Kronolith is the Horde calendar application.  It provides repeating
events, all-day events, custom fields, keywords, and managing multiple
users through Horde Authentication.  The calendar API that Kronolith
uses is abstracted; MCAL and SQL drivers are currently provided.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Kronolith)
please visit http://www.horde.org/.

READ %{_docdir}/%{name}-%{version}/README.Fedora AFTER INSTALLING FOR
MORE INSTRUCTIONS!

%prep
%setup -q -n %{name}-h3-%{version}

# Replace #!/usr/local/bin/php with #!/usr/bin/php
for d in scripts/*.php scripts/crond; do
	perl -i -pe 's|^#!/usr/local/bin/php|#!/usr/bin/php|' "$d"
done

cat <<_EOF_ >README.Fedora
If you have enabled Horde's DB Preferences driver and with to use it to store
kronolith data as well, you must create the appropriate tables manually.  To do
do, execute the SQL in:

%{_datadir}/horde/%{name}/scripts/sql/%{name}.<dbtype>.sql

where <dbtype> is the type of DB backend you are using.
_EOF_


%build


%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_datadir}/horde/%{name}
# Copy eveything... except config and docs
cp -a * %{buildroot}%{_datadir}/horde/%{name}
rm -rf %{buildroot}%{_datadir}/horde/%{name}/config/
rm -rf %{buildroot}%{_datadir}/horde/%{name}/docs/
rm %{buildroot}%{_datadir}/horde/%{name}/COPYING
rm %{buildroot}%{_datadir}/horde/%{name}/README*

# Copy locale *.mo files into /usr/share/locale
for lang in %{buildroot}%{_datadir}/horde/%{name}/locale/*; do
	mkdir -p %{buildroot}%{_datadir}/locale/`basename $lang`/LC_MESSAGES
	if [ -f $lang/LC_MESSAGES/*.mo ]; then
		for file in $lang/LC_MESSAGES/*.mo; do
			cp -a $file %{buildroot}%{_datadir}/locale/`basename $lang`/LC_MESSAGES/
		done
	fi
done
%find_lang %{name}

# Put our config files in /etc/horde/kronolith and make symlinks
install -m 0770 -d %{buildroot}%{_sysconfdir}/horde/%{name}
cp -a config/* %{buildroot}%{_sysconfdir}/horde/%{name}
ln -fs ../../../..%{_sysconfdir}/horde/%{name} %{buildroot}%{_datadir}/horde/%{name}/config

# Create default config files
pushd %{buildroot}%{_sysconfdir}/horde/%{name}
for d in *.dist; do
	d0=`basename $d .dist`
	if [ ! -f "$d0" ]; then
		cp -p $d $d0
	fi
done
popd

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc docs/ COPYING README README.Fedora

%attr(0770,apache,apache) %config %{_sysconfdir}/horde/%{name}
%attr(0640,apache,apache) %config %{_sysconfdir}/horde/%{name}/*.dist
%attr(0660,apache,apache) %config(noreplace) %{_sysconfdir}/horde/%{name}/*.php

%{_datadir}/horde/%{name}

%changelog
* Wed Feb 09 2011 Nick Bebout <nb@fedoraproject.org> - 2.3.5-1
- Upgrade to 2.3.5

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jul 24 2010 Nick Bebout <nb@fedoraproject.org> - 2.3.4-1
- Upgrade to 2.3.4

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed May 28 2008 Nigel Jones <dev@nigelj.com> - 2.2-1
- New Upstream (2.2) & Spec file cleanups

* Wed Apr 30 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> 2.1.8-1
- Upgraded to 2.1.8:
	Fixed XSS in the add event screen.
	Added Turkish translation.

* Mon Jan 14 2008 Brandon Holbrook <fedora at theholbrooks.org> 2.1.7-1
- Upgraded to 2.1.7

* Sat Oct 20 2007 Brandon Holbrook <fedora at theholbrooks.org> 2.1.6-1
- Upgraded to 2.1.6

* Sat Mar 17 2007 Brandon Holbrook <fedora at theholbrooks.org> 2.1.5-1
- Upgraded to upstream 2.1.5

* Sat Dec 30 2006 Brandon Holbrook <fedora at theholbrooks.org> 2.1.4-2
- Created README.Fedora with some SQL instructions

* Thu Dec 28 2006 Brandon Holbrook <fedora at theholbrooks.org> 2.1.4-1
- Completely reworked for Fedora
- config files moved to /etc/horde/kronolith
- use find_lang to pull in translations
- upgraded to upsream version 2.1.4

* Tue Nov 14 2006 Johnny Hughes <johnny@cetnos.org> 2.1.3.c4
- upgraded to upsream version 2.1.3

* Wed Aug 16 2006 Johnny Hughes <johnny@cetnos.org> 2.1.2.c4
- rolled in upstream update 2.1.2
- changed all config files from config to config(noreplace)

* Fri Apr 28 2006 Johnny Hughes <johnny@centos.org> 2.1.1.c4
- Rolled in upstream changes to 2.1.1

* Tue Apr 11 2006 Johnny Hughes <johnny@centos.org> 2.1.c4
- Rolled in upstream release to 2.1

* Mon Dec 12 2005 Johnny Hughes <johnny@centos.org> 2.0.6-1.centos4
- Rolled in upstream release to 2.0.6
- See this link: http://marc.theaimsgroup.com/?l=horde-announce&m=113433037303192&w=2

* Tue Nov 29 2005 Johnny Hughes <johnny@centos.org> 2.0.5-1.centos4
- Rolled in upstream release to 2.0.5

* Sat Oct 29 2005 Johnny Hughes <johnny@centos.org> 2.0.4-1.centos4
- Initial build for CentOS4
- Changed the html location to be consistent w/CentOS web apps (/usr/share)

* Wed Jun 15 2005 Greg Swallow <gregswallow@skynetonline.ca>
- [2.0.3-1sme02]
- revamped for kronolith-h3-2.0.3 on SME7

* Tue Apr  8 2004 Douglas Musty <d.musty@acsalaska.net>
- [1.1.2-1es]
- Rebuilt with Kronolith 1.1.2

* Tue Mar 23 2004 Douglas Musty <d.musty@acsalaska.net>
- [1.1.1-1es]
- Rebuilt with Kronolith 1.1.1
- Patch SQL schema to USE horde database
- Change horde requirement to version 2.2 or greater
- Change apache requirement to version 1.3.27 or greater
- Change php requirement to version 4.1.2 or greater

* Tue Jul  1 2003 Dan Brown <dan@familybrown.org>
- [1.1-1es]
- Rebuilt with Kronolith 1.1

* Sun Apr  6 2003 Dan Brown <dan@familybrown.org>
- [1.0-1es]
- Modified variables for compatibility with Mitel SME Server
- Patched SQL schema to CREATE TABLE IF NOT EXISTS

* Mon Jun 24 2002 Brent J. Nordquist <bjn@horde.org>
- 1.0 release 2

* Thu Jun 13 2002 Brent J. Nordquist <bjn@horde.org>
- 1.0 release 1 (private beta)

* Sun Dec 16 2001 Brent J. Nordquist <bjn@horde.org>
- initial RPM for Kronolith 0.0.3