zvbi/zvbi.spec

108 lines
3.0 KiB
RPMSpec

#
# spec file for package zvbi
#
# Copyright (c) 2011 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 gcc-c++ libtool xorg-x11-devel
Url: http://zapping.sf.net/
License: GPL v2 or later
Group: Development/Libraries/Other
Version: 0.2.33
Release: 11
Summary: Linux "VBI proxy"
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch1: fix-headers.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
With "video4linux" drivers only one application at a time can capture
VBI 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
License: LGPL v2.0 or later
Group: System/Libraries
Summary: VBI Decoding Library
%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
License: GPL v2 or later
Group: Development/Libraries/Other
Summary: VBI decoding library - devel package
Requires: libzvbi0 = %{version}
Requires: glibc-devel
%description devel
include files, static library, ...
%prep
%setup -q
%patch1
%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
%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 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