zvbi/zvbi.spec

156 lines
4.7 KiB
RPMSpec

#
# spec file for package zvbi
#
# Copyright (c) 2017 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 0
%define libname lib%{name}%{sover}
%define libchains lib%{name}-chains%{sover}
Name: zvbi
Version: 0.2.35
Release: 0
Summary: Linux "VBI proxy"
License: LGPL-2.1+ AND GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://zapping.sf.net/
Source: https://sourceforge.net/projects/zapping/files/zvbi/%{version}/zvbi-%{version}.tar.bz2
Source2: baselibs.conf
Patch00: 00_fix-configure.in.patch
Patch01: 01_Makefile.am.patch
Patch03: 03_fails-to-write.patch
Patch05: 05_MAXPATHLEN.patch
Patch06: 06_sizeof-FTBFS.patch
Patch07: 07_fix-spelling-in-binaries.patch
Patch08: 08_fix-manpage.patch
Patch09: 09_fix-FTBFS-GCC6.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: timezone
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(x11)
Recommends: %{name}-lang
%description
With "video4linux" drivers, only one application at a time can capture
VB data. The 2nd generation "v4l2" API allows multiple clients to
open a device, but still only one client may read from the device. If,
for example, the Nxtvepg daemon runs in the background, users will not be
able to start a Teletext application. The VBI proxy was developed as a
solution to this problem.
%package -n %{libname}
Summary: VBI Decoding Library
Group: System/Libraries
%description -n %{libname}
VBI stands for Vertical Blanking Interval, a gap between the image data
transmitted in an analog video signal. This gap is used to transmit AM
modulated data for various data services like Teletext and Closed
Caption.
The zvbi library provides routines to read from raw VBI sampling
devices, to demodulate raw to sliced VBI data, and to interpret the
data of several popular services.
%package -n %{libchains}
Summary: VBI Decoding Library
Group: System/Libraries
Conflicts: %{libname} < %{version}-%{release}
%description -n %{libchains}
VBI stands for Vertical Blanking Interval, a gap between the image data
transmitted in an analog video signal. This gap is used to transmit AM
modulated data for various data services like Teletext and Closed
Caption.
The zvbi library provides routines to read from raw VBI sampling
devices, to demodulate raw to sliced VBI data, and to interpret the
data of several popular services.
%package devel
Summary: Development files for the VBI decoding library
Group: Development/Libraries/C and C++
Requires: %{libchains} = %{version}
Requires: %{libname} = %{version}
%description devel
This package includes the development files for the zvbi library which
provides routines to read from raw VBI sampling devices, to demodulate raw to
sliced VBI data, and to interpret the data of several popular services.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%build
ACLOCAL="aclocal -I m4" autoreconf -fi
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%check
# This requires timezone package to be installed
make %{?_smp_mflags} check
%post -n %{libname} -p /sbin/ldconfig
%post -n %{libchains} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%postun -n %{libchains} -p /sbin/ldconfig
%files
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%{_bindir}/zvbi-atsc-cc
%{_bindir}/zvbi-chains
%{_bindir}/zvbi-ntsc-cc
%{_sbindir}/zvbid
%{_mandir}/man1/zvbi-atsc-cc.1%{ext_man}
%{_mandir}/man1/zvbi-chains.1%{ext_man}
%{_mandir}/man1/zvbi-ntsc-cc.1%{ext_man}
%{_mandir}/man1/zvbid.1%{ext_man}
%files lang -f %{name}.lang
%files -n %{libname}
%{_libdir}/libzvbi.so.%{sover}*
%files -n %{libchains}
%{_libdir}/libzvbi-chains.so.%{sover}*
%files devel
%{_includedir}/libzvbi.h
%{_libdir}/libzvbi.so
%{_libdir}/libzvbi-chains.so
%{_libdir}/pkgconfig/zvbi-*.pc
%changelog