commit e89eb8a7414c4aec6adb72909ee9d91c273aadcc
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sun Mar 21 10:45:48 2021 +0100
Initial import
.gitignore | 1 +
obs-ndi.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 60 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5bc2092 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+obs-ndi-*.tar.gz
diff --git a/obs-ndi.spec b/obs-ndi.spec
new file mode 100644
index 0000000..ecd4046
--- /dev/null
+++ b/obs-ndi.spec
@@ -0,0 +1,58 @@
+Name: obs-ndi
+Version: 4.9.1
+Release: 1%{?dist}
+Summary: Network A/V in OBS Studio with NewTek's NDI technology
+
+License: GPLv2+
+URL:
https://github.com/Palakis/obs-ndi
+Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+
+ExclusiveArch: i686 x86_64 armv7hl
+
+BuildRequires: cmake
+BuildRequires: make
+BuildRequires: gcc-c++
+BuildRequires: cmake(Qt5Core)
+BuildRequires: cmake(Qt5Widgets)
+BuildRequires: obs-studio-devel
+Requires: obs-studio
+# A libndi.so.4 implementation is meant to be dlopen
+Requires: ndi-sdk%{?isa}
+
+%description
+* NDI Source : receive NDI video and audio in OBS
+* NDI Output : transmit video and audio from OBS to NDI
+* NDI Filter (a.k.a NDI Dedicated Output) : transmit a single source or
+scene to NDI
+
+
+%prep
+%autosetup -p1
+
+# Where to find the libndi.so.4 library
+sed -i -e 's|/usr/lib|%{_libdir}|' src/obs-ndi.cpp
+
+# Remove tuning
+sed -i -e 's/-mtune=core2 -Ofast//' CMakeLists.txt
+
+
+%build
+%cmake
+
+%cmake_build
+
+
+%install
+%cmake_install
+
+
+%files
+%license LICENSE
+%doc README.md
+%{_libdir}/obs-plugins/obs-ndi.so
+%{_datadir}/obs/obs-plugins/obs-ndi
+
+
+%changelog
+* Wed Feb 24 2021 Nicolas Chauvet <kwizart(a)gmail.com> - 4.9.1-1
+- Initial spec file
diff --git a/sources b/sources
index e69de29..0ff7e67 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (obs-ndi-4.9.1.tar.gz) =
6e41afc5b6c5d9e0875327270e0d802bbb230e78fca23146f31a68170955d2033539bf56f956c1f30cbae70614b62d563c1428ab626ef2d18fe95bfe04b02a78