From 6896b1f7529cc3e33ad9497a722ee78d975d056b430b3cc25381a0cd52e4d91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 21 May 2018 19:12:04 +0000 Subject: [PATCH] Accepting request 611004 from home:iznogood:branches:multimedia:libs New package, usable as builddep for gst-plugins-bad and ffmpeg4, resub tweaked. OBS-URL: https://build.opensuse.org/request/show/611004 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/srt?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + srt-1.3.0.tar.gz | 3 ++ srt-no-rpath.patch | 12 ++++++ srt.changes | 5 +++ srt.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 srt-1.3.0.tar.gz create mode 100644 srt-no-rpath.patch create mode 100644 srt.changes create mode 100644 srt.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/srt-1.3.0.tar.gz b/srt-1.3.0.tar.gz new file mode 100644 index 0000000..e86386f --- /dev/null +++ b/srt-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:645c13a9a5c5b59315f82245737289e071a5441ee40de6e2e45af61e305e1f2c +size 763420 diff --git a/srt-no-rpath.patch b/srt-no-rpath.patch new file mode 100644 index 0000000..b1ec4be --- /dev/null +++ b/srt-no-rpath.patch @@ -0,0 +1,12 @@ +diff --git i/CMakeLists.txt w/CMakeLists.txt +index e913122..2cc3c3d 100644 +--- i/CMakeLists.txt ++++ w/CMakeLists.txt +@@ -634,7 +634,6 @@ macro(srt_make_application name) + # be placed into the binrary directory anyway. + # XXX not sure about Mac. + # See this name used already in install(${TARGET_srt} LIBRARY DESTINATION...). +- set(FORCE_RPATH LINK_FLAGS -Wl,-rpath,.,-rpath,../${CMAKE_INSTALL_LIBDIR} BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH_USE_LINK_PATH TRUE) + endif() + + # We state that Darwin always uses CLANG compiler, which honors this flag the same way. diff --git a/srt.changes b/srt.changes new file mode 100644 index 0000000..7da6d76 --- /dev/null +++ b/srt.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon May 21 11:47:59 UTC 2018 - bjorn.lie@gmail.com + +- Inital packaging. + diff --git a/srt.spec b/srt.spec new file mode 100644 index 0000000..56a4efe --- /dev/null +++ b/srt.spec @@ -0,0 +1,100 @@ +# +# spec file for package srt +# +# Copyright (c) 2018 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/ +# + +%define sover 1 + +Name: srt +Version: 1.3.0 +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 +# PATCH-FIX-UPSTREAM srt-no-rpath.patch -- Fix build, patch from archlinux +Patch0: srt-no-rpath.patch + +BuildRequires: cmake +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: tcl +BuildRequires: pkgconfig(openssl) + +%description +SRT is an open source video transport protocol and technology stack +that optimizes streaming performance across unpredictable networks +with secure streams and easy firewall traversal, bringing the best +quality live video over the worst networks. + +%package -n libsrt%{sover} +Summary: SRT shared library +Group: System/Libraries + +%description -n libsrt%{sover} +This package contains a shared system library for srt. + +%package devel +Summary: Development files for srt +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 that require these. + +%prep +%autosetup -p1 + +%build +%cmake \ + -DCMAKE_INSTALL_PREFIX=%{_datadir} \ + -DCMAKE_INSTALL_BINDIR=%{_bindir} \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ + -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ + -DENABLE_CXX11=ON \ + -DENABLE_SHARED=ON \ + -DENABLE_STATIC=OFF \ + %{nil} +make %{?_smp_mflags} + +%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}-multiplex + +%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