From 06ef3fe8564729d971b50822e1669372324600c1 Mon Sep 17 00:00:00 2001 From: peruchi Date: Tue, 31 Mar 2015 14:37:35 -0300 Subject: [PATCH] Delete sogo-systemd-redhat.spec --- packaging/rhel/sogo-systemd-redhat.spec | 465 ------------------------ 1 file changed, 465 deletions(-) delete mode 100644 packaging/rhel/sogo-systemd-redhat.spec diff --git a/packaging/rhel/sogo-systemd-redhat.spec b/packaging/rhel/sogo-systemd-redhat.spec deleted file mode 100644 index e17f917e3..000000000 --- a/packaging/rhel/sogo-systemd-redhat.spec +++ /dev/null @@ -1,465 +0,0 @@ -# We disable OpenChange builds on el5 since it's prehistoric -%define enable_openchange 1 -%{?el5:%define enable_openchange 0} -%{?el7:%define enable_openchange 0} - -%ifarch %ix86 -%define enable_openchange 0 -%endif - -%{!?sogo_major_version: %global sogo_major_version %(/bin/echo %{sogo_version} | /bin/cut -f 1 -d .)} -%if %enable_openchange -%global oc_build_depends samba4 openchange -%endif - -%{!?python_sys_pyver: %global python_sys_pyver %(/usr/bin/python -c "import sys; print sys.hexversion")} - -%define sogo_user sogo - -Summary: SOGo -Name: sogo -Version: %{sogo_version} -Release: %{dist_suffix}%{?dist} -Vendor: http://www.inverse.ca/ -Packager: Inverse inc. -License: GPL -URL: http://www.inverse.ca/contributions/sogo.html -Group: Productivity/Groupware -Source: SOGo-%{sogo_version}.tar.gz -Prefix: /usr -AutoReqProv: off -Requires: gnustep-base >= 1.23, 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 >= %{sogo_version}, sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore >= %{sogo_version}, sope%{sope_major_version}%{sope_minor_version}-sbjson, libmemcached, memcached, tmpwatch, zip -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} -BuildRequires: 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 sope%{sope_major_version}%{sope_minor_version}-sbjson-devel libmemcached-devel sed %{?oc_build_depends} - - -# Required by MS Exchange freebusy lookups -%{?el5:Requires: curl} -%{?el5:BuildRequires: curl-devel} -%{?el6:Requires: libcurl} -%{?el6:BuildRequires: libcurl-devel} - -# saml is enabled everywhere except on el5 since its glib2 is prehistoric -%define saml2_cfg_opts "--enable-saml2" -%{?el5:%define saml2_cfg_opts ""} -%{?el7:%define saml2_cfg_opts ""} -%{?el6:Requires: lasso} -%{?el6:BuildRequires: lasso-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-tool -Summary: Command-line toolsuite for SOGo -Group: Productivity/Groupware -Requires: sogo = %{sogo_version} -AutoReqProv: off - -%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 -AutoReqProv: off - -%description -n sogo-slapd-sockd -SOGo backend for slapd and back-sock, enabling access to private addressbooks -via LDAP. - -%package -n sogo-ealarms-notify -Summary: SOGo utility for executing email alarms -Group: Productivity/Groupware -AutoReqProv: off - -%description -n sogo-ealarms-notify -SOGo utility executed each minute via a cronjob for executing email alarms. - -%package -n sogo-activesync -Summary: SOGo module to handle ActiveSync requests -Group: Productivity/Groupware -Requires: libwbxml, sogo = %{sogo_version} -BuildRequires: libwbxml-devel -AutoReqProv: off - -%description -n sogo-activesync -SOGo module to handle ActiveSync requests - -%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 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 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 - -%if %enable_openchange -%package openchange-backend -Summary: SOGo backend for OpenChange -Group: Productivity/Groupware -AutoReqProv: off - -%description openchange-backend -SOGo backend for OpenChange -%endif - -######################################## -%prep -rm -fr ${RPM_BUILD_ROOT} -%setup -q -n SOGo-%{sogo_version} - - -# small tweak to the python script for RHEL5 -# if hex(sys.hexversion) < 0x02060000 -%if %{python_sys_pyver} < 33947648 - sed -i 's!/usr/bin/env python!/usr/bin/env python2.6!' Scripts/openchange_user_cleanup -%endif - - -# ****************************** build ******************************** -%build -%if 0%{?el7} -. /usr/lib64/GNUstep/Makefiles/GNUstep.sh -%else -. /usr/share/GNUstep/Makefiles/GNUstep.sh -%endif -./configure %saml2_cfg_opts - -case %{_target_platform} in -ppc64-*) - cc="gcc -m64"; - ldflags="-m64";; -*) - cc="gcc"; - ldflags="";; -esac - -make CC="$cc" LDFLAGS="$ldflags" messages=yes - -# OpenChange -%if %{sogo_major_version} >= 2 -(cd OpenChange; \ - LD_LIBRARY_PATH=../SOPE/NGCards/obj:../SOPE/GDLContentStore/obj \ - make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM ) -%endif - -# ****************************** install ****************************** -%install -QA_SKIP_BUILD_ROOT=1 -export QA_SKIP_BUILD_ROOT - -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 -install -d ${RPM_BUILD_ROOT}/usr/lib/systemd/system/ -install -d ${RPM_BUILD_ROOT}/etc/cron.d -install -d ${RPM_BUILD_ROOT}/etc/cron.daily -install -d ${RPM_BUILD_ROOT}/etc/logrotate.d -install -d ${RPM_BUILD_ROOT}/etc/sysconfig -install -d ${RPM_BUILD_ROOT}/etc/httpd/conf.d -install -d ${RPM_BUILD_ROOT}/usr/sbin -install -d ${RPM_BUILD_ROOT}/var/lib/sogo -install -d ${RPM_BUILD_ROOT}/var/log/sogo -install -d ${RPM_BUILD_ROOT}/var/run/sogo -install -d ${RPM_BUILD_ROOT}/var/spool/sogo -install -d -m 750 -o %sogo_user -g %sogo_user ${RPM_BUILD_ROOT}/etc/sogo -install -m 640 -o %sogo_user -g %sogo_user Scripts/sogo.conf ${RPM_BUILD_ROOT}/etc/sogo/ -install -m 755 Scripts/openchange_user_cleanup ${RPM_BUILD_ROOT}/%{_sbindir} -cat Apache/SOGo.conf | sed -e "s@/lib/@/%{_lib}/@g" > ${RPM_BUILD_ROOT}/etc/httpd/conf.d/SOGo.conf -install -m 600 Scripts/sogo.cron ${RPM_BUILD_ROOT}/etc/cron.d/sogo -cp Scripts/tmpwatch ${RPM_BUILD_ROOT}/etc/cron.daily/sogo-tmpwatch -chmod 755 ${RPM_BUILD_ROOT}/etc/cron.daily/sogo-tmpwatch -cp Scripts/logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/sogo -cp Scripts/sogo-systemd-redhat ${RPM_BUILD_ROOT}/usr/lib/systemd/system/sogod.service -chmod 644 ${RPM_BUILD_ROOT}/usr/lib/systemd/system/sogod.service -cp Scripts/sogo-default ${RPM_BUILD_ROOT}/etc/sysconfig/sogo -rm -rf ${RPM_BUILD_ROOT}%{_bindir}/test_quick_extract - -# OpenChange -%if %{sogo_major_version} >= 2 -(cd OpenChange; \ - LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} \ - make DESTDIR=${RPM_BUILD_ROOT} \ - GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ - CC="$cc" LDFLAGS="$ldflags" \ - install) -%endif - -# ActiveSync -(cd ActiveSync; \ - LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} \ - make DESTDIR=${RPM_BUILD_ROOT} \ - GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ - CC="$cc" LDFLAGS="$ldflags" \ - install) - -# ****************************** clean ******************************** -%clean -rm -fr ${RPM_BUILD_ROOT} - -# ****************************** files ******************************** -%files -n sogo -%defattr(-,root,root,-) - -/etc/init.d/sogod -/etc/cron.daily/sogo-tmpwatch -%dir %attr(0700, %sogo_user, %sogo_user) %{_var}/lib/sogo -%dir %attr(0700, %sogo_user, %sogo_user) %{_var}/log/sogo -%dir %attr(0755, %sogo_user, %sogo_user) %{_var}/run/sogo -%dir %attr(0700, %sogo_user, %sogo_user) %{_var}/spool/sogo -%dir %attr(0750, root, %sogo_user) %{_sysconfdir}/sogo -%{_sbindir}/sogod -%{_sbindir}/openchange_user_cleanup -%{_libdir}/sogo/libSOGo.so* -%{_libdir}/sogo/libSOGoUI.so* -%{_libdir}/GNUstep/SOGo/AdministrationUI.SOGo -%{_libdir}/GNUstep/SOGo/Appointments.SOGo -%{_libdir}/GNUstep/SOGo/CommonUI.SOGo -%{_libdir}/GNUstep/SOGo/Contacts.SOGo -%{_libdir}/GNUstep/SOGo/ContactsUI.SOGo -%{_libdir}/GNUstep/SOGo/MailPartViewers.SOGo -%{_libdir}/GNUstep/SOGo/Mailer.SOGo -%{_libdir}/GNUstep/SOGo/MailerUI.SOGo -%{_libdir}/GNUstep/SOGo/MainUI.SOGo -%{_libdir}/GNUstep/SOGo/PreferencesUI.SOGo -%{_libdir}/GNUstep/SOGo/SchedulerUI.SOGo - -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Resources -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/%{sogo_major_version}/sogo/libSOGo.so* -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/%{sogo_major_version}/Resources -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/Current -%{_libdir}/GNUstep/SOGo/Templates -%{_libdir}/GNUstep/SOGo/WebServerResources -%{_libdir}/GNUstep/OCSTypeModels -%{_libdir}/GNUstep/WOxElemBuilders-* - -%config(noreplace) %attr(0640, root, %sogo_user) %{_sysconfdir}/sogo/sogo.conf -%config(noreplace) %{_sysconfdir}/logrotate.d/sogo -%config(noreplace) %{_sysconfdir}/cron.d/sogo -%config(noreplace) %{_sysconfdir}/httpd/conf.d/SOGo.conf -%config(noreplace) %{_sysconfdir}/sysconfig/sogo -%doc ChangeLog NEWS Scripts/*sh Scripts/updates.php Apache/SOGo-apple-ab.conf - -%files -n sogo-tool -%{_sbindir}/sogo-tool - -%files -n sogo-ealarms-notify -%{_sbindir}/sogo-ealarms-notify - -%files -n sogo-slapd-sockd -%{_sbindir}/sogo-slapd-sockd - -%files -n sogo-activesync -%{_libdir}/GNUstep/SOGo/ActiveSync.SOGo -%doc ActiveSync/LICENSE ActiveSync/README - -%files -n sogo-devel -%{_includedir}/SOGo -%{_includedir}/SOGoUI -%{_libdir}/sogo/libSOGo.so* -%{_libdir}/sogo/libSOGoUI.so* -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Headers -%{_libdir}/GNUstep/Frameworks/SOGo.framework/sogo/libSOGo.so -%{_libdir}/GNUstep/Frameworks/SOGo.framework/sogo/SOGo -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/%{sogo_major_version}/Headers -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/%{sogo_major_version}/sogo/libSOGo.so* -%{_libdir}/GNUstep/Frameworks/SOGo.framework/Versions/%{sogo_major_version}/sogo/SOGo - -%files -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore -%defattr(-,root,root,-) -%{_libdir}/sogo/libGDLContentStore*.so* - -%files -n sope%{sope_major_version}%{sope_minor_version}-gdl1-contentstore-devel -%{_includedir}/GDLContentStore -%{_libdir}/sogo/libGDLContentStore*.so* - -%files -n sope%{sope_major_version}%{sope_minor_version}-cards -%{_libdir}/sogo/libNGCards.so* -%{_libdir}/GNUstep/SaxDrivers-* -%{_libdir}/GNUstep/SaxMappings -%{_libdir}/GNUstep/Libraries/Resources/NGCards - -%files -n sope%{sope_major_version}%{sope_minor_version}-cards-devel -%{_includedir}/NGCards -%{_libdir}/sogo/libNGCards.so* - -%if %enable_openchange -%files openchange-backend -%defattr(-,root,root,-) -%{_libdir}/GNUstep/SOGo/*.MAPIStore -%{_libdir}/mapistore_backends/* -%endif - -# **************************** pkgscripts ***************************** -%pre -if ! id %sogo_user >& /dev/null; then - /usr/sbin/useradd -d %{_var}/lib/sogo -c "SOGo daemon" -s /sbin/nologin -M -r %sogo_user -fi - -%post -# update timestamp on imgs,css,js to let apache know the files changed -find %{_libdir}/GNUstep/SOGo/WebServerResources -exec touch {} \; -systemctl enable sogod -systemctl start sogod > /dev/null 2>&1 - -%preun -if [ "$1" == "0" ] -then - systemctl disable sogod - systemctl stop sogod > /dev/null 2>&1 -fi - -%postun -if test "$1" = "0" -then - /usr/sbin/userdel %sogo_user - /usr/sbin/groupdel %sogo_user > /dev/null 2>&1 - /bin/rm -rf %{_var}/run/sogo - /bin/rm -rf %{_var}/spool/sogo - # not removing /var/lib/sogo to keep .GNUstepDefaults -fi - -# ********************************* changelog ************************* -%changelog -* Thu Mar 31 2015. Inverse inc. -- Change script start sogod for systemd - -* Wed Oct 8 2014 Inverse inc. -- fixed the library move to "sogo" app dir - -* Wed Jan 15 2014 Inverse inc. -- New package: sogo-activesync -- explicitly list all *.SOGo modules in sogo package -- added dependency on sogo = %version for sogo-tool - -* Thu Apr 17 2013 Inverse inc. -- Install openchange_user_cleanup in sbindir instead of doc - -* Wed Apr 10 2013 Inverse inc. -- use %sogo_user instead of 'sogo' -- install a sample sogo.conf in /etc/sogo - -* Tue Jan 22 2013 Inverse inc. -- Create the sogo user as a system user -- Use %attr() to set directory permissions instead of chown/chmod - -* Mon Nov 12 2012 Inverse inc. -- Add missing dependency on lasso and lasso-devel - -* Mon Nov 05 2012 Inverse inc. -- Disable saml2 on rhel5 - glib2 too old - -* Fri Nov 02 2012 Inverse inc. -- Enable saml2 - -* Tue Aug 28 2012 Inverse inc. -- Add openchange_cleanup.py and tweak it to work on RHEL5 - -* Tue Jul 31 2012 Inverse inc. -- treat logrotate file as a config file - -* Fri May 24 2012 Inverse inc. -- %post: restart sogo if it was running before rpm install - -* Fri Mar 16 2012 Inverse inc. -- %post: update timestamp on imgs,css,js to let apache know the files changed - -* Fri Feb 16 2012 Inverse inc. -- Use globbing to include all sql upgrade scripts instead of listing them all - -* Tue Jan 10 2012 Inverse inc. -- /etc/cron.d/sogo - -* Thu Oct 27 2011 Inverse inc. -- make build of sogo-openchange-backend conditional to sogo_version >= 2 - -* Fri Oct 14 2011 Inverse inc. -- adapted to gnustep-make 2.6 -- added sogo-openchange-backend - -* Tue Sep 28 2010 Inverse inc. -- removed "README" from documentation - -* Fri Aug 20 2010 Inverse inc. -- added sogo-ealarms-notify package - -* Tue Apr 06 2010 Inverse inc. -- added sogo-slapd-sockd package - -* Thu Jul 31 2008 Inverse inc. -- added dependencies on sopeXY-appserver, -core, -gdl1-contentstore and -ldap - -* Wed May 21 2008 Inverse inc. -- removed installation of template and resource files, since it is now done by the upstream package - -* Tue Oct 4 2007 Inverse inc. -- added package sope-gdl1-contentstore - -* Wed Jul 18 2007 Inverse inc. -- initial build