libraw1394/libraw1394.spec
Cristian Rodríguez 7c7e67c645 Accepting request 247607 from home:elvigia:branches:multimedia:libs
- libraw1394-exports.patch: Only symbols prefixed with 
  raw1394_ are part of the public API, everything else
  is private.

OBS-URL: https://build.opensuse.org/request/show/247607
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libraw1394?expand=0&rev=15
2014-09-10 15:54:00 +00:00

144 lines
4.1 KiB
RPMSpec

#
# spec file for package libraw1394
#
# Copyright (c) 2014 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: libraw1394
Version: 2.1.0
Release: 0
Summary: A Firewire Interface
License: LGPL-2.1+
Group: System/Kernel
Url: http://www.dennedy.org/libraw1394/
# bug437293
%ifarch ppc64
Obsoletes: libraw1394-64bit
%endif
#
BuildRequires: libtool
BuildRequires: openjade-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.xz
Source1: baselibs.conf
Patch0: libraw1394.no-isodump.patch
Patch1: libraw1394-exports.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
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
Summary: Development and Include Files for libraw1394
Group: Development/Libraries/C and C++
Summary(pt_BR): Arquivos de desenvolvimento e cabeçalhos para o libraw1394
Requires: %{name}-11 == %{version}
Requires: 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
%patch0 -p1
%patch1 -p1
%build
autoreconf --force --install
%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