2007-10-04 23:04:09 +02:00
|
|
|
Summary: Scalable OpenGroupware.org (Inverse edition)
|
|
|
|
Name: sogo
|
2008-07-30 07:11:34 +02:00
|
|
|
Version: %{sogo_version}
|
|
|
|
Release: %{dist_suffix}%{?dist}
|
2007-10-04 23:04:09 +02:00
|
|
|
Vendor: http://www.inverse.ca/
|
|
|
|
Packager: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
License: GPL
|
|
|
|
URL: http://www.inverse.ca/contributions/sogo.html
|
|
|
|
Group: Productivity/Groupware
|
2008-07-30 07:11:34 +02:00
|
|
|
Source: SOGo-%{sogo_version}.tar.gz
|
2007-10-04 23:04:09 +02:00
|
|
|
Prefix: %{sogo_prefix}
|
|
|
|
AutoReqProv: off
|
2009-01-22 16:25:20 +01:00
|
|
|
Requires: gnustep-base sope%{sope_major_version}%{sope_minor_version}-core httpd sope%{sope_major_version}%{sope_minor_version}-core sope%{sope_major_version}%{sope_minor_version}-appserver sope%{sope_major_version}%{sope_minor_version}-ldap sope%{sope_major_version}%{sope_minor_version}-cards sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore
|
2007-10-04 23:04:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
2008-07-24 19:43:45 +02:00
|
|
|
BuildPreReq: gcc-objc gnustep-base gnustep-make sope%{sope_major_version}%{sope_minor_version}-appserver-devel sope%{sope_major_version}%{sope_minor_version}-core-devel sope%{sope_major_version}%{sope_minor_version}-ldap-devel sope%{sope_major_version}%{sope_minor_version}-mime-devel sope%{sope_major_version}%{sope_minor_version}-xml-devel sope%{sope_major_version}%{sope_minor_version}-gdl1-devel
|
2007-10-04 23:04:09 +02:00
|
|
|
%description
|
|
|
|
SOGo is a groupware server built around OpenGroupware.org (OGo) and
|
|
|
|
the SOPE application server. It focuses on scalability.
|
|
|
|
|
|
|
|
The Inverse edition of this project has many feature enhancements:
|
|
|
|
- CalDAV and GroupDAV compliance
|
|
|
|
- full handling of vCard as well as vCalendar/iCalendar formats
|
|
|
|
- support for folder sharing and ACLs
|
|
|
|
|
|
|
|
The Web interface has been rewritten in an AJAX fashion to provided a faster
|
|
|
|
UI for the users, consistency in look and feel with the Mozilla applications,
|
|
|
|
and to reduce the load of the transactions on the server.
|
|
|
|
|
2009-06-03 23:35:34 +02:00
|
|
|
%package -n sogo-tools
|
|
|
|
Summary: Command-line tools for SOGo
|
|
|
|
Group: Productivity/Groupware
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sogo-tools
|
|
|
|
Command-line tools for SOGo:
|
|
|
|
sogo-contacts-checkdoubles - check excessive amounts of records in addressbooks
|
|
|
|
sogo-contacts-removedoubles - intelligently remove contacts that may exist in addressbooks
|
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
%package -n sogo-devel
|
|
|
|
Summary: Development headers and libraries for SOGo
|
|
|
|
Group: Development/Libraries/Objective C
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sogo-devel
|
|
|
|
Development headers and libraries for SOGo. Needed to create modules.
|
|
|
|
|
|
|
|
%package -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore
|
|
|
|
Summary: Storage backend for folder abstraction.
|
|
|
|
Group: Development/Libraries/Objective C
|
|
|
|
Requires: sope%{sope_major_version}%{sope_minor_version}-gdl1
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore
|
|
|
|
The storage backend implements the "low level" folder abstraction, which is
|
|
|
|
basically an arbitary "BLOB" containing some document.
|
|
|
|
|
|
|
|
SOPE is a framework for developing web applications and services. The
|
|
|
|
name "SOPE" (SKYRiX Object Publishing Environment) is inspired by ZOPE.
|
|
|
|
|
|
|
|
%package -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore-devel
|
|
|
|
Summary: Development files for the GNUstep database libraries
|
|
|
|
Group: Development/Libraries/Objective C
|
|
|
|
Requires: sope%{sope_major_version}%{sope_minor_version}-gdl1
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore-devel
|
2009-06-03 23:35:34 +02:00
|
|
|
This package contains the header files for the SOPE GDLContentStore library.
|
2007-10-04 23:04:09 +02:00
|
|
|
|
|
|
|
SOPE is a framework for developing web applications and services. The
|
|
|
|
name "SOPE" (SKYRiX Object Publishing Environment) is inspired by ZOPE.
|
|
|
|
|
2008-07-24 19:43:45 +02:00
|
|
|
%package -n sope%{sope_major_version}%{sope_minor_version}-cards
|
|
|
|
Summary: SOPE versit parsing library for iCal and VCard formats
|
|
|
|
Group: Development/Libraries/Objective C
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sope%{sope_major_version}%{sope_minor_version}-cards
|
|
|
|
SOPE versit parsing library for iCal and VCard formats
|
|
|
|
|
|
|
|
%package -n sope%{sope_major_version}%{sope_minor_version}-cards-devel
|
|
|
|
Summary: SOPE versit parsing library for iCal and VCard formats
|
|
|
|
Group: Development/Libraries/Objective C
|
|
|
|
Requires: sope%{sope_major_version}%{sope_minor_version}-cards
|
|
|
|
AutoReqProv: off
|
|
|
|
|
|
|
|
%description -n sope%{sope_major_version}%{sope_minor_version}-cards-devel
|
|
|
|
SOPE versit parsing library for iCal and VCard formats
|
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
########################################
|
|
|
|
%prep
|
|
|
|
rm -fr ${RPM_BUILD_ROOT}
|
2008-07-24 19:43:45 +02:00
|
|
|
%setup -q -n SOGo
|
2007-10-04 23:04:09 +02:00
|
|
|
|
|
|
|
# ****************************** build ********************************
|
|
|
|
%build
|
|
|
|
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
|
2009-03-24 16:14:20 +01:00
|
|
|
./configure
|
2007-10-04 23:04:09 +02:00
|
|
|
|
2008-07-24 19:43:45 +02:00
|
|
|
case %{_target_platform} in
|
|
|
|
ppc64-*)
|
|
|
|
cc="gcc -m64";
|
|
|
|
ldflags="-m64";;
|
|
|
|
*)
|
|
|
|
cc="gcc";
|
|
|
|
ldflags="";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
make CC="$cc" LDFLAGS="$ldflags"
|
2007-10-04 23:04:09 +02:00
|
|
|
|
|
|
|
# ****************************** install ******************************
|
|
|
|
%install
|
2008-07-24 19:43:45 +02:00
|
|
|
|
|
|
|
case %{_target_platform} in
|
|
|
|
ppc64-*)
|
|
|
|
cc="gcc -m64";
|
|
|
|
ldflags="-m64";;
|
|
|
|
*)
|
|
|
|
cc="gcc";
|
|
|
|
ldflags="";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} \
|
|
|
|
GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \
|
|
|
|
CC="$cc" LDFLAGS="$ldflags" \
|
2007-10-04 23:04:09 +02:00
|
|
|
install
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
|
2009-03-16 22:13:01 +01:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
|
2007-10-04 23:04:09 +02:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/etc/httpd/conf.d
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/run/sogo
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/log/sogo
|
2008-07-30 07:11:34 +02:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/var/spool/sogo
|
2007-10-04 23:04:09 +02:00
|
|
|
cp Apache/SOGo.conf ${RPM_BUILD_ROOT}/etc/httpd/conf.d/
|
2009-03-16 22:13:01 +01:00
|
|
|
cp Scripts/tmpwatch ${RPM_BUILD_ROOT}/etc/cron.daily/sogo-tmpwatch
|
2008-07-24 19:43:45 +02:00
|
|
|
cp Scripts/sogo-init.d-redhat ${RPM_BUILD_ROOT}/etc/init.d/sogod
|
|
|
|
cp Scripts/sogod-wrapper ${RPM_BUILD_ROOT}/usr/sbin/sogod
|
2007-10-04 23:04:09 +02:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}%{prefix}/Tools/test_quick_extract
|
|
|
|
|
|
|
|
# ****************************** clean ********************************
|
|
|
|
%clean
|
|
|
|
rm -fr ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
# ****************************** files ********************************
|
|
|
|
%files -n sogo
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
/etc/init.d/sogod
|
2009-03-16 22:13:01 +01:00
|
|
|
/etc/cron.daily/sogo-tmpwatch
|
2007-10-04 23:04:09 +02:00
|
|
|
/usr/sbin/sogod
|
|
|
|
/var/run/sogo
|
|
|
|
/var/log/sogo
|
2008-07-30 07:11:34 +02:00
|
|
|
/var/spool/sogo
|
2009-03-19 02:22:09 +01:00
|
|
|
%{prefix}/Tools/Admin/sogod
|
2007-10-04 23:04:09 +02:00
|
|
|
%{prefix}/Library/Libraries/libSOGo.so.*
|
|
|
|
%{prefix}/Library/Libraries/libSOGoUI.so.*
|
|
|
|
%{prefix}/Library/Libraries/libOGoContentStore.so*
|
2009-03-19 02:22:09 +01:00
|
|
|
%{prefix}/Library/SOGo/*.SOGo
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Resources
|
2009-03-19 15:30:06 +01:00
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/1/libSOGo.so.*
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/1/Resources
|
2009-03-19 02:22:09 +01:00
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/Current
|
|
|
|
%{prefix}/Library/SOGo/Templates
|
|
|
|
%{prefix}/Library/SOGo/WebServerResources
|
2007-10-04 23:04:09 +02:00
|
|
|
%{prefix}/Library/OCSTypeModels/appointment.ocs
|
|
|
|
%{prefix}/Library/OCSTypeModels/contact.ocs
|
|
|
|
%{prefix}/Library/OCSTypeModels/appointment-oracle.ocs
|
|
|
|
%{prefix}/Library/OCSTypeModels/contact-oracle.ocs
|
|
|
|
%{prefix}/Library/WOxElemBuilders-%{sope_version}/SOGoElements.wox
|
|
|
|
|
2008-07-24 19:43:45 +02:00
|
|
|
%config %{_sysconfdir}/httpd/conf.d/SOGo.conf
|
2009-05-22 03:27:26 +02:00
|
|
|
%doc ChangeLog README NEWS Scripts/sql-update-20070724.sh Scripts/sql-update-20070822.sh Scripts/sql-update-20080303.sh Scripts/sql-update-101_to_102.sh
|
2007-10-04 23:04:09 +02:00
|
|
|
|
2009-06-03 23:35:34 +02:00
|
|
|
%files -n sogo-tools
|
|
|
|
%{prefix}/Tools/Admin/sogo-contacts-*
|
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
%files -n sogo-devel
|
|
|
|
%{prefix}/Library/Headers/SOGo
|
|
|
|
%{prefix}/Library/Headers/SOGoUI
|
|
|
|
%{prefix}/Library/Libraries/libSOGo.so
|
|
|
|
%{prefix}/Library/Libraries/libSOGoUI.so
|
2009-03-19 02:22:09 +01:00
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Headers
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/libSOGo.so
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/SOGo
|
2009-03-19 15:30:06 +01:00
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/1/Headers
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/1/libSOGo.so
|
|
|
|
%{prefix}/Library/SOGo/SOGo.framework/Versions/1/SOGo
|
2007-10-04 23:04:09 +02:00
|
|
|
|
|
|
|
%files -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{prefix}/Library/Libraries/libGDLContentStore*.so.%{sope_version}*
|
|
|
|
|
|
|
|
%files -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore-devel
|
|
|
|
%{prefix}/Library/Headers/GDLContentStore
|
|
|
|
%{prefix}/Library/Libraries/libGDLContentStore*.so
|
|
|
|
|
2008-07-24 19:43:45 +02:00
|
|
|
%files -n sope%{sope_major_version}%{sope_minor_version}-cards
|
|
|
|
%{prefix}/Library/Libraries/libNGCards.so.*
|
|
|
|
%{prefix}/Library/SaxDrivers-%{sope_major_version}.%{sope_minor_version}/*.sax
|
|
|
|
%{prefix}/Library/SaxMappings
|
|
|
|
|
|
|
|
%files -n sope%{sope_major_version}%{sope_minor_version}-cards-devel
|
|
|
|
%{prefix}/Library/Headers/NGCards
|
|
|
|
%{prefix}/Library/Libraries/libNGCards.so
|
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
# **************************** pkgscripts *****************************
|
|
|
|
%post
|
2008-07-30 07:11:34 +02:00
|
|
|
if ! id sogo >& /dev/null; then /usr/sbin/adduser sogo > /dev/null 2>&1; fi
|
2007-10-04 23:04:09 +02:00
|
|
|
/bin/chown sogo /var/run/sogo
|
|
|
|
/bin/chown sogo /var/log/sogo
|
2008-07-30 07:11:34 +02:00
|
|
|
/bin/chown sogo /var/spool/sogo
|
|
|
|
/bin/chmod 700 /var/spool/sogo
|
2008-07-24 19:49:09 +02:00
|
|
|
/sbin/chkconfig --add sogod
|
2007-10-04 23:04:09 +02:00
|
|
|
|
2008-07-30 07:11:34 +02:00
|
|
|
%preun
|
2009-03-24 16:14:20 +01:00
|
|
|
if [ "$1" == "0" ]
|
|
|
|
then
|
|
|
|
/sbin/chkconfig --del sogod
|
|
|
|
/sbin/service sogod stop > /dev/null 2>&1
|
|
|
|
fi
|
2008-07-30 07:11:34 +02:00
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
%postun
|
|
|
|
if test "$1" = "0"
|
|
|
|
then
|
|
|
|
/usr/sbin/userdel sogo
|
2008-07-30 07:11:34 +02:00
|
|
|
/usr/sbin/groupdel sogo > /dev/null 2>&1
|
2007-10-04 23:04:09 +02:00
|
|
|
/bin/rm -rf /var/run/sogo
|
2008-07-24 19:49:09 +02:00
|
|
|
/bin/rm -rf /var/spool/sogo
|
2007-10-04 23:04:09 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# ********************************* changelog *************************
|
|
|
|
%changelog
|
2008-07-31 20:42:43 +02:00
|
|
|
* Thu Jul 31 2008 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
- added dependencies on sopeXY-appserver, -core, -gdl1-contentstore and -ldap
|
|
|
|
|
2008-07-24 19:43:45 +02:00
|
|
|
* Wed May 21 2008 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
- removed installation of template and resource files, since it is now done by the upstream package
|
|
|
|
|
2007-10-04 23:04:09 +02:00
|
|
|
* Tue Oct 4 2007 Francis Lachapelle <flachapelle@inverse.ca>
|
|
|
|
- added package sope-gdl1-contentstore
|
|
|
|
|
|
|
|
* Wed Jul 18 2007 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
- initial build
|