File froxlor.spec of Package froxlor
#
# spec file for package froxlor
#
# Copyright (c) 2017 SUSE LINUX 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.38.7
Release: 0
Source0: froxlor-%{version}.tar.bz2
Source1: froxlor-httpd.conf
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+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Summary: Froxlor Server Management Panel a php web-based administration software
License: GPL-2.0+
Group: Productivity/Networking/Web/Utilities
BuildRequires: apache2
# Hard requirements
Requires: apache2
#Requires: apache2-mod_php5
#Requires: courier-authlib
#Requires: courier-authlib-mysql
#Requires: courier-authlib-userdb
#Requires: courier-imap
#Requires: cyrus-sasl-saslauthd
#Requires: cyrus-sasl-sqlauxprop
Requires: mysql
Requires: php
Requires: php-bcmath
Requires: php-curl
Requires: php-mbstring
Requires: php-mysql
Requires: php-posix
Requires: postfix
Requires: postfix-mysql
Requires: 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}
%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/" > $idir/README.SUSE
echo "see also froxlor website http://www.froxlor.org/" >> $idir/README.SUSE
echo "For SLE11 and SLE12 see README" >> $idir/README.SUSE
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,wwwrun,www)
/srv/www/htdocs/%{name}
%changelog