File moodle-plugins-jitsi.spec of Package moodle-plugins-jitsi

#
# spec file for package moodle-plugins-jitsi
#
# Copyright (c) 2020 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/
#


Name:           moodle-plugins-jitsi
%define         realname moodle-mod_jitsi-3.2.5
%define         moodle_version 3.11
Version:        2022042200
Release:        0
Summary:        Create Jitsi videoconference sessions
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Web/Utilities
Url:            https://github.com/udima-university/moodle-mod_jitsi
Source:         %{realname}.tar.gz
BuildRequires:  moodle >= %{moodle_version}
BuildRequires:  moodle-config-nginx >= %{moodle_version}
BuildRequires:  unzip
BuildRequires:  fdupes
Requires:       moodle >= %{moodle_version}
Requires(pre):  moodle >= %{moodle_version}
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This module allows creating jitsi-meet videoconference sessions fully
integrated in Moodle. These videoconferences will use your Moodle username by
displaying your username and avatar in videoconferences.

Jitsi-meet is an open-source videoconferencing solution that enables you to
easily build and implement secure video conferencing solutions.

Whether you use the public server provided by Jitsi (meet.jit.si) or use your
own Jitsi video conferencing server, with this plugin you can create video
conferencing sessions in your Moodle courses in a simple way: just configure
the domain of the Jitsi server and then, in the course, create a new Jitsi
activity.

The module also allows the use of tokens to give moderation permissions to the
roles you want using the mod/jitsi:moderation capability. (For this option it
is necessary to have your own Jitsi server with token configuration).

Schedule your video conferences in time and make them accessible with The
minutes as you want. In addition, the session will be shown in the Moodle
calendar.

Jitsi allows video conference recording, direct transmission to YouTube, screen
sharing, full screen display, statistics display, among other features and all
these options are fully compatible with this module.

%prep
%setup -q -n %{realname}

for file in \
	.gitignore \
	.php_cs \
	.php_cs.dist \
	.travis.yml \
	; do
	find . -name "$file" -delete
done

find . -name .github -type d -exec rm -rf {} +
find . -name .php-cs-fixer.dist.php -type f -exec rm -rf {} +
find . -name .gitattributes -type f -exec rm -rf {} +

%build

%install
mkdir -p %{buildroot}%{moodle_mod_dir}/jitsi
cp -r * %{buildroot}%{moodle_mod_dir}/jitsi/
%fdupes %{buildroot}%{moodle_mod_dir}/jitsi

%files
%defattr(-,root,root)
%doc *.md
%dir %{moodle_basedir}
%dir %{moodle_mod_dir}/jitsi
%{moodle_mod_dir}/jitsi/*

%changelog
openSUSE Build Service is sponsored by