Summary: Scalable OpenGroupware.org (Inverse edition) Name: sogo Version: %{sogo_version} Release: %{dist_suffix}%{?dist} Vendor: http://www.inverse.ca/ Packager: Wolfgang Sourdeau License: GPL URL: http://www.inverse.ca/contributions/sogo.html Group: Productivity/Groupware Source: SOGo-%{sogo_version}.tar.gz Prefix: %{sogo_prefix} AutoReqProv: off 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} 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 %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. %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 %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 This package contains the header files for the SOPE GDLContentStore library. 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}-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 ######################################## %prep rm -fr ${RPM_BUILD_ROOT} %setup -q -n SOGo # ****************************** build ******************************** %build . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh ./configure case %{_target_platform} in ppc64-*) cc="gcc -m64"; ldflags="-m64";; *) cc="gcc"; ldflags="";; esac make CC="$cc" LDFLAGS="$ldflags" # ****************************** install ****************************** %install 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" \ install mkdir -p ${RPM_BUILD_ROOT}/etc/init.d mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily 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 mkdir -p ${RPM_BUILD_ROOT}/var/spool/sogo cp Apache/SOGo.conf ${RPM_BUILD_ROOT}/etc/httpd/conf.d/ cp Scripts/tmpwatch ${RPM_BUILD_ROOT}/etc/cron.daily/sogo-tmpwatch cp Scripts/sogo-init.d-redhat ${RPM_BUILD_ROOT}/etc/init.d/sogod cp Scripts/sogod-wrapper ${RPM_BUILD_ROOT}/usr/sbin/sogod 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 /etc/cron.daily/sogo-tmpwatch /usr/sbin/sogod /var/run/sogo /var/log/sogo /var/spool/sogo %{prefix}/Tools/Admin/sogod %{prefix}/Library/Libraries/libSOGo.so.* %{prefix}/Library/Libraries/libSOGoUI.so.* %{prefix}/Library/Libraries/libOGoContentStore.so* %{prefix}/Library/SOGo/*.SOGo %{prefix}/Library/SOGo/SOGo.framework/Resources %{prefix}/Library/SOGo/SOGo.framework/Versions/1/libSOGo.so.* %{prefix}/Library/SOGo/SOGo.framework/Versions/1/Resources %{prefix}/Library/SOGo/SOGo.framework/Versions/Current %{prefix}/Library/SOGo/Templates %{prefix}/Library/SOGo/WebServerResources %{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 %config %{_sysconfdir}/httpd/conf.d/SOGo.conf %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 %files -n sogo-tools %{prefix}/Tools/Admin/sogo-contacts-* %files -n sogo-devel %{prefix}/Library/Headers/SOGo %{prefix}/Library/Headers/SOGoUI %{prefix}/Library/Libraries/libSOGo.so %{prefix}/Library/Libraries/libSOGoUI.so %{prefix}/Library/SOGo/SOGo.framework/Headers %{prefix}/Library/SOGo/SOGo.framework/libSOGo.so %{prefix}/Library/SOGo/SOGo.framework/SOGo %{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 %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 %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 # **************************** pkgscripts ***************************** %post if ! id sogo >& /dev/null; then /usr/sbin/adduser sogo > /dev/null 2>&1; fi /bin/chown sogo /var/run/sogo /bin/chown sogo /var/log/sogo /bin/chown sogo /var/spool/sogo /bin/chmod 700 /var/spool/sogo /sbin/chkconfig --add sogod %preun if [ "$1" == "0" ] then /sbin/chkconfig --del sogod /sbin/service sogod stop > /dev/null 2>&1 fi %postun if test "$1" = "0" then /usr/sbin/userdel sogo /usr/sbin/groupdel sogo > /dev/null 2>&1 /bin/rm -rf /var/run/sogo /bin/rm -rf /var/spool/sogo fi # ********************************* changelog ************************* %changelog * Thu Jul 31 2008 Wolfgang Sourdeau - added dependencies on sopeXY-appserver, -core, -gdl1-contentstore and -ldap * Wed May 21 2008 Wolfgang Sourdeau - removed installation of template and resource files, since it is now done by the upstream package * Tue Oct 4 2007 Francis Lachapelle - added package sope-gdl1-contentstore * Wed Jul 18 2007 Wolfgang Sourdeau - initial build