2007-01-16 00:21:36 +01:00
|
|
|
#
|
2011-04-18 09:41:38 +02:00
|
|
|
# spec file for package libdc1394
|
2007-01-16 00:21:36 +01:00
|
|
|
#
|
2015-03-21 13:18:47 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:36 +01:00
|
|
|
#
|
2008-10-06 17:58:32 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdc1394
|
2015-03-21 13:18:47 +01:00
|
|
|
Version: 2.2.3
|
|
|
|
Release: 0
|
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Hardware/Camera
|
|
|
|
Url: http://sourceforge.net/projects/libdc1394/
|
|
|
|
Source0: http://sourceforge.net/projects/libdc1394/files/libdc1394-2/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}-rpmlintrc
|
|
|
|
Source2: baselibs.conf
|
|
|
|
Patch0: libdc1394.no-x11.patch
|
|
|
|
Patch1: libdc1394.ac.patch
|
|
|
|
Patch2: libdc1394-swab_fix.patch
|
|
|
|
Patch3: libdc1394-v4l-2.6.38.patch
|
2012-03-10 11:02:40 +01:00
|
|
|
BuildRequires: autoconf
|
2015-03-21 13:18:47 +01:00
|
|
|
BuildRequires: libraw1394-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-10 11:02:40 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
%endif
|
2009-12-30 00:24:01 +01:00
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
# no IIDC-over-USB support for openSUSE 11.0
|
2011-08-29 13:39:34 +02:00
|
|
|
BuildRequires: libusb-1_0-devel
|
|
|
|
BuildRequires: pkg-config
|
2009-12-30 00:24:01 +01:00
|
|
|
%endif
|
2011-07-13 09:15:41 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: libv4l-devel >= 0.8.4
|
|
|
|
%endif
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides functionality for controlling any camera that
|
2008-01-16 17:15:22 +01:00
|
|
|
conforms to the 1394-Based Digital Camera Specification. It utilizes
|
|
|
|
the low-level functionality provided by libraw1394 to communicate with
|
|
|
|
the camera.
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%package 22
|
2007-08-05 17:34:34 +02:00
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
|
|
|
Group: Hardware/Camera
|
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%description 22
|
2007-08-05 17:34:34 +02:00
|
|
|
This library provides functionality for controlling any camera that
|
|
|
|
conforms to the 1394-Based Digital Camera Specification (which can be
|
2015-03-21 13:18:47 +01:00
|
|
|
found at http://www.1394ta.org/Download/Technology/Specifications/Camera120.pdf).
|
2011-08-29 13:39:34 +02:00
|
|
|
It utilizes the low-level functionality provided by libraw1394 to
|
2007-08-05 17:34:34 +02:00
|
|
|
communicate with the camera.
|
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development libraries and header files for dc1394
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-02-25 10:22:47 +01:00
|
|
|
Requires: libdc1394 = %{version}
|
|
|
|
Requires: libdc1394-22 = %{version}
|
2007-01-16 00:21:36 +01:00
|
|
|
Requires: libraw1394-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files and libraries for building
|
|
|
|
programs using the dc1394 library.
|
|
|
|
|
|
|
|
%prep
|
2013-02-25 10:22:47 +01:00
|
|
|
%setup -q
|
2014-03-08 10:06:01 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2011-07-13 09:15:41 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
2013-02-25 10:22:47 +01:00
|
|
|
%patch3 -p1
|
2011-07-13 09:15:41 +02:00
|
|
|
%endif
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%build
|
2013-02-25 10:22:47 +01:00
|
|
|
autoreconf --force --install
|
|
|
|
export CFLAGS="%{optflags}"
|
2015-03-21 13:18:47 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--disable-xv
|
2013-02-25 10:22:47 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-21 13:18:47 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2008-06-25 20:45:42 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394_vloopback.1*
|
2009-12-30 00:24:01 +01:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/dc1394_multiview.1*
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/grab_*_image.1*
|
2015-03-21 13:18:47 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%post 22 -p /sbin/ldconfig
|
2007-07-13 22:38:40 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%postun 22 -p /sbin/ldconfig
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-02-25 10:22:47 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
2011-08-29 13:39:34 +02:00
|
|
|
%{_bindir}/dc1394_reset_bus
|
2008-06-25 20:45:42 +02:00
|
|
|
%{_mandir}/man1/dc1394_reset_bus.1*
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2008-01-15 05:47:57 +01:00
|
|
|
%files 22
|
2007-08-05 17:34:34 +02:00
|
|
|
%defattr(-,root,root)
|
2011-08-29 13:39:34 +02:00
|
|
|
%{_libdir}/libdc1394.so.22*
|
2010-10-07 22:43:16 +02:00
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-08-29 13:39:34 +02:00
|
|
|
%{_includedir}/dc1394
|
|
|
|
%{_libdir}/libdc1394.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2007-07-13 22:38:40 +02:00
|
|
|
%changelog
|