* Update to version 5.0.0.
* Drop use of deprecated %suse_update_desktop_file macro. OBS-URL: https://build.opensuse.org/package/show/graphics:darktable/darktable?expand=0&rev=79
This commit is contained in:
commit
a71e325867
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
20
README.openSUSE
Normal file
20
README.openSUSE
Normal file
@ -0,0 +1,20 @@
|
||||
Extra Tools for darktable
|
||||
|
||||
You will find darktable specific extra programs/scripts under the tools
|
||||
directory.
|
||||
|
||||
Use these tools on your own risk. In case of any bugs of these
|
||||
tools please report them to the upstream darktable project on github
|
||||
(https://github.com/darktable-org/darktable/issues).
|
||||
|
||||
tools/create_control_svg.sh
|
||||
tools/purge_non_existing_images.sh
|
||||
tools/purge_unused_tags.sh
|
||||
|
||||
Profiled denoise generator
|
||||
tools/noise
|
||||
|
||||
Simply run make to create the binary
|
||||
|
||||
tools/basecurve
|
||||
Simply run make to create the binary
|
3
darktable-4.8.0.tar.xz
Normal file
3
darktable-4.8.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:419849e9015270e4075f2341c6b5532d3d1cccccfa8f19592cb2ea3ad17f9255
|
||||
size 6256036
|
6
darktable-4.8.0.tar.xz.asc
Normal file
6
darktable-4.8.0.tar.xz.asc
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQTxD5aGZSsOlJ/NlMMY3KEj+Um9OwUCZm9aAQAKCRAY3KEj+Um9
|
||||
OxfnAJ9bQ51MyoUo7NgipdSZ+1tCie/LwQCZAauqnR5T5Cyj6F1xBOO7UQQj//4=
|
||||
=BpvK
|
||||
-----END PGP SIGNATURE-----
|
3
darktable-4.8.1.tar.xz
Normal file
3
darktable-4.8.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:901b0e2caed36fb8619fdf4c60edfb8d31134b947d3054b5c66fd55c38af5991
|
||||
size 6258312
|
6
darktable-4.8.1.tar.xz.asc
Normal file
6
darktable-4.8.1.tar.xz.asc
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQTxD5aGZSsOlJ/NlMMY3KEj+Um9OwUCZpflMwAKCRAY3KEj+Um9
|
||||
O/qLAKCcNpwdgl8hz10D7p81O0jxfXGizgCgo13/AGJqjEKFo9e7eiw2AR0imt8=
|
||||
=Cfjp
|
||||
-----END PGP SIGNATURE-----
|
3
darktable-5.0.0.tar.xz
Normal file
3
darktable-5.0.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eaa136e6e624bb53127282e26aafa0441abcc189b55371465e1f5a8a493fa3a1
|
||||
size 6928316
|
6
darktable-5.0.0.tar.xz.asc
Normal file
6
darktable-5.0.0.tar.xz.asc
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQTxD5aGZSsOlJ/NlMMY3KEj+Um9OwUCZ19NegAKCRAY3KEj+Um9
|
||||
Ox3hAKDEL7wgk/IH0zg/3CwMQi7s3MrUhQCcDgCqIJiIb1MvOanzdUErCRdfx6M=
|
||||
=aDyD
|
||||
-----END PGP SIGNATURE-----
|
25
darktable-rawspeed-build-type-override.patch
Normal file
25
darktable-rawspeed-build-type-override.patch
Normal file
@ -0,0 +1,25 @@
|
||||
Index: src/external/CMakeLists.txt
|
||||
===================================================================
|
||||
--- darktable.orig/src/external/CMakeLists.txt
|
||||
+++ darktable/src/external/CMakeLists.txt
|
||||
@@ -13,17 +13,19 @@ endif()
|
||||
|
||||
################################################################################
|
||||
# RawSpeed block
|
||||
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPERCASE)
|
||||
|
||||
set(RAWSPEED_${CMAKE_BUILD_TYPE_UPPERCASE}_BUILD 1)
|
||||
if(RAWSPEED_RELWITHDEBINFO_BUILD)
|
||||
- set(CMAKE_BUILD_TYPE "Release")
|
||||
+ # openSUSE hack: we really do need to override CMAKE_BUILD_TYPE here.
|
||||
+ set(VARNAME "CMAKE_BUILD_TYPE")
|
||||
+ set(${VARNAME} "Release")
|
||||
endif()
|
||||
|
||||
SET(COMPILER_SUPPORTS_DEBUG_INFO_COMPRESSION OFF)
|
||||
SET(COMPILER_SUPPORTS_DEBUG_INFO_COMPRESSION_LINK OFF)
|
||||
SET(COMPILER_SUPPORTS_SPLIT_DEBUG_INFO OFF)
|
||||
SET(LINKER_SUPPORTS_GDB_INDEX OFF)
|
||||
|
||||
set(BUILD_TESTING_SAVE "${BUILD_TESTING}")
|
4
darktable-rpmlintrc
Normal file
4
darktable-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
||||
# The OpenCL Kernel get compiled during darktable startup by the graphics
|
||||
# driver and are then cached. Those kernel require header files which need to
|
||||
# be part of the runtime.
|
||||
addFilter("devel-file-in-non-devel-package")
|
4124
darktable.changes
Normal file
4124
darktable.changes
Normal file
File diff suppressed because it is too large
Load Diff
54
darktable.dsc
Normal file
54
darktable.dsc
Normal file
@ -0,0 +1,54 @@
|
||||
Format: 3.0 (quilt)
|
||||
Source: darktable
|
||||
Section: graphics
|
||||
Priority: optional
|
||||
Binary: darktable darktable-tools-basecurve darktable-tools-noise
|
||||
Architecture: any-amd64 any-arm64 any-ppc64el
|
||||
Version: 5.0.0-1.1
|
||||
Homepage: http://www.darktable.org/
|
||||
# libavif-dev (>= 0.9.1),
|
||||
Build-Depends: cmake (>= 3.18),
|
||||
debhelper (>= 10),
|
||||
gcc (>= 12),
|
||||
gcc-13 | gcc-12,
|
||||
g++-13 | g++-12,
|
||||
intltool,
|
||||
iso-codes,
|
||||
libcairo2-dev,
|
||||
libcolord-dev,
|
||||
libcolord-gtk-dev,
|
||||
libcups2-dev,
|
||||
libcurl4-gnutls-dev | libcurl-dev,
|
||||
libexiv2-dev,
|
||||
libflickcurl-dev,
|
||||
libglib2.0-dev,
|
||||
libgmic-dev,
|
||||
libgphoto2-dev,
|
||||
libgraphicsmagick1-dev,
|
||||
libgtk-3-dev (>= 3.24.5),
|
||||
libheif-dev,
|
||||
libjpeg-dev,
|
||||
libjson-glib-dev,
|
||||
liblcms2-dev,
|
||||
liblensfun-dev,
|
||||
liblua5.4-dev | liblua5.3-dev,
|
||||
libncurses-dev,
|
||||
libopenexr-dev,
|
||||
libopenjp2-7-dev,
|
||||
libosmgpsmap-1.0-dev,
|
||||
libpng-dev,
|
||||
libportmidi-dev,
|
||||
libpugixml-dev,
|
||||
librsvg2-dev,
|
||||
libsdl2-dev,
|
||||
libsecret-1-dev,
|
||||
libsoup2.4-dev,
|
||||
libsqlite3-dev,
|
||||
libtiff-dev,
|
||||
libwebp-dev,
|
||||
lsb-release,
|
||||
xsltproc
|
||||
Standards-Version: 3.9.8
|
||||
Package-List:
|
||||
darktable deb graphics optional arch=any-amd64,any-arm64,any-ppc64el
|
||||
DEBTRANSFORM-RELEASE: 1
|
28
darktable.keyring
Normal file
28
darktable.keyring
Normal file
@ -0,0 +1,28 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQGiBEPGlf8RBADJuJ4fYofoZ/jBDGseBie29NK/7bUH3PW+LbQXzsMH6i/uD04d
|
||||
xx3SeG1ybso+3sFzbDmsCQXHB/wrYGz7LfDEgFrH9sC4Xp0YUkTV0A7kuoRHQeMp
|
||||
wYUP/htZTNxrsDCAVEVvyLZZzXE+o7gy9mdF4ssJIuw55eWZRmGNZ1OBIwCg4Uzj
|
||||
H8Qwz2xtTTxCGBy1KK2aOscD/0ZC8r82SLgzNxKOs+pCulLBo1br5Es43HA5XDiw
|
||||
WOzsN8Howf1PpXore54MYjaprWmQU6d5K1Cb/Q//JMol9oWVVRqE4+yKScZeusRO
|
||||
C7QnW1jxRRG92aTNKqm3blxy+jgN+gYf4hB4bkMwe2Z2W4MlFewxhH3BhVnv64vz
|
||||
5a/QA/9XuFLkiNhecU76PEkcvsLVK0mGN+r9EKzC17VOdHFNLdxzm+/oWO7t8M9X
|
||||
vrB9pI1o1Qg0HhNYSKlkgD1XTsolDo0uzCLlRBveKfIMDmOC5O3T/ZaK6rBuzjtS
|
||||
q8jpvJ+i+vZFL36ZbnDxDQ87hVlZzP4S9zxK5qGdKlWEGEsZ/LQdUGFzY2FsIE9i
|
||||
cnkgPHBhc2NhbEBvYnJ5Lm5ldD6IWwQTEQIAGwUCQ8aV/wYLCQgHAwIDFQIDAxYC
|
||||
AQIeAQIXgAAKCRAY3KEj+Um9O9tqAKCqEurhJnEQLXcb9QVRsZGa2sFqJACgmI2e
|
||||
Q6DzuH7hbyz/wVPGaHNY5Pe5Ag0EQ8aWBhAIAPo2j5C+zcHVpBojwe39stUnsQq7
|
||||
61Mv4i/M6piiChE3TDoBE/BAsfZpZxaQtsX12+PJ28Z2ecp5SOmA3rNjIB6HVI5d
|
||||
maboxIBL0hjdilZVebRJsGPpz6se98fJivNiciRt+Jd9HiV4ES5ZUr8on19VW2KT
|
||||
80cbgAi+jakhiEhkvDUD8yPL8bRsCumiiN7jfmCmRV9R1fn2EZP52CI34IZnfYYL
|
||||
2F4jHcJULN6Ye7vWbLyNb8SFpNYsayzf/MOrwi4JifWIdP9xXcESDvG0GAObWPNV
|
||||
/qmX8+uZpFtfeUYPKXt6DOPvvutRA64MmOQvKBxifZCc5lhSd7AKHZ8Tg4MAAwUI
|
||||
AKAXSebxAk3NDzSk8mQnLkJ0FUjKXTZK3YWBlJ/z+Mb66t9mvlXdVcVdr6EkSMrn
|
||||
LtqQPgM412Hxx5oIaVRw4Jg+cgpAs41WIsYNXyketqACjhlkrW6oVfv10DqTUCTE
|
||||
PahUWWLfy+up0GT+DrHzccr42coKmoYnCpQYhXteA2kY8fXg8s6E27VPbygcsNlm
|
||||
ZNTr3K5iG7rwincCCnkyI6NxJ3y6HPV+aNdYbrHILNXidefNFvGv0yCazGq21SrV
|
||||
WYVJ0gwdr152HjyWdfJiso0wzD6mkTJ8giApuj5ABN+cGh9n++PuaEzn1AludTTA
|
||||
aPvlrAiueT7mVIPW2ObJknuIRgQYEQIABgUCQ8aWBgAKCRAY3KEj+Um9O4hvAKDA
|
||||
l5EQiOXtWPVhPC52ie2iW49NhACgt7et5mIYTaeLlrvW0CcAIj6qkv0=
|
||||
=erf/
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
426
darktable.spec
Normal file
426
darktable.spec
Normal file
@ -0,0 +1,426 @@
|
||||
#
|
||||
# spec file for package darktable
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global desktop_filename org.darktable.darktable
|
||||
|
||||
%bcond_with clang
|
||||
|
||||
%if 0%{?fedora} || 0%{?suse_version} >= 1590
|
||||
%bcond_with use_intree_lua
|
||||
%else
|
||||
%bcond_without use_intree_lua
|
||||
%endif
|
||||
|
||||
%if %{with use_intree_lua}
|
||||
%define _dont_use_intree_lua OFF
|
||||
%else
|
||||
%define _dont_use_intree_lua ON
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} || 0%{?fedora}
|
||||
%bcond_without cmake_macros
|
||||
%else
|
||||
%bcond_with cmake_macros
|
||||
%endif
|
||||
|
||||
%if 0%{?is_opensuse} || 0%{?fedora}
|
||||
%bcond_without osmgpsmap
|
||||
%bcond_without flickcurl
|
||||
%bcond_without translated_manpages
|
||||
%else
|
||||
%bcond_with osmgpsmap
|
||||
%bcond_with flickcurl
|
||||
%bcond_with translated_manpages
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1550 || 0%{?fedora}
|
||||
%bcond_without avif
|
||||
%else
|
||||
%bcond_with avif
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1550 || 0%{?fedora} >= 37
|
||||
%bcond_without jxl
|
||||
%else
|
||||
%bcond_with jxl
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1550
|
||||
%bcond_without gmic
|
||||
%else
|
||||
%bcond_with gmic
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%bcond_without libheif
|
||||
%else
|
||||
%bcond_with libheif
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1550 || 0%{?fedora} >= 38
|
||||
%bcond_without libraw
|
||||
%global _use_system_libraw "ON"
|
||||
%else
|
||||
%bcond_with libraw
|
||||
%global _use_system_libraw "ON"
|
||||
%endif
|
||||
|
||||
%ifarch ppc64le
|
||||
# The OpenCL kernels don't compile on ppc64le and if you get
|
||||
# them compiled there are funny runtime issues.
|
||||
%bcond_with opencl
|
||||
%else
|
||||
%bcond_without opencl
|
||||
%endif
|
||||
|
||||
%bcond_without openmp
|
||||
|
||||
%if %{with openmp}
|
||||
%global _use_openmp "ON"
|
||||
%else
|
||||
%global _use_openmp "OFF"
|
||||
%endif
|
||||
|
||||
%if %{with opencl}
|
||||
%global _use_opencl "ON"
|
||||
%else
|
||||
%global _use_opencl "OFF"
|
||||
%endif
|
||||
|
||||
%if %{with gmic}
|
||||
%global _use_gmic "ON"
|
||||
%else
|
||||
%global _use_gmic "OFF"
|
||||
%endif
|
||||
|
||||
%if %{with avif}
|
||||
%global _use_avif "ON"
|
||||
%else
|
||||
%global _use_avif "OFF"
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1550
|
||||
%global force_gcc_version 12
|
||||
%endif
|
||||
|
||||
Name: darktable
|
||||
Version: 5.0.0
|
||||
Release: 0
|
||||
%global pkg_name darktable
|
||||
%global pkg_version %{version}
|
||||
URL: http://www.darktable.org/
|
||||
Source0: https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{pkg_name}-%{version}.tar.xz
|
||||
Source1: https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{pkg_name}-%{version}.tar.xz.asc
|
||||
Source2: %{pkg_name}-rpmlintrc
|
||||
Source3: %{pkg_name}.keyring
|
||||
#
|
||||
Source97: darktable.dsc
|
||||
Source98: debian.tar.xz
|
||||
Source99: README.openSUSE
|
||||
#
|
||||
Patch0: darktable-rawspeed-build-type-override.patch
|
||||
#
|
||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||
# build time tools
|
||||
BuildRequires: clang >= 13
|
||||
BuildRequires: cmake >= 3.18
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: llvm-devel
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: llvm-static
|
||||
%endif
|
||||
%if %{without clang}
|
||||
BuildRequires: gcc%{?force_gcc_version}-c++ >= 12
|
||||
%if 0%{?force_gcc_version}
|
||||
#!BuildIgnore: libgcc_s1
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libxslt
|
||||
%if %{with translated_manpages}
|
||||
BuildRequires: po4a
|
||||
%endif
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: xz
|
||||
# libraries deps
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
#
|
||||
%if 0%{?suse_version} >= 1550
|
||||
BuildRequires: pkgconfig(lua5.4)
|
||||
%else
|
||||
BuildRequires: pkgconfig(lua)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(pugixml)
|
||||
#
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(ImageMagick)
|
||||
BuildRequires: pkgconfig(OpenEXR) >= 3
|
||||
BuildRequires: pkgconfig(atk)
|
||||
BuildRequires: pkgconfig(colord)
|
||||
BuildRequires: pkgconfig(colord-gtk)
|
||||
BuildRequires: pkgconfig(exiv2)
|
||||
BuildRequires: pkgconfig(libopenjp2)
|
||||
%if %{with flickcurl}
|
||||
BuildRequires: pkgconfig(flickcurl)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.24.5
|
||||
BuildRequires: pkgconfig(iso-codes)
|
||||
BuildRequires: pkgconfig(json-glib-1.0)
|
||||
BuildRequires: pkgconfig(lcms2)
|
||||
BuildRequires: pkgconfig(lensfun) >= 0.3.2
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(libgphoto2)
|
||||
%if %{with libheif}
|
||||
BuildRequires: pkgconfig(libheif)
|
||||
%endif
|
||||
%if %{with jxl}
|
||||
BuildRequires: pkgconfig(libjxl) >= 0.7.0
|
||||
%endif
|
||||
%if %{with libraw}
|
||||
BuildRequires: pkgconfig(libraw) >= 0.21
|
||||
%endif
|
||||
BuildRequires: pkgconfig(librsvg-2.0)
|
||||
BuildRequires: pkgconfig(libsecret-1)
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
%if %{with osmgpsmap}
|
||||
BuildRequires: pkgconfig(osmgpsmap-1.0)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(pango)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(sqlite3)
|
||||
BuildRequires: pkgconfig(tinfo)
|
||||
%if %{with opencl}
|
||||
BuildRequires: opencl-headers
|
||||
%endif
|
||||
%if %{with gmic}
|
||||
%if 0%{?is_opensuse}
|
||||
BuildRequires: libgmic-devel
|
||||
%else
|
||||
BuildRequires: gmic-devel
|
||||
%endif
|
||||
# /gmic
|
||||
%endif
|
||||
%if %{with avif}
|
||||
BuildRequires: libavif-devel >= 0.9.0
|
||||
%endif
|
||||
BuildRequires: portmidi-devel
|
||||
|
||||
# for the sake of simplicity we do not enforce the version here
|
||||
# the package is small enough that installing it doesnt hurt
|
||||
Requires: iso-codes
|
||||
#
|
||||
# Some CSS themes suggest to use the the Roboto font family
|
||||
# https://github.com/darktable-org/darktable/releases/tag/release-3.0.0
|
||||
%if 0%{?fedora}
|
||||
Recommends: roboto-fontface-fonts
|
||||
%else
|
||||
Recommends: google-roboto-fonts
|
||||
%endif
|
||||
#
|
||||
Summary: A virtual Lighttable and Darkroom
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Graphics/Viewers
|
||||
Obsoletes: darktable-docs < %{version}-%{release}
|
||||
Provides: darktable-docs = %{version}-%{release}
|
||||
|
||||
%description
|
||||
darktable is a virtual lighttable and darkroom for photographers: it manages
|
||||
digital negatives in a database and can show them through a zoomable
|
||||
lighttable. It also enables developing raw images and enhance them.
|
||||
|
||||
%package tools-basecurve
|
||||
Summary: The basecurve tool from tools/basecurve/
|
||||
Group: Productivity/Graphics/Viewers
|
||||
Requires: /usr/bin/convert
|
||||
Requires: dcraw
|
||||
Requires: exiftool
|
||||
|
||||
%description tools-basecurve
|
||||
darktable is a virtual lighttable and darkroom for photographers: it manages
|
||||
digital negatives in a database and can show them through a zoomable
|
||||
lighttable. It also enables developing raw images and enhance them.
|
||||
|
||||
This package provides the basecurve tool from tools/basecurve/.
|
||||
Another option to solve the same problem might be the darktable-chart module
|
||||
from the darktable package.
|
||||
|
||||
%package tools-noise
|
||||
Summary: Noise profiling tools to support new cameras
|
||||
Group: Productivity/Graphics/Viewers
|
||||
Requires: /usr/bin/convert
|
||||
Requires: ghostscript
|
||||
Requires: gnuplot
|
||||
|
||||
%description tools-noise
|
||||
darktable is a virtual lighttable and darkroom for photographers: it manages
|
||||
digital negatives in a database and can show them through a zoomable
|
||||
lighttable. It also enables developing raw images and enhance them.
|
||||
|
||||
This package provides the noise profiling tools to add support for new cameras.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{pkg_name}-%{version}
|
||||
|
||||
cp %{SOURCE99} .
|
||||
|
||||
# Remove bundled OpenCL headers.
|
||||
rm -rf src/external/CL src/external/OpenCL
|
||||
sed -i -e 's, \"external/CL/\*\.h\" , ,' src/CMakeLists.txt
|
||||
|
||||
%if %{without use_intree_lua}
|
||||
# Remove bundled lua
|
||||
rm -rf src/external/lua/
|
||||
%endif
|
||||
|
||||
%build
|
||||
%global cmake_options \\\
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_lib} \\\
|
||||
-DCMAKE_SKIP_RPATH:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH:BOOL=OFF \\\
|
||||
-DCMAKE_INSTALL_DATAROOTDIR="share" \\\
|
||||
-DCMAKE_INSTALL_LIBEXECDIR="%{_libexecdir}" \\\
|
||||
-DCMAKE_INSTALL_DOCDIR="%{_defaultdocdir}/%{pkg_name}" \\\
|
||||
-DCOMPILER_SUPPORTS_SPLIT_DEBUG_INFO=OFF \\\
|
||||
-DBINARY_PACKAGE_BUILD=1 \\\
|
||||
-DRAWSPEED_ENABLE_LTO=ON \\\
|
||||
-DUSE_OPENCL="%{_use_opencl}" \\\
|
||||
-DUSE_OPENMP="%{_use_openmp}" \\\
|
||||
-DUSE_GMIC="%{_use_gmic}" \\\
|
||||
-DUSE_AVIF="%{_use_avif}" \\\
|
||||
-DDONT_USE_INTERNAL_LIBRAW="%{_use_system_libraw}" \\\
|
||||
-DBUILD_NOISE_TOOLS=ON \\\
|
||||
-DBUILD_CURVE_TOOLS=ON
|
||||
|
||||
%if 0%{?force_gcc_version}
|
||||
export CC="gcc-%{?force_gcc_version}"
|
||||
export CXX="g++-%{?force_gcc_version}"
|
||||
%endif
|
||||
%if %{with clang}
|
||||
export CC="/usr/bin/clang"
|
||||
export CXX="/usr/bin/clang++"
|
||||
%endif
|
||||
export _OPENCL_INCLUDE_DIR=$(clang -print-search-dirs | awk -F= '/^libra/ {print $2}' | awk -F: '{print $1 "/include"}')
|
||||
|
||||
%if %{with cmake_macros}
|
||||
#suse branch
|
||||
%cmake \
|
||||
-DCLANG_OPENCL_INCLUDE_DIR=${_OPENCL_INCLUDE_DIR} \
|
||||
-DDONT_USE_INTERNAL_LUA=%{_dont_use_intree_lua} \
|
||||
%ifarch aarch64
|
||||
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
||||
%endif
|
||||
%{cmake_options} \
|
||||
%if "%{optimization_architecture}" == "asan"
|
||||
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" -DCMAKE_SHARED_LINKER_FLAGS="" -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
|
||||
%endif
|
||||
|| cat CMakeFiles/CMakeError.log
|
||||
%cmake_build
|
||||
#/ suse branch
|
||||
%else
|
||||
#fedora branch
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%cmake \
|
||||
-DDONT_USE_INTERNAL_LUA=%{_dont_use_intree_lua} \
|
||||
%ifarch aarch64
|
||||
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
||||
%endif
|
||||
%{cmake_options} ..
|
||||
make %{_smp_mflags} VERBOSE=1
|
||||
|
||||
#/ with cmake_macros
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{with cmake_macros}
|
||||
%cmake_install
|
||||
|
||||
#/ cmake macros branch
|
||||
%else
|
||||
# fedora branch
|
||||
%make_install -C %{_target_platform}
|
||||
#/ fedora branch
|
||||
%endif
|
||||
|
||||
%find_lang darktable
|
||||
|
||||
rm %{buildroot}%{_defaultdocdir}/%{pkg_name}/LICENSE
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%if ! 0%{?suse_version}
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
||||
|
||||
%postun
|
||||
update-desktop-database >/dev/null 2>/dev/null || :
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
||||
%endif
|
||||
|
||||
%files -f darktable.lang
|
||||
%doc %{_defaultdocdir}/%{pkg_name}
|
||||
%license LICENSE
|
||||
%exclude %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
||||
%{_bindir}/darktable
|
||||
%if %{with opencl}
|
||||
%{_bindir}/darktable-cltest
|
||||
%endif
|
||||
%{_bindir}/darktable-cli
|
||||
%{_bindir}/darktable-generate-cache
|
||||
%{_bindir}/darktable-chart
|
||||
%{_bindir}/darktable-cmstest
|
||||
%{_bindir}/darktable-rs-identify
|
||||
%{_libdir}/darktable
|
||||
%{_datadir}/applications/%{desktop_filename}.desktop
|
||||
%{_datadir}/darktable
|
||||
%exclude %{_datadir}/%{pkg_name}/tools/basecurve/
|
||||
%dir %{_datadir}/metainfo
|
||||
%{_datadir}/metainfo/%{desktop_filename}.appdata.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/darktable*
|
||||
%{_mandir}/man1/darktable*.1*
|
||||
%if %{with translated_manpages}
|
||||
%{_mandir}/*/man1/darktable*.1*
|
||||
%endif
|
||||
%dir %{_libexecdir}/darktable
|
||||
%dir %{_libexecdir}/darktable/tools
|
||||
|
||||
%files tools-basecurve
|
||||
%{_libexecdir}/darktable/tools/darktable-curve-tool
|
||||
%{_libexecdir}/darktable/tools/darktable-curve-tool-helper
|
||||
%{_datadir}/%{pkg_name}/tools/basecurve/
|
||||
%doc %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
||||
|
||||
%files tools-noise
|
||||
%{_libexecdir}/darktable/tools/darktable-gen-noiseprofile
|
||||
%{_libexecdir}/darktable/tools/darktable-noiseprofile
|
||||
%{_libexecdir}/darktable/tools/profiling-shot.xmp
|
||||
%{_libexecdir}/darktable/tools/subr.sh
|
||||
|
||||
%changelog
|
3
debian.tar.xz
Normal file
3
debian.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68746f8bde136b9f447e3deeada95f2079bb138aa29466359993c5700f709f0d
|
||||
size 21852
|
Loading…
Reference in New Issue
Block a user