[ndi-sdk/f34] Fix armv7l arch
by Nicolas Chauvet
Summary of changes:
ad42967... Fix armv7l arch (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk] Fix armv7l arch
by Nicolas Chauvet
commit ad42967d63d8232a95cbd63f19c1a050fec8b64c
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Mar 20 21:30:39 2021 +0100
Fix armv7l arch
ndi-sdk.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ndi-sdk.spec b/ndi-sdk.spec
index 07c24f0..f72fa6a 100644
--- a/ndi-sdk.spec
+++ b/ndi-sdk.spec
@@ -61,7 +61,7 @@ mv 'NDI SDK for Linux'/* .
_arch=$(uname -m)
case ${_arch} in
- armv7hl)
+ armv7l)
_ndi_arch="arm-rpi3-linux-gnueabihf"
;;
i386)
3 years, 8 months
[ndi-sdk/el8] Add missing file
by Nicolas Chauvet
Summary of changes:
0924689... Add missing file (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk/f33] Add missing file
by Nicolas Chauvet
Summary of changes:
0924689... Add missing file (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk/f34] Add missing file
by Nicolas Chauvet
Summary of changes:
0924689... Add missing file (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk] Add missing file
by Nicolas Chauvet
commit 09246891a829a79fcb9b68f582ee33f7101c204c
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Mar 20 21:21:55 2021 +0100
Add missing file
ndi.pc.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/ndi.pc.in b/ndi.pc.in
new file mode 100644
index 0000000..af4601b
--- /dev/null
+++ b/ndi.pc.in
@@ -0,0 +1,12 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=@LIBDIR@
+includedir=${prefix}/include/ndi-sdk
+datarootdir=${prefix}/share
+datadir=${datarootdir}
+
+Name: NewTek NDI
+Description: NewTek NDI
+Version: @VERSION@
+Libs: -L${libdir} -lndi
+Cflags: -I${includedir}
3 years, 8 months
[ndi-sdk/el8] Initial import
by Nicolas Chauvet
Summary of changes:
8bda47a... Initial import (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk/f33] Initial import
by Nicolas Chauvet
Summary of changes:
8bda47a... Initial import (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk/f34] Initial import
by Nicolas Chauvet
Summary of changes:
8bda47a... Initial import (*)
(*) This commit already existed in another branch; no separate mail sent
3 years, 8 months
[ndi-sdk] Initial import
by Nicolas Chauvet
commit 8bda47a536173ba6d909ff08c852ef8aa26de373
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Mar 20 16:51:43 2021 +0100
Initial import
.gitignore | 1 +
ndi-sdk.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 121 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..475ce99 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+InstallNDISDK_*_Linux.tar.gz
diff --git a/ndi-sdk.spec b/ndi-sdk.spec
new file mode 100644
index 0000000..07c24f0
--- /dev/null
+++ b/ndi-sdk.spec
@@ -0,0 +1,119 @@
+%global debug_package %{nil}
+%global __strip /bin/true
+
+Name: ndi-sdk
+Version: 4.6.1
+Release: 1%{?dist}
+Summary: NewTek NDI SDK
+
+License: Proprietary
+URL: https://ndi.tv/sdk
+Source0: https://downloads.ndi.tv/SDK/NDI_SDK_Linux/InstallNDISDK_v4_Linux.tar.gz
+Source1: ndi.pc.in
+
+ExclusiveArch: i686 x86_64 armv7hl
+
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+
+%description
+NewTek NDI SDK.
+
+%package -n libndi-sdk
+Summary: Libraries files for %{name}
+
+
+%description -n libndi-sdk
+The libndi-sdk package contains libraries for %{name}.
+
+
+%package devel
+Summary: Libraries/include files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package documentation
+Summary: Documentation for %{name}
+
+%description documentation
+The %{name}-documentation documentations for %{name}.
+
+
+
+%prep
+%autosetup -c
+
+# Uncompress installer
+ARCHIVE=$(awk '/^__NDI_ARCHIVE_BEGIN__/ { print NR+1; exit 0; }' InstallNDISDK_v4_Linux.sh)
+tail -n+$ARCHIVE InstallNDISDK_v4_Linux.sh | tar -xz
+mv 'NDI SDK for Linux'/* .
+
+
+%build
+# Nothing to build
+
+
+%install
+_arch=$(uname -m)
+
+case ${_arch} in
+ armv7hl)
+ _ndi_arch="arm-rpi3-linux-gnueabihf"
+ ;;
+ i386)
+ _ndi_arch=i686-linux-gnu
+ ;;
+ i686|x86_64)
+ _ndi_arch=${_arch}-linux-gnu
+ ;;
+ *)
+ echo "Architecture not included"
+ exit 2
+ ;;
+esac
+
+# Install lib/bin as appropriate
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_libdir}
+install -pm 0755 bin/${_ndi_arch}/ndi* %{buildroot}%{_bindir}
+install -pm 0755 lib/${_ndi_arch}/libndi.so* %{buildroot}%{_libdir}
+ldconfig -n %{buildroot}%{_libdir}
+
+# Install headers
+mkdir -p %{buildroot}%{_includedir}/%{name}
+install -pm 0644 include/*.h %{buildroot}%{_includedir}/%{name}
+
+# Install pc file
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+install -pm 0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/ndi.pc
+sed -i -e 's|@LIBDIR@|%{_libdir}|' \
+ -e 's|@PREFIX@|%{_prefix}|' \
+ -e 's|@VERSION@|%{version}|' \
+ %{buildroot}%{_libdir}/pkgconfig/ndi.pc
+
+
+
+%files
+%{_bindir}/ndi-*
+
+%files -n libndi-sdk
+%license "NDI SDK License Agreement.pdf" "NDI SDK License Agreement.txt" Version.txt licenses/libndi_licenses.txt
+%{_libdir}/libndi.so.4*
+
+%files devel
+%doc examples
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/*.h
+%{_libdir}/pkgconfig/ndi.pc
+
+%files documentation
+%doc documentation
+
+
+%changelog
+* Wed Feb 24 2021 Nicolas Chauvet <kwizart(a)gmail.com> - 4.6.1-1
+- Initial spec file
diff --git a/sources b/sources
index e69de29..ec0cbea 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (InstallNDISDK_v4_Linux.tar.gz) = 51ec2ab0b37c7211e08ed189f196bfd68ee227d3f20884a77d6fc35160d43362b79bfd98c641cc20a31b1811d600136ea2152d798c1e4d41975a9bff1d6837f9
3 years, 8 months