2011-08-04 12:36:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package darktable
|
|
|
|
#
|
2015-09-19 06:55:26 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
Name: darktable
|
2015-10-22 12:59:36 +02:00
|
|
|
Version: 1.6.9
|
2012-02-29 14:06:13 +01:00
|
|
|
Release: 0
|
2011-08-04 12:36:12 +02:00
|
|
|
Url: http://darktable.sourceforge.net
|
2013-06-21 10:33:25 +02:00
|
|
|
# darktable contains patented code that we cannot ship. Therefore we use
|
|
|
|
# this script to remove the patented code before shipping it.
|
|
|
|
# Download the upstream tarball and invoke this script while in the
|
|
|
|
# tarball's directory:
|
2015-01-12 09:49:54 +01:00
|
|
|
# Originial Source: https://github.com/darktable-org/darktable/releases/download/release-%{version}/darktable-%{version}tar.xz
|
2013-06-21 10:33:25 +02:00
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %name-%version-nopatents.tar.xz
|
2014-12-10 23:44:44 +01:00
|
|
|
Source1: https://github.com/darktable-org/darktable/releases/download/release-1.6.0/darktable-usermanual.pdf
|
2014-01-03 19:42:48 +01:00
|
|
|
Source2: README.openSUSE
|
2014-09-17 17:27:08 +02:00
|
|
|
Source3: generate-tarball.sh
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-25 16:02:11 +01:00
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: cmake
|
2012-02-29 14:06:13 +01:00
|
|
|
BuildRequires: dbus-1-glib-devel
|
|
|
|
BuildRequires: fdupes
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: lensfun-devel
|
2014-01-03 19:42:48 +01:00
|
|
|
BuildRequires: libcolord-devel
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: libxslt
|
2011-08-04 12:36:12 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: update-desktop-files
|
2013-04-07 14:20:44 +02:00
|
|
|
BuildRequires: pkgconfig(GraphicsMagick)
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(OpenEXR)
|
|
|
|
BuildRequires: pkgconfig(dri)
|
|
|
|
BuildRequires: pkgconfig(exiv2)
|
|
|
|
BuildRequires: pkgconfig(flickcurl)
|
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libglade-2.0)
|
|
|
|
BuildRequires: pkgconfig(libgphoto2)
|
2013-06-05 11:48:07 +02:00
|
|
|
BuildRequires: pkgconfig(libopenjpeg)
|
2012-11-28 10:12:30 +01:00
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
2012-12-14 06:37:17 +01:00
|
|
|
BuildRequires: pkgconfig(sdl)
|
2013-01-14 09:37:58 +01:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2014-02-16 20:02:00 +01:00
|
|
|
BuildRequires: pkgconfig(xrandr)
|
2012-06-14 22:25:32 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2014-12-10 23:44:44 +01:00
|
|
|
|
2014-01-03 19:42:48 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
2014-12-10 23:44:44 +01:00
|
|
|
BuildRequires: pkgconfig(libsecret-1)
|
2015-09-19 06:55:26 +02:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2014-12-10 23:44:44 +01:00
|
|
|
%endif
|
|
|
|
|
2015-09-19 06:55:26 +02:00
|
|
|
%if 0%{?suse_version} < 1315
|
2014-12-10 23:44:44 +01:00
|
|
|
BuildRequires: libGraphicsMagick3
|
2014-01-03 19:42:48 +01:00
|
|
|
%endif
|
|
|
|
|
2015-08-01 11:38:56 +02:00
|
|
|
%if 0%{?suse_version} && (0%{?suse_version} > 1210 && 0%{?suse_version} < 1321)
|
2014-01-03 19:42:48 +01:00
|
|
|
BuildRequires: lua-devel
|
2015-08-01 11:38:56 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: lua52-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1210
|
2014-01-03 19:42:48 +01:00
|
|
|
BuildRequires: pkgconfig(libopenjpeg)
|
|
|
|
%endif
|
|
|
|
|
2013-02-10 14:34:48 +01:00
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
BuildRequires: xz
|
|
|
|
%endif
|
2013-03-21 10:37:22 +01:00
|
|
|
# needed for darktable black UI
|
2013-04-07 14:20:44 +02:00
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
Requires: gtk2-engines
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1210
|
2013-03-21 10:37:22 +01:00
|
|
|
Requires: gtk2-engine-clearlooks
|
2013-04-07 14:20:44 +02:00
|
|
|
%endif
|
2013-02-10 14:34:48 +01:00
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
Summary: A virtual Lighttable and Darkroom
|
2012-02-29 14:06:13 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
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
|
|
|
|
your digital negatives in a database and lets you view them through a zoomable
|
2011-08-04 12:36:12 +02:00
|
|
|
lighttable. it also enables you to develop raw images and enhance them.
|
|
|
|
|
2012-12-14 06:37:17 +01:00
|
|
|
%package doc
|
|
|
|
Summary: A virtual Lighttable and Darkroom
|
|
|
|
Group: Productivity/Graphics/Viewers
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
darktable is a virtual lighttable and darkroom for photographers: it manages
|
|
|
|
your digital negatives in a database and lets you view them through a zoomable
|
|
|
|
lighttable. it also enables you to develop raw images and enhance them.
|
|
|
|
|
|
|
|
This package provides the user manual in pdf format
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-12-10 23:44:44 +01:00
|
|
|
chmod -x tools/create_control_svg.sh tools/purge_non_existing_images.sh tools/basecurve/* tools/noise/*
|
2013-09-11 12:51:32 +02:00
|
|
|
|
2012-12-14 06:37:17 +01:00
|
|
|
cp %{S:1} darktable-usermanual.pdf
|
2014-01-03 19:42:48 +01:00
|
|
|
cp %{S:2} .
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
[ ! -d "build" ] && mkdir build
|
|
|
|
cd build
|
|
|
|
|
2013-05-06 09:02:39 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing "
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL=%{_lib} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
Accepting request 128842 from graphics
- Update to release 1.0.5
+ Update to RawSpeed r438
+ Update to LibRaw 0.14.7
+ White balance presets for Nikon Coolpix P7100 and Panasonic GF3
+ White balance preset updates for Canon EOS 7D, Canon EOS 350D
+ Standard Color Matrices for Canon EOS 650D, Canon EOS 5D Mark
III, Canon EOS 1D X, Canon PowerShot G1 X, Canon PowerShot SX220,
Nikon D3200, Nikon D4, Nikon D800, Olympus E-M5, Panasonic GF5,
Sony SLT-A37/A57, Leica X1/X2, Sony DSC-RX100
+ A few memory leaks were resolved
+ A few generic bugs were resolved
- use -DLENSFUN_INCLUDE_DIR to fix finding lensfun.h (forwarded request 128841 from toganm)
OBS-URL: https://build.opensuse.org/request/show/128842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/darktable?expand=0&rev=16
2012-07-24 16:08:15 +02:00
|
|
|
-DBINARY_PACKAGE_BUILD=1 \
|
2012-11-28 10:12:30 +01:00
|
|
|
-DUSE_XMLLINT=OFF \
|
2014-02-16 20:02:00 +01:00
|
|
|
-DUSE_SQUISH=OFF -DUSE_COLORD=ON -DBUILD_CMSTEST=On \
|
2015-05-05 00:56:11 +02:00
|
|
|
..
|
2011-08-04 12:36:12 +02:00
|
|
|
%__make %{_smp_mflags} VERBOSE=1
|
|
|
|
|
2014-02-16 20:02:00 +01:00
|
|
|
#%%__make -j 1 VERBOSE=1
|
|
|
|
|
2011-08-04 12:36:12 +02:00
|
|
|
%install
|
|
|
|
cd build
|
|
|
|
%make_install
|
|
|
|
cd ..
|
|
|
|
%suse_update_desktop_file darktable
|
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -delete
|
|
|
|
%find_lang darktable
|
|
|
|
|
|
|
|
%__mkdir_p %{buildroot}%{_defaultdocdir}
|
|
|
|
%__mv %{buildroot}%{_datadir}/doc/darktable %{buildroot}%{_defaultdocdir}
|
2014-01-03 19:42:48 +01:00
|
|
|
cp %{S:2} %buildroot%_defaultdocdir/%name/.
|
2011-08-04 12:36:12 +02:00
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%files -f darktable.lang
|
|
|
|
%defattr(-,root,root)
|
2014-01-03 19:42:48 +01:00
|
|
|
%doc doc/AUTHORS doc/TODO doc/LICENSE tools/purge_non_existing_images.sh tools/create_control_svg.sh tools/noise tools/basecurve README.openSUSE
|
2011-08-04 12:36:12 +02:00
|
|
|
%{_bindir}/darktable
|
|
|
|
%{_bindir}/darktable-cltest
|
2012-11-28 10:12:30 +01:00
|
|
|
%{_bindir}/darktable-cli
|
2012-12-14 06:37:17 +01:00
|
|
|
%{_bindir}/darktable-viewer
|
2014-02-16 20:02:00 +01:00
|
|
|
%{_bindir}/darktable-cmstest
|
2011-08-04 12:36:12 +02:00
|
|
|
%{_libdir}/darktable
|
|
|
|
%{_datadir}/applications/darktable.desktop
|
|
|
|
%{_datadir}/darktable
|
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*
|
|
|
|
%{_mandir}/man1/darktable*.1.*
|
2011-09-05 16:25:30 +02:00
|
|
|
|
2012-12-14 06:37:17 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc darktable-usermanual.pdf
|
|
|
|
|
2011-08-04 12:36:22 +02:00
|
|
|
%changelog
|