File froxlor.spec of Package froxlor

#
# spec file for package froxlor
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#


%define apache_serverroot /srv/www/htdocs

Name:           froxlor
Version:        0.9.24
Release:        1
Source0:        froxlor-%{version}.tar.bz2
Source1:        froxlor.suse.adapt.template.config.tar.bz2 
Patch0:         froxlor.sql.patch	
#Packager:      Andrej Semen asemen@suse.de
Url:            http://www.froxlor.org
#               froxlor is under GPL-2.0 and Smarty-3.0.8 is under GPL-3.0. As both are under in run time in same Memory this lead to GPL-2.0+ 
License:        GPL-2.0+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Group:          Productivity/Networking/Web/Utilities
Summary:        Froxlor Server Management Panel a php web-based administration software

BuildRequires:  apache2
Requires:       apache2, apache2-mod_php5, php5, php5-mysql, php5-posix, php5-bcmath, postfix, mysql, postfix-mysql, courier-imap, courier-authlib, courier-authlib-mysql, courier-authlib-userdb, cyrus-sasl-sqlauxprop, cyrus-sasl-saslauthd, pure-ftpd

%description
A Server Management Panel is a php web-based administration software.
Developed by experienced server administrators this open source (GPL) panel simplifies the effort of managing your hosting platform

Froxlor can help you set up and manage a lot of system-services, like web-, mail- and ftpserver and it also brings some nice features such as a complete support-ticket system and an implementation of the Application Packaging Standard.

%prep
%setup -q -n  %{name}
%setup1 -T -D -b 1 -n %{name}
%setup2 -T -D -b 1 -n %{name}
%patch0  

%build

%install
idir=$RPM_BUILD_ROOT/srv/www/htdocs/%{name}
mkdir -p $idir
cp -aRf * $idir

#chmod -R 755 *
#mkdir -p uploadfiles
#chmod -R 707 images

echo "froxlor installation see doc http://wiki.froxlor.org/contrib/opensuse-11.x" > $idir/README.SUSE
echo "see also froxlor website http://www.froxlor.org/" >> $idir/README.SUSE
echo "For SLE11 and SLE10 see README" >> $idir/README.SUSE

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,wwwrun,www)
/srv/www/htdocs/%{name}

#%config
#/srv/www/htdocs/syscp/lib/userdata.inc.php

%changelog
openSUSE Build Service is sponsored by