Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046754
en ru br
Репозитории ALT
S:4.4.2-alt2
5.1: 0.2-alt1
www.altlinux.org/Changes

Группа :: Графика
Пакет: darktable

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _libexecdir %_prefix/libexec

%define ver_major 4.4
%define beta %nil
%define rdn_name org.darktable.darktable

%def_enable noise_tools
# o.21 required
%def_enable system_libraw
%def_enable system_lua
%def_enable libavif
%def_enable libheif
%def_enable jxl
# lensfun a mandatory dependency
#src/iop/lens.cc:
#error lensfun 0.3.95 is not supported since its API is not backward compatible with lensfun stable release.
%def_enable lensfun

Name: darktable
Version: %ver_major.2
Release: alt2

Summary: Darktable is a virtual lighttable and darkroom for photographer
License: GPL-3.0
Group: Graphics
Url: http://%name.org/

Vcs: https://github.com/darktable-org/darktable.git
Source: https://github.com/darktable-org/darktable/releases/download/release-%version/%name-%version.tar.xz
# required for llvm-7.0
Patch: darktable-3.0.0-is_supported_platform.patch
# See https://bugzilla.altlinux.org/38215
# based on https://bugzilla.altlinux.org/attachment.cgi?id=8682&action=edit
# by Pavel Nakonechnyi
Patch1: darktable-4.4.0-alt-disable-use-of-gcc-graphite.patch

ExcludeArch: %ix86 armh
AutoReq: nolua

%define cmake_ver 3.10
%define openmp_ver 4.0
%define glib_ver 2.40
%define gtk_ver 3.24.15
%define exiv2_ver 0.24
%define iso_codes_ver 3.66
%define pugixml_ver 1.8
%define lensfun_api_ver 1
%define lensfun_ver 0.3.3
%define libraw_ver 0.21.0
%define libavif_ver 0.9.1
%define libheif_ver 1.12.0
%define openexr_ver 3.0
%define lua_ver_major 5.4

Requires: iso-codes >= %iso_codes_ver
Requires: icon-theme-adwaita
%{?_enable_noise_tools:Requires: %_bindir/gnuplot}

BuildRequires(pre):rpm-macros-cmake
BuildRequires: /proc cmake >= %cmake_ver ninja-build gcc-c++ libgomp-devel
BuildRequires: intltool desktop-file-utils /usr/bin/appstream-util po4a
BuildRequires: perl-Pod-Parser xsltproc exiftool
BuildRequires: libgio-devel >= %glib_ver libgtk+3-devel >= %gtk_ver libxml2-devel
BuildRequires: libSDL2-devel libX11-devel libXrandr-devel libcurl-devel
BuildRequires: libexiv2-devel >= %exiv2_ver libflickcurl-devel libsecret-devel
BuildRequires: libgphoto2-devel libjpeg-devel liblcms2-devel
BuildRequires: liblensfun%lensfun_api_ver-devel >= %lensfun_ver
BuildRequires: libpng-devel librsvg-devel libsqlite3-devel libtiff-devel
BuildRequires: openexr-devel >= %openexr_ver python3-module-imath
BuildRequires: libxkbcommon-x11-devel lsb-release
BuildRequires: libjson-glib-devel libsoup-devel libpixman-devel libexpat-devel
BuildRequires: libcolord-gtk-devel libudev-devel
BuildRequires: libGraphicsMagick-c++-devel libopenjpeg2.0-devel
BuildRequires: libharfbuzz-devel libwebp-devel libxshmfence-devel
# since 2.0
BuildRequires: libpugixml-devel >= %pugixml_ver libcups-devel
BuildRequires: libosm-gps-map1.0-devel
BuildRequires: /usr/bin/jsonschema
BuildRequires: iso-codes-devel >= %iso_codes_ver
BuildRequires: libgmic-devel libjasper-devel
%{?_enable_system_lua:BuildRequires(pre): rpm-build-lua
BuildRequires: liblua%lua_ver_major-devel
Provides: lua%lua_ver_major(darktable)}
%{?_enable_system_libraw:BuildRequires: libraw-devel >= %libraw_ver}
%{?_enable_libavif:BuildRequires: libavif-devel >= %libavif_ver}
%{?_enable_libheif:BuildRequires: libheif-devel}
%{?_enable_jxl:BuildRequires: libjxl-devel}
# for not recommended build from git tree
#BuildRequires: gnome-doc-utils fop saxon ...

%description
darktable is a virtual light table and darkroom for photographers. It manages
your digital negatives in a database and lets you view them through a zoomable
light table. It also enables you to develop raw images and enhance them.

%prep
%setup -n %name-%version
%patch1 -p1

%build
%ifarch ppc64le
%define optflags_lto %nil
%endif
%define _optlevel 3
%cmake \
-GNinja \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DBINARY_PACKAGE_BUILD:BOOL=ON \
-DRAWSPEED_ENABLE_LTO=ON \
%{?_disable_lensfun:-DUSE_LENSFUN=OFF} \
%{?_enable_noise_tools:-DBUILD_NOISE_TOOLS=ON} \
%ifarch ppc64le
-DUSE_OPENCL=OFF \
%endif
%{?_enable_system_libraw:-DDONT_USE_INTERNAL_LIBRAW=ON} \
%{?_enable_system_lua:-DDONT_USE_INTERNAL_LUA=ON}
%nil
%cmake_build

%install
%cmake_install

ln -s %name/lib%name.so %buildroot%_libdir/lib%name.so

install -pD -m644 data/pixmaps/16x16/darktable.png %buildroot%_miconsdir/darktable.png
install -pD -m644 data/pixmaps/32x32/darktable.png %buildroot%_niconsdir/darktable.png
install -pD -m644 data/pixmaps/48x48/darktable.png %buildroot%_liconsdir/darktable.png

%find_lang --with-man --all-name --output=%name.lang %name

%files -f %name.lang
%_bindir/*
%_datadir/%name/
%_libdir/lib%name.so
%_libdir/%name/
%_desktopdir/%rdn_name.desktop
%_iconsdir/hicolor/*/apps/*
%_man1dir/*
%_datadir/metainfo/%rdn_name.appdata.xml
%{?_enable_noise_tools:
%_libexecdir/%name/tools/%name-gen-noiseprofile
%_libexecdir/%name/tools/%name-noiseprofile
%_libexecdir/%name/tools/profiling-shot.xmp
%_libexecdir/%name/tools/subr.sh}
%exclude /usr/share/doc/%name/
%doc README* RELEASE_NOTES*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin