File libiec61883.spec of Package libiec61883

#
# spec file for package libiec61883 (Version 1.1.0)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           libiec61883
BuildRequires:  libraw1394-devel pkgconfig
Version:        1.1.0
Release:        122
License:        GPLv2+
Summary:        Implementation of IEC 61883
Url:            http://www.linux1394.org/
Group:          System/Kernel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        http://www.linux1394.org/files/libiec61883/%{name}-%{version}.tar.bz2
Source1:        baselibs.conf
Patch0:         libiec61883-1.1.0-lfs.patch

%description
This library is an implementation of IEC 61883, part 1 (CIP, plug
registers, and CMP), part 2 (DV-SD), part 4 (MPEG2-TS), and part 6
(AMDTP). Outside of IIDC, nearly all FireWire multimedia devices use
IEC 61883 protocols.

The libiec61883 library provides a higher level API for streaming DV,
MPEG-2 and audio over Linux IEEE 1394. This includes both reception and
transmission. It uses the new "rawiso" API of libraw1394, which
transparently provides mmap-ed DMA for efficient data transfer. It also
represents the third generation of I/O technology for Linux 1394 for
these media types thereby removing the complexities of additional
kernel modules, /dev nodes, and procfs. It also consolidates features
for plug control registers and connection management that previously
existed in experimental form in an unreleased version of libavc1394.



Authors:
--------
    Dan Dennedy

%package devel
License:        GPLv2+
Summary:        Implementation of IEC 61883
Group:          System/Kernel
Requires:       %{name} = %{version} libraw1394-devel

%description devel
This library is an implementation of IEC 61883, part 1 (CIP, plug
registers, and CMP), part 2 (DV-SD), part 4 (MPEG2-TS), and part 6
(AMDTP). Outside of IIDC, nearly all FireWire multimedia devices use
IEC 61883 protocols.

The libiec61883 library provides a higher level API for streaming DV,
MPEG-2 and audio over Linux IEEE 1394. This includes both reception and
transmission. It uses the new "rawiso" API of libraw1394, which
transparently provides mmap-ed DMA for efficient data transfer. It also
represents the third generation of I/O technology for Linux 1394 for
these media types thereby removing the complexities of additional
kernel modules, /dev nodes, and procfs. It also consolidates features
for plug control registers and connection management that previously
existed in experimental form in an unreleased version of libavc1394.



Authors:
--------
    Dan Dennedy

%prep
%setup -q
%patch0

%build
autoreconf -fiv
export CFLAGS="%optflags -fno-strict-aliasing"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs} all

%install
%{__make} install DESTDIR=%{buildroot}
libtool --mode=install install -m 755 examples/test-mpeg2 %{buildroot}%{_bindir}
rm -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf "${RPM_BUILD_ROOT}"

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING* NEWS README
%{_bindir}/*
%{_libdir}/lib*.so.*
%doc %{_mandir}/man[1]/*.gz

%files devel
%defattr(-,root,root)
%{_includedir}/libiec61883
%defattr(644,root,root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/lib*.pc

%changelog