[packages/klvanc-tools] - new

qboosh qboosh at pld-linux.org
Sat Nov 23 21:07:05 CET 2019


commit c104eba574e9b9aebaaa051fda876574fb60af31
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 23 21:07:18 2019 +0100

    - new

 klvanc-tools-am.patch |  8 +++++++
 klvanc-tools-sh.patch | 33 +++++++++++++++++++++++++++
 klvanc-tools.spec     | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+)
---
diff --git a/klvanc-tools.spec b/klvanc-tools.spec
new file mode 100644
index 0000000..5bf07a1
--- /dev/null
+++ b/klvanc-tools.spec
@@ -0,0 +1,62 @@
+Summary:	Vertical Ancillary Data (VANC) tools
+Summary(pl.UTF-8):	Narzędzia do danych VANC (Vertical Ancillary Data)
+Name:		klvanc-tools
+Version:	1.0
+%define	snap	20190911
+%define	gitref	887b50247134b077c903ef813527ea33fa13b6c1
+Release:	0.%{snap}.1
+License:	LGPL v2.1
+Group:		Applications/Multimedia
+Source0:	https://github.com/stoth68000/klvanc-tools/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5:	af886529a958f20fafc537bf78f17cf6
+Patch0:		%{name}-am.patch
+Patch1:		%{name}-sh.patch
+URL:		https://github.com/stoth68000/klvanc-tools
+BuildRequires:	libklvanc-devel
+BuildRequires:	libtool
+BuildRequires:	ncurses-devel
+BuildRequires:	zlib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libklvanc is a library which can be used for parsing/generation of
+Vertical Ancillary Data (VANC) commonly found in the Serial Digital
+Interface (SDI) wire protocol.
+
+This package contains tools built against the library.
+
+%description -l pl.UTF-8
+Libklvanc to biblioteka służąca do analizy i generowania danych VANC
+(Vertical Ancillary Data), używanych generalnbie w protokole Serial
+Digital Interface (SDI).
+
+Ten pakiet zawiera narzędzia zbudowane w oparciu o bibliotekę.
+
+%prep
+%setup -q -n %{name}-%{gitref}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+	--disable-silent-rules
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/klvanc_capture
diff --git a/klvanc-tools-am.patch b/klvanc-tools-am.patch
new file mode 100644
index 0000000..cf845ce
--- /dev/null
+++ b/klvanc-tools-am.patch
@@ -0,0 +1,8 @@
+--- klvanc-tools-887b50247134b077c903ef813527ea33fa13b6c1/tools/Makefile.am.orig	2019-09-10 20:10:45.000000000 +0200
++++ klvanc-tools-887b50247134b077c903ef813527ea33fa13b6c1/tools/Makefile.am	2019-11-23 19:11:38.477618793 +0100
+@@ -1,3 +1,4 @@
++BLACKMAGIC_SDK_PATH=$(top_srcdir)/include/decklink-sdk
+ 
+-AUTOMAKE_OPTIONS = foreign
++AUTOMAKE_OPTIONS = foreign subdir-objects
+ GIT_VERSION := $(shell git describe --abbrev=8 --dirty --always --tags)
diff --git a/klvanc-tools-sh.patch b/klvanc-tools-sh.patch
new file mode 100644
index 0000000..f888e2e
--- /dev/null
+++ b/klvanc-tools-sh.patch
@@ -0,0 +1,33 @@
+--- klvanc-tools-887b50247134b077c903ef813527ea33fa13b6c1/configure.ac.orig	2019-09-10 20:10:45.000000000 +0200
++++ klvanc-tools-887b50247134b077c903ef813527ea33fa13b6c1/configure.ac	2019-11-23 20:35:11.110463032 +0100
+@@ -15,11 +15,11 @@
+ PLAT_PREFIX=Linux
+ if test `uname -s` = "Darwin"
+ then
+-CFLAGS+=" -I/usr/local/include "
+-LDFLAGS+=" -L/usr/local/lib -framework CoreFoundation"
++CFLAGS="$CFLAGS -I/usr/local/include "
++LDFLAGS="$LDFLAGS -L/usr/local/lib -framework CoreFoundation"
+ PLAT_PREFIX=Mac
+ fi
+-CFLAGS+=" -DKL_USERSPACE "
++CFLAGS="$CFLAGS -DKL_USERSPACE "
+ 
+ # We always build with -fPIC in case our static libraries end up
+ # being linked into a consumer's shared library
+@@ -47,13 +47,13 @@
+ # Check for curses (optional)
+ AC_CHECK_HEADERS([curses.h], HEADER_LIBCURSES="yes")
+ if test "x$HEADER_LIBCURSES" == "xyes" ; then
+-    LDFLAGS+=" -lcurses "
++    LIBS="$LIBS -lcurses "
+ fi
+ AM_CONDITIONAL(LIBCURSES, test x"$HEADER_LIBCURSES" == x"yes")
+ 
+ AC_CHECK_HEADERS([libklmonitoring/klmonitoring.h], HEADER_LIBKLMONITORING="yes")
+ if test "x$HEADER_LIBKLMONITORING" == "xyes" ; then
+-    LDFLAGS+=" -lklmonitoring "
++    LIBS="$LIBS -lklmonitoring "
+ fi
+ AM_CONDITIONAL(LIBKLMONITORING, test x"$HEADER_LIBKLMONITORING" == x"yes")
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/klvanc-tools.git/commitdiff/c104eba574e9b9aebaaa051fda876574fb60af31



More information about the pld-cvs-commit mailing list