File nip2.spec of Package nip2

# spec file for package nip2
# Copyright (c) 2018 SUSE LINUX 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

Name:           nip2
Version:        8.6.0
Release:        0
Summary:        Interactive tool for working with large images
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Other
# Fix broken PNG file:
Source2:        simp_base.png
# PATCH-FIX-OPENSUSE nip2-doc-path.patch
Patch1:         nip2-doc-path.patch
BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  fftw3-devel
BuildRequires:  flex
BuildRequires:  goffice-0_8-devel
BuildRequires:  graphviz-devel
BuildRequires:  gsl-devel
BuildRequires:  gtk2-devel
BuildRequires:  libgsf-devel
BuildRequires:  libvips-devel
BuildRequires:  libxml2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

nip2 is a user interface for the VIPS image processing library.
VIPS library is good with large images (images larger than the amount
of RAM you have available), with many CPUs, for working with colour,
for scientific analysis and for general research & development.

%setup -q
%patch1 -p1
# Fix broken PNG file
cp %{SOURCE2} share/nip2/data/examples/manual_balance/simp_base.png

make %{?_smp_mflags}

install -D share/nip2/data/vips-128.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm -rf %{buildroot}%{_datadir}/doc/nip2
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

make check

%files -f %{name}.lang
%doc doc/html doc/pdf AUTHORS ChangeLog COPYING NEWS THANKS
%dir %{_datadir}/appdata

openSUSE Build Service is sponsored by