File zvbi.spec of Package zvbi

#
# spec file for package zvbi
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


Name:           zvbi
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  xorg-x11-devel
Url:            http://zapping.sf.net/
Version:        0.2.35
Release:        0
Summary:        Linux "VBI proxy"
License:        LGPL-2.1+ and GPL-2.0+
Group:          Development/Libraries/Other
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Patch2:         zvbi-automake-1.13.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 libzvbi0
Summary:        VBI Decoding Library
Group:          System/Libraries

%description -n libzvbi0
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:        VBI decoding library - devel package
Group:          Development/Libraries/Other
Requires:       glibc-devel
Requires:       libzvbi0 = %{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.

%prep
%setup -q
%patch2 -p1

%build
ACLOCAL="aclocal -I m4" autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS"
./configure	--prefix=/usr		\
		--libdir=%{_libdir}	\
		--mandir=%{_mandir}     \
		--disable-static
make

%install
make DESTDIR="%{buildroot}" install
rm %buildroot%_libdir/*.la
%find_lang %name
%fdupes -s doc/html

%post -n libzvbi0 -p /sbin/ldconfig

%postun -n libzvbi0 -p /sbin/ldconfig

%files -f %name.lang
%defattr(-,root,root)
%{_bindir}/*
%{_sbindir}/zvbid
%{_mandir}/man1/*
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO

%files -n libzvbi0
%defattr(-,root,root)
%{_libdir}/libzvbi*.so.0
%{_libdir}/libzvbi*.so.0.*

%files devel
%defattr(-,root,root)
%{_includedir}/libzvbi.h
%{_libdir}/libzvbi*.so
%{_libdir}/pkgconfig/zvbi-0.2.pc
%doc doc/html

%changelog
openSUSE Build Service is sponsored by