LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libdc1394.spec of Package libdc1394 (Project multimedia:libs)

#
# spec file for package libdc1394
#
# Copyright (c) 2013 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:           libdc1394
BuildRequires:  autoconf
%if 0%{?suse_version} > 1110
BuildRequires:  libSDL-devel
%else
BuildRequires:  SDL-devel
%endif
BuildRequires:  libraw1394-devel
BuildRequires:  libtool
%if 0%{?suse_version} > 1100
# no IIDC-over-USB support for openSUSE 11.0
BuildRequires:  libusb-1_0-devel
BuildRequires:  pkg-config
%endif
%if 0%{?suse_version} >= 1210
BuildRequires:  libv4l-devel >= 0.8.4
%endif
Version:        2.2.1
Release:        0
Summary:        1394-Based Digital Camera Control Library
License:        LGPL-2.1+
Group:          Hardware/Camera
Url:            http://sourceforge.net/projects/libdc1394/
Source0:        libdc1394-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
Patch0:         libdc1394.no-x11.patch
Patch1:         libdc1394.ac.patch
Patch2:         libdc1394-swab_fix.patch
Patch3:         libdc1394-v4l-2.6.38.patch
Patch4:         libdc1394-visibility.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification. It utilizes
the low-level functionality provided by libraw1394 to communicate with
the camera.

%package 22
Summary:        1394-Based Digital Camera Control Library
Group:          Hardware/Camera

%description 22
This library provides functionality for controlling any camera that
conforms to the 1394-Based Digital Camera Specification (which can be
found at http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf).  
It utilizes the low-level functionality provided by libraw1394 to
communicate with the camera.

%package devel
Summary:        Development libraries and header files for dc1394
Group:          Development/Libraries/C and C++
Requires:       libdc1394 = %{version}
Requires:       libdc1394-22 = %{version}
Requires:       libraw1394-devel

%description devel
This package contains the header files and libraries for building
programs using the dc1394 library.

%prep
%setup -q
%patch0 -p2
%patch1 -p2
%patch2 -p2
%if 0%{?suse_version} >= 1210
%patch3 -p1
%endif
%patch4 -p1

%build
autoreconf --force --install
export CFLAGS="%{optflags}"
%{configure} --disable-static --with-pic --disable-xv
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394_vloopback.1*
rm -f %{buildroot}%{_mandir}/man1/dc1394_multiview.1*
rm -f %{buildroot}%{_mandir}/man1/grab_*_image.1*
rm -f %{buildroot}%{_libdir}/*.la

%post 22 -p /sbin/ldconfig

%postun 22 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/dc1394_reset_bus
%{_mandir}/man1/dc1394_reset_bus.1*

%files 22
%defattr(-,root,root)
%{_libdir}/libdc1394.so.22*

%files devel
%defattr(-,root,root)
%{_includedir}/dc1394
%{_libdir}/libdc1394.so
%{_libdir}/pkgconfig/*.pc

%changelog