darktable/darktable.spec
Stephan Kulow 107c34d851 Accepting request 222481 from graphics
- update to version 1.4.1 
  *  export: consistent names for output formats
  *  export to disk: overwrite file option
  *  grain plugin now allows smaller coarseness and will display
     coarseness values half of what they used to be, this is merely a
     cosmetic change, your images are unaffected.
  *  some masks related fixes
  *  some lua related fixes
  *  tiff writer (32bit float, little endian output, configurable
     compression)
  *  tiff reader
  *  subtly nicer scrollbar behavior
  *  theme loading cornercase fixups
  *  shadow & highlight module improvements (should be less prone to
     artifacts when used on new images)
  *  allow importing more than 1 style at a time
  *  regression was fixed when building darktable against bleeding
     edge glibc
  *  Sony A77V enhanced color matrix
  *  Nikon D5100 updated white balance presets
  *  Nikon 1 V2 noise profile (and by extension J3/AW1)
  *  Nikon 1 J1 noise profile (and by extension V1/J2/S1)
  *  Pentax K3 noise profile
  *  experimental support for Panasonic DMC-LF1 (we still need
     samples for the nonstandard aspect ratios)
  *  experimental support for SONY DSC-RX100M2
  *  experimental support for SONY NEX-3N
  *  still no Nikon D5300/D3300 support, we're still looking into
     that.
- Added pkgconfig(xandr) to build requires (forwarded request 222480 from toganm)

OBS-URL: https://build.opensuse.org/request/show/222481
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/darktable?expand=0&rev=38
2014-02-16 19:02:00 +00:00

166 lines
5.1 KiB
RPMSpec

#
# spec file for package darktable
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: darktable
Version: 1.4.1
Release: 0
Url: http://darktable.sourceforge.net
# 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:
# Originial Source: https://downloads.sourceforge.net/project/darktable/darktable/1.4/%%name-%%version.tar.xz
# ./generate-tarball.sh
Source0: %name-%version-nopatents.tar.xz
Source1: http://sourceforge.net/projects/darktable/files/darktable/1.4/darktable-usermanual.pdf
Source2: README.openSUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: lensfun-devel
BuildRequires: libGraphicsMagick3
BuildRequires: libcolord-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libxslt
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(GraphicsMagick)
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)
BuildRequires: pkgconfig(libopenjpeg)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xrandr)
ExclusiveArch: %ix86 x86_64
%if 0%{?suse_version} > 1220
BuildRequires: pkgconfig(libwebp)
%endif
%if 0%{?suse_version} > 1210
BuildRequires: lua-devel
BuildRequires: pkgconfig(libopenjpeg)
%endif
%if 0%{?suse_version} == 1210
BuildRequires: xz
%endif
# needed for darktable black UI
%if 0%{?suse_version} == 1210
Requires: gtk2-engines
%endif
%if 0%{?suse_version} > 1210
Requires: gtk2-engine-clearlooks
%endif
Summary: A virtual Lighttable and Darkroom
License: GPL-3.0+
Group: Productivity/Graphics/Viewers
%description
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.
%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
%prep
%setup -q
chmod -x tools/create_control_svg.sh tools/purge_non_existing_images.sh tools/noise/*
cp %{S:1} darktable-usermanual.pdf
cp %{S:2} .
%build
[ ! -d "build" ] && mkdir build
cd build
export CFLAGS="%{optflags} -fno-strict-aliasing "
export CXXFLAGS="$CFLAGS"
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL=%{_lib} \
-DCMAKE_BUILD_TYPE=Release \
-DBINARY_PACKAGE_BUILD=1 \
-DUSE_XMLLINT=OFF \
-DUSE_SQUISH=OFF -DUSE_COLORD=ON -DBUILD_CMSTEST=On \
-DINSTALL_IOP_EXPERIMENTAL=On ..
%__make %{_smp_mflags} VERBOSE=1
#%%__make -j 1 VERBOSE=1
%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}
cp %{S:2} %buildroot%_defaultdocdir/%name/.
%fdupes %{buildroot}
%files -f darktable.lang
%defattr(-,root,root)
%doc doc/AUTHORS doc/TODO doc/LICENSE tools/purge_non_existing_images.sh tools/create_control_svg.sh tools/noise tools/basecurve README.openSUSE
%{_bindir}/darktable
%{_bindir}/darktable-cltest
%{_bindir}/darktable-cli
%{_bindir}/darktable-viewer
%{_bindir}/darktable-cmstest
%{_libdir}/darktable
%{_datadir}/applications/darktable.desktop
%{_datadir}/darktable
%dir %{_datadir}/appdata
%{_datadir}/appdata/darktable.appdata.xml
%{_datadir}/icons/hicolor/*/apps/darktable*
%{_mandir}/man1/darktable*.1.*
%files doc
%defattr(-,root,root)
%doc darktable-usermanual.pdf
%changelog