%global sope_version 4.9 Summary: SOPE is a framework for developing web applications and services. Name: sope Version: 4.9.0.0_20100529svn Release: 1%{?dist} License: LGPLv2+ URL: http://sope.opengroupware.org/ Group: Development/Libraries Source: http://download.opengroupware.org/nightly/sources/trunk/%{name}-trunk-latest.tar.gz Patch0: sope-gsmake2.diff Patch1: sope-patchset-r1664.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gnustep-make gcc-objc gnustep-base-devel BuildRequires: libxml2-devel openldap-devel openssl-devel BuildRequires: mysql-devel sqlite-devel postgresql-devel %description The SOPE package is an extensive set of frameworks which form a complete Web application server environment. Besides the Apple WebObjects compatible appserver extended with Zope concepts, it contains a large set of reusable classes: XML processing (SAX2, DOM, XML-RPC), MIME/IMAP4 processing, LDAP connectivity, RDBMS connectivity, and iCalendar parsing. ######################################### %package xml Summary: SOPE libraries for XML processing Group: Development/Libraries %description xml The SOPE libraries for XML processing contain: * a SAX2 Implementation for Objective-C * an attempt to implement DOM on top of SaxObjC * an XML-RPC implementation (without a transport layer) %package xml-devel Summary: Development files for the SOPE XML libraries Group: Development/Libraries Requires: sope-xml = %{version}-%{release} libxml2-devel %description xml-devel This package contains the development files of the SOPE XML libraries. %package xml-tools Summary: Tools (domxml/saxxml/xmln) Group: Development/Libraries Requires: sope-xml = %{version}-%{release} %description xml-tools This package contains some tools: * saxxml - parse a file using SAX and print out the XML * xmln - convert a given file to PYX using a SAX handler * domxml - parse a file into a DOM and print out the XML ######################################### %package core Summary: Core libraries of the SOPE application server Group: Development/Libraries Requires: sope-xml = %{version}-%{release} %description core The SOPE core libraries contain: * various Foundation extensions * a java.io like stream and socket library %package core-devel Summary: Development files for the SOPE core libraries Group: Development/Libraries Requires: sope-core = %{version}-%{release} %description core-devel This package contains the header files for the SOPE core libraries, which are part of the SOPE application server framework. ######################################### %package mime Summary: SOPE libraries for MIME processing Group: Development/Libraries Requires: sope-core = %{version}-%{release} sope-xml = %{version}-%{release} %description mime The SOPE libraries for MIME processing contain: * classes for processing MIME entities * a full IMAP4 implementation * prototypical POP3 and SMTP processor %package mime-devel Summary: Development files for the SOPE MIME libraries Group: Development/Libraries Requires: sope-mime = %{version}-%{release} %description mime-devel This package contains the development files of the SOPE MIME libraries. ######################################### %package appserver Summary: SOPE application server libraries Group: Development/Libraries Requires: sope-xml = %{version}-%{release} sope-core = %{version}-%{release} sope-mime = %{version}-%{release} %description appserver The SOPE application server libraries provide: * template rendering engine, lots of dynamic elements * HTTP client/server * XML-RPC client * WebDAV server framework * session management * scripting extensions for Foundation, JavaScript bridge * DOM tree rendering library %package appserver-devel Summary: Development files for the SOPE application server libraries Group: Development/Libraries Requires: sope-appserver = %{version}-%{release} %description appserver-devel This package contains the development files for the SOPE application server libraries. %package appserver-tools Summary: Tools shipped with the SOPE application server Group: Development/Libraries Requires: sope-appserver = %{version}-%{release} %description appserver-tools This package contains some tools shipped with the SOPE application server framework, which are mostly useful for development and debugging of SOPE applications. ######################################### %package ldap Summary: SOPE libraries for LDAP access Group: Development/Libraries Requires: sope-core = %{version}-%{release} sope-xml = %{version}-%{release} %description ldap The SOPE libraries for LDAP access contain an Objective-C wrapper for LDAP directory services. %package ldap-devel Summary: Development files for the SOPE LDAP libraries Group: Development/Libraries Requires: sope-ldap = %{version}-%{release} %description ldap-devel This package contains the development files of the SOPE LDAP libraries. %package ldap-tools Summary: Tools (ldap2dsml/ldapchkpwd/ldapls) Group: Development/Libraries Requires: sope-ldap = %{version}-%{release} %description ldap-tools This package contains some tools: * ldap2dsml - return the output of an LDAP server as DSML (directory service markup language) * ldapchkpwd - checks whether a login/password combo would be authenticated * ldapls - an 'ls' for LDAP directories ######################################### %package ical Summary: SOPE libraries for iCal handling Group: Development/Libraries Requires: sope-xml = %{version}-%{release} sope-core = %{version}-%{release} %description ical The SOPE libraries for iCal handling contain classes for iCalendar and vCard objects. %package ical-devel Summary: Development files for the SOPE iCal libraries Group: Development/Libraries Requires: sope-ical = %{version}-%{release} %description ical-devel This package contains the development files of the SOPE iCal libraries. ######################################### %package gdl1 Summary: GNUstep database libraries for SOPE Group: Development/Libraries Requires: sope-core = %{version}-%{release} sope-xml = %{version}-%{release} %description gdl1 This package contains a fork of the GNUstep database libraries used by the SOPE application server (excluding GDLContentStore). %package gdl1-postgresql Summary: PostgreSQL connector for SOPE's fork of the GNUstep database environment Group: Development/Libraries Requires: sope-gdl1 = %{version}-%{release} %description gdl1-postgresql This package contains the PostgreSQL connector for SOPE's fork of the GNUstep database libraries. %package gdl1-mysql Summary: MySQL connector for SOPE's fork of the GNUstep database environment Group: Development/Libraries Requires: sope-gdl1 = %{version}-%{release} %description gdl1-mysql This package contains the MySQL connector for SOPE's fork of the GNUstep database libraries. %package gdl1-sqlite Summary: SQLite connector for SOPE's fork of the GNUstep database environment Group: Development/Libraries Requires: sope-gdl1 = %{version}-%{release} %description gdl1-sqlite This package contains the SQLite connector for SOPE's fork of the GNUstep database libraries. %package gdl1-devel Summary: Development files for the GNUstep database libraries Group: Development/Libraries Requires: sope-gdl1 = %{version}-%{release} %description gdl1-devel This package contains the header files for SOPE's fork of the GNUstep database libraries. # ****************************** build ****************************** %prep #rm -fr ${RPM_BUILD_ROOT} %setup -q -n sope %patch0 -p0 %patch1 -p0 %build if [ -f /usr/lib/rpm/redhat/config.sub ] then cp /usr/lib/rpm/redhat/{config.sub,config.guess} sope-core/NGStreams/ elif [ -f /usr/lib/rpm/config.sub ] then cp /usr/lib/rpm/{config.sub,config.guess} sope-core/NGStreams/ fi ./configure --enable-debug --disable-strip --with-gnustep make %{?_smp_mflags} # MySQL is not built by default, as configure fails to find the libs. This is a simple work-around cd sope-gdl1/MySQL make %{?_smp_mflags} LDFLAGS="-L/usr/%{_lib}/mysql" # ****************************** install ****************************** %install rm -rf $RPM_BUILD_ROOT make %{?_smp_mflags} DESTDIR=${RPM_BUILD_ROOT} GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install cd sope-gdl1/MySQL make %{?_smp_mflags} DESTDIR=${RPM_BUILD_ROOT} GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install # Deleting binaries from sope-xml samples rm -f ${RPM_BUILD_ROOT}%{_bindir}/rss2plist1 rm -f ${RPM_BUILD_ROOT}%{_bindir}/rss2plist2 rm -f ${RPM_BUILD_ROOT}%{_bindir}/rssparse rm -f ${RPM_BUILD_ROOT}%{_bindir}/testqp # ****************************** clean ******************************** %clean rm -fr ${RPM_BUILD_ROOT} # ****************************** files ******************************** %post xml -p /sbin/ldconfig %postun xml -p /sbin/ldconfig %files xml %defattr(-,root,root,-) %{_libdir}/libDOM*.so.%{sope_version}* %{_libdir}/libSaxObjC*.so.%{sope_version}* %{_libdir}/libXmlRpc*.so.%{sope_version}* %{_libdir}/GNUstep/SaxDrivers-%{sope_version}/libxmlSAXDriver.sax %{_libdir}/GNUstep/SaxDrivers-%{sope_version}/STXSaxDriver.sax %files xml-tools %defattr(-,root,root,-) %{_bindir}/domxml %{_bindir}/saxxml %{_bindir}/xmln %files xml-devel %defattr(-,root,root,-) /usr/include/DOM /usr/include/SaxObjC /usr/include/XmlRpc %{_libdir}/libDOM*.so %{_libdir}/libSaxObjC*.so %{_libdir}/libXmlRpc*.so %post core -p /sbin/ldconfig %postun core -p /sbin/ldconfig %files core %defattr(-,root,root,-) %{_libdir}/libEOControl*.so.%{sope_version}* %{_libdir}/libNGExtensions*.so.%{sope_version}* %{_libdir}/libNGStreams*.so.%{sope_version}* %files core-devel %defattr(-,root,root,-) /usr/include/EOControl /usr/include/NGExtensions /usr/include/NGStreams %{_libdir}/libEOControl*.so %{_libdir}/libNGExtensions*.so %{_libdir}/libNGStreams*.so %post mime -p /sbin/ldconfig %postun mime -p /sbin/ldconfig %files mime %defattr(-,root,root,-) %{_libdir}/libNGMime*.so.%{sope_version}* %files mime-devel %defattr(-,root,root,-) /usr/include/NGImap4 /usr/include/NGMail /usr/include/NGMime %{_libdir}/libNGMime*.so %post appserver -p /sbin/ldconfig %postun appserver -p /sbin/ldconfig %files appserver %defattr(-,root,root,-) %{_libdir}/libNGObjWeb*.so.%{sope_version}* %{_libdir}/libNGXmlRpc*.so.%{sope_version}* %{_libdir}/libSoOFS*.so.%{sope_version}* %{_libdir}/libWEExtensions*.so.%{sope_version}* %{_libdir}/libWEPrototype*.so.%{sope_version}* %{_libdir}/libWOExtensions*.so.%{sope_version}* %{_libdir}/libWOXML*.so.%{sope_version}* %{_libdir}/GNUstep/Libraries/Resources/NGObjWeb/DAVPropMap.plist %{_libdir}/GNUstep/Libraries/Resources/NGObjWeb/Defaults.plist %{_libdir}/GNUstep/Libraries/Resources/NGObjWeb/Languages.plist %{_libdir}/GNUstep/SoProducts-%{sope_version}/SoCore.sxp %{_libdir}/GNUstep/SoProducts-%{sope_version}/SoOFS.sxp %{_libdir}/GNUstep/WOxElemBuilders-%{sope_version}/WEExtensions.wox %{_libdir}/GNUstep/WOxElemBuilders-%{sope_version}/WEPrototype.wox %{_libdir}/GNUstep/WOxElemBuilders-%{sope_version}/WOExtensions.wox %files appserver-tools %defattr(-,root,root,-) /usr/sbin/sope-%{sope_version} %{_bindir}/xmlrpc_call %files appserver-devel %defattr(-,root,root,-) %{_bindir}/wod /usr/include/NGHttp /usr/include/NGObjWeb /usr/include/NGXmlRpc /usr/include/SoOFS /usr/include/WEExtensions /usr/include/WOExtensions /usr/include/WOXML %{_libdir}/libNGObjWeb*.so %{_libdir}/libNGXmlRpc*.so %{_libdir}/libSoOFS*.so %{_libdir}/libWEExtensions*.so %{_libdir}/libWEPrototype*.so %{_libdir}/libWOExtensions*.so %{_libdir}/libWOXML*.so %{_libdir}/GNUstep/Makefiles/Additional/ngobjweb.make %{_libdir}/GNUstep/Makefiles/woapp.make %{_libdir}/GNUstep/Makefiles/wobundle.make %post ldap -p /sbin/ldconfig %postun ldap -p /sbin/ldconfig %files ldap %defattr(-,root,root,-) %{_libdir}/libNGLdap*.so.%{sope_version}* %files ldap-tools %defattr(-,root,root,-) %{_bindir}/ldap2dsml %{_bindir}/ldapchkpwd %{_bindir}/ldapls %files ldap-devel %defattr(-,root,root,-) /usr/include/NGLdap %{_libdir}/libNGLdap*.so %post ical -p /sbin/ldconfig %postun ical -p /sbin/ldconfig %files ical %defattr(-,root,root,-) %{_libdir}/libNGiCal*.so.%{sope_version}* %{_libdir}/GNUstep/SaxMappings/NGiCal.xmap %{_libdir}/GNUstep/SaxDrivers-%{sope_version}/versitSaxDriver.sax %files ical-devel %defattr(-,root,root,-) /usr/include/NGiCal %{_libdir}/libNGiCal*.so %post gdl1 -p /sbin/ldconfig %postun gdl1 -p /sbin/ldconfig %files gdl1 %defattr(-,root,root,-) %{_bindir}/connect-EOAdaptor %{_bindir}/load-EOAdaptor %{_libdir}/libGDLAccess*.so.%{sope_version}* %post gdl1-postgresql -p /sbin/ldconfig %postun gdl1-postgresql -p /sbin/ldconfig %files gdl1-postgresql %defattr(-,root,root,-) %{_libdir}/GNUstep/GDLAdaptors-%{sope_version}/PostgreSQL.gdladaptor %post gdl1-mysql -p /sbin/ldconfig %postun gdl1-mysql -p /sbin/ldconfig %files gdl1-mysql %defattr(-,root,root,-) %{_libdir}/GNUstep/GDLAdaptors-%{sope_version}/MySQL.gdladaptor %post gdl1-sqlite -p /sbin/ldconfig %postun gdl1-sqlite -p /sbin/ldconfig %files gdl1-sqlite %defattr(-,root,root,-) %{_libdir}/GNUstep/GDLAdaptors-%{sope_version}/SQLite3.gdladaptor %files gdl1-devel %defattr(-,root,root,-) /usr/include/GDLAccess %{_libdir}/libGDLAccess*.so # ********************************* changelog ************************* %changelog * Sat May 29 2010 HÃ¥vard Wigtil - 4.9.0.0_20100529svn-1%{?dist} - First version for Fedora, based on spec file from OpenGroupware.org and SOGo.