2014-03-11 08:11:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package gmic
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%global _gimpplugindir %(gimptool-2.0 --gimpplugindir)/plug-ins
|
|
|
|
|
|
|
|
%global zart_version 20180503git34f7e48
|
|
|
|
|
|
|
|
# The macro make_jobs gets overwritten by macros.qt5 => ninja doesn't work
|
|
|
|
#define __builder ninja
|
2014-03-11 08:11:50 +01:00
|
|
|
|
2016-03-28 00:52:22 +02:00
|
|
|
Name: gmic
|
2019-03-16 00:54:41 +01:00
|
|
|
Version: 2.5.2
|
2016-03-28 00:52:22 +02:00
|
|
|
Release: 0
|
2018-05-04 02:55:43 +02:00
|
|
|
URL: https://gmic.eu
|
2019-03-15 14:35:08 +01:00
|
|
|
# Git URL: https://framagit.org/dtschump/gmic
|
2018-08-30 12:01:04 +02:00
|
|
|
Source0: https://gmic.eu/files/source/gmic_%{version}.tar.gz
|
2018-05-04 02:55:43 +02:00
|
|
|
Source10: http://gmic.eu/gmic_reference.pdf
|
2018-11-07 15:40:48 +01:00
|
|
|
Patch: cmake-fixes.patch
|
2018-05-04 02:55:43 +02:00
|
|
|
|
2016-03-28 00:52:22 +02:00
|
|
|
Summary: GREYC's Magick for Image Computing (denoise and others)
|
2018-06-21 16:43:10 +02:00
|
|
|
License: CECILL-2.1
|
2018-05-04 02:55:43 +02:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
|
|
|
|
2018-07-05 22:57:54 +02:00
|
|
|
BuildRequires: cmake
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: OpenEXR-devel
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: fftw3-devel
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: fftw3-threads-devel
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: gimp-devel
|
|
|
|
BuildRequires: libGraphicsMagick++-devel
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: libcurl-devel
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: libjasper-devel
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
BuildRequires: libqt5-qtbase-devel
|
|
|
|
BuildRequires: libstdc++-devel
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: libtiff-devel
|
2018-05-04 02:55:43 +02:00
|
|
|
BuildRequires: ninja
|
2016-03-28 00:52:22 +02:00
|
|
|
BuildRequires: opencv-devel
|
2018-06-21 16:43:10 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%description
|
2018-05-04 02:55:43 +02:00
|
|
|
G'MIC is an open and full-featured framework for image processing, providing
|
|
|
|
several different user interfaces to convert/manipulate/filter/visualize
|
|
|
|
generic image datasets, from 1d scalar signals to 3d+t sequences of
|
|
|
|
multi-spectral volumetric images. Technically speaking, what it does is:
|
|
|
|
|
|
|
|
* Define a lightweight but powerful script language (the G'MIC language)
|
|
|
|
dedicated to the design of image processing operators and pipelines.
|
|
|
|
|
|
|
|
* Provide several user interfaces embedding the corresponding interpreter:
|
|
|
|
- A command-line executable gmic, to use the G'MIC framework from a shell.
|
|
|
|
In this setting, G'MIC may be seen as a serious (and friendly) competitor
|
|
|
|
of the ImageMagick or GraphicsMagick software suites.
|
|
|
|
- A gimp plug-in, to bring G'MIC capabilities to the GIMP image retouching
|
|
|
|
software. (gimp-plugin-gmic)
|
|
|
|
- A krita plug-in, to bring G'MIC capabilities to the krita digital painting
|
|
|
|
software. (krita-plugin-gmic)
|
|
|
|
- A web service G'MIC Online, to allow users applying image processing
|
|
|
|
algorithms directly in a web browser.
|
|
|
|
- A Qt-based interface ZArt, for real-time mainpulation of webcam images.
|
|
|
|
(gmic-zart)
|
|
|
|
- A C++ library libgmic, to be linked to third-party applications.
|
|
|
|
(libgmic1, gmic-devel)
|
|
|
|
|
|
|
|
G'MIC is focused on the design of possibly complex pipelines for converting,
|
|
|
|
manipulating, filtering and visualizing generic 1d/2d/3d multi-spectral image
|
|
|
|
datasets. This includes of course color images, but also more complex data as
|
|
|
|
image sequences or 3d(+t) volumetric float-valued datasets.
|
|
|
|
|
|
|
|
G'MIC is an open framework: the default language can be extended with custom
|
|
|
|
G'MIC-written commands, defining thus new available image filters or effects.
|
|
|
|
By the way, G'MIC already contains a substantial set of pre-defined image
|
|
|
|
processing algorithms and pipelines (more than 1000).
|
|
|
|
|
|
|
|
G'MIC has been designed with portability in mind and runs on different
|
|
|
|
platforms (Windows, Unix, MacOSX). It is distributed under the CeCILL license
|
|
|
|
(GPL-compatible). Since 2008, it is developed in the Image Team of the GREYC
|
|
|
|
laboratory, in Caen/France, by permanent researchers working in the field of
|
|
|
|
image processing on a daily basis.
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
G'MIC has superior denoising and sharpening capabilities.
|
|
|
|
|
|
|
|
%package -n libgmic1
|
2014-03-11 08:11:50 +01:00
|
|
|
Summary: Shared library that belongs to gmic
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%package -n libgmic-devel
|
2014-03-11 08:11:50 +01:00
|
|
|
Summary: Header and library from gmic for use in other C++ projects
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libgmic1 = %{version}
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%description -n libgmic1
|
|
|
|
Shared library allows you to use gmic functionality from other
|
|
|
|
programs.
|
|
|
|
|
|
|
|
%description -n libgmic-devel
|
|
|
|
Header and library from gmic to needed to develop C++ code that
|
|
|
|
uses the gmic functionality provided by the gmic library.
|
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%package -n gimp-plugin-gmic
|
2014-03-11 08:11:50 +01:00
|
|
|
Summary: GMIC plugin for gimp
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2018-06-21 16:43:10 +02:00
|
|
|
License: GPL-3.0-or-later
|
2018-05-04 02:55:43 +02:00
|
|
|
Requires: gimp
|
|
|
|
Obsoletes: gmic-gimp
|
|
|
|
Provides: gmic-gimp
|
2014-03-11 06:52:11 +01:00
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%description -n gimp-plugin-gmic
|
2014-03-11 06:52:11 +01:00
|
|
|
This is a plugin for gimp that exposes many of the nice gmic features
|
|
|
|
for interactive use in gimp.
|
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%package -n krita-plugin-gmic
|
|
|
|
Summary: GMIC plugin for krita
|
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2018-06-21 16:43:10 +02:00
|
|
|
License: GPL-3.0-or-later
|
2018-05-04 02:55:43 +02:00
|
|
|
Requires: krita
|
2014-09-13 08:03:29 +02:00
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%description -n krita-plugin-gmic
|
|
|
|
This is a plugin for krita to provide gmic features.
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%package doc
|
2014-03-11 08:11:50 +01:00
|
|
|
Summary: GMIC reference documentation
|
|
|
|
Group: Productivity/Graphics/Bitmap editors
|
2018-06-21 16:43:10 +02:00
|
|
|
License: GFDL-1.3-or-later
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This is the reference documentation for G'MIC in .pdf format.
|
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%package zart
|
|
|
|
Summary: GMIC GUI for video streams
|
|
|
|
Group: Productivity/Graphics/Bitmap editors
|
|
|
|
|
|
|
|
%description zart
|
|
|
|
ZArt is a computer program whose purpose is to demonstrate the possibilities of
|
|
|
|
the G'MIC image processing language by offering the choice of several
|
|
|
|
manipulations on a video stream acquired from a webcam. In other words, ZArt is
|
|
|
|
a GUI for G'MIC real-time manipulations on the output of a webcam.
|
|
|
|
|
2014-03-11 06:52:11 +01:00
|
|
|
%prep
|
2018-08-30 12:01:04 +02:00
|
|
|
%autosetup -p1
|
2018-05-04 02:55:43 +02:00
|
|
|
|
|
|
|
cp %{SOURCE10} .
|
|
|
|
|
2014-03-11 06:52:11 +01:00
|
|
|
%build
|
2018-05-04 02:55:43 +02:00
|
|
|
# Build gmic
|
|
|
|
%cmake \
|
|
|
|
-DENABLE_DYNAMIC_LINKING=ON \
|
|
|
|
-DBUILD_LIB_STATIC=OFF \
|
|
|
|
|| cat CMakeFiles/CMakeError.log
|
|
|
|
%make_jobs
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Create link for zart dynamic linking
|
|
|
|
ln -s ../build/libgmic.so src/libgmic.so
|
|
|
|
|
|
|
|
# Build gmic{_gimp|_krita}_qt
|
|
|
|
pushd gmic-qt
|
|
|
|
%cmake \
|
|
|
|
-DENABLE_DYNAMIC_LINKING=ON \
|
2018-06-21 16:43:10 +02:00
|
|
|
-DGMIC_PATH=%{_builddir}/%{name}-%{version}/src \
|
|
|
|
-DGMIC_LIB_PATH=%{_builddir}/%{name}-%{version}/build \
|
2018-05-04 02:55:43 +02:00
|
|
|
-DGMIC_QT_HOST=gimp \
|
|
|
|
|| cat CMakeFiles/CMakeError.log
|
|
|
|
%make_jobs
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
-DENABLE_DYNAMIC_LINKING=ON \
|
2018-06-21 16:43:10 +02:00
|
|
|
-DGMIC_PATH=%{_builddir}/%{name}-%{version}/src \
|
|
|
|
-DGMIC_LIB_PATH=%{_builddir}/%{name}-%{version}/build \
|
2018-05-04 02:55:43 +02:00
|
|
|
-DGMIC_QT_HOST=krita \
|
|
|
|
|| cat CMakeFiles/CMakeError.log
|
|
|
|
%make_jobs
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
-DENABLE_DYNAMIC_LINKING=ON \
|
2018-06-21 16:43:10 +02:00
|
|
|
-DGMIC_PATH=%{_builddir}/%{name}-%{version}/src \
|
|
|
|
-DGMIC_LIB_PATH=%{_builddir}/%{name}-%{version}/build \
|
2018-05-04 02:55:43 +02:00
|
|
|
-DGMIC_QT_HOST=none \
|
|
|
|
|| cat CMakeFiles/CMakeError.log
|
|
|
|
%make_jobs
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Build zart
|
|
|
|
pushd zart
|
2018-06-21 16:43:10 +02:00
|
|
|
qmake-qt5 CONFIG+=release GMIC_DYNAMIC_LINKING=on GMIC_PATH=%{_builddir}/%{name}-%{version}/src zart.pro
|
2018-05-04 02:55:43 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%install
|
2018-05-04 02:55:43 +02:00
|
|
|
%cmake_install
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
|
|
install -m 0644 build/resources/gmic_bashcompletion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/gmic
|
|
|
|
|
|
|
|
# Film color lookup tables
|
|
|
|
install -d -m 0755 %{buildroot}%{_gimpplugindir}
|
2019-03-15 14:35:08 +01:00
|
|
|
install -m 0644 resources/gmic_cluts.gmz %{buildroot}%{_gimpplugindir}/gmic_cluts.gmz
|
2018-05-04 02:55:43 +02:00
|
|
|
|
|
|
|
# qt_gmic
|
|
|
|
pushd gmic-qt
|
|
|
|
install -m 0755 build/gmic_qt %{buildroot}%{_bindir}/gmic_qt
|
|
|
|
|
|
|
|
# krita plugin
|
|
|
|
install -m 0755 build/gmic_krita_qt %{buildroot}%{_bindir}/gmic_krita_qt
|
|
|
|
|
|
|
|
# gimp plugin
|
|
|
|
install -d -m 0755 %{buildroot}%{_gimpplugindir}
|
|
|
|
install -m 0755 build/gmic_gimp_qt %{buildroot}%{_gimpplugindir}/gmic_gimp_qt
|
|
|
|
popd
|
|
|
|
|
|
|
|
# zart
|
|
|
|
pushd zart
|
|
|
|
install -m 0755 zart %{buildroot}%{_bindir}/zart
|
|
|
|
popd
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%post -n libgmic1
|
|
|
|
%{run_ldconfig}
|
|
|
|
|
|
|
|
%postun -n libgmic1
|
|
|
|
%{run_ldconfig}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:43:10 +02:00
|
|
|
%license COPYING
|
|
|
|
#license gmic-qt/COPYING
|
|
|
|
%doc README gmic-qt/README.md
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_bindir}/gmic
|
|
|
|
%{_bindir}/gmic_qt
|
|
|
|
%{_mandir}/man1/gmic.1*
|
2014-03-11 06:52:11 +01:00
|
|
|
%config %attr(0644,root,root) /etc/bash_completion.d/gmic
|
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc gmic_reference.pdf
|
|
|
|
|
2014-09-13 08:03:29 +02:00
|
|
|
%files zart
|
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:43:10 +02:00
|
|
|
#license zart/LICENSE
|
2018-07-05 22:57:54 +02:00
|
|
|
#doc zart/README
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_bindir}/zart
|
|
|
|
|
|
|
|
%files -n gimp-plugin-gmic
|
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:43:10 +02:00
|
|
|
#license gmic-qt/COPYING
|
|
|
|
%doc gmic-qt/README.md
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_gimpplugindir}/gmic_gimp_qt
|
2019-03-15 14:35:08 +01:00
|
|
|
%{_gimpplugindir}/gmic_cluts.gmz
|
2014-03-11 06:52:11 +01:00
|
|
|
|
2018-05-04 02:55:43 +02:00
|
|
|
%files -n krita-plugin-gmic
|
2014-03-11 06:52:11 +01:00
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:43:10 +02:00
|
|
|
#license gmic-qt/COPYING
|
|
|
|
%doc gmic-qt/README.md
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_bindir}/gmic_krita_qt
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%files -n libgmic1
|
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:43:10 +02:00
|
|
|
%license COPYING
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_libdir}/libgmic.so.*
|
2014-03-11 06:52:11 +01:00
|
|
|
|
|
|
|
%files -n libgmic-devel
|
|
|
|
%defattr(-,root,root)
|
2018-05-04 02:55:43 +02:00
|
|
|
%{_includedir}/gmic.h
|
2014-03-11 06:52:11 +01:00
|
|
|
%{_libdir}/libgmic.so
|
2018-11-07 15:40:48 +01:00
|
|
|
%{_libdir}/cmake/gmic/
|
2014-03-11 06:52:11 +01:00
|
|
|
|
2014-03-11 08:11:50 +01:00
|
|
|
%changelog
|