libraw1394/libraw1394.spec

145 lines
4.1 KiB
RPMSpec
Raw Blame History

#
# spec file for package libraw1394 (Version 2.0.5)
#
# 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: libraw1394
Version: 2.0.5
Release: 1
License: LGPLv2.1+
Summary: A Firewire Interface
Url: http://www.dennedy.org/libraw1394/
Group: System/Kernel
# bug437293
%ifarch ppc64
Obsoletes: libraw1394-64bit
%endif
#
BuildRequires: openjade-devel pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch: libraw1394.no-isodump.patch
%description
The Linux kernel's IEEE 1394 subsystem provides access to the raw 1394
bus through the raw1394 module. This includes the standard 1394
transactions (read, write, lock) on the active side, isochronous
stream receiving and sending and dumps of data written to the
FCP_COMMAND and FCP_RESPONSE registers. raw1394 uses a character
device to communicate to user programs using a special protocol.
libraw1394 was created with the intent to hide that protocol from
applications so that
- the protocol has to be implemented correctly only once.
- all work can be done using easy to understand functions instead of
handling a complicated command structure.
- only libraw1394 has to be changed when raw1394's interface changes.
Maintainer: Dan Dennedy <dan@dennedy.org>
Original author: Andreas Bombe <andreas.bombe@munich.netsurf.de>
or <bombe@informatik.tu-muenchen.de>
Contributors:
Manfred Weihs <weihs@ict.tuwien.ac.at>
Christian Toegel <christian.toegel@gmx.at>
Dan Maas <dmaas@maasdigital.com>
Ben Collins <bcollins@debian.org>
Pieter Palmers <pieterp@joow.be>
%package 11
License: LGPLv2.1+
Summary: A Firewire Interface
Group: System/Kernel
# bug437293
%ifarch ppc64
Obsoletes: libraw1394-64bit
%endif
#
%description 11
A library for the Linux IEEE-1394 subsystem, which provides direct
access to the connected 1394 (Firewire) bus.
%package devel
License: LGPLv2.1+
Summary: Development and Include Files for libraw1394
Summary(pt_BR): Arquivos de desenvolvimento e cabe<EFBFBD>alhos para o libraw1394
Group: Development/Libraries/C and C++
Requires: %{name}-11 == %{version} glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: libraw1394-devel-64bit
%endif
#
%description devel
Libraw1394 is the only supported interface to the kernel side raw1394
of the Linux IEEE-1394 subsystem, which provides the user space direct
access to the connected 1394 buses. Through libraw1394/raw1394,
applications can directly send to and receive from other nodes without
requiring a kernel driver for the protocol in question.
This archive contains the header files for libraw1394 development.
%prep
%setup -q
%patch -p1
%build
#autoreconf --force --install
export CFLAGS="%optflags"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs} all
%install
%{__make} install DESTDIR=%{buildroot}
# empty dependency libs
rm -f %{buildroot}%{_libdir}/libraw1394.la
%clean
rm -rf $RPM_BUILD_ROOT
%post 11 -p /sbin/ldconfig
%postun 11 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING* NEWS README
%{_bindir}/testlibraw
%{_bindir}/dumpiso
%{_bindir}/sendiso
%{_mandir}/man*/*
%files 11
%defattr(-,root,root)
%{_libdir}/libraw1394.so.11*
%files devel
%defattr(-,root,root)
%{_includedir}/libraw1394
%{_libdir}/libraw1394.so
%{_libdir}/pkgconfig/libraw1394.pc
%changelog