Accepting request 723232 from multimedia:libs

- Switch up to pkgconfgi style dependencies

- Update to 2.2.6:
   - Fix a few compilation warnings with a recent GCC
   - Fix argument type in dc1394_get_image_size_from_video_mode()
   - Fix USB3 transfer errors

OBS-URL: https://build.opensuse.org/request/show/723232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdc1394?expand=0&rev=49
This commit is contained in:
Dominique Leuenberger 2019-08-16 13:31:44 +00:00 committed by Git OBS Bridge
commit eb6c24a5cb
6 changed files with 42 additions and 53 deletions

View File

@ -1 +1 @@
libdc1394-22
libdc1394-25

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:350cc8d08aee5ffc4e1f3049e2e1c2bc6660642d424595157da97ab5b1263337
size 611918

3
libdc1394-2.2.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b905fc9aa4eec6bdcf6a2ae5f5ba021232739f5be047dec8fe8dd6049c10fed
size 612067

View File

@ -1,5 +0,0 @@
# This line is mandatory to access the configuration functions
from Config import *
addFilter("libdc1394.* package-with-huge-docs.*")
addFilter("libdc1394.* shlib-policy-missing-lib.*")

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Wed Aug 14 08:31:11 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch up to pkgconfgi style dependencies
-------------------------------------------------------------------
Sat Jul 6 13:34:52 UTC 2019 - Matwey V. Kornilov <matwey.kornilov@gmail.com>
- Update to 2.2.6:
- Fix a few compilation warnings with a recent GCC
- Fix argument type in dc1394_get_image_size_from_video_mode()
- Fix USB3 transfer errors
-------------------------------------------------------------------
Mon Jan 9 13:49:42 UTC 2017 - matwey.kornilov@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libdc1394
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,41 +12,30 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libdc1394
Version: 2.2.5
Version: 2.2.6
Release: 0
Summary: 1394-Based Digital Camera Control Library
License: LGPL-2.1+
License: LGPL-2.1-or-later
Group: Hardware/Camera
Url: http://damien.douxchamps.net/ieee1394/libdc1394/
URL: https://damien.douxchamps.net/ieee1394/libdc1394/
Source0: https://downloads.sourceforge.net/project/libdc1394/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
BuildRequires: autoconf
BuildRequires: libraw1394-devel
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildRequires: libSDL-devel
%else
BuildRequires: SDL-devel
%endif
%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
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libraw1394)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(libv4l2) >= 0.8.4
BuildRequires: pkgconfig(sdl)
%description
This library provides functionality for controlling any camera that
@ -54,11 +43,11 @@ conforms to the 1394-Based Digital Camera Specification. It utilizes
the low-level functionality provided by libraw1394 to communicate with
the camera.
%package 22
%package 25
Summary: 1394-based Digital Camera Control library
Group: System/Libraries
%description 22
%description 25
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).
@ -69,8 +58,8 @@ communicate with the camera.
Summary: Development libraries and header files for dc1394
Group: Development/Libraries/C and C++
Requires: %{name}-tools = %{version}
Requires: libdc1394-22 = %{version}
Requires: libraw1394-devel
Requires: libdc1394-25 = %{version}
Requires: pkgconfig(libraw1394)
%description devel
This package contains the header files and libraries for building
@ -80,23 +69,18 @@ programs using the dc1394 library.
Summary: Command-line utilities from libdc1394
# added on 2015-11-14
Group: Hardware/Camera
Obsoletes: %name < %version-%release
Provides: %name = %version-%release
Obsoletes: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description tools
This subpackage contains a 1394 bus reset utility.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%if 0%{?suse_version} >= 1210
%patch3 -p1
%endif
%autopatch -p1
%build
autoreconf --force --install
autoreconf -fvi
%configure \
--disable-static \
--disable-xv
@ -109,22 +93,19 @@ rm -f %{buildroot}%{_mandir}/man1/dc1394_multiview.1*
rm -f %{buildroot}%{_mandir}/man1/grab_*_image.1*
find %{buildroot} -type f -name "*.la" -delete -print
%post 22 -p /sbin/ldconfig
%postun 22 -p /sbin/ldconfig
%post 25 -p /sbin/ldconfig
%postun 25 -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/dc1394_reset_bus
%{_mandir}/man1/dc1394_reset_bus.1*
%{_mandir}/man1/dc1394_reset_bus.1%{?ext_man}
%files 22
%defattr(-,root,root)
%{_libdir}/libdc1394.so.22*
%files 25
%{_libdir}/libdc1394.so.25*
%files devel
%defattr(-,root,root)
%{_includedir}/dc1394
%{_libdir}/libdc1394.so
%{_libdir}/pkgconfig/*.pc