diff --git a/srt-1.4.1.tar.gz b/srt-1.4.1.tar.gz new file mode 100644 index 0000000..bfe44f3 Binary files /dev/null and b/srt-1.4.1.tar.gz differ diff --git a/srt.spec b/srt.spec new file mode 100644 index 0000000..96e793a --- /dev/null +++ b/srt.spec @@ -0,0 +1,85 @@ +Name: srt +Version: 1.4.1 +Release: 3 +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 gmock-devel 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 +* Fri May 07 2021 weidong - 1.4.1-3 +- Initial package.