File jangouts.spec of Package jangouts

#
# spec file for package jangouts
#
# Copyright (c) 2015 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:           jangouts
Version:        0.6.0
Release:        0
Summary:        Videoconferencing based on WebRTC
License:        MIT
Group:          Productivity/Networking/Other
Url:            https://github.com/jangouts/jangouts
Source:         https://github.com/jangouts/jangouts/archive/v%{version}.tar.gz
Source10:       jangouts.conf.template
Source11:       jangouts-ssl.conf.template
Source12:       jangouts-common.inc
#
Requires:       http_daemon
Recommends:     apache2

%description
Jangouts (for "Janus Hangouts") is a solution for
videoconferencing based on WebRTC and the excellent Janus Gateway
with a user interface loosely inspired by Google Hangouts. It aims
to provide a completely self-hosted open source alternative to
Google Hangouts and similar solutions. Currently Jangouts supports
conferences with video, audio, screen sharing and textual chat
organized into an unlimited amount of conference rooms with a
configurable limit of participants per room.

%prep
%setup -q

%build
# FIXME: this package just reuses the build directory from upstream
# which is cheating.

%install
install -d -m 755 %{buildroot}%{_datadir}/jangouts
cp -a build/* %{buildroot}%{_datadir}/jangouts
# put config in /etc
install -d -m 755 %{buildroot}%{_sysconfdir}/jangouts
mv %{buildroot}%{_datadir}/jangouts/config.json.sample %{buildroot}%{_sysconfdir}/jangouts/config.json
ln -s %{_sysconfdir}/jangouts/config.json %{buildroot}%{_datadir}/jangouts/config.json
#
mkdir -p %{buildroot}%{_sysconfdir}/apache2/vhosts.d
install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{buildroot}%{_sysconfdir}/apache2/vhosts.d

%files
%defattr(-,root,root)
%doc LICENSE.txt README.md 
%dir %{_sysconfdir}/jangouts
%config(noreplace) %{_sysconfdir}/jangouts/config.json
%{_datadir}/jangouts/
%dir %{_sysconfdir}/apache2
%dir %{_sysconfdir}/apache2/vhosts.d
%config %{_sysconfdir}/apache2/vhosts.d/*

%changelog
openSUSE Build Service is sponsored by