From 05e531de435055b7c1d53911087324fea61d2d44 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 27 Feb 2024 12:16:57 +0300 Subject: [PATCH] import srt-1.4.1-3.el8 --- .gitignore | 1 + .srt.metadata | 1 + SPECS/srt.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 .gitignore create mode 100644 .srt.metadata create mode 100644 SPECS/srt.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d6279c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/srt-1.4.1.tar.gz diff --git a/.srt.metadata b/.srt.metadata new file mode 100644 index 0000000..8688723 --- /dev/null +++ b/.srt.metadata @@ -0,0 +1 @@ +866e20b5d576d17578cf579b8bcc194f8f07861a SOURCES/srt-1.4.1.tar.gz diff --git a/SPECS/srt.spec b/SPECS/srt.spec new file mode 100644 index 0000000..8af9185 --- /dev/null +++ b/SPECS/srt.spec @@ -0,0 +1,112 @@ +Name: srt +Version: 1.4.1 +Release: 3%{?dist} +Summary: Secure Reliable Transport protocol tools + +License: MPLv2.0 +URL: https://www.srtalliance.org +Source0: https://github.com/Haivision/srt/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake gcc-c++ +BuildRequires: gnutls-devel +BuildRequires: gmock-devel +BuildRequires: gtest-devel + +Requires: srt-libs%{?_isa} = %{version}-%{release} + + +%description +Secure Reliable Transport (SRT) is an open source transport technology that +optimizes streaming performance across unpredictable networks, such as +the Internet. + +%package libs +Summary: Secure Reliable Transport protocol libraries + +%description libs +Secure Reliable Transport protocol libraries + +%package devel +Summary: Secure Reliable Transport protocol development libraries and headers +Requires: srt-libs%{?_isa} = %{version}-%{release} + +%description devel +Secure Reliable Transport protocol development libraries and header files + + +%prep +%autosetup + + +%build +%cmake \ + -DENABLE_STATIC=OFF \ + -DENABLE_UNITTESTS=ON \ + -DENABLE_GETNAMEINFO=ON \ + -DUSE_ENCLIB=gnutls \ + . + +%make_build + + +%install +%make_install +# remove old upstream temporary compatibility pc +rm -f %{buildroot}/%{_libdir}/pkgconfig/haisrt.pc + + +%check +# Fails with x390x +make test \ +%ifarch s390x + || : +%endif + + +%ldconfig_scriptlets libs + + +%files +%license LICENSE +%doc README.md docs +%{_bindir}/srt-ffplay +%{_bindir}/srt-file-transmit +%{_bindir}/srt-live-transmit +%{_bindir}/srt-tunnel +%{_bindir}/test-srt + +%files libs +%license LICENSE +%{_libdir}/libsrt.so.1* + +%files devel +%doc examples +%{_includedir}/srt +%{_libdir}/libsrt.so +%{_libdir}/pkgconfig/srt.pc + + +%changelog +* Tue Feb 27 2024 Sergey Cherevko - 1.4.1-3 +- Rebuilt for MSVSphere 8.9 + +* Mon Apr 06 2020 Nicolas Chauvet - 1.4.1-3 +- Switch to gnutls instead of openssl +- Enable tests +- Enforce strict EVR from main to -libs + +* Fri Jan 31 2020 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Dec 9 2019 Yanko Kaneti - 1.4.1-1 +- Update to 1.4.1 + +* Mon Sep 16 2019 Yanko Kaneti - 1.4.0-1 +- Update to 1.4.0 + +* Wed Sep 11 2019 Yanko Kaneti - 1.3.4-1 +- Update to 1.3.4 + +* Thu Aug 1 2019 Yanko Kaneti - 1.3.3-3 +- First attempt +- Adjustments suggested by review