File SugarCRM-OS.spec of Package sugarcrm
#
# spec file for package SugarOS (4.5.1f 0)
#
# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
%define short_name SugarOS
Name: SugarCRM-OS
Summary: The open source edition of the SugarCRM product
Provides: sugarcrm
License: MPL 1.1 derivative with advertising clause
Group: Productivity/Networking/Web/Utilities
Version: 4.5.1f
%define fullname %{short_name}-%{version}
Release: 0
Packager: Josef Assad <joe@DonAssad.com>
URL: http://www.sugarcrm.com
Source0: http://www.sugarforge.org/frs/download.php/3432/SugarOS-4.5.1f.zip
# Source0: %short_name-%{version}.zip
Prefix: %{_prefix}
Requires: mysql > 4.1.2, apache2, apache2-mod_php5
Provides: sugarcrm
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{fullname}
%define _webdir /srv/www/htdocs/%{name}-%{version}
%description
SugarCRM is a complete CRM system for businesses of all sizes. Core CRM
functionality includes sales force automation, marketing campaigns, support
cases, project management, calendaring, and more. It supports MySQL and MS SQL
Server.
This is the open source edition of the SugarCRM product.
%prep
%setup -n %{short_name}-Full-%{version}
%build
umask 022
%install
umask 022
mkdir -p %{buildroot}/%{_webdir}
cp -a * %{buildroot}/%{_webdir}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_webdir}
%attr(-, wwwrun, www) %{_webdir}/config.php
%attr(-, wwwrun, www) %{_webdir}/cache/
%attr(-, wwwrun, www) %{_webdir}/custom/
%attr(-, wwwrun, www) %{_webdir}/data/
%attr(-, wwwrun, www) %{_webdir}/modules/
%exclude %{_webdir}/INSTALLATION.txt
%exclude %{_webdir}/LICENSE.txt
%exclude %{_webdir}/PATCH.txt
%exclude %{_webdir}/README.txt
%exclude %{_webdir}/UPGRADE.TXT
%exclude %{_webdir}/examples/EXAMPLES_README.txt
%doc INSTALLATION.txt LICENSE.txt PATCH.txt README.txt UPGRADE.TXT examples/EXAMPLES_README.txt