File libv4l.spec of Package libv4l
#
# spec file for package libv4l (Version 0.4.0)
#
# Copyright (c) 2008 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: libv4l
Version: 0.4.0
Release: 2
Summary: collection of video4linux support libraries
Group: System/Libraries
License: LGPL v2.0 or later
Url: http://people.atrpms.net/~hdegoede/
Source0: http://people.atrpms.net/~hdegoede/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: kernel-headers
%description
libv4l is a collection of libraries which adds a thin abstraction layer
on top of video4linux2 devices. The purpose of this (thin) layer is to
make it easy for application writers to support a wide variety of
devices without having to write separate code for different devices in
the same class. libv4l consists of 3 different libraries:
libv4lconvert, libv4l1 and libv4l2.
libv4lconvert offers functions to convert from any (known) pixelformat
to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices,
independent of the drivers for those devices supporting v4l1
compatibility (which many v4l2 drivers do not).
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for
the application transparent libv4lconvert conversion where necessary.
Authors:
--------
Hans de Goede <j.w.r.degoede@hhs.nl>
%package devel
License: LGPL v2.0 or later
Summary: libv4l devel headers
Group: System/Libraries
Requires: %{name} = %{version}
%description devel
The libv4l-devel package contains libraries and header files for
developing applications that use libv4l.
Authors:
--------
Hans de Goede <j.w.r.degoede@hhs.nl>
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
%install
make install PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING.LIB ChangeLog README TODO
%{_libdir}/libv4l*.so.*
%{_libdir}/libv4l
%files devel
%defattr(-,root,root,-)
%doc README.multi-threading
%{_includedir}/libv4l*.h
%{_libdir}/libv4l*.so
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri Aug 15 2008 bphilips@suse.de
- Initial SuSE package