Accepting request 760486 from graphics
OBS-URL: https://build.opensuse.org/request/show/760486 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/darktable?expand=0&rev=81
This commit is contained in:
parent
00d035b44b
commit
b7209229ac
@ -1,27 +0,0 @@
|
|||||||
From c5e131d33f1148a37e7ea0226670ecac188acbce Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
|
||||||
Date: Mon, 15 Jul 2019 22:55:08 +0200
|
|
||||||
Subject: [PATCH] Fix build with exiv2 0.27
|
|
||||||
|
|
||||||
Use exiv2.hpp as recommended by upstream
|
|
||||||
---
|
|
||||||
tools/basecurve/exif-wrapper.cpp | 3 +--
|
|
||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tools/basecurve/exif-wrapper.cpp b/tools/basecurve/exif-wrapper.cpp
|
|
||||||
index 7255072..4281e1d 100644
|
|
||||||
--- a/tools/basecurve/exif-wrapper.cpp
|
|
||||||
+++ b/tools/basecurve/exif-wrapper.cpp
|
|
||||||
@@ -16,8 +16,7 @@
|
|
||||||
along with darktable. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#include <exiv2/exif.hpp>
|
|
||||||
-#include <exiv2/image.hpp>
|
|
||||||
+#include <exiv2/exiv2.hpp>
|
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cassert>
|
|
||||||
--
|
|
||||||
2.22.0
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
Index: darktable/tools/basecurve/README.md
|
|
||||||
===================================================================
|
|
||||||
--- darktable.orig/tools/basecurve/README.md
|
|
||||||
+++ darktable/tools/basecurve/README.md
|
|
||||||
@@ -45,20 +45,11 @@ You can build the tool using the followi
|
|
||||||
|
|
||||||
You are invited to print the help message to get to know the tool's options:
|
|
||||||
|
|
||||||
- $ "$YOUR_INSTALL_PATH/bin/dt-curve-tool" -h
|
|
||||||
+ $ "/usr/bin/dt-curve-tool" -h
|
|
||||||
|
|
||||||
It may help you better understand the following paragraphs.
|
|
||||||
|
|
||||||
|
|
||||||
-## Determining a basecurve/tonecurve using _dt-curve-tool-helper_ script
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-An additional helper script called _dt-curve-tool-helper_ is provided. This
|
|
||||||
-script should automate many steps of the curve determination process.
|
|
||||||
-
|
|
||||||
-It is assumed that `$YOUR_INSTALL_PATH` is in your `$PATH`.
|
|
||||||
-
|
|
||||||
-
|
|
||||||
### Gathering the statistics
|
|
||||||
|
|
||||||
|
|
||||||
@@ -218,8 +209,8 @@ Two GNUPlot scripts are provided in the
|
|
||||||
suppose default filenames for the basecurve/tonecurve data/fit files have been
|
|
||||||
used
|
|
||||||
|
|
||||||
- $ gnuplot -e ${dt src}/tools/basecurve/gnuplot.tonecurve
|
|
||||||
- $ gnuplot -e ${dt src}/tools/basecurve/gnuplot.basecurve
|
|
||||||
+ $ gnuplot -c /usr/share/darktable/tools/basecurve/gnuplot.tonecurve
|
|
||||||
+ $ gnuplot -c /usr/share/darktable/tools/basecurve/gnuplot.basecurve
|
|
||||||
|
|
||||||
This generates a `basecurve.pdf`; resp `tonecurve.pdf` file with a graph of the
|
|
||||||
gathered data and the fitted curves. This can help you measuring how much of
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a518999c8458472edfc04577026ce5047d74553052af0f52d10ba8ce601b78f0
|
|
||||||
size 3522292
|
|
@ -1,6 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iF0EABECAB0WIQTxD5aGZSsOlJ/NlMMY3KEj+Um9OwUCXaxYGQAKCRAY3KEj+Um9
|
|
||||||
O4CjAKDbIITBuycuuJE5vUhNeKqf42L3igCfRxgKmH6ElXj6PydKbsejqj1HLA0=
|
|
||||||
=hwkN
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
darktable-3.0.0.tar.xz
Normal file
3
darktable-3.0.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7195a5ff7ee95ab7c5a57e4e84f8c90cc4728b2c917359203c21293ab754c0db
|
||||||
|
size 3827412
|
6
darktable-3.0.0.tar.xz.asc
Normal file
6
darktable-3.0.0.tar.xz.asc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iF0EABECAB0WIQTxD5aGZSsOlJ/NlMMY3KEj+Um9OwUCXf3towAKCRAY3KEj+Um9
|
||||||
|
O5r9AJ4uTtqV9XCPfNlrHFC/DPLEJDbYWQCfcCPdtR2SJPDiLuflXR7DZqYrlXM=
|
||||||
|
=XC3w
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 2 19:52:30 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Cleanup spec file:
|
||||||
|
* Move LICENSE to licensedir
|
||||||
|
* Use _libexecdir for tools
|
||||||
|
* Remove conditionals for obsolete distribution versions
|
||||||
|
- Do not copy developer/packager documentation to docdir
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 27 13:12:23 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 3.0.0
|
||||||
|
* https://github.com/darktable-org/darktable/releases/tag/release-3.0.0
|
||||||
|
- Removed 0001-Fix-build-with-exiv2-0.27.patch
|
||||||
|
- Removed basecurve.readme.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 21 14:52:51 UTC 2019 - Marcus Rueckert <mrueckert@suse.de>
|
Mon Oct 21 14:52:51 UTC 2019 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
177
darktable.spec
177
darktable.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package darktable
|
# spec file for package darktable
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,11 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
%bcond_with basecurve_tool
|
|
||||||
%else
|
|
||||||
%bcond_without basecurve_tool
|
|
||||||
%endif
|
|
||||||
%bcond_with clang
|
%bcond_with clang
|
||||||
|
|
||||||
%if 0%{?is_opensuse} || 0%{?fedora_version} >= 26
|
%if 0%{?is_opensuse} || 0%{?fedora_version} >= 26
|
||||||
@ -33,22 +28,20 @@
|
|||||||
%bcond_with translated_manpages
|
%bcond_with translated_manpages
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1330 || 0%{?fedora_version} >= 26
|
|
||||||
%bcond_without system_lua
|
|
||||||
%else
|
|
||||||
%bcond_with system_lua
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
|
# The OpenCL kernels don't compile on ppc64le and if you get
|
||||||
|
# them compiled there are funny runtime issues.
|
||||||
%bcond_with opencl
|
%bcond_with opencl
|
||||||
%else
|
%else
|
||||||
%bcond_without opencl
|
%bcond_without opencl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1320 || 0%{?fedora_version} >= 26
|
%bcond_without openmp
|
||||||
%bcond_without system_opencl
|
|
||||||
|
%if %{with openmp}
|
||||||
|
%global _use_openmp "ON"
|
||||||
%else
|
%else
|
||||||
%bcond_with system_opencl
|
%global _use_openmp "OFF"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with opencl}
|
%if %{with opencl}
|
||||||
@ -57,44 +50,28 @@
|
|||||||
%global _use_opencl "OFF"
|
%global _use_opencl "OFF"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _libexec_subdir "lib"
|
%if 0%{?suse_version} < 1550
|
||||||
%if 0%{?fedora_version}
|
|
||||||
%global _libexec_subdir "libexec"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global _rawspeed_with_lto "ON"
|
|
||||||
%if (0%{?fedora_version} && 0%{?fedora_version} <= 27) || (0%{?suse_version} && 0%{?suse_version} < 1550)
|
|
||||||
# Linker crashes. Do not really care since F27 is EOL.
|
|
||||||
%global _rawspeed_with_lto "OFF"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define cmake_options -DCMAKE_SKIP_RPATH:BOOL=OFF -DCMAKE_BUILD_TYPE=Release -DRAWSPEED_ENABLE_LTO="%{_rawspeed_with_lto}" -DBINARY_PACKAGE_BUILD=1 -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_INSTALL_LIBDIR="%{_lib}" -DCMAKE_INSTALL_LIBEXECDIR="%{_libexec_subdir}" -DUSE_OPENCL="%{_use_opencl}" -DBUILD_NOISE_TOOLS=ON
|
|
||||||
|
|
||||||
%if 0%{?suse_version} == 1315
|
|
||||||
%define force_gcc_version 7
|
%define force_gcc_version 7
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: darktable
|
Name: darktable
|
||||||
Version: 2.6.3
|
Version: 3.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define pkg_name darktable
|
%define pkg_name darktable
|
||||||
%define pkg_version 2.6.3
|
%define pkg_version 3.0.0
|
||||||
Url: http://www.darktable.org/
|
URL: http://www.darktable.org/
|
||||||
Source0: %{name}-%{pkg_version}.tar.xz
|
Source0: %{pkg_name}-%{pkg_version}.tar.xz
|
||||||
Source1: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual.pdf
|
Source1: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual.pdf
|
||||||
Source2: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual-de.pdf
|
Source2: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual-de.pdf
|
||||||
Source3: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual-it.pdf
|
Source3: https://github.com/darktable-org/darktable/releases/download/release-2.6.1/darktable-usermanual-it.pdf
|
||||||
Source4: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-lua-api.pdf
|
Source4: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-lua-api.pdf
|
||||||
Source96: %{name}-%{pkg_version}.tar.xz.asc
|
Source96: %{pkg_name}-%{pkg_version}.tar.xz.asc
|
||||||
Source97: darktable.dsc
|
Source97: darktable.dsc
|
||||||
Source98: debian.tar.xz
|
Source98: debian.tar.xz
|
||||||
Source99: README.openSUSE
|
Source99: README.openSUSE
|
||||||
Patch: darktable-old-glib.patch
|
Patch: darktable-old-glib.patch
|
||||||
Patch1: basecurve.readme.patch
|
|
||||||
# PATCH-FIX-UPSTREAM Fixed (differently) in 2.8.0
|
|
||||||
Patch2: 0001-Fix-build-with-exiv2-0.27.patch
|
|
||||||
|
|
||||||
ExclusiveArch: x86_64 aarch64
|
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||||
# build time tools
|
# build time tools
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: cmake >= 3.4
|
BuildRequires: cmake >= 3.4
|
||||||
@ -103,7 +80,7 @@ BuildRequires: llvm-devel
|
|||||||
%if 0%{?fedora_version}
|
%if 0%{?fedora_version}
|
||||||
BuildRequires: llvm-static
|
BuildRequires: llvm-static
|
||||||
%endif
|
%endif
|
||||||
%if ! %{with clang}
|
%if %{without clang}
|
||||||
BuildRequires: gcc%{?force_gcc_version}-c++ >= 5
|
BuildRequires: gcc%{?force_gcc_version}-c++ >= 5
|
||||||
%if 0%{?force_gcc_version}
|
%if 0%{?force_gcc_version}
|
||||||
#!BuildIgnore: libgcc_s1
|
#!BuildIgnore: libgcc_s1
|
||||||
@ -126,28 +103,24 @@ BuildRequires: libjpeg-devel
|
|||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
#
|
#
|
||||||
%if %{with system_lua}
|
|
||||||
BuildRequires: lua-devel >= 5.3
|
BuildRequires: lua-devel >= 5.3
|
||||||
%endif
|
|
||||||
BuildRequires: pugixml-devel
|
BuildRequires: pugixml-devel
|
||||||
#
|
#
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%if 0%{?suse_version} != 1315 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )
|
|
||||||
BuildRequires: pkgconfig(GraphicsMagick)
|
BuildRequires: pkgconfig(GraphicsMagick)
|
||||||
BuildRequires: pkgconfig(libopenjp2)
|
|
||||||
%endif
|
|
||||||
BuildRequires: pkgconfig(OpenEXR)
|
BuildRequires: pkgconfig(OpenEXR)
|
||||||
BuildRequires: pkgconfig(atk)
|
BuildRequires: pkgconfig(atk)
|
||||||
BuildRequires: pkgconfig(colord)
|
BuildRequires: pkgconfig(colord)
|
||||||
BuildRequires: pkgconfig(colord-gtk)
|
BuildRequires: pkgconfig(colord-gtk)
|
||||||
BuildRequires: pkgconfig(exiv2) > 0.24
|
BuildRequires: pkgconfig(exiv2)
|
||||||
|
BuildRequires: pkgconfig(libopenjp2)
|
||||||
%if %{with flickcurl}
|
%if %{with flickcurl}
|
||||||
BuildRequires: pkgconfig(flickcurl)
|
BuildRequires: pkgconfig(flickcurl)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
||||||
BuildRequires: pkgconfig(gio-2.0)
|
BuildRequires: pkgconfig(gio-2.0)
|
||||||
BuildRequires: pkgconfig(glib-2.0) > 2.40
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: pkgconfig(gtk+-3.0) > 3.14
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22
|
||||||
BuildRequires: pkgconfig(iso-codes)
|
BuildRequires: pkgconfig(iso-codes)
|
||||||
BuildRequires: pkgconfig(json-glib-1.0)
|
BuildRequires: pkgconfig(json-glib-1.0)
|
||||||
BuildRequires: pkgconfig(lcms2)
|
BuildRequires: pkgconfig(lcms2)
|
||||||
@ -162,13 +135,21 @@ BuildRequires: pkgconfig(osmgpsmap-1.0)
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(pango)
|
BuildRequires: pkgconfig(pango)
|
||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
%if %{with opencl} && %{with system_opencl}
|
%if %{with opencl}
|
||||||
BuildRequires: opencl-headers
|
BuildRequires: opencl-headers
|
||||||
%endif
|
%endif
|
||||||
# for the sake of simplicity we do not enforce the version here
|
# for the sake of simplicity we do not enforce the version here
|
||||||
# the package is small enough that installing it doesnt hurt
|
# the package is small enough that installing it doesnt hurt
|
||||||
Requires: iso-codes
|
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_version}
|
||||||
|
Recommends: roboto-fontface-fonts
|
||||||
|
%else
|
||||||
|
Recommends: google-roboto-fonts
|
||||||
|
%endif
|
||||||
|
#
|
||||||
Summary: A virtual Lighttable and Darkroom
|
Summary: A virtual Lighttable and Darkroom
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Graphics/Viewers
|
Group: Productivity/Graphics/Viewers
|
||||||
@ -221,28 +202,31 @@ lighttable. It also enables developing raw images and enhance them.
|
|||||||
This package provides the user manual in PDF format.
|
This package provides the user manual in PDF format.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%autosetup -p1 -n %{pkg_name}-%{version}
|
||||||
%patch -p1
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
chmod -x tools/basecurve/* tools/noise/*
|
|
||||||
|
|
||||||
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
||||||
cp %{S:99} .
|
cp %{S:99} .
|
||||||
|
|
||||||
%if %{with system_opencl} || !%{with opencl}
|
|
||||||
# Remove bundled OpenCL headers.
|
# Remove bundled OpenCL headers.
|
||||||
rm -rf src/external/CL src/external/OpenCL
|
rm -rf src/external/CL src/external/OpenCL
|
||||||
sed -i -e 's, \"external/CL/\*\.h\" , ,' src/CMakeLists.txt
|
sed -i -e 's, \"external/CL/\*\.h\" , ,' src/CMakeLists.txt
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with system_lua}
|
|
||||||
# Remove bundled lua
|
# Remove bundled lua
|
||||||
rm -rf src/external/lua/
|
rm -rf src/external/lua/
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export BUILDDIR="$PWD"
|
%define cmake_options \\\
|
||||||
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \\\
|
||||||
|
-DCMAKE_INSTALL_DATAROOTDIR="share" \\\
|
||||||
|
-DCMAKE_INSTALL_LIBEXECDIR="%{_libexecdir}" \\\
|
||||||
|
-DCMAKE_INSTALL_DOCDIR="%{_defaultdocdir}/%{pkg_name}" \\\
|
||||||
|
-DBINARY_PACKAGE_BUILD=1 \\\
|
||||||
|
-DRAWSPEED_ENABLE_LTO=ON \\\
|
||||||
|
-DUSE_OPENCL="%{_use_opencl}" \\\
|
||||||
|
-DUSE_OPENMP="%{_use_openmp}" \\\
|
||||||
|
-DBUILD_NOISE_TOOLS=ON \\\
|
||||||
|
-DBUILD_CURVE_TOOLS=ON
|
||||||
|
|
||||||
%if 0%{?force_gcc_version}
|
%if 0%{?force_gcc_version}
|
||||||
export CC="gcc-%{?force_gcc_version}"
|
export CC="gcc-%{?force_gcc_version}"
|
||||||
export CXX="g++-%{?force_gcc_version}"
|
export CXX="g++-%{?force_gcc_version}"
|
||||||
@ -256,105 +240,49 @@ export _OPENCL_INCLUDE_DIR=$(clang -print-search-dirs | awk -F= '/^libra/ {print
|
|||||||
#suse branch
|
#suse branch
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCLANG_OPENCL_INCLUDE_DIR=${_OPENCL_INCLUDE_DIR} \
|
-DCLANG_OPENCL_INCLUDE_DIR=${_OPENCL_INCLUDE_DIR} \
|
||||||
%if ! %{with system_lua}
|
-DDONT_USE_INTERNAL_LUA=ON \
|
||||||
-DDONT_USE_INTERNAL_LUA=Off \
|
|
||||||
%endif
|
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
||||||
%endif
|
%endif
|
||||||
%{cmake_options} \
|
%{cmake_options} \
|
||||||
|| cat CMakeFiles/CMakeError.log
|
|| cat CMakeFiles/CMakeError.log
|
||||||
make %{_smp_mflags} VERBOSE=1
|
%cmake_build
|
||||||
cd $BUILDDIR
|
|
||||||
|
|
||||||
cd tools/basecurve
|
|
||||||
%cmake
|
|
||||||
make %{_smp_mflags} VERBOSE=1
|
|
||||||
#/ suse branch
|
#/ suse branch
|
||||||
%else
|
%else
|
||||||
#fedora branch
|
#fedora branch
|
||||||
mkdir %{_target_platform}
|
mkdir %{_target_platform}
|
||||||
pushd %{_target_platform}
|
pushd %{_target_platform}
|
||||||
%cmake \
|
%cmake \
|
||||||
%if ! %{with system_lua}
|
-DDONT_USE_INTERNAL_LUA=ON \
|
||||||
-DDONT_USE_INTERNAL_LUA=Off \
|
|
||||||
%endif
|
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
||||||
%endif
|
%endif
|
||||||
%{cmake_options} ..
|
%{cmake_options} ..
|
||||||
make %{_smp_mflags} VERBOSE=1
|
make %{_smp_mflags} VERBOSE=1
|
||||||
cd $BUILDDIR
|
|
||||||
|
|
||||||
%if %{with basecurve_tool}
|
|
||||||
cd tools/basecurve
|
|
||||||
mkdir %{_target_platform}
|
|
||||||
pushd %{_target_platform}
|
|
||||||
%cmake ..
|
|
||||||
make %{_smp_mflags} VERBOSE=1
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
cd $BUILDDIR
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
# suse branch
|
# suse branch
|
||||||
%cmake_install
|
%cmake_install
|
||||||
%if %{with basecurve_tool}
|
|
||||||
pushd tools/basecurve
|
|
||||||
%cmake_install
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
%suse_update_desktop_file darktable
|
%suse_update_desktop_file darktable
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_defaultdocdir}/%{pkg_name}/
|
|
||||||
mv %{buildroot}%{_datadir}/doc/darktable/* %{buildroot}%{_defaultdocdir}/%{pkg_name}/
|
|
||||||
#/ suse branch
|
#/ suse branch
|
||||||
%else
|
%else
|
||||||
# fedora branch
|
# fedora branch
|
||||||
%make_install -C %{_target_platform}
|
%make_install -C %{_target_platform}
|
||||||
%if %{with basecurve_tool}
|
|
||||||
%make_install -C tools/basecurve/%{_target_platform}
|
|
||||||
%endif
|
|
||||||
#/ fedora branch
|
#/ fedora branch
|
||||||
%endif
|
%endif
|
||||||
find %{buildroot}%{_libdir} -name "*.la" -delete
|
|
||||||
%find_lang darktable
|
%find_lang darktable
|
||||||
|
|
||||||
cp -av %{S:1} %{S:2} %{S:3} %{S:4} \
|
cp -av %{S:1} %{S:2} %{S:3} %{S:4} doc/TODO \
|
||||||
doc/ChangeLog doc/NEWS \
|
|
||||||
doc/thumbnail_color_management.txt \
|
|
||||||
doc/TODO doc/TRANSLATORS* \
|
|
||||||
%{buildroot}%{_defaultdocdir}/%{pkg_name}
|
%{buildroot}%{_defaultdocdir}/%{pkg_name}
|
||||||
|
rm %{buildroot}%{_defaultdocdir}/%{pkg_name}/LICENSE
|
||||||
mkdir -p %{buildroot}%{_defaultdocdir}/%{pkg_name}/tools/ %{buildroot}%{_datadir}/%{pkg_name}/tools/
|
|
||||||
|
|
||||||
cp -av tools/purge* tools/common.sh \
|
|
||||||
%{buildroot}%{_datadir}/%{pkg_name}/tools/
|
|
||||||
|
|
||||||
%if %{with basecurve_tool}
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{pkg_name}/tools/basecurve/
|
|
||||||
cp -av tools/basecurve/plot* \
|
|
||||||
%{buildroot}%{_datadir}/%{pkg_name}/tools/basecurve/
|
|
||||||
|
|
||||||
install -D -m 0644 tools/basecurve/README.md \
|
|
||||||
%{buildroot}%{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%fdupes %{buildroot}/%{_prefix}
|
%fdupes %{buildroot}/%{_prefix}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if ! 0%{?suse_version}
|
||||||
# on newer distros it is handled via file trigger
|
|
||||||
%if 0%{?suse_version} < 1500
|
|
||||||
%post
|
|
||||||
%desktop_database_post
|
|
||||||
%icon_theme_cache_post
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%desktop_database_postun
|
|
||||||
%icon_theme_cache_postun
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
%post
|
%post
|
||||||
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
||||||
|
|
||||||
@ -371,10 +299,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
|||||||
|
|
||||||
%files -f darktable.lang
|
%files -f darktable.lang
|
||||||
%doc %{_defaultdocdir}/%{pkg_name}
|
%doc %{_defaultdocdir}/%{pkg_name}
|
||||||
|
%license LICENSE
|
||||||
%exclude %{_defaultdocdir}/%{pkg_name}/*.pdf
|
%exclude %{_defaultdocdir}/%{pkg_name}/*.pdf
|
||||||
%if %{with basecurve_tool}
|
|
||||||
%exclude %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
%exclude %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
||||||
%endif
|
|
||||||
%{_bindir}/darktable
|
%{_bindir}/darktable
|
||||||
%if %{with opencl}
|
%if %{with opencl}
|
||||||
%{_bindir}/darktable-cltest
|
%{_bindir}/darktable-cltest
|
||||||
@ -398,13 +325,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
|||||||
%dir %{_libexecdir}/darktable
|
%dir %{_libexecdir}/darktable
|
||||||
%dir %{_libexecdir}/darktable/tools
|
%dir %{_libexecdir}/darktable/tools
|
||||||
|
|
||||||
%if %{with basecurve_tool}
|
|
||||||
%files tools-basecurve
|
%files tools-basecurve
|
||||||
%{_bindir}/dt-curve-tool
|
%{_libexecdir}/darktable/tools/darktable-curve-tool
|
||||||
%{_bindir}/dt-curve-tool-helper
|
%{_libexecdir}/darktable/tools/darktable-curve-tool-helper
|
||||||
%{_datadir}/%{pkg_name}/tools/basecurve/
|
%{_datadir}/%{pkg_name}/tools/basecurve/
|
||||||
%doc %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
%doc %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
||||||
%endif
|
|
||||||
|
|
||||||
%files tools-noise
|
%files tools-noise
|
||||||
%{_libexecdir}/darktable/tools/darktable-gen-noiseprofile
|
%{_libexecdir}/darktable/tools/darktable-gen-noiseprofile
|
||||||
|
Loading…
Reference in New Issue
Block a user