File joomla.spec of Package joomla

# spec file for package joomla
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild
%define		apache_serverroot /srv/www/htdocs/%{name}

Name:           joomla
Version:        3.4.1
Release:        1
Summary:        Web Content management system (CMS)
Group:		Productivity/Publishing/HTML/Tools
License:        GPL-2.0
BuildArch:      noarch
BuildRequires:	fdupes
Requires:	php5-mysql php5-gd php5-mbstring php5-json php5-zlib
Recommends:	apache2 apache2-mod_php5
Suggests:	mysql

Joomla is an award-winning content management system (CMS), which enables
you to build Web sites and powerful online applications. Many aspects,
including its ease-of-use and extensibility, have made Joomla the most
popular Web site software available. Best of all, Joomla is an open
source solution that is freely available to everyone.

%setup -q -c


%{__mkdir} -p ${RPM_BUILD_ROOT}%{apache_serverroot}
%{__cp} -r * ${RPM_BUILD_ROOT}%{apache_serverroot}/

# Hardlink duplicate files
%fdupes %{buildroot}

rm -rf %{buildroot}

%dir %{apache_serverroot}