Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ayearout:SOGo
sogo
sogo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sogo.spec of Package sogo
%define sogo_version 1.2.2 %define sope_major_version 4 %define sope_minor_version 9 %define sope_version %{sope_major_version}.%{sope_minor_version} %define gs_library %{_libdir}/GNUstep %define gs_makefiles /usr/share/GNUstep/Makefiles Summary: Scalable OpenGroupware.org (Inverse edition) Name: sogo Version: %{sogo_version} Release: 30.1 Vendor: http://www.inverse.ca/ License: GPL URL: http://www.sogo.nu/ Group: Productivity/Groupware Source: SOGo-%{sogo_version}.tar.gz Source1: sogo.sysconfig Source2: sogo.init Source3: sogo.logrotate Source4: sogo.wrapper Patch01: sogo-opensuse.diff Recommends: logrotate tmpwatch cron PreReq: %fillup_prereq Requires: gnustep-base sope%{sope_major_version}%{sope_minor_version}-core httpd sope%{sope_major_version}%{sope_minor_version}-appserver memcached BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: gcc-objc gnustep-base gnustep-make gnustep-base-devel httpd sope%{sope_major_version}%{sope_minor_version}-appserver-devel sope%{sope_major_version}%{sope_minor_version}-core-devel libNGLdap%{sope_major_version}_%{sope_minor_version}-devel libNGMime%{sope_major_version}_%{sope_minor_version}-devel libNGiCal%{sope_major_version}_%{sope_minor_version}-devel sope%{sope_major_version}%{sope_minor_version}-xml-devel libGDLAccess%{sope_major_version}_%{sope_minor_version}-devel libmemcached-devel patch fdupes %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-tool Summary: Command-line toolsuite for SOGo Group: Productivity/Groupware %description -n sogo-tool Administrative tool for SOGo that provides the following internal commands: backup -- backup user folders restore -- restore user folders remove-doubles -- remove duplicate contacts from the user addressbooks check-doubles -- list user addressbooks with duplicate contacts %package -n sogo-slapd-sockd Summary: SOGo backend for slapd and back-sock Group: Productivity/Groupware %description -n sogo-slapd-sockd SOGo backend for slapd and back-sock, enabling access to private addressbooks via LDAP. %package -n sogo-devel Summary: Development headers and libraries for SOGo Group: Development/Libraries/Objective C Requires: sogo %description -n sogo-devel Development headers and libraries for SOGo. Needed to create modules. %package -n libGDLContentStore%{sope_major_version}_%{sope_minor_version} Summary: Storage backend for folder abstraction Group: Development/Libraries/Objective C Requires: libGDLAccess%{sope_major_version}_%{sope_minor_version} %description -n libGDLContentStore%{sope_major_version}_%{sope_minor_version} 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 libGDLContentStore%{sope_major_version}_%{sope_minor_version}-devel Summary: Development files for the GNUstep database libraries Group: Development/Libraries/Objective C Requires: libGDLAccess%{sope_major_version}_%{sope_minor_version} libGDLContentStore%{sope_major_version}_%{sope_minor_version} %description -n libGDLContentStore%{sope_major_version}_%{sope_minor_version}-devel This package contains the header files for SOPE's 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 libNGCards%{sope_major_version}_%{sope_minor_version} Summary: SOPE library for iCal and VCard formats Group: Development/Libraries/Objective C %description -n libNGCards%{sope_major_version}_%{sope_minor_version} SOPE versit parsing library for iCal and VCard formats %package -n libNGCards%{sope_major_version}_%{sope_minor_version}-devel Summary: SOPE library for iCal and VCard formats Group: Development/Libraries/Objective C Requires: libNGCards%{sope_major_version}_%{sope_minor_version} %description -n libNGCards%{sope_major_version}_%{sope_minor_version}-devel SOPE versit parsing development library for iCal and VCard formats ######################################## %prep %setup -q -n SOGo-%{sogo_version} %patch01 -p0 # ****************************** build ******************************** %build . %{gs_makefiles}/GNUstep.sh ./configure --disable-debug \ --enable-strip case %{_target_platform} in ppc64-*) cc="gcc -m64"; ldflags="-m64";; *) cc="gcc"; ldflags="";; esac make CC="$cc" LDFLAGS="$ldflags" messages=yes # ****************************** 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/logrotate.d mkdir -p ${RPM_BUILD_ROOT}/etc/apache2/conf.d mkdir -p ${RPM_BUILD_ROOT}/usr/sbin mkdir -p ${RPM_BUILD_ROOT}/var/run/sogod mkdir -p ${RPM_BUILD_ROOT}/var/log/sogod mkdir -p ${RPM_BUILD_ROOT}/var/spool/sogod mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates cp Apache/SOGo-debian.conf ${RPM_BUILD_ROOT}/etc/apache2/conf.d/SOGo.conf cat > ${RPM_BUILD_ROOT}/etc/cron.daily/sogo.nu-tmpwatch << "EOF" #!/bin/sh /usr/sbin/tmpwatch 24 /var/spool/sogod EOF %{__install} -D -m 0644 %{S:1} ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.sogo %{__install} -D -m 0755 %{S:2} ${RPM_BUILD_ROOT}/etc/init.d/sogod %{__install} -D -m 0644 %{S:3} ${RPM_BUILD_ROOT}/etc/logrotate.d/sogo %{__install} -D -m 0755 %{S:4} ${RPM_BUILD_ROOT}/usr/sbin/sogod-wrapper chmod 755 ${RPM_BUILD_ROOT}/usr/sbin/sogod chmod 755 ${RPM_BUILD_ROOT}/etc/cron.daily/sogo.nu-tmpwatch mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} ln -sf ../../etc/init.d/sogod ${RPM_BUILD_ROOT}%{_sbindir}/rcsogod rm -rf ${RPM_BUILD_ROOT}%{prefix}/Tools/test_quick_extract %fdupes ${RPM_BUILD_ROOT}%{gs_library} # ****************************** clean ******************************** %clean rm -fr ${RPM_BUILD_ROOT} # ****************************** files ******************************** %files -n sogo %defattr(-,root,root,-) /etc/init.d/sogod %config /etc/cron.daily/sogo.nu-tmpwatch %config /etc/logrotate.d/sogo /usr/sbin/sogod /usr/sbin/sogod-wrapper /usr/sbin/rcsogod /var/run/sogod /var/log/sogod /var/spool/sogod %{_libdir}/libSOGo.so.* %{_libdir}/libSOGoUI.so.* %{_libdir}/libOGoContentStore.so.* %dir %{gs_library}/SOGo %{gs_library}/SOGo/*.SOGo %dir %{gs_library}/SOGo/SOGo.framework %{gs_library}/SOGo/SOGo.framework/Resources %dir %{gs_library}/SOGo/SOGo.framework/Versions %dir %{gs_library}/SOGo/SOGo.framework/Versions/1 %{gs_library}/SOGo/SOGo.framework/Versions/1/libSOGo.so.* %{gs_library}/SOGo/SOGo.framework/Versions/1/Resources %{gs_library}/SOGo/SOGo.framework/Versions/Current %{gs_library}/SOGo/Templates %{gs_library}/SOGo/WebServerResources %{gs_library}/OCSTypeModels %{gs_library}/WOxElemBuilders-%{sope_version} %config(noreplace) %{_sysconfdir}/apache2/conf.d/SOGo.conf %config /var/adm/fillup-templates/sysconfig.sogo %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-tool %defattr(-,root,root,-) %{_sbindir}/sogo-tool %files -n sogo-slapd-sockd %defattr(-,root,root,-) /usr/sbin/sogo-slapd-sockd %files -n sogo-devel %defattr(-,root,root,-) %{_includedir}/SOGo %{_includedir}/SOGoUI %{_libdir}/libSOGo.so %{_libdir}/libSOGoUI.so %{_libdir}/libOGoContentStore.so %{gs_library}/SOGo/SOGo.framework/Headers %{gs_library}/SOGo/SOGo.framework/libSOGo.so %{gs_library}/SOGo/SOGo.framework/SOGo %{gs_library}/SOGo/SOGo.framework/Versions/1/Headers %{gs_library}/SOGo/SOGo.framework/Versions/1/libSOGo.so %{gs_library}/SOGo/SOGo.framework/Versions/1/SOGo %files -n libGDLContentStore%{sope_major_version}_%{sope_minor_version} %defattr(-,root,root,-) %{_libdir}/libGDLContentStore*.so.%{sope_version}* %files -n libGDLContentStore%{sope_major_version}_%{sope_minor_version}-devel %defattr(-,root,root,-) %{_includedir}/GDLContentStore %{_libdir}/libGDLContentStore*.so %files -n libNGCards%{sope_major_version}_%{sope_minor_version} %defattr(-,root,root,-) %{_libdir}/libNGCards.so.* %{gs_library}/SaxDrivers-%{sope_major_version}.%{sope_minor_version} %{gs_library}/SaxMappings %{gs_library}/Libraries/Resources %files -n libNGCards%{sope_major_version}_%{sope_minor_version}-devel %defattr(-,root,root,-) %{_includedir}/NGCards %{_libdir}/libNGCards.so # **************************** pkgscripts ***************************** %post if ! id sogo >& /dev/null; then /usr/sbin/useradd sogo > /dev/null 2>&1; fi if ! [ -d ~sogo ]; then /bin/mkdir ~sogo > /dev/null 2>&1; fi touch ~sogo/.profile egrep -q '^source %{gs_makefiles}/GNUstep.sh' ~sogo/.profile || echo "source %{gs_makefiles}/GNUstep.sh" >> ~sogo/.profile /bin/chown -R sogo ~sogo /bin/chown -R sogo /var/run/sogod /bin/chown -R sogo /var/log/sogod /bin/chown -R sogo /var/spool/sogod /bin/chmod 700 /var/spool/sogod %fillup_and_insserv sogod /sbin/ldconfig %preun if [ "$1" == "0" ] then %stop_on_removal sogod fi %postun if test "$1" = "0" then if [ -e ~sogo/.profile ]; then mv -f ~sogo/.profile ~sogo/.profile.orig egrep -v "^source %{gs_makefiles}/GNUstep.sh" ~sogo/.profile.orig > ~sogo/.profile rm -f ~sogo/.profile.orig /bin/chown sogo ~sogo/.profile fi /usr/sbin/userdel sogo /usr/sbin/groupdel sogo > /dev/null 2>&1 /bin/rm -rf /var/run/sogod /bin/rm -rf /var/spool/sogod fi %restart_on_update sogod %insserv_cleanup /sbin/ldconfig %post -n libNGCards%{sope_major_version}_%{sope_minor_version} /sbin/ldconfig %postun -n libNGCards%{sope_major_version}_%{sope_minor_version} /sbin/ldconfig %post -n libGDLContentStore%{sope_major_version}_%{sope_minor_version} /sbin/ldconfig %postun -n libGDLContentStore%{sope_major_version}_%{sope_minor_version} /sbin/ldconfig # ********************************* changelog ************************* %changelog * Tue May 05 2010 Adam Yearout <ayearout@royal.wednet.edu> - 1.2.2-1 - Updated for SOGo 1.2.2 - Using Apache SOGo.conf from Debian now - Changed folder naming to sogod from sogo for consistency - Customized sogod-wrapper to match new directory structure - Added fdupes macro for duplicate web resource files - Cleaned up library dependency requires * Tue Apr 06 2010 Wolfgang Sourdeau <wsourdeau@inverse.ca> - added sogo-slapd-sockd package * Mon Nov 09 2009 Adam Yearout <ayearout@royal.wednet.edu> - Added sysconfig template for openSUSE * Thu Nov 05 2009 Adam Yearout <ayearout@royal.wednet.edu> - renamed library packages to match openSUSE naming conventions - added ldconfig post actions to library packages - configured sogod service handling for openSUSE - added /sbin/rcsogod symbolic link pointing to init.d script * Thu Jul 31 2008 Wolfgang Sourdeau <wsourdeau@inverse.ca> - added dependencies on sopeXY-appserver, -core, -gdl1-contentstore and -ldap * 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 * 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor