File openmcu.spec of Package openmcu
#
# spec file for package openmcu
#
# Copyright (c) 2016 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: openmcu
Version: 3.48.0
Release: 0
Summary: H.323 Multipoint Control Unit
License: MPL-1.1
Group: Productivity/Telephony/H323/Servers
Url: http://openmcu.ru/eng.htm
Source0: https://github.com/muggot/openmcu/archive/v%{version}.tar.gz
Patch0: aarch64-support.patch
Patch1: undefined-operation.patch
Patch2: ppc64le-support.patch
# PATCH-FIX-UPSTREAM ofstream takes const char not variable
Patch3: openmcu-3.48.0-gcc6.patch
# PATCH-FIX build with ffmpeg 3 abi
Patch4: openmcu-ffmpeg3.patch
BuildRequires: SDL-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: ffmpeg
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: h323plus-devel
BuildRequires: libdv
BuildRequires: libjpeg-devel
BuildRequires: libpt-devel
BuildRequires: openldap2-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libsasl2)
BuildRequires: pkgconfig(libswresample)
BuildRequires: pkgconfig(libv4l2)
BuildRequires: pkgconfig(opal)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(sofia-sip-ua)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(vpx)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OpenMCU implements a multipoint control unit for video conferences
according to the H.323 standard. You might use ohphone as a client
application.
%package codecs
Summary: H.323 Multipoint Control Unit - ptlib codecs
Group: Productivity/Telephony/H323/Servers
%description codecs
OpenMCU implements a multipoint control unit for video conferences
according to the H.323 standard. You might use ohphone as a client
application.
This packages contains audio and video codecs.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-h264
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
# Remove installed doc in the wrong location
rm -f %{buildroot}%{_datadir}/openmcu-ru/{AUTHORS,COPYING,NEWS,README}
# Backward compatibility symlink
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_bindir}/openmcu-ru %{buildroot}%{_sbindir}/openmcu
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/openmcu-ru
%{_sbindir}/openmcu
%{_datadir}/openmcu-ru/
%files codecs
%defattr(-,root,root)
%{_libexecdir}/ptlib/
%changelog