# (oe) undefining these makes the build _real_ quick. #undefine __find_provides #undefine __find_requires # (tv) this does the same for rpm-4.9+ internal deps generator: %global __requires_exclude_from .*\\.php$|.*\\inc$ %define name egroupware %define Name eGroupware %define version 1.8.007.20140506 %define Version 1.8.007.20140506 Name: %{name} Version: %{version} Release: %mkrel 7 Summary: Web-based groupware suite written in php License: GPL+ Group: System/Servers URL: http://www.egroupware.org/ Source0: http://downloads.sourceforge.net/%{name}/%{Name}-%{Version}.tar.bz2 Source1: http://downloads.sourceforge.net/%{name}/%{Name}-egw-pear-%{Version}.tar.bz2 Source2: http://downloads.sourceforge.net/%{name}/%{Name}-gallery-%{Version}.tar.bz2 Patch0: eGroupware-1.6.002-preferred_php_binary.patch Requires: apache-mod_php Requires: php-xml Requires: php-gd Requires: php-cli Requires: php-dom Requires: %{name}-calendar Requires: %{name}-etemplate Requires: %{name}-emailadmin Recommends: php-pdo_mysql Recommends: php-mcrypt Recommends: php-imap Provides: egroupware-addressbook = %{version}-%{release} Provides: egroupware-etemplate = %{version}-%{release} Provides: egroupware-contrib-icalsrv = %{version}-%{release} Provides: egroupware-contrib-egwical = %{version}-%{release} Provides: egroupware-icalsrv = %{version}-%{release} Provides: egroupware-mydms = %{version}-%{release} Obsoletes: egroupware-addressbook < 1.8.001.2010111-1 Obsoletes: egroupware-etemplate < 1.8.001.2010111-1 Obsoletes: egroupware-icalsrv < 1.8.001.2010111-1 Obsoletes: egroupware-mydms < 1.8.001.2010111-1 Obsoletes: egroupware-contrib-icalsrv < 1.2.107-5 Obsoletes: egroupware-contrib-egwical < 1.2.107-5 BuildArch: noarch %description eGroupWare is a web-based groupware suite written in PHP. The core package provides the admin, setup, phpgwapi and preferences packages. It also provides an API for developing additional applications. See the egroupware apps project for add-on apps. %files %doc doc/* %doc phpgwapi/doc/* # Apache configuration file %config(noreplace) %{_webappconfdir}/%{name}.conf # Header config file %attr(640,apache,apache) %config(noreplace) %{_localstatedir}/lib/%{name}/header.inc.php # top level dir and files %dir %{_var}/www/%{name} %{_var}/www/%{name}/*.php %{_var}/www/%{name}/groupdav.htaccess %{_var}/www/%{name}/header.inc.php.template %{_var}/www/%{name}/phpgwapi %{_var}/www/%{name}/addressbook %{_var}/www/%{name}/admin %{_var}/www/%{name}/etemplate %{_var}/www/%{name}/files %{_var}/www/%{name}/preferences %{_var}/www/%{name}/setup %{_var}/www/%{name}/home %{_var}/www/%{name}/resources %attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name} %attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default %attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default/files %attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default/backup #-------------------------------------------------------------------- %package bookmarks Summary: The eGroupWare bookmarks application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description bookmarks Manage your bookmarks with eGroupWare. Has Netscape plugin. %files bookmarks %{_var}/www/%{name}/bookmarks #-------------------------------------------------------------------- %package calendar Summary: The eGroupWare calendar application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description calendar Powerful calendar with meeting request system, Alarms, CalDAV and E-Mail support, and ACL security. %files calendar %{_var}/www/%{name}/calendar #-------------------------------------------------------------------- %package developer_tools Summary: The eGroupWare developer_tools application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description developer_tools The TranslationTools allow to create and extend translations-files for eGroupWare. They can search the sources for new / added phrases and show you the ones missing in your language. %files developer_tools %doc developer_tools/doc/* %{_var}/www/%{name}/developer_tools #-------------------------------------------------------------------- %package egw-pear Summary: php-pear classes for eGroupWare Group: System/Servers Requires: %{name} >= %{version}-%{release} %description egw-pear egw-pear contains modified pear classes necessary for eGroupware. %files egw-pear %{_var}/www/%{name}/egw-pear #-------------------------------------------------------------------- %package emailadmin Summary: The eGroupWare emailadmin application Group: System/Servers Requires: %{name} >= %{version}-%{release} Requires: %{name}-egw-pear >= %{version}-%{release} Recommends: php-pear-Auth_SASL %description emailadmin EmailAdmin enables user email account maintenance in eGroupWare. %files emailadmin %{_var}/www/%{name}/emailadmin #-------------------------------------------------------------------- %package felamimail Summary: The eGroupWare felamimail application Group: System/Servers Requires: %{name}-emailadmin = %{version}-%{release} Requires: %{name}-egw-pear = %{version}-%{release} %description felamimail The felamimail Email Reader is an alternative email application for eGroupWare. %files felamimail %doc felamimail/{Changelog,README,TODO} %{_var}/www/%{name}/felamimail #-------------------------------------------------------------------- %package filemanager Summary: The eGroupWare filemanager application Group: System/Servers Requires: %{name} >= %{version}-%{release} Requires: %{name}-egw-pear >= %{version}-%{release} %description filemanager This is the filemanager app for eGroupWare. %files filemanager %{_var}/www/%{name}/filemanager #-------------------------------------------------------------------- %package gallery Summary: The eGroupWare gallery application Group: System/Servers Requires: %{name} >= %{version}-%{release} Requires: %{name}-egw-pear >= %{version}-%{release} %description gallery A gallery application for eGroupWare (a port of gallery2). %files gallery %{_var}/www/%{name}/gallery #-------------------------------------------------------------------- %package importexport Summary: The eGroupWare import/export function Group: System/Servers Requires: %{name} >= %{version}-%{release} %description importexport This package provides a general import/export function for the eGroupware suite. %files importexport %{_var}/www/%{name}/importexport #-------------------------------------------------------------------- %package infolog Summary: The eGroupWare infolog application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description infolog This is the infolog app for eGroupWare. %files infolog %{_var}/www/%{name}/infolog #-------------------------------------------------------------------- %package manual Summary: The eGroupWare messenger application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description manual This is the manual app for eGroupWare. %files manual %{_var}/www/%{name}/manual #-------------------------------------------------------------------- %package news_admin Summary: The eGroupWare news_admin application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description news_admin This is the news_admin app for eGroupWare. %files news_admin %doc news_admin/doc/* %{_var}/www/%{name}/news_admin #-------------------------------------------------------------------- %package notifications Summary: User notifications for eGroupWare Group: System/Servers Requires: %{name} >= %{version}-%{release} %description notifications This package provides pop-up user notifications for the eGroupWare suite. %files notifications %{_var}/www/%{name}/notifications #-------------------------------------------------------------------- %package phpbrain Summary: The eGroupWare phpbrain application Group: System/Servers %description phpbrain This is the phpbrain app for eGroupWare. %files phpbrain %{_var}/www/%{name}/phpbrain #-------------------------------------------------------------------- %package phpsysinfo Summary: The eGroupWare phpsysinfo application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description phpsysinfo This is the cire phpsysinfo of eGroupWare. %files phpsysinfo %{_var}/www/%{name}/phpsysinfo #-------------------------------------------------------------------- %package polls Summary: The eGroupWare polls application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description polls This is the polls app for eGroupWare. %files polls %doc polls/doc/* %{_var}/www/%{name}/polls #-------------------------------------------------------------------- %package projectmanager Summary: The eGroupWare projects application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description projectmanager This is the projects app for eGroupWare. %files projectmanager %{_var}/www/%{name}/projectmanager #-------------------------------------------------------------------- %package registration Summary: The eGroupWare registration application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description registration This is the registration app for eGroupWare. %files registration %doc registration/doc/* %{_var}/www/%{name}/registration #-------------------------------------------------------------------- %package sambaadmin Summary: The eGroupWare sambaadmin application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description sambaadmin Manage Samba resources with egroupware. %files sambaadmin %{_var}/www/%{name}/sambaadmin #-------------------------------------------------------------------- %package sitemgr Summary: The eGroupWare sitemgr application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description sitemgr This is the sitemgr app for eGroupWare. %files sitemgr %{_var}/www/%{name}/sitemgr #-------------------------------------------------------------------- %package syncml Summary: The eGroupWare syncml application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description syncml Synchronisation for agenda, contacts and todo list. %files syncml %{_var}/www/%{name}/syncml #-------------------------------------------------------------------- %package timesheet Summary: The eGroupWare timesheet application Group: System/Servers Requires: %{name} >= %{version}-%{release} %description timesheet Free time management. %files timesheet %{_var}/www/%{name}/timesheet #-------------------------------------------------------------------- %package tracker Summary: The eGroupWare tracker application Group: System/Servers Requires: %{name} = %{version}-%{release} %description tracker This is the tracker app for eGroupWare. %files tracker %{_var}/www/%{name}/tracker #-------------------------------------------------------------------- %package wiki Summary: The eGroupWare wiki application Group: System/Servers %description wiki This is the wiki app for eGroupWare. %files wiki %doc wiki/doc/* %{_var}/www/%{name}/wiki #-------------------------------------------------------------------- %prep %setup -q -n %{name} %setup -q -T -D -b 1 -n %{name} %setup -q -T -D -b 2 -n %{name} %patch0 -p1 # cleanup find . -type d -name CVS | xargs rm -rf find . -type f -name *.old -o -name *.backup | xargs rm -f find . -type f -empty | xargs rm -f find . -type f | xargs chmod 644 find . -name .htaccess |xargs rm -f find . -name .svn | xargs rm -rf %build %install # apache configuration install -d -m 755 %{buildroot}%{_webappconfdir} sed 's,\/usr\/share\/egroupware,\/var\/www\/egroupware,' doc/rpm-build/apache.conf > %{buildroot}%{_webappconfdir}/%{name}.conf # install files install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/default/files install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/default/backup install -d -m 755 %{buildroot}%{_var}/www/%{name} cp -aRf * %{buildroot}%{_var}/www/%{name} # setup the config file: this dummy content triggers the setup process # (from upstream's package) cp doc/rpm-build/header.inc.php %{buildroot}%{_localstatedir}/lib/%{name}/header.inc.php ln -s %{_localstatedir}/lib/%{name}/header.inc.php %{buildroot}%{_var}/www/%{name}/header.inc.php # post-install cleanup rm -rf %{buildroot}%{_var}/www/%{name}/doc rm -rf %{buildroot}%{_var}/www/%{name}/*/doc rm -f %{buildroot}%{_var}/www/%{name}/felamimail/{COPYING,Changelog,README,TODO} # doc cleanup rm -f doc/Makefile rm -rf doc/rpm-build %changelog * Wed Nov 05 2014 tv <tv> 1.8.007.20140506-7.mga5 + Revision: 795847 - exclude php deps like we used to do for external deps generators * Wed Oct 15 2014 umeabot <umeabot> 1.8.007.20140506-6.mga5 + Revision: 748307 - Second Mageia 5 Mass Rebuild * Fri Oct 03 2014 tmb <tmb> 1.8.007.20140506-5.mga5 + Revision: 736503 - rebuild for pear deps * Wed Oct 01 2014 tv <tv> 1.8.007.20140506-4.mga5 + Revision: 733984 - rebuild for pear deps * Sat Sep 27 2014 tv <tv> 1.8.007.20140506-3.mga5 + Revision: 726198 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 1.8.007.20140506-2.mga5 + Revision: 678975 - Mageia 5 Mass Rebuild + tv <tv> - s/uggests:/Recommends:/ * Wed May 07 2014 oden <oden> 1.8.007.20140506-1.mga5 + Revision: 621032 - 1.8.007.20140506 * Mon Feb 24 2014 luigiwalser <luigiwalser> 1.8.006.20140217-1.mga5 + Revision: 596509 - 1.8.006.20140217 (fixes CVE-2014-2027) * Fri Oct 18 2013 umeabot <umeabot> 1.8.004.20120410-3.mga4 + Revision: 504073 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 1.8.004.20120410-2.mga3 + Revision: 349542 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Apr 13 2012 luigiwalser <luigiwalser> 1.8.004.20120410-1.mga2 + Revision: 230704 - 1.8.004.20120410 (fix XSS flaw) * Sun Feb 05 2012 dmorgan <dmorgan> 1.8.001.20110421-2.mga2 + Revision: 204672 - imported package egroupware