%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: bongo Version: 0.3.1 Release: 3%{?dist} Summary: An easy-to-use mail and calendar system Group: Applications/Productivity License: GPLv2 URL: http://bongo-project.org/Main_Page Source0: http://download.gna.org/%{name}/release/%{name}-%{version}.tar.bz2 Patch0: bongo-0.2.93-x86_64-clucene-fix.patch Patch1: bongo-0.3.1-libauthsqlite-rename.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libgcrypt-devel BuildRequires: gnutls-devel BuildRequires: clucene-core-devel BuildRequires: sqlite-devel BuildRequires: curl-devel BuildRequires: python-devel BuildRequires: openldap-devel BuildRequires: python-lxml BuildRequires: unixODBC-devel BuildRequires: doxygen BuildRequires: gettext BuildRequires: bison BuildRequires: flex Requires(pre): shadow-utils Requires: webserver %description Bongo is an easy-to-use mail and calendar system, offering a simple yet powerful user interface. The goal is to make sharing, organization, and communication simpler, quicker, and more useful %package devel Summary: Development files for Bongo Group: Development/Libraries Requires: %{name} = %{version}-%{release} pkgconfig %description devel Development files for Bongo %pre getent group bongo >/dev/null || groupadd -r bongo getent passwd bongo >/dev/null || \ useradd -r -g bongo -d %{_datadir}/bongo -s /sbin/nologin \ -c "dedicated user for running bongo" bongo exit 0 %prep %setup -q %patch0 -p1 -b .x86_64-clucene-fix.patch %patch1 -p1 -b .libauthsqlite-rename.patch %build %configure --enable-debug-cflags --with-user=bongo --with-clucene make %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # Let's remove all those naughty .la/.a files find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' %find_lang %{name} %find_lang %{name}-web cat %{name}-web.lang >> %{name}.lang %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING HACKING TODO %{_sbindir}/bongo* %{_libdir}/*.so.* %{_libdir}/bongo-auth/*.so.* %{_datadir}/bongo/ %{_datadir}/man/man1/bongo* %{_datadir}/man/man8/bongo* %config(noreplace)%{_sysconfdir}/bongo/logs.conf %{python_sitelib}/bongo/ %{_libexecdir}/bongo/ %{python_sitearch}/libbongo/ %files devel %defattr(-,root,root,-) %{_includedir}/bongo/ %{_libdir}/*.so %{_libdir}/bongo-auth/*.so %{_libdir}/pkgconfig/bongo.pc %changelog * Sat Feb 23 2008 David Nielsen - 0.3.1-3 - Correctly handle the config file - Nuke ABOUT-NLS * Wed Feb 06 2008 David Nielsen - 0.3.1-2 - Patch for libauthsqlite3 bug * Mon Feb 04 2008 David Nielsen - 0.3.1-1 - bump to 0.3.1 * Thu Jan 31 2008 David Nielsen - 0.3.0-1 - bump to 0.3.0 * Thu Jan 17 2008 David Nielsen - 0.2.93-2 - Blatently disregard warning about x86_64 clucene bug - Note: running Bongo on x86_64 thus might trigger a clucene bug * Wed Jan 16 2008 David Nielsen - 0.2.93-1 - Initial package