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
|
|
|
#
|
2024-02-12 12:19:26 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2019-07-23 08:52:25 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:21:36 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdc1394
|
2023-06-26 15:31:08 +02:00
|
|
|
Version: 2.2.7
|
2015-03-21 13:18:47 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: 1394-Based Digital Camera Control Library
|
2019-07-23 08:52:25 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2015-03-21 13:18:47 +01:00
|
|
|
Group: Hardware/Camera
|
2019-08-14 10:32:07 +02:00
|
|
|
URL: https://damien.douxchamps.net/ieee1394/libdc1394/
|
2017-01-17 13:17:53 +01:00
|
|
|
Source0: https://downloads.sourceforge.net/project/libdc1394/libdc1394-2/%{version}/%{name}-%{version}.tar.gz
|
2015-03-21 13:18:47 +01:00
|
|
|
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: libtool
|
2019-08-14 10:32:07 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libraw1394)
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
|
|
BuildRequires: pkgconfig(libv4l2) >= 0.8.4
|
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
|
|
|
|
2023-06-26 15:31:08 +02:00
|
|
|
%package -n libdc1394-26
|
2015-11-15 15:39:40 +01:00
|
|
|
Summary: 1394-based Digital Camera Control library
|
|
|
|
Group: System/Libraries
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2023-06-26 15:31:08 +02:00
|
|
|
%description -n libdc1394-26
|
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++
|
2015-11-15 15:39:40 +01:00
|
|
|
Requires: %{name}-tools = %{version}
|
2023-06-26 15:31:08 +02:00
|
|
|
Requires: libdc1394-26 = %{version}
|
2019-08-14 10:32:07 +02:00
|
|
|
Requires: pkgconfig(libraw1394)
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files and libraries for building
|
|
|
|
programs using the dc1394 library.
|
|
|
|
|
2015-11-15 15:39:40 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Command-line utilities from libdc1394
|
|
|
|
# added on 2015-11-14
|
2017-01-17 13:17:53 +01:00
|
|
|
Group: Hardware/Camera
|
2019-08-14 10:32:07 +02:00
|
|
|
Obsoletes: %{name} < %{version}-%{release}
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
2015-11-15 15:39:40 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This subpackage contains a 1394 bus reset utility.
|
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
%prep
|
2013-02-25 10:22:47 +01:00
|
|
|
%setup -q
|
2019-08-14 10:32:07 +02:00
|
|
|
%autopatch -p1
|
2020-01-05 08:55:44 +01:00
|
|
|
# Dummy macro for ignored SDL, autoreconf fails otherwise
|
|
|
|
echo "AC_DEFUN([AM_PATH_SDL], [])" >> m4/dummy_sdl.m4
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-14 10:32:07 +02:00
|
|
|
autoreconf -fvi
|
2015-03-21 13:18:47 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-xv
|
2013-02-25 10:22:47 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:21:36 +01:00
|
|
|
|
|
|
|
%install
|
2015-11-15 15:39:40 +01:00
|
|
|
%make_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
|
|
|
|
2023-06-26 15:31:08 +02:00
|
|
|
%post -n libdc1394-26 -p /sbin/ldconfig
|
|
|
|
%postun -n libdc1394-26 -p /sbin/ldconfig
|
2007-01-16 00:21:36 +01:00
|
|
|
|
2015-11-15 15:39:40 +01:00
|
|
|
%files tools
|
2019-08-14 10:32:07 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-08-29 13:39:34 +02:00
|
|
|
%{_bindir}/dc1394_reset_bus
|
2019-08-14 10:32:07 +02:00
|
|
|
%{_mandir}/man1/dc1394_reset_bus.1%{?ext_man}
|
2007-08-05 17:34:34 +02:00
|
|
|
|
2023-06-26 15:31:08 +02:00
|
|
|
%files -n libdc1394-26
|
|
|
|
%{_libdir}/libdc1394.so.26*
|
2010-10-07 22:43:16 +02:00
|
|
|
|
2007-01-16 00:21:36 +01:00
|
|
|
%files devel
|
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
|