2011-08-04 12:36:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package darktable
|
|
|
|
#
|
2019-02-15 09:54:58 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-04 12:36:22 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-11-01 09:58:25 +01:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%bcond_with basecurve_tool
|
|
|
|
%else
|
|
|
|
%bcond_without basecurve_tool
|
|
|
|
%endif
|
2018-01-10 23:29:50 +01:00
|
|
|
%bcond_with clang
|
2017-01-04 19:35:48 +01:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?is_opensuse} || 0%{?fedora_version} >= 26
|
2015-12-24 12:17:09 +01:00
|
|
|
%bcond_without osmgpsmap
|
|
|
|
%bcond_without flickcurl
|
|
|
|
%bcond_without translated_manpages
|
|
|
|
%else
|
2018-01-10 23:29:50 +01:00
|
|
|
%bcond_with osmgpsmap
|
2015-12-24 12:17:09 +01:00
|
|
|
%bcond_with flickcurl
|
|
|
|
%bcond_with translated_manpages
|
|
|
|
%endif
|
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version} >= 1330 || 0%{?fedora_version} >= 26
|
2015-12-24 12:17:09 +01:00
|
|
|
%bcond_without system_lua
|
|
|
|
%else
|
|
|
|
%bcond_with system_lua
|
|
|
|
%endif
|
|
|
|
|
2019-02-15 09:54:58 +01:00
|
|
|
%ifarch ppc64le
|
|
|
|
%bcond_with opencl
|
|
|
|
%else
|
|
|
|
%bcond_without opencl
|
|
|
|
%endif
|
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?fedora_version} >= 26
|
2015-12-24 12:17:09 +01:00
|
|
|
%bcond_without system_opencl
|
|
|
|
%else
|
|
|
|
%bcond_with system_opencl
|
|
|
|
%endif
|
|
|
|
|
2019-02-15 09:54:58 +01:00
|
|
|
%if %{with opencl}
|
|
|
|
%global _use_opencl "ON"
|
|
|
|
%else
|
|
|
|
%global _use_opencl "OFF"
|
|
|
|
%endif
|
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%global _libexec_subdir "lib"
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%global _libexec_subdir "libexec"
|
|
|
|
%endif
|
|
|
|
|
2019-02-15 09:54:58 +01:00
|
|
|
%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
|
2018-04-27 16:10:03 +02:00
|
|
|
|
2018-01-10 23:29:50 +01:00
|
|
|
%if 0%{?suse_version} == 1315
|
2018-04-27 16:10:03 +02:00
|
|
|
%define force_gcc_version 7
|
2018-01-10 23:29:50 +01:00
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
Name: darktable
|
2019-02-15 09:54:58 +01:00
|
|
|
Version: 2.6.0
|
2012-02-29 14:06:13 +01:00
|
|
|
Release: 0
|
2018-04-27 16:10:03 +02:00
|
|
|
%define pkg_name darktable
|
2019-02-15 09:54:58 +01:00
|
|
|
%define pkg_version 2.6.0
|
2015-12-24 12:17:09 +01:00
|
|
|
Url: http://www.darktable.org/
|
2018-01-10 23:29:50 +01:00
|
|
|
Source0: %{name}-%{pkg_version}.tar.xz
|
2016-03-14 09:57:31 +01:00
|
|
|
Source1: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-usermanual.pdf
|
|
|
|
Source2: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-usermanual-fr.pdf
|
|
|
|
Source3: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-usermanual-es.pdf
|
|
|
|
Source4: https://github.com/darktable-org/darktable/releases/download/release-2.0.0/darktable-lua-api.pdf
|
2019-02-15 09:54:58 +01:00
|
|
|
#Source96: series
|
2018-04-27 16:10:03 +02:00
|
|
|
Source97: darktable.dsc
|
|
|
|
Source98: debian.tar.xz
|
2016-03-14 09:57:31 +01:00
|
|
|
Source99: README.openSUSE
|
2017-01-04 19:35:48 +01:00
|
|
|
Patch: darktable-old-glib.patch
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-25 16:02:11 +01:00
|
|
|
|
2018-01-10 23:29:50 +01:00
|
|
|
ExclusiveArch: x86_64 aarch64
|
2015-12-24 12:17:09 +01:00
|
|
|
# build time tools
|
2018-01-10 23:29:50 +01:00
|
|
|
BuildRequires: clang
|
2019-02-15 09:54:58 +01:00
|
|
|
BuildRequires: cmake >= 3.4
|
2012-02-29 14:06:13 +01:00
|
|
|
BuildRequires: fdupes
|
2018-01-10 23:29:50 +01:00
|
|
|
BuildRequires: llvm-devel
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: llvm-static
|
|
|
|
%endif
|
2018-01-10 23:29:50 +01:00
|
|
|
%if ! %{with clang}
|
|
|
|
BuildRequires: gcc%{?force_gcc_version}-c++ >= 5
|
|
|
|
%if 0%{?force_gcc_version}
|
|
|
|
#!BuildIgnore: libgcc_s1
|
|
|
|
%endif
|
2017-01-04 19:35:48 +01:00
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: intltool
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: libxslt
|
2015-12-24 12:17:09 +01:00
|
|
|
%if %{with translated_manpages}
|
|
|
|
BuildRequires: po4a
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2015-12-24 12:17:09 +01:00
|
|
|
%endif
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: xz
|
|
|
|
# libraries deps
|
|
|
|
BuildRequires: cups-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
#
|
|
|
|
%if %{with system_lua}
|
2018-01-10 23:29:50 +01:00
|
|
|
BuildRequires: lua-devel >= 5.3
|
2015-12-24 12:17:09 +01:00
|
|
|
%endif
|
|
|
|
BuildRequires: pugixml-devel
|
|
|
|
#
|
|
|
|
BuildRequires: pkgconfig
|
2016-04-28 16:55:16 +02:00
|
|
|
%if 0%{?suse_version} != 1315 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )
|
2013-04-07 14:20:44 +02:00
|
|
|
BuildRequires: pkgconfig(GraphicsMagick)
|
2017-01-16 11:15:15 +01:00
|
|
|
BuildRequires: pkgconfig(libopenjp2)
|
2015-12-24 12:17:09 +01:00
|
|
|
%endif
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(OpenEXR)
|
2015-12-24 12:17:09 +01:00
|
|
|
BuildRequires: pkgconfig(atk)
|
|
|
|
BuildRequires: pkgconfig(colord)
|
|
|
|
BuildRequires: pkgconfig(colord-gtk)
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(exiv2)
|
2015-12-24 12:17:09 +01:00
|
|
|
%if %{with flickcurl}
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(flickcurl)
|
2015-12-24 12:17:09 +01:00
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2018-04-27 16:10:03 +02:00
|
|
|
BuildRequires: pkgconfig(iso-codes)
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2017-10-11 23:02:20 +02:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
2015-12-24 12:17:09 +01:00
|
|
|
BuildRequires: pkgconfig(lensfun)
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libgphoto2)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
2014-12-10 23:44:44 +01:00
|
|
|
BuildRequires: pkgconfig(libsecret-1)
|
2015-09-19 06:55:26 +02:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2015-12-24 12:17:09 +01:00
|
|
|
%if %{with osmgpsmap}
|
|
|
|
BuildRequires: pkgconfig(osmgpsmap-1.0)
|
2014-12-10 23:44:44 +01:00
|
|
|
%endif
|
2015-12-24 12:17:09 +01:00
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2019-02-15 09:54:58 +01:00
|
|
|
%if %{with opencl} && %{with system_opencl}
|
2015-12-24 12:17:09 +01:00
|
|
|
BuildRequires: opencl-headers
|
2013-04-07 14:20:44 +02:00
|
|
|
%endif
|
2018-04-27 16:10:03 +02:00
|
|
|
# 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
|
2015-12-24 12:17:09 +01:00
|
|
|
#
|
2011-08-04 12:36:12 +02:00
|
|
|
Summary: A virtual Lighttable and Darkroom
|
2018-04-27 16:10:03 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-02-29 14:06:13 +01:00
|
|
|
Group: Productivity/Graphics/Viewers
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
%description
|
2012-11-28 10:12:30 +01:00
|
|
|
darktable is a virtual lighttable and darkroom for photographers: it manages
|
2018-07-19 22:56:35 +02:00
|
|
|
digital negatives in a database and can show them through a zoomable
|
|
|
|
lighttable. It also enables developing raw images and enhance them.
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2019-02-15 09:54:58 +01:00
|
|
|
%if %{with basecurve_tool}
|
2018-01-10 23:29:50 +01:00
|
|
|
%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
|
2018-07-19 22:56:35 +02:00
|
|
|
digital negatives in a database and can show them through a zoomable
|
|
|
|
lighttable. It also enables developing raw images and enhance them.
|
2018-01-10 23:29:50 +01:00
|
|
|
|
|
|
|
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.
|
2019-02-15 09:54:58 +01:00
|
|
|
%endif
|
2018-04-27 16:10:03 +02:00
|
|
|
|
|
|
|
%package tools-noise
|
2018-07-19 22:56:35 +02:00
|
|
|
Summary: Noise profiling tools to support new cameras
|
2018-04-27 16:10:03 +02:00
|
|
|
Group: Productivity/Graphics/Viewers
|
|
|
|
Requires: /usr/bin/convert
|
|
|
|
Requires: gnuplot
|
2019-02-15 09:54:58 +01:00
|
|
|
Requires: ghostscript
|
2018-04-27 16:10:03 +02:00
|
|
|
|
|
|
|
%description tools-noise
|
|
|
|
darktable is a virtual lighttable and darkroom for photographers: it manages
|
2018-07-19 22:56:35 +02:00
|
|
|
digital negatives in a database and can show them through a zoomable
|
|
|
|
lighttable. It also enables developing raw images and enhance them.
|
2018-04-27 16:10:03 +02:00
|
|
|
|
|
|
|
This package provides the noise profiling tools to add support for new cameras.
|
2018-01-10 23:29:50 +01:00
|
|
|
|
2012-12-14 06:37:17 +01:00
|
|
|
%package doc
|
2018-07-19 22:56:35 +02:00
|
|
|
Summary: Documentation for Darktable
|
|
|
|
Group: Documentation/PDF
|
2018-01-10 23:29:50 +01:00
|
|
|
BuildArch: noarch
|
2012-12-14 06:37:17 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
darktable is a virtual lighttable and darkroom for photographers: it manages
|
2018-07-19 22:56:35 +02:00
|
|
|
digital negatives in a database and can show them through a zoomable
|
|
|
|
lighttable. It also enables developing raw images and enhance them.
|
2012-12-14 06:37:17 +01:00
|
|
|
|
2018-07-19 22:56:35 +02:00
|
|
|
This package provides the user manual in PDF format.
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
%prep
|
2019-02-15 09:54:58 +01:00
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2017-01-04 19:35:48 +01:00
|
|
|
%patch -p1
|
2018-04-27 16:10:03 +02:00
|
|
|
chmod -x tools/basecurve/* tools/noise/*
|
2013-09-11 12:51:32 +02:00
|
|
|
|
2016-03-14 09:57:31 +01:00
|
|
|
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
|
|
|
cp %{S:99} .
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2019-02-15 09:54:58 +01:00
|
|
|
%if %{with system_opencl} || !%{with opencl}
|
2015-12-24 12:17:09 +01:00
|
|
|
# Remove bundled OpenCL headers.
|
2019-02-15 09:54:58 +01:00
|
|
|
rm -rf src/external/CL src/external/OpenCL
|
2015-12-24 12:17:09 +01:00
|
|
|
sed -i -e 's, \"external/CL/\*\.h\" , ,' src/CMakeLists.txt
|
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2015-12-24 12:17:09 +01:00
|
|
|
%if %{with system_lua}
|
|
|
|
# Remove bundled lua
|
|
|
|
rm -rf src/external/lua/
|
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2015-12-24 12:17:09 +01:00
|
|
|
%build
|
2018-01-10 23:29:50 +01:00
|
|
|
export BUILDDIR="$PWD"
|
|
|
|
%if 0%{?force_gcc_version}
|
|
|
|
export CC="gcc-%{?force_gcc_version}"
|
|
|
|
export CXX="g++-%{?force_gcc_version}"
|
|
|
|
%endif
|
2017-01-04 19:35:48 +01:00
|
|
|
%if %{with clang}
|
|
|
|
export CC="/usr/bin/clang"
|
|
|
|
export CXX="/usr/bin/clang++"
|
|
|
|
%endif
|
2018-01-10 23:29:50 +01:00
|
|
|
export _OPENCL_INCLUDE_DIR=$(clang -print-search-dirs | awk -F= '/^libra/ {print $2}' | awk -F: '{print $1 "/include"}')
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
#suse branch
|
2018-01-10 23:29:50 +01:00
|
|
|
%cmake \
|
|
|
|
-DCLANG_OPENCL_INCLUDE_DIR=${_OPENCL_INCLUDE_DIR} \
|
2017-01-04 19:35:48 +01:00
|
|
|
%if ! %{with system_lua}
|
|
|
|
-DDONT_USE_INTERNAL_LUA=Off \
|
|
|
|
%endif
|
2018-04-27 16:10:03 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
|
|
|
%endif
|
2018-01-10 23:29:50 +01:00
|
|
|
%{cmake_options} \
|
|
|
|
|| cat CMakeFiles/CMakeError.log
|
|
|
|
make %{_smp_mflags} VERBOSE=1
|
|
|
|
cd $BUILDDIR
|
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
cd tools/basecurve
|
2018-01-10 23:29:50 +01:00
|
|
|
%cmake
|
2015-12-24 12:17:09 +01:00
|
|
|
make %{_smp_mflags} VERBOSE=1
|
2018-04-27 16:10:03 +02:00
|
|
|
#/ suse branch
|
|
|
|
%else
|
|
|
|
#fedora branch
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%cmake \
|
|
|
|
%if ! %{with system_lua}
|
|
|
|
-DDONT_USE_INTERNAL_LUA=Off \
|
|
|
|
%endif
|
|
|
|
%ifarch aarch64
|
|
|
|
-DTESTBUILD_OPENCL_PROGRAMS=OFF \
|
|
|
|
%endif
|
|
|
|
%{cmake_options} ..
|
|
|
|
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
|
2018-01-10 23:29:50 +01:00
|
|
|
cd $BUILDDIR
|
2014-02-16 20:02:00 +01:00
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
%install
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
# suse branch
|
2015-12-24 12:17:09 +01:00
|
|
|
%cmake_install
|
2018-04-27 16:10:03 +02:00
|
|
|
%if %{with basecurve_tool}
|
2018-01-10 23:29:50 +01:00
|
|
|
pushd tools/basecurve
|
|
|
|
%cmake_install
|
2015-12-24 12:17:09 +01:00
|
|
|
popd
|
2018-04-27 16:10:03 +02:00
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
%suse_update_desktop_file darktable
|
2018-04-27 16:10:03 +02:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{pkg_name}/
|
|
|
|
mv %{buildroot}%{_datadir}/doc/darktable/* %{buildroot}%{_defaultdocdir}/%{pkg_name}/
|
|
|
|
#/ suse branch
|
|
|
|
%else
|
|
|
|
# fedora branch
|
|
|
|
make install DESTDIR="%{buildroot}" -C %{_target_platform}
|
|
|
|
%if %{with basecurve_tool}
|
|
|
|
make install DESTDIR="%{buildroot}" -C tools/basecurve/%{_target_platform}
|
|
|
|
%endif
|
|
|
|
#/ fedora branch
|
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -delete
|
|
|
|
%find_lang darktable
|
|
|
|
|
2018-01-10 23:29:50 +01:00
|
|
|
cp -av %{S:2} doc/ChangeLog doc/NEWS \
|
2015-12-24 12:17:09 +01:00
|
|
|
doc/thumbnail_color_management.txt \
|
2019-02-15 09:54:58 +01:00
|
|
|
doc/TODO doc/TRANSLATORS* \
|
2018-04-27 16:10:03 +02:00
|
|
|
%{buildroot}%{_defaultdocdir}/%{pkg_name}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{pkg_name}/tools/ %{buildroot}%{_datadir}/%{pkg_name}/tools/
|
2015-12-24 12:17:09 +01:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
cp -av tools/purge* tools/common.sh \
|
|
|
|
%{buildroot}%{_datadir}/%{pkg_name}/tools/
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%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
|
2011-08-04 12:36:12 +02:00
|
|
|
|
2018-07-19 22:56:35 +02:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2018-01-10 23:29:50 +01:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version}
|
2018-01-10 23:29:50 +01:00
|
|
|
# on newer distros it is handled via file trigger
|
2018-04-27 16:10:03 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2015-12-24 12:17:09 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
2018-04-27 16:10:03 +02:00
|
|
|
%else
|
|
|
|
%post
|
2018-07-19 22:56:35 +02:00
|
|
|
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
2018-04-27 16:10:03 +02:00
|
|
|
|
|
|
|
%postun
|
2018-07-19 22:56:35 +02:00
|
|
|
update-desktop-database >/dev/null 2>/dev/null || :
|
2018-04-27 16:10:03 +02:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2018-07-19 22:56:35 +02:00
|
|
|
touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>/dev/null
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
2018-04-27 16:10:03 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%posttrans
|
2018-07-19 22:56:35 +02:00
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>/dev/null || :
|
2018-04-27 16:10:03 +02:00
|
|
|
%endif
|
2015-12-24 12:17:09 +01:00
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
%files -f darktable.lang
|
|
|
|
%defattr(-,root,root)
|
2018-04-27 16:10:03 +02:00
|
|
|
%doc %{_defaultdocdir}/%{pkg_name}
|
|
|
|
%exclude %{_defaultdocdir}/%{pkg_name}/*.pdf
|
|
|
|
%if %{with basecurve_tool}
|
|
|
|
%exclude %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
|
|
|
%endif
|
2011-08-04 12:36:12 +02:00
|
|
|
%{_bindir}/darktable
|
2019-02-15 09:54:58 +01:00
|
|
|
%if %{with opencl}
|
2011-08-04 12:36:12 +02:00
|
|
|
%{_bindir}/darktable-cltest
|
2019-02-15 09:54:58 +01:00
|
|
|
%endif
|
2012-11-28 10:12:30 +01:00
|
|
|
%{_bindir}/darktable-cli
|
2015-12-24 12:17:09 +01:00
|
|
|
%{_bindir}/darktable-generate-cache
|
2017-01-04 19:35:48 +01:00
|
|
|
%{_bindir}/darktable-chart
|
2014-02-16 20:02:00 +01:00
|
|
|
%{_bindir}/darktable-cmstest
|
2017-01-04 19:35:48 +01:00
|
|
|
%{_bindir}/darktable-rs-identify
|
2011-08-04 12:36:12 +02:00
|
|
|
%{_libdir}/darktable
|
|
|
|
%{_datadir}/applications/darktable.desktop
|
|
|
|
%{_datadir}/darktable
|
2018-04-27 16:10:03 +02:00
|
|
|
%exclude %{_datadir}/%{pkg_name}/tools/basecurve/
|
2013-09-11 12:51:32 +02:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/darktable.appdata.xml
|
2014-01-03 19:42:48 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/darktable*
|
2015-12-24 12:17:09 +01:00
|
|
|
%{_mandir}/man1/darktable*.1*
|
|
|
|
%if %{with translated_manpages}
|
|
|
|
%{_mandir}/*/man1/darktable*.1*
|
|
|
|
%endif
|
2011-09-05 16:25:30 +02:00
|
|
|
|
2018-04-27 16:10:03 +02:00
|
|
|
%if %{with basecurve_tool}
|
2018-01-10 23:29:50 +01:00
|
|
|
%files tools-basecurve
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dt-curve-tool
|
|
|
|
%{_bindir}/dt-curve-tool-helper
|
2018-04-27 16:10:03 +02:00
|
|
|
%{_datadir}/%{pkg_name}/tools/basecurve/
|
|
|
|
%doc %{_defaultdocdir}/%{pkg_name}/README.tools.basecurve.md
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files tools-noise
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_libexecdir}/darktable
|
|
|
|
%dir %{_libexecdir}/darktable/tools
|
|
|
|
%{_libexecdir}/darktable/tools/darktable-gen-noiseprofile
|
|
|
|
%{_libexecdir}/darktable/tools/darktable-noiseprofile
|
|
|
|
%{_libexecdir}/darktable/tools/profiling-shot.xmp
|
|
|
|
%{_libexecdir}/darktable/tools/subr.sh
|
2018-01-10 23:29:50 +01:00
|
|
|
|
2012-12-14 06:37:17 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2018-04-27 16:10:03 +02:00
|
|
|
%{_defaultdocdir}/%{pkg_name}/*.pdf
|
2012-12-14 06:37:17 +01:00
|
|
|
|
2011-08-04 12:36:22 +02:00
|
|
|
%changelog
|