srt/srt.spec

102 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package srt
#
Accepting request 965243 from home:dirkmueller:Factory - update to 1.4.4: * Monotonic/steady clock is enabled by default. * Changed the default value of SRTO_RETRANSMITALGO socket option to 1. This activates the efficient retransmission algorithm on the sender side which optimizes the bandwidth usage by producing fewer retransmissions per lost packet. The algorithm is available since v1.4.2. Intensive retransmission algorithm (the former default) can be activated by setting SRTO_RETRANSMITALGO=0. * Improved random integer retrieval, which is mainly used for initial socket ID and Initial Sequence Number (ISN) generation. * Improved clock drift compensation algorithm. RTT samples are now taken into account when estimating clock drift. * Improved round-trip time (RTT) estimation. On the receiver side, smoothed RTT (SRTT) is set to the first RTT measurement obtained from the first ACK/ACKACK pair. When a subsequent RTT measurement is made, an exponentially weighted moving average (EWMA) is used to update smoothed RTT. Before the very first RTT sample is available, SRTT is initialized as 100 ms or taken from the cache if one exists. * On the sender side, in the case of unidirectional transmission, the values of smoothed RTT and RTT variance are now extracted from ACK packets. In the case of bidirectional transmission, an EWMA is still applied to be consistent with the previous behavior. * Improved 'No room to store incoming packet' warning with additional hints to identify a possible reason. * Added support for atomic types. * Improved the logic of switching between main and backup links, extended the list of member link states as well as defined events resulting in state transition for Main/Backup mode of Connection Bonding. * Documented Main/Backup mode of Connection Bonding. See here. * Fixed group read-readiness update on the receiver side. OBS-URL: https://build.opensuse.org/request/show/965243 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/srt?expand=0&rev=30
2022-03-28 09:55:39 +02:00
# Copyright (c) 2022 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 sover 1_4
Name: srt
Accepting request 965243 from home:dirkmueller:Factory - update to 1.4.4: * Monotonic/steady clock is enabled by default. * Changed the default value of SRTO_RETRANSMITALGO socket option to 1. This activates the efficient retransmission algorithm on the sender side which optimizes the bandwidth usage by producing fewer retransmissions per lost packet. The algorithm is available since v1.4.2. Intensive retransmission algorithm (the former default) can be activated by setting SRTO_RETRANSMITALGO=0. * Improved random integer retrieval, which is mainly used for initial socket ID and Initial Sequence Number (ISN) generation. * Improved clock drift compensation algorithm. RTT samples are now taken into account when estimating clock drift. * Improved round-trip time (RTT) estimation. On the receiver side, smoothed RTT (SRTT) is set to the first RTT measurement obtained from the first ACK/ACKACK pair. When a subsequent RTT measurement is made, an exponentially weighted moving average (EWMA) is used to update smoothed RTT. Before the very first RTT sample is available, SRTT is initialized as 100 ms or taken from the cache if one exists. * On the sender side, in the case of unidirectional transmission, the values of smoothed RTT and RTT variance are now extracted from ACK packets. In the case of bidirectional transmission, an EWMA is still applied to be consistent with the previous behavior. * Improved 'No room to store incoming packet' warning with additional hints to identify a possible reason. * Added support for atomic types. * Improved the logic of switching between main and backup links, extended the list of member link states as well as defined events resulting in state transition for Main/Backup mode of Connection Bonding. * Documented Main/Backup mode of Connection Bonding. See here. * Fixed group read-readiness update on the receiver side. OBS-URL: https://build.opensuse.org/request/show/965243 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/srt?expand=0&rev=30
2022-03-28 09:55:39 +02:00
Version: 1.4.4
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
Source99: baselibs.conf
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: tcl
BuildRequires: pkgconfig(openssl)
%description
SRT is a video transport protocol and technology stack
that optimizes streaming performance across unpredictable networks
with secure streams and firewall traversal.
%package -n libsrt%{sover}
Summary: Secure Reliable Transport (SRT) library
Group: System/Libraries
%description -n libsrt%{sover}
This package contains a shared system library for Secure Reliable
Transport (SRT).
%package devel
Summary: Development files for the Secure Reliable Transport (SRT) library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libsrt%{sover} = %{version}
%description devel
This package contains all necessary include files and libraries
needed to develop applications with Secure Reliable Transport
(SRT) support.
%prep
%autosetup -p1
%build
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
-DENABLE_CXX11=ON \
-DENABLE_SHARED=ON \
Accepting request 965243 from home:dirkmueller:Factory - update to 1.4.4: * Monotonic/steady clock is enabled by default. * Changed the default value of SRTO_RETRANSMITALGO socket option to 1. This activates the efficient retransmission algorithm on the sender side which optimizes the bandwidth usage by producing fewer retransmissions per lost packet. The algorithm is available since v1.4.2. Intensive retransmission algorithm (the former default) can be activated by setting SRTO_RETRANSMITALGO=0. * Improved random integer retrieval, which is mainly used for initial socket ID and Initial Sequence Number (ISN) generation. * Improved clock drift compensation algorithm. RTT samples are now taken into account when estimating clock drift. * Improved round-trip time (RTT) estimation. On the receiver side, smoothed RTT (SRTT) is set to the first RTT measurement obtained from the first ACK/ACKACK pair. When a subsequent RTT measurement is made, an exponentially weighted moving average (EWMA) is used to update smoothed RTT. Before the very first RTT sample is available, SRTT is initialized as 100 ms or taken from the cache if one exists. * On the sender side, in the case of unidirectional transmission, the values of smoothed RTT and RTT variance are now extracted from ACK packets. In the case of bidirectional transmission, an EWMA is still applied to be consistent with the previous behavior. * Improved 'No room to store incoming packet' warning with additional hints to identify a possible reason. * Added support for atomic types. * Improved the logic of switching between main and backup links, extended the list of member link states as well as defined events resulting in state transition for Main/Backup mode of Connection Bonding. * Documented Main/Backup mode of Connection Bonding. See here. * Fixed group read-readiness update on the receiver side. OBS-URL: https://build.opensuse.org/request/show/965243 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/srt?expand=0&rev=30
2022-03-28 09:55:39 +02:00
-DENABLE_MONOTONIC_CLOCK=ON \
-DENABLE_STATIC=OFF \
%{nil}
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{_prefix}
%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
%{_bindir}/%{name}-tunnel
%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