File mingw32-gimp-help.spec of Package mingw32-gimp-help
#
# spec file for package mingw32-gimp-help
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%_mingw32_package_header_debug
Name: mingw32-gimp-help
Version: 2.4.2
Release: 0
Summary: Help System Data for GIMP2
License: GFDL-1.2-only
Group: Productivity/Graphics/Bitmap Editors
URL: https://www.gimp.org/
Source: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gnome-doc-utils
BuildRequires: libxslt
BuildRequires: mingw32-filesystem >= 23
BuildRequires: pkgconfig
#!BuildIgnore: post-build-checks
BuildArch: noarch
%description
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package de
Summary: German Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:de)
%description de
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package es
Summary: Spanish Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:es)
%description es
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package fr
Summary: French Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:fr)
%description fr
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package it
Summary: Italian Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:it)
%description it
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package ko
Summary: Korean Help System Data for GIMP2
Group: System/I18n/Korean
Requires: %{name} = %{version}
Provides: locale(%{name}:ko)
%description ko
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package nb
Summary: Norwegian Bokmal Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:nb)
%description nb
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package nl
Summary: Dutch Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:nl)
%description nl
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package pl
Summary: Polish Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:pl)
%description pl
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package ru
Summary: Russian Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:ru)
%description ru
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%package sv
Summary: Swedish Help System Data for GIMP2
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:sv)
%description sv
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browsers and HTML renderers, and human eyes.
Docbook is used to create a highly customizable system for all needs.
%prep
%setup -q -n gimp-help-%{version}
%build
%_mingw32_configure \
--without-gimp --disable-network
%make_build || make
%install
%make_install
# A lot of jpg and png files has executable permission:
find %{buildroot}%{_mingw32_datadir}/gimp/2.0/help/images -name '*.*' | xargs chmod -x
# Rename Norwegian:
find %{buildroot}%{_mingw32_datadir}/gimp/2.0/help -name no | sed 's/\(.*\)no$/mv \1no \1nb/' | sh -x
%files
%dir %{_mingw32_datadir}/gimp/2.0/help
%dir %{_mingw32_datadir}/gimp/2.0/help/images
%dir %{_mingw32_datadir}/gimp/2.0/help/images/*[^g]
%dir %{_mingw32_datadir}/gimp/2.0/help/images/using
%dir %{_mingw32_datadir}/gimp/2.0/help/images/menus/file/new/logos
%dir %{_mingw32_datadir}/gimp/2.0/help/images/filters
%dir %{_mingw32_datadir}/gimp/2.0/help/images/filters/alpha-to-logo
%dir %{_mingw32_datadir}/gimp/2.0/help/images/menus/file
%dir %{_mingw32_datadir}/gimp/2.0/help/images/menus/file/new
%{_mingw32_datadir}/gimp/2.0/help/images/*.*
%{_mingw32_datadir}/gimp/2.0/help/images/*/*.*
%{_mingw32_datadir}/gimp/2.0/help/images/filters/alpha-to-logo/*.*
%{_mingw32_datadir}/gimp/2.0/help/images/menus/file/new/logos/*.*
%dir %{_mingw32_datadir}/gimp/2.0/help/images/*/examples
%{_mingw32_datadir}/gimp/2.0/help/images/*/examples/*.*
# It seems that these files have to be installed as fallback:
%{_mingw32_datadir}/gimp/2.0/help/en
%files de
%lang(de) %{_mingw32_datadir}/gimp/2.0/help/de
%lang(de) %{_mingw32_datadir}/gimp/2.0/help/*/*/de
%lang(de) %{_mingw32_datadir}/gimp/2.0/help/*/*/examples/de
%files es
%lang(es) %{_mingw32_datadir}/gimp/2.0/help/es
%lang(es) %{_mingw32_datadir}/gimp/2.0/help/*/*/es
%files fr
%lang(fr) %{_mingw32_datadir}/gimp/2.0/help/fr
%lang(fr) %{_mingw32_datadir}/gimp/2.0/help/*/*/fr
%lang(fr) %{_mingw32_datadir}/gimp/2.0/help/*/*/examples/fr
%files it
%lang(it) %{_mingw32_datadir}/gimp/2.0/help/it
%lang(it) %{_mingw32_datadir}/gimp/2.0/help/*/*/it
%lang(it) %{_mingw32_datadir}/gimp/2.0/help/*/*/examples/it
%files ko
%lang(ko) %{_mingw32_datadir}/gimp/2.0/help/ko
%lang(ko) %{_mingw32_datadir}/gimp/2.0/help/*/*/ko
%files nb
%lang(nb) %{_mingw32_datadir}/gimp/2.0/help/nb
%lang(nb) %{_mingw32_datadir}/gimp/2.0/help/*/*/nb
%lang(nb) %{_mingw32_datadir}/gimp/2.0/help/*/*/examples/nb
%files nl
%lang(nl) %{_mingw32_datadir}/gimp/2.0/help/nl
%lang(nl) %{_mingw32_datadir}/gimp/2.0/help/*/*/nl
%files pl
%lang(pl) %{_mingw32_datadir}/gimp/2.0/help/pl
%files ru
%lang(ru) %{_mingw32_datadir}/gimp/2.0/help/ru
%lang(ru) %{_mingw32_datadir}/gimp/2.0/help/*/*/ru
%files sv
%lang(sv) %{_mingw32_datadir}/gimp/2.0/help/sv
%changelog