2018-05-21 21:12:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package srt
|
|
|
|
#
|
2023-01-09 15:42:27 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-05-21 21:12:04 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-29 10:25:24 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-21 21:12:04 +02:00
|
|
|
#
|
|
|
|
|
2018-05-31 11:20:11 +02:00
|
|
|
|
2023-01-09 15:42:27 +01:00
|
|
|
%define sover 1_5
|
2019-08-20 11:28:35 +02:00
|
|
|
|
2018-05-21 21:12:04 +02:00
|
|
|
Name: srt
|
2023-10-03 10:40:54 +02:00
|
|
|
Version: 1.5.3
|
2018-05-21 21:12:04 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Secure Reliable Transport (SRT)
|
|
|
|
License: MPL-2.0
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://www.srtalliance.org
|
|
|
|
Source0: https://github.com/Haivision/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-06-29 20:15:57 +02:00
|
|
|
Source99: baselibs.conf
|
2018-05-21 21:12:04 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: tcl
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
|
|
|
|
%description
|
2018-08-08 19:01:15 +02:00
|
|
|
SRT is a video transport protocol and technology stack
|
2018-05-21 21:12:04 +02:00
|
|
|
that optimizes streaming performance across unpredictable networks
|
2018-08-08 19:01:15 +02:00
|
|
|
with secure streams and firewall traversal.
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%package -n libsrt%{sover}
|
2018-05-31 11:20:11 +02:00
|
|
|
Summary: Secure Reliable Transport (SRT) library
|
2018-05-21 21:12:04 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsrt%{sover}
|
2018-05-31 11:20:11 +02:00
|
|
|
This package contains a shared system library for Secure Reliable
|
|
|
|
Transport (SRT).
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%package devel
|
2018-07-13 09:28:58 +02:00
|
|
|
Summary: Development files for the Secure Reliable Transport (SRT) library
|
2018-05-21 21:12:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-29 10:25:24 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libsrt%{sover} = %{version}
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries
|
2018-05-31 11:20:11 +02:00
|
|
|
needed to develop applications with Secure Reliable Transport
|
|
|
|
(SRT) support.
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
2019-08-30 17:04:17 +02:00
|
|
|
|
2018-05-21 21:12:04 +02:00
|
|
|
%build
|
|
|
|
%cmake \
|
2018-11-14 12:55:09 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2018-05-21 21:12:04 +02:00
|
|
|
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
|
|
|
|
-DENABLE_CXX11=ON \
|
|
|
|
-DENABLE_SHARED=ON \
|
2022-03-28 09:55:39 +02:00
|
|
|
-DENABLE_MONOTONIC_CLOCK=ON \
|
2018-05-21 21:12:04 +02:00
|
|
|
-DENABLE_STATIC=OFF \
|
|
|
|
%{nil}
|
2019-08-20 11:28:35 +02:00
|
|
|
%cmake_build
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2021-02-10 13:40:04 +01:00
|
|
|
%fdupes %{buildroot}%{_prefix}
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%post -n libsrt%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libsrt%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CONTRIBUTING.md README.md
|
|
|
|
%{_bindir}/%{name}-ffplay
|
|
|
|
%{_bindir}/%{name}-file-transmit
|
|
|
|
%{_bindir}/%{name}-live-transmit
|
2019-08-20 11:28:35 +02:00
|
|
|
%{_bindir}/%{name}-tunnel
|
2018-05-21 21:12:04 +02:00
|
|
|
|
|
|
|
%files -n libsrt%{sover}
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libsrt.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libsrt.so
|
|
|
|
%{_libdir}/pkgconfig/haisrt.pc
|
|
|
|
%{_libdir}/pkgconfig/srt.pc
|
|
|
|
|
|
|
|
%changelog
|