commit 343590f12702aceabf1e6ecdeb97cc3fd7fee302
Author: Jakub Bogusz <[email protected]>
Date:   Fri Nov 22 20:15:48 2019 +0100

    - new

 libklvanc-sh.patch |  37 +++++++++++++++
 libklvanc.spec     | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 170 insertions(+)
---
diff --git a/libklvanc.spec b/libklvanc.spec
new file mode 100644
index 0000000..6dac8e0
--- /dev/null
+++ b/libklvanc.spec
@@ -0,0 +1,133 @@
+#
+# Conditional build:
+%bcond_without apidocs         # do not build and package API docs
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Library to parse/generate Vertical Ancillary Data
+Summary(pl.UTF-8):     Biblioteka do analizy/generowania danych VANC
+Name:          libklvanc
+# from configure.ac /AC_INIT
+Version:       1.0
+%define        snap    20190806
+%define        gitref  c38d31b428d0e02061f32c14562d172ec3bd9608
+Release:       0.%{snap}.1
+License:       LGPL v2.1
+Group:         Libraries
+Source0:       
https://github.com/stoth68000/libklvanc/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5: a870bc96decfe8951e5f5ec89e4b6a04
+Patch0:                %{name}-sh.patch
+URL:           https://github.com/stoth68000/libklvanc
+BuildRequires: autoconf >= 2.68
+BuildRequires: automake >= 1:1.11
+%{?with_apidocs:BuildRequires: doxygen}
+BuildRequires: libtool >= 2:1.5
+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.
+
+%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).
+
+%package devel
+Summary:       Header files for libklvanc library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libklvanc
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libklvanc library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libklvanc.
+
+%package static
+Summary:       Static libklvanc library
+Summary(pl.UTF-8):     Statyczna biblioteka libklvanc
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libklvanc library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libklvanc.
+
+%package apidocs
+Summary:       API documentation for libklvanc library
+Summary(pl.UTF-8):     Dokumentacja API biblioteki libklvanc
+Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description apidocs
+API documentation for libklvanc library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libklvanc.
+
+%prep
+%setup -q -n %{name}-%{gitref}
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+# --disable-dep-curses: nothing actually uses it
+%configure \
+       --disable-dep-curses \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
+%{__make}
+
+%if %{with apidocs}
+cd doxygen
+doxygen libklvanc.doxyconf
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# no external dependencies
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libklvanc.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/klvanc_*
+%attr(755,root,root) %{_libdir}/libklvanc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libklvanc.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libklvanc.so
+%{_includedir}/libklvanc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libklvanc.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doxygen/html/{search,*.css,*.html,*.js,*.png}
+%endif
diff --git a/libklvanc-sh.patch b/libklvanc-sh.patch
new file mode 100644
index 0000000..22082f9
--- /dev/null
+++ b/libklvanc-sh.patch
@@ -0,0 +1,37 @@
+--- libklvanc-c38d31b428d0e02061f32c14562d172ec3bd9608/configure.ac.orig       
2019-11-13 22:38:45.000000000 +0100
++++ libklvanc-c38d31b428d0e02061f32c14562d172ec3bd9608/configure.ac    
2019-11-20 21:07:08.114284576 +0100
+@@ -14,10 +14,10 @@
+ AC_PROG_CXX
+ if test `uname -s` = "Darwin"
+ then
+-CFLAGS+=" -I/usr/local/include "
+-LDFLAGS+=" -L/usr/local/lib "
++CFLAGS="$CFLAGS -I/usr/local/include "
++LDFLAGS="$LDFLAGS -L/usr/local/lib "
+ 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
+@@ -52,16 +52,16 @@
+ 
+ # Check for curses (optional)
+ AC_CHECK_HEADERS([curses.h], HEADER_LIBCURSES="yes")
+-if test "x$HEADER_LIBCURSES" == "xyes" ; then
+-    if test "x$enablecurses" == "xtrue" ; then
+-        LDFLAGS+=" -lcurses "
++if test "x$HEADER_LIBCURSES" = "xyes" ; then
++    if test "x$enablecurses" = "xtrue" ; then
++        LDFLAGS="$LDFLAGS -lcurses "
+     fi
+ 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 "
++    LDFLAGS="$LDFLAGS -lklmonitoring "
+ fi
+ AM_CONDITIONAL(LIBKLMONITORING, test x"$HEADER_LIBKLMONITORING" == x"yes")
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libklvanc.git/commitdiff/343590f12702aceabf1e6ecdeb97cc3fd7fee302

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to