egroupware_official/doc/rpm-build/egroupware-1.6.spec

651 lines
18 KiB
RPMSpec

Name: eGroupware
Version: 1.6.003
Release: 1
Summary: EGroupware is a web-based groupware suite written in php.
Group: Web/Database
License: GPLv2 with exception
URL: http://www.egroupware.org
Vendor: eGroupware
Packager: Ralf Becker <rb@stylite.de>
Prefix: /usr/share
%define egwdir %{prefix}/egroupware
%define egwdatadir /var/lib/egroupware
%if 0%{?suse_version}
%define php php5
%define httpdconfd /etc/apache2/conf.d
%define distribution SUSE Linux %{?suse_version}
%define extra_requires apache2 apache2-mod_php5 php_any_db php5-dom php5-bz2 php5-openssl php5-zip php5-ctype
%define cron cron
%define apache_user wwwrun
%define apache_group www
%define pear_dir \\/usr\\/share\\/php5\\/PEAR
%else
%define php php
%define httpdconfd /etc/httpd/conf.d
%define cron crontabs
%define apache_user apache
%define apache_group apache
%define pear_dir \\/usr\\/share\\/pear
%endif
%if 0%{?fedora_version}
%define osversion %{?fedora_version}
%define distribution Fedora Core %{?fedora_version}
%define extra_requires httpd php-mysql php-xml
%endif
%if 0%{?mandriva_version}
%define osversion %{?mandriva_version}
%define distribution Mandriva %{?mandriva_version}
%define extra_requires apache php-mysql php-dom
%endif
%if 0%{?rhel_version}
%define osversion %{?rhel_version}
%define distribution Red Hat %{?rhel_version}
%define extra_requires httpd php-mysql php-xml
%endif
%if 0%{?centos_version}
%define osversion %{?centos_version}
%define distribution CentOS %{?centos_version}
%define extra_requires httpd php-mysql php-xml
%endif
Distribution: %{distribution}
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-egw-pear-%{version}.tar.bz2
Source2: %{name}-icalsrv-%{version}.tar.bz2
Source3: %{name}-mydms-%{version}.tar.bz2
Source4: %{name}-gallery-%{version}.tar.bz2
Source5: %{name}-rpmlintrc
Patch0: class.uiasyncservice.inc.php.patch
BuildRoot: /tmp/%{name}-buildroot
#otherwise build fails because of jar files in G2
BuildRequires: unzip
Buildarch: noarch
AutoReqProv: no
Requires: %{name}-core >= %{version}
Requires: %{name}-egw-pear >= %{version}
#Requires: %{name}-addressbook >= %{version}
Requires: %{name}-bookmarks >= %{version}
Requires: %{name}-calendar >= %{version}
Requires: %{name}-developer_tools >= %{version}
Requires: %{name}-emailadmin >= %{version}
Requires: %{name}-felamimail >= %{version}
Requires: %{name}-filemanager >= %{version}
Requires: %{name}-infolog >= %{version}
Requires: %{name}-importexport >= %{version}
Requires: %{name}-manual >= %{version}
Requires: %{name}-news_admin >= %{version}
Requires: %{name}-notifications >= %{version}
Requires: %{name}-phpbrain >= %{version}
Requires: %{name}-phpsysinfo >= %{version}
Requires: %{name}-polls >= %{version}
Requires: %{name}-projectmanager >= %{version}
Requires: %{name}-registration >= %{version}
Requires: %{name}-resources >= %{version}
Requires: %{name}-sambaadmin >= %{version}
Requires: %{name}-sitemgr >= %{version}
Requires: %{name}-syncml >= %{version}
Requires: %{name}-timesheet >= %{version}
Requires: %{name}-tracker >= %{version}
Requires: %{name}-wiki >= %{version}
Requires: %{name}-icalsrv >= %{version}
Requires: %{name}-mydms >= %{version}
%description
EGroupware is a web-based groupware suite written in PHP.
This package provides the eGroupware default applications:
egroupware core with: admin, api, docs, etemplate, prefereces and setup,
addressbook, bookmarks, calendar, translation-tools, emailadmin, felamimail,
filemanager, infolog, manual, news admin, knowledgebase, polls,
projectmanager, resources, sambaadmin, sitemgr, syncml, timesheet, tracker, wiki
It also provides an API for developing additional applications.
Further contributed applications are avalible in single packages.
%package core
Summary: The eGroupware core package
Group: Web/Database
Requires: %{php} >= 5.1.0
Requires: %{php}-mbstring %{php}-gd %{php}-mcrypt %{php}-pear %{php}-posix %{extra_requires} %{cron} zip
Provides: egw-core %{version}
Provides: egw-etemplate %{version}
Provides: egw-addressbook %{version}
%description core
This package provides the eGroupware core applications.
%post core
%if 0%{?rhel_version} || 0%{?fedora_version} || 0%{?centos_version}
chcon -R -u user_u -r object_r -t httpd_sys_content_t /var/lib/egroupware
setsebool -P httpd_can_network_connect=1
%endif
%package egw-pear
Version: %{version}
Summary: The EGroupware egw-pear application
Group: Web/Database
Requires: %{php}-pear
AutoReqProv: no
Requires: egw-core >= %{version}
Provides: egw-pear %{version}
%description egw-pear
egw-pear contains modified pear classes necessary for EGroupware
# addressbook is part of core now, as it contains required classes for accounts
#%package addressbook
#Version: %{version}
#Summary: The eGroupware addressbook application
#Group: Web/Database
#AutoReqProv: no
#Requires: egw-core >= %{version}
#Provides: egw-addressbook
#%description addressbook
#Contact manager with Vcard support.
#addressbook is the egroupware contact application.
#It has different backends to store and retrive contacts
#from SQL or LDAP.
%package bookmarks
Version: %{version}
Summary: The eGroupware bookmarks application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description bookmarks
Manage your bookmarks with eGroupware. Has Netscape plugin.
%package calendar
Version: %{version}
Summary: The eGroupware calendar application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description calendar
Powerful calendar with meeting request system, Alarms, ICal and E-Mail support,
and ACL security.
%package developer_tools
Version: %{version}
Summary: The eGroupware developer_tools application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%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.
%package emailadmin
Version: %{version}
Summary: The eGroupware emailadmin application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}, %{name}-egw-pear >= %{version}, php-openssl
%description emailadmin
EmailAdmin allow to maintain User email accounts
%package felamimail
Version: %{version}
Summary: The eGroupware Webmail application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}, %{name}-emailadmin >= %{version}, %{name}-egw-pear >= %{version}
%description felamimail
The Email application for eGroupware.
%package filemanager
Version: %{version}
Summary: The eGroupware filemanager application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}, egw-pear >= %{version}
%description filemanager
This is the filemanager app for eGroupware.
%package gallery
Version: %{version}
Summary: The eGroupware gallery application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}, egw-pear >= %{version}
%description gallery
An embedded Gallery2 for eGroupware.
%package icalsrv
Version: %{version}
Summary: The eGroupware icalsrv application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description icalsrv
This is the old icalsrv app for eGroupware.
It is NOT necessary for GroupDAV, CalDAV or CardDAV,
which is build into the eGroupware core.
%package infolog
Version: %{version}
Summary: The eGroupware infolog application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description infolog
This is the infolog app for eGroupware (Notes, ToDo, Phonelogs, CRM).
%package importexport
Version: %{version}
Summary: The eGroupware importexport application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description importexport
This is the importexport app for eGroupware. It includes a comandline client.
%package manual
Version: %{version}
Summary: The eGroupware manual application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description manual
This is the manual app for eGroupware: online help system.
%package mydms
Version: %{version}
Summary: The eGroupware mydms application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}, egw-pear >= %{version}
%description mydms
This is a mydms port to eGroupware.
%package news_admin
Version: %{version}
Summary: The eGroupware news_admin application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description news_admin
This is the news_admin app for eGroupware.
%package notifications
Version: %{version}
Summary: The eGroupware notifications application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description notifications
This is the notifications app for eGroupware.
%package phpbrain
Version: %{version}
Summary: The eGroupware phpbrain application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description phpbrain
This is the phpbrain app for eGroupware.
%package phpsysinfo
Version: %{version}
Summary: The eGroupware phpsysinfo application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description phpsysinfo
This is the phpsysinfo app for eGroupware.
%package polls
Version: %{version}
Summary: The eGroupware polls application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description polls
This is the polls app for eGroupware.
%package projectmanager
Version: %{version}
Summary: The eGroupware projectmanager application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version},
%description projectmanager
The projectmanager is eGroupware's new project management application.
It's fully integrated into eGroupware and use the data of InfoLog and Calendar.
Plugable datasources allow to support and manage further applications.
%package registration
Version: %{version}
Summary: The eGroupware registration application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description registration
This is the registration app for eGroupware.
%package resources
Version: %{version}
Summary: The eGroupware resources application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description resources
resources is a resource booking sysmtem for eGroupware.
Which integrates into the calendar.
%package sambaadmin
Version: %{version}
Summary: The eGroupware sambaadmin application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description sambaadmin
Manage LDAP based sambaacounts and workstations.
%package sitemgr
Version: %{version}
Summary: The eGroupware Sitemanager CMS application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description sitemgr
This is the Sitemanager CMS app for eGroupware.
%package syncml
Version: %{version}
Summary: The eGroupware syncml application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description syncml
This is the syncml app for eGroupware.
%package timesheet
Version: %{version}
Summary: The eGroupware timesheet application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description timesheet
Simple timesheet application, which allow to record and report
the times and other expenses. It can be uses as well standalone
as together with the ProjectManager application.
%package tracker
Version: %{version}
Summary: The eGroupware trouble ticket system application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version}
%description tracker
This is the trouble ticket system app for eGroupware.
%package wiki
Version: %{version}
Summary: The eGroupware wiki application
Group: Web/Database
AutoReqProv: no
Requires: egw-core >= %{version},
%description wiki
This is the wiki app for eGroupware.
%prep
%setup0 -c -n %{egwdirname}
%setup1 -T -D -a 1 -n %{egwdirname}
%setup2 -T -D -a 2 -n %{egwdirname}
%setup3 -T -D -a 3 -n %{egwdirname}
%setup4 -T -D -a 4 -n %{egwdirname}
%patch0 -p 0
%build
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT%{egwdir}
mkdir -p $RPM_BUILD_ROOT%{httpdconfd}
sed 's/\/usr\/share\/pear/%{pear_dir}/' egroupware/doc/rpm-build/apache.conf > $RPM_BUILD_ROOT%{httpdconfd}/egroupware.conf
mkdir -p $RPM_BUILD_ROOT/etc/cron.d
sed 's/apache/%{apache_user}/' egroupware/doc/rpm-build/egroupware.cron > $RPM_BUILD_ROOT/etc/cron.d/egroupware
mkdir -p $RPM_BUILD_ROOT%{egwdatadir}/default/files
mkdir -p $RPM_BUILD_ROOT%{egwdatadir}/default/backup
cp egroupware/doc/rpm-build/header.inc.php $RPM_BUILD_ROOT%{egwdatadir}
cp -aRf egroupware/* $RPM_BUILD_ROOT%{egwdir}
cd %{buildroot}%{egwdir}
ln -s ../../..%{egwdatadir}/header.inc.php
# create symlink for suse to get scripts with /usr/bin/php working
%if 0%{?suse_version}
#/usr/sbin/update-alternatives --install /usr/bin/php php /usr/bin/php5 99
mkdir %{buildroot}/usr/bin
cd %{buildroot}/usr/bin
ln -s php5 php
%endif
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%post
%if 0%{?rhel_version} || 0%{?fedora_version} || 0%{?centos_version}
chcon -R -u user_u -r object_r -t httpd_sys_content_t /var/lib/egroupware
setsebool -P httpd_can_network_connect=1
%endif
%postun
# egroupware metapackage seems to need some files to be build ...
%files
%defattr(-,root,root)
%dir %{egwdir}
%files core
%defattr(-,root,root)
%dir %attr(0755,root,root) %{egwdir}
%{egwdir}/about.php
%{egwdir}/anon_wrapper.php
%{egwdir}/header.inc.php
%{egwdir}/header.inc.php.template
%{egwdir}/index.php
%{egwdir}/login.php
%{egwdir}/logout.php
%{egwdir}/notify.php
%{egwdir}/notify_simple.php
%{egwdir}/notifyxml.php
%{egwdir}/redirect.php
%{egwdir}/rpc.php
%{egwdir}/set_box.php
%{egwdir}/soap.php
%{egwdir}/xajax.php
%{egwdir}/xmlrpc.php
%{egwdir}/svn-helper.php
%{egwdir}/webdav.php
%{egwdir}/groupdav.php
%{egwdir}/addressbook
%{egwdir}/admin
%{egwdir}/doc
%{egwdir}/etemplate
%{egwdir}/home
%{egwdir}/phpgwapi
%{egwdir}/preferences
%{egwdir}/setup
%attr(0644,root,root) /etc/cron.d/egroupware
%config %attr(0644,root,root) %{httpdconfd}/egroupware.conf
%if 0%{?suse_version}
%dir %attr(0755,root,root) /etc/apache2
%dir %attr(0755,root,root) %{httpdconfd}
# symlink for suse to get scripts with /usr/bin/php working
/usr/bin/php
%endif
%dir %attr(0700,%{apache_user},%{apache_group}) %{egwdatadir}
%dir %attr(0700,%{apache_user},%{apache_group}) %{egwdatadir}/default
%dir %attr(0700,%{apache_user},%{apache_group}) %{egwdatadir}/default/files
%dir %attr(0700,%{apache_user},%{apache_group}) %{egwdatadir}/default/backup
%config %attr(0640,%{apache_user},%{apache_group}) %{egwdatadir}/header.inc.php
# addressbook is part of core now, as it contains required classes for accounts
#%files addressbook
#%defattr(-,root,root)
#%{egwdir}/addressbook
%files bookmarks
%defattr(-,root,root)
%{egwdir}/bookmarks
%files calendar
%defattr(-,root,root)
%{egwdir}/calendar
%files developer_tools
%defattr(-,root,root)
%{egwdir}/developer_tools
%files egw-pear
%defattr(-,root,root)
%{egwdir}/egw-pear
%files emailadmin
%defattr(-,root,root)
%{egwdir}/emailadmin
%files felamimail
%defattr(-,root,root)
%{egwdir}/felamimail
%files filemanager
%defattr(-,root,root)
%{egwdir}/filemanager
%files gallery
%defattr(-,root,root)
%{egwdir}/gallery
%files icalsrv
%defattr(-,root,root)
%{egwdir}/icalsrv
%files infolog
%defattr(-,root,root)
%{egwdir}/infolog
%files importexport
%defattr(-,root,root)
%{egwdir}/importexport
%files manual
%defattr(-,root,root)
%{egwdir}/manual
%files mydms
%defattr(-,root,root)
%{egwdir}/mydms
%files news_admin
%defattr(-,root,root)
%{egwdir}/news_admin
%files notifications
%defattr(-,root,root)
%{egwdir}/notifications
%files phpbrain
%defattr(-,root,root)
%{egwdir}/phpbrain
%files phpsysinfo
%defattr(-,root,root)
%{egwdir}/phpsysinfo
%files polls
%defattr(-,root,root)
%{egwdir}/polls
%files projectmanager
%defattr(-,root,root)
%{egwdir}/projectmanager
%files registration
%defattr(-,root,root)
%{egwdir}/registration
%files resources
%defattr(-,root,root)
%{egwdir}/resources
%files sambaadmin
%defattr(-,root,root)
%{egwdir}/sambaadmin
%files sitemgr
%defattr(-,root,root)
%{egwdir}/sitemgr
%files syncml
%defattr(-,root,root)
%{egwdir}/syncml
%files timesheet
%defattr(-,root,root)
%{egwdir}/timesheet
%files tracker
%defattr(-,root,root)
%{egwdir}/tracker
%files wiki
%defattr(-,root,root)
%{egwdir}/wiki
%changelog
* Tue Mar 9 2010 Ralf Becker <rb@stylite.de> 1.6.003
- eGroupware 1.6.003 security and bugfix release
- fixes 2 security problems:
+ one is a serious remote command execution (allowing to run arbitrary
commands on the web server by simply issuing a HTTP request!)
+ the other a reflected cross-site scripting (XSS)
Both require NO valid EGroupware account and work without being logged in!
- SyncML 1.2 support and many SyncML bug fixes
- many bugfixes since 1.6.002 release
* Mon Jul 20 2009 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.002
- eGroupware 1.6.002 security and bugfix release
- fixes 3 security problems:
+ FCKeditor (remote file upload)
+ tracker (XSS problem)
+ knowledgebase (SQL injection)
- added HTML Purifier as preventive measure for FCKeditor content
- tons of bugfixes since initial 1.6.001 release
* Mon Nov 24 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.001
- eGroupware 1.6.001 final 1.6 release
* Sun Nov 16 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.rc5
- eGroupware 1.6.rc5 5. release candidate for 1.6 release
* Sun Nov 9 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.rc4
- eGroupware 1.6.rc4 4. release candidate for 1.6 release
* Wed Oct 29 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.rc3
- eGroupware 1.6.rc3 3. release candidate for 1.6 release
* Wed Oct 22 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.rc2
- eGroupware 1.6.rc2 2. release candidate for 1.6 release
* Fri Oct 10 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.rc1
- eGroupware 1.6.rc1 first release candidate for 1.6 release
* Tue Jul 22 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.6.pre1
- eGroupware 1.6.pre1 first preview of upcomming 1.6 release
* Mon Apr 15 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.4.004
- eGroupware 1.4.004 FCKeditor update (2.6) & security release
* Mon Mar 19 2008 Ralf Becker <RalfBecker@outdoor-training.de> 1.4.003
- eGroupware 1.4.003 security & maintainace release
* Mon Sep 24 2007 Ralf Becker <RalfBecker@outdoor-training.de> 1.4.002
- eGroupware 1.4.002 bugfix & maintainace release
* Mon Jun 4 2007 Ralf Becker <RalfBecker@outdoor-training.de> 1.4.001
- final eGroupware 1.4 release