2008-04-09 04:41:35 +02:00
|
|
|
#
|
2011-05-30 10:02:21 +02:00
|
|
|
# spec file for package libopenraw
|
2008-04-09 04:41:35 +02:00
|
|
|
#
|
Accepting request 1066963 from home:polslinux:branches:multimedia:libs
- Update to version 0.3.4:
* Added Canon R8 and R50.
* Added Panasonic G95D* and S5M2.
* Added Canon 200D Mk II*, EOS R6 MKII*, EOS R7* and EOS R10*.
* Added DJI Mini 3 Pro / FC-3582 (DNG).
* Added Fujifilm X-H2*, X-H2S*, X-T5*, S6000fd*, SL1000* and HS50EXR*.
* Added Hasselblad L2D-20c / DJI Mavic 3 Cine (DNG).
* Added Olympus C5060WZ*, SP570UZ* and E-P7*.
* Added OM Systems OM-5*.
* Added Panasonic FZ38*, FZ300*, FZ70, FZ72*, G6*, G70*, G81*, G90*, GM1S*,
GX7 Mk3*, GX85*, LF1*, TZ71*, TZ81*, TZ90*, TZ96*, TZ101*, ZS40*/TZ60*/TZ61*.
* Added Sony 7RM5*.
* Added Leica D-LUX 6*.
* Added Nikon Z 30*.
* Added Epson RD-1X*.
* Added Leica DIGILUX3*.
* Added Nikon D1H*, D7500*, D850* and P7800*.
* Added Olympus E30*, E420*, E450*, E520*, E600* and E-P5*.
* Added Pentax K2000* and K-m* (PEF).
* Ensure that RawFile::init() is never called twice.
This would cause crashes if it was called concurrently.
* Properly detect compressed data for Panasonic.
* Fix the linkage of the mp4parse library with libtool.
* Fixed the demo/ccfa to output properly the byte stream.
* Fixed BitIterator code to peek past the number of bits for Olympus decoding.
* Fixed decompression of packed Olympus ORF files.
* Fixed over reported size of Panasonic compressed Raw data.
OBS-URL: https://build.opensuse.org/request/show/1066963
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libopenraw?expand=0&rev=40
2023-03-07 14:56:05 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-04-09 04:41:35 +02:00
|
|
|
#
|
2008-10-23 01:16:55 +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-05-31 09:45:55 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-09 04:41:35 +02:00
|
|
|
#
|
2012-02-24 19:05:26 +01:00
|
|
|
|
|
|
|
|
2008-04-09 04:41:35 +02:00
|
|
|
Name: libopenraw
|
2023-08-02 08:55:03 +02:00
|
|
|
Version: 0.3.7
|
2011-12-02 20:08:30 +01:00
|
|
|
Release: 0
|
2015-06-16 16:19:27 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2018-03-01 08:46:58 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2015-06-16 16:19:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-03-01 08:46:58 +01:00
|
|
|
URL: http://libopenraw.freedesktop.org/
|
2011-11-15 14:17:41 +01:00
|
|
|
Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
|
2015-06-16 16:19:27 +02:00
|
|
|
Source1: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
2022-04-22 08:18:38 +02:00
|
|
|
# cd lib/mp4 && cargo vendor -s Cargo.toml -s mp4parse/Cargo.toml -s mp4parse_capi/Cargo.toml && tar cf vendor.tar.xz vendor
|
|
|
|
Source3: vendor.tar.xz
|
2010-08-09 02:13:20 +02:00
|
|
|
Source99: baselibs.conf
|
2023-04-11 10:40:47 +02:00
|
|
|
# PATCH-FIX-UPSTREAM 03f8270d6bb255ca6618505e83169ab9d95ccef1.patch -- Include stdint.h where needed
|
2023-08-02 08:55:03 +02:00
|
|
|
#Patch0: 03f8270d6bb255ca6618505e83169ab9d95ccef1.patch
|
2023-04-11 10:40:47 +02:00
|
|
|
|
2022-04-22 08:18:38 +02:00
|
|
|
BuildRequires: autoconf >= 2.69
|
|
|
|
BuildRequires: cargo
|
2011-12-02 20:08:30 +01:00
|
|
|
BuildRequires: gcc-c++
|
2023-08-02 08:55:03 +02:00
|
|
|
BuildRequires: libboost_test-devel >= 1.60.0
|
2008-04-09 04:41:35 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2018-03-01 08:46:58 +01:00
|
|
|
BuildRequires: pkgconfig
|
2022-04-22 08:18:38 +02:00
|
|
|
BuildRequires: rust
|
2010-08-09 02:13:20 +02:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.21
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2015-06-16 16:19:27 +02:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2022-04-22 08:18:38 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
2022-04-27 14:35:58 +02:00
|
|
|
%package -n libopenraw9
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2022-04-27 15:31:24 +02:00
|
|
|
Group: System/Libraries
|
2022-04-27 14:35:58 +02:00
|
|
|
# libopenraw.so.0, version 0.3.1, was wrongly packaged in libopenraw1
|
|
|
|
Conflicts: libopenraw1 >= 0.3
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2022-04-27 14:35:58 +02:00
|
|
|
%description -n libopenraw9
|
2008-04-09 04:41:35 +02:00
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%package -n gdk-pixbuf-loader-libopenraw
|
2022-04-27 15:31:24 +02:00
|
|
|
Summary: gdk-pixbuf loader for libopenraw
|
|
|
|
Group: System/Libraries
|
2022-04-27 14:35:58 +02:00
|
|
|
Supplements: packageand(libopenraw9:gdk-pixbuf)
|
2015-06-16 16:19:27 +02:00
|
|
|
%{gdk_pixbuf_loader_requires}
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%description -n gdk-pixbuf-loader-libopenraw
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
This package provides a libopenraw-based gdk-pixbuf loader.
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%package -n libopenraw-devel
|
2011-05-30 10:02:09 +02:00
|
|
|
Summary: A library to decode digital camera RAW files
|
2012-02-24 19:05:26 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-05-25 00:50:57 +02:00
|
|
|
#include gdk-pixbuf/gdk-pixbuf.h
|
2010-08-09 02:13:20 +02:00
|
|
|
Requires: gdk-pixbuf-devel
|
2022-04-27 15:31:24 +02:00
|
|
|
Requires: libopenraw9 = %{version}-%{release}
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%description -n libopenraw-devel
|
|
|
|
libopenraw is a library that aim at decoding digital camera RAW files.
|
|
|
|
|
|
|
|
%prep
|
2023-08-02 08:55:03 +02:00
|
|
|
%autosetup -p1
|
|
|
|
%{?
|
|
|
|
pushd lib/mp4
|
|
|
|
cargo vendor -s Cargo.toml -s mp4parse/Cargo.toml -s mp4parse_capi/Cargo.toml
|
2022-04-22 08:18:38 +02:00
|
|
|
mkdir .cargo
|
2023-08-02 08:55:03 +02:00
|
|
|
cat << _EOF_ >> .cargo/config.toml
|
2022-04-22 08:18:38 +02:00
|
|
|
[source.crates-io]
|
|
|
|
replace-with = "vendored-sources"
|
|
|
|
|
|
|
|
[source.vendored-sources]
|
|
|
|
directory = "vendor"
|
2023-08-02 08:55:03 +02:00
|
|
|
_EOF_
|
|
|
|
tar -cf %_sourcedir/%name-%version-mp4.tar vendor .cargo
|
|
|
|
popd
|
|
|
|
}
|
2015-06-16 16:19:27 +02:00
|
|
|
|
2008-04-09 04:41:35 +02:00
|
|
|
%build
|
2023-08-02 08:55:03 +02:00
|
|
|
autoconf -f
|
2022-04-27 15:31:24 +02:00
|
|
|
%configure --disable-static
|
|
|
|
%make_build
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%install
|
2018-03-01 08:46:58 +01:00
|
|
|
%make_install
|
2009-05-25 00:50:57 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2012-05-10 07:50:52 +02:00
|
|
|
%check
|
2022-04-27 15:31:24 +02:00
|
|
|
%make_build check
|
2012-05-10 07:50:52 +02:00
|
|
|
|
2022-04-27 14:35:58 +02:00
|
|
|
%post -n libopenraw9 -p /sbin/ldconfig
|
|
|
|
%postun -n libopenraw9 -p /sbin/ldconfig
|
2022-04-22 08:18:38 +02:00
|
|
|
|
2010-08-09 02:13:20 +02:00
|
|
|
%post -n gdk-pixbuf-loader-libopenraw
|
2015-06-16 16:19:27 +02:00
|
|
|
%{gdk_pixbuf_loader_post}
|
2010-08-09 02:13:20 +02:00
|
|
|
|
|
|
|
%postun -n gdk-pixbuf-loader-libopenraw
|
2015-06-16 16:19:27 +02:00
|
|
|
%{gdk_pixbuf_loader_postun}
|
2008-04-09 04:41:35 +02:00
|
|
|
|
2022-04-27 14:35:58 +02:00
|
|
|
%files -n libopenraw9
|
2018-03-01 08:46:58 +01:00
|
|
|
%license COPYING
|
2008-04-09 04:41:35 +02:00
|
|
|
%{_libdir}/*.so.*
|
2010-08-09 02:13:20 +02:00
|
|
|
|
|
|
|
%files -n gdk-pixbuf-loader-libopenraw
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
|
2008-04-09 04:41:35 +02:00
|
|
|
|
|
|
|
%files -n libopenraw-devel
|
2022-04-27 15:31:24 +02:00
|
|
|
%doc README TODO ChangeLog
|
2008-04-09 04:41:35 +02:00
|
|
|
%{_libdir}/*.so
|
2022-04-22 08:18:38 +02:00
|
|
|
%dir %{_includedir}/libopenraw-0.3
|
|
|
|
%{_includedir}/libopenraw-0.3/*
|
2008-04-09 04:41:35 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|