File moodle.spec of Package moodle
#
# spec file for package moodle
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define moodle_ver moodle4_0
Name: moodle
Version: 4.0
Release: 0
Summary: A Course Management System
License: LGPL-2.0-or-later
Group: Productivity/Networking/Web/Utilities
URL: https://moodle.org/
Requires: %{moodle_ver}
BuildArch: noarch
%description
Moodle is a course management system (CMS) - a free, Open Source
software package designed using sound pedagogical principles, to help
educators create effective online learning communities.
This package is a so called "virtual" package, as it contains no real
sources - but instead recommends the latest moodle package
(currently %{version}) available.
%package config-apache
Summary: Moodle configuration files for apache
Group: Productivity/Networking/Web/Utilities
Conflicts: %{name}-config-nginx
Requires: %{moodle_ver}-config-apache
%description config-apache
If you want to run moodle via apache, just install this
package to get some easy to understand/adaptable configuration files
that make it easy to setup moodle with Apache.
%files config-apache
%defattr(-,root,root)
%doc README.SUSE
%package config-nginx
Summary: Moodle configuration files for nginx
Group: Productivity/Networking/Web/Utilities
Conflicts: %{name}-config-apache
Requires: %{moodle_ver}-config-nginx
%description config-nginx
If you want to run moodle via nginx and PHP-FPM, just install this
package to get some easy to understand/adaptable configuration files
that make it easy to setup moodle with Nginx.
%files config-nginx
%defattr(-,root,root)
%doc README.SUSE
%package config-php-fpm
Summary: Moodle configuration files for PHP-FPM
Group: Productivity/Networking/Web/Utilities
Requires: %{moodle_ver}-config-php-fpm
%description config-php-fpm
If you want to run moodle via PHP-FPM, just install this package to get
some easy to understand/adaptable configuration files that make it easy
to run moodle via PHP-FPM.
%files config-php-fpm
%defattr(-,root,root)
%doc README.SUSE
%package config-postgresql
Summary: Moodle dependencies for PostgreSQL
Group: Productivity/Networking/Web/Utilities
Requires: %{moodle_ver}-config-postgresql
%description config-postgresql
If you want to run moodle with a PostgreSQL database as backend, just
install this package to get the needed dependencies installed on your
system.
%files config-postgresql
%defattr(-,root,root)
%doc README.SUSE
%prep
# ---------------------------------------------------------------------------
%build
# ---------------------------------------------------------------------------
%install
echo "This is a dummy package to provide a dependency on the default Moodle version (sub-)package." > README.SUSE
%files
%defattr(644,root,root,755)
%doc README.SUSE
%changelog