SHA256
1
0
forked from pool/gimp-help
gimp-help/gimp-help.spec

413 lines
12 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gimp-help
#
# Copyright (c) 2020 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/
#
Name: gimp-help
Version: 2.10.0
Release: 0
Summary: Help System Data for GIMP
License: GFDL-1.2
Group: Productivity/Graphics/Bitmap Editors
Url: https://docs.gimp.org/
Source0: https://download.gimp.org/pub/gimp/help/gimp-help-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM -- https://gitlab.gnome.org/GNOME/gimp-help/-/issues/201
Patch0: gimp-help-2.10.0-python3.patch
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
BuildRequires: libxslt
BuildRequires: pngcrush
BuildRequires: python3-libxml2-python
Requires: gimp
Enhances: gimp
Provides: gimp-help-2 = %{version}
Obsoletes: gimp-help-2 < %{version}
BuildArch: noarch
%description
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
%package ca
Summary: Catalanian Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:ca)
%description ca
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Catalanian data for gimp-help.
%package da
Summary: Danish Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:da)
%description da
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Danish data for gimp-help.
%package de
Summary: German Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides German data for gimp-help.
%package el
Summary: Greek Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:el)
%description el
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Greek data for gimp-help.
%package en_GB
Summary: British English Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:en_GB)
%description en_GB
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides British English data for gimp-help.
%package es
Summary: Spanish Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Spanish data for gimp-help.
%package fi
Summary: Finnish Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:fi)
%description fi
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Finnish data for gimp-help.
%package fr
Summary: French Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides French data for gimp-help.
%package hr
Summary: Croatian Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:hr)
%description hr
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Croatian data for gimp-help.
%package it
Summary: Italian Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Italian data for gimp-help.
%package ja
Summary: Japanese Help System Data for GIMP
Group: System/I18n/Korean
Requires: %{name} = %{version}
Provides: locale(%{name}:ja)
%description ja
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Japanese data for gimp-help.
%package ko
Summary: Korean Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Korean data for gimp-help.
%package lt
Summary: Lithuanian Help System Data for GIMP
Group: System/I18n/Korean
Requires: %{name} = %{version}
Provides: locale(%{name}:lt)
%description lt
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Lithuanian data for gimp-help.
%package nl
Summary: Dutch Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Dutch data for gimp-help.
%package nn
Summary: Norwegian Nynorsk Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:nn)
%description nn
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Norwegian Nynorsk data for gimp-help.
%package pl
Summary: Polish Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Polish data for gimp-help.
%package pt_BR
Summary: Brazilian Portuguese Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:pt_BR)
%description pt_BR
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Brazilian Portuguese data for gimp-help.
%package ro
Summary: Romanian Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:ro)
%description ro
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Romanian data for gimp-help.
%package ru
Summary: Russian Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Russian data for gimp-help.
%package sl
Summary: Slovenian Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:sl)
%description sl
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Slovenian data for gimp-help.
%package sv
Summary: Swedish Help System Data for GIMP
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 browser and HTML renderers, and human eyeballs.
This package provides Swedish data for gimp-help.
%package zh
Summary: Chinese Help System Data for GIMP
Group: System/Localization
Requires: %{name} = %{version}
Provides: locale(%{name}:zh)
%description zh
GIMP-Help is a help system designed for use with the internal GIMP help
browser, external Web browser and HTML renderers, and human eyeballs.
This package provides Chinese data for gimp-help.
%prep
%setup -q
%patch0 -p1
find . -iname \*.py -exec sed -i -e '1 s@env python.\?@python3@' '{}' \;
%build
# We install the help to the same prefix as gimp itself, so no
# need to query gimp for the prefix at build time
%configure \
--without-gimp
Accepting request 546499 from graphics - Fix the download URL - Update to version 2.8.2: + Complete translation for Brazilian Portuguese + Many improvements for existing translations + Bug fixed: bgo#696034, bgo#724056, bgo#719859, bgo#719971, bgo#720479, bgo#720209, bgo#719876, bgo#719748. - Add pngcrush as BuildRequires, replace xml2po BuildRequires by python-libxml2 (we use an internal copy of xml2po). - Use 'gimpmode' for xml2po again and unset MALLOC_CHECK_/MALLOC_PERTURB_ again to prevent gimpmode crash. This speed-up build time a lot. - Update to version 2.8.1: + Online documentation (http://docs.gimp.org) now provides a language menu which allows users to switch to other translations of the same document if available (bgo#168256). + Bugs fixed: bgo#168256, bgo#676683, bgo#679173, bgo#680243, bgo#711318. + Updated translations. - Drop gimp-help-2.8.0-missing-po-files.patch: fixed upstream. - Add Brazilian Portuguese -lang package (pt_BR). - Disable -lang packages that actually did not contain translations (fi, hr, lt, pl). - Pass XML2POFLAGS= to make: do not use the special 'gimpmode' for xml2po. - No longer unset MALLOC_CHECK_ and MALLOC_PERTURB_, as not using gimpmode does not expose the crash. - Add gimp-help-2.8.0-missing-po-files.patch: Add missing .po files to the source directory. Fixes build on Factory. - Drop Makefile.GNU and use upstream shipped build system, as this works again. - Unset MALLOC_CHECK_ and MALLOC_PERTURB_ to avoid some crashes (hack only.. no fix yet). - Add new sub packages for new languages that apeared due to using the upstream / maintained makefile: ca, el, en_GB, fi, hr, lt and sl. - Since recent changes, fdupes can only link files of same owner/permissions (bnc#784670). As we still want to make use of fdupes, we adjust the permissions of the images folder's content. - Update to version 2.8.0: + Bugfixes: bgo#642729, bgo#634992, bgo#634995, bgo#636149 + Updated translations. - Disable parallel build. The build system seems to be very fragile and unreliable in this case. - Update to version 2.6.1: + Bugfixes: bgo#599700, bgo#618143, bgo#611265, bgo#563659, bgo#602659 + Spelling fixes and new translations for: Italian, English, German, French, Japnese, Norwegian, Swedish, Russian, Korean + XSLT Stylesheet improvements + Build system improviements - Changes from version 2.6.0: + Bugfixes: bgo#591510, bgo#562448, bgo#568420, bgo#569729, bgo#569731, bgo#569733, bgo#569739, bgo#574040, bgo#572673, bgo#557443, bgo#576230, bgo#577710, bgo#556314, bgo#573828, bgo#583840, bgo#573257, bgo#580532, bgo#585823, bgo#588318, bgo#588316, bgo#544965, bgo#569739, bgo#591510, bgo#591510 + Spelling fixes and new translations for: English, German, Italian, French, Japanese, Russian, Korean, Norwegian, Swedish + Website typo fixes - Add Makefile.GNU and gimp-help-2.doap from git, since the default Makefile provided in the tarball doesn't work (see bgo#639057). This means we also have to manually install the files in %install. - Change gimp-2.0 Requires and Enhances to gimp, since it's the right name of the package now. - Update descriptions. - Remove old hacks to remove executable permission and rename the no locale to nb: they are not needed anymore. - Change the use of fdupes to only create links between files of the same language (since all languages are packaged separately). - Add subpackage for new locales (da, ja, nn, zh) and remove nb subpackage. - Use xml2po BuildRequires instead of gnome-doc-utils. - Improve summaries and descriptions. - Drop gimp-help-no.patch: it's not used, and we accomplish what we want to fix the issue in %install. Also drop call to autoreconf that we were still using because of this unapplied patch. - Drop gimp-help-update-spec.sh: it's really too complex for nothing, and the update to 2.6 version of the help will break it. - Remove ownership of %{_datadir}/gimp and %{_datadir}/gimp/2.0 since it's not needed anymore. - Own some more directories. - Remove pre_checkin.sh, it's not used anymore. - package dirs correctly; fix build - Update to version 2.4.2: + Bugs fixed: bgo#515535, bgo#529924, bgo#546324, bgo#550551, bgo#551082 + Updated translations. - Updated to version 2.4.1 (bnc#406692): * documentation for GIMP 2.4 * new translations * bug fixes - Split translations per locale. - Do not run parallel make since the package build might break. - Prefix changed to /usr. - Spec file cleanup. - converted neededforbuild to BuildRequires - Updated to version 0.9. - fix typo in specfile - Use Enhances covering both GIMP branches. - Require gimp-2.0 virtual instead of gimp. - Updated to version 0.8. - Build as noarch. - Updated to version 0.6. - update to version gimp-help-2-0.4 - provide C -> en symlink (#37519) - Fixed GIMP2 paths. - cvs checkout 20040227 - update neededforbuild for prober stylesheet and dtd - renamed to gimp-help - gimp2 package has been renamed to gimp - Provide proper TextDecl for externally parsed entities. For background info cf. http://bugzilla.gnome.org/show_bug.cgi?id=126351 . - Added preliminary help package for gimp2 (bug #30085). OBS-URL: https://build.opensuse.org/request/show/546499 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gimp-help?expand=0&rev=28
2017-12-19 10:50:19 +01:00
unset MALLOC_CHECK_
unset MALLOC_PERTURB_
%if 0%{?sle_version} <= 150100
export LANG=en_US.utf-8
%endif
%make_build
# unify the permissions of images, to make fdupes working again (bnc#784670)
find images/ -type f -exec chmod 0644 {} +
%install
%make_install
for locale in %{buildroot}%{_datadir}/gimp/2.0/help/*; do
%fdupes $locale
done
%clean
rm -rf %{buildroot}
%files
%doc AUTHORS NEWS
%license COPYING
%dir %{_datadir}/gimp
%dir %{_datadir}/gimp/2.0
%dir %{_datadir}/gimp/2.0/help
%{_datadir}/gimp/2.0/help/en/
%files ca
%lang(ca) %{_datadir}/gimp/2.0/help/ca/
%files da
%lang(da) %{_datadir}/gimp/2.0/help/da/
%files de
%lang(de) %{_datadir}/gimp/2.0/help/de/
%files el
%lang(el) %{_datadir}/gimp/2.0/help/el/
%files en_GB
%lang(en_GB) %{_datadir}/gimp/2.0/help/en_GB/
%files es
%lang(es) %{_datadir}/gimp/2.0/help/es/
%files fi
%lang(fi) %{_datadir}/gimp/2.0/help/fi/
%files fr
%lang(fr) %{_datadir}/gimp/2.0/help/fr/
%files hr
#lang(hr) %%{_datadir}/gimp/2.0/help/hr/
%files it
%lang(it) %{_datadir}/gimp/2.0/help/it/
%files ja
%lang(ja) %{_datadir}/gimp/2.0/help/ja/
%files ko
%lang(ko) %{_datadir}/gimp/2.0/help/ko/
%files lt
#lang(lt) %%{_datadir}/gimp/2.0/help/lt/
%files nl
%lang(nl) %{_datadir}/gimp/2.0/help/nl/
%files nn
%lang(nn) %{_datadir}/gimp/2.0/help/nn/
%files pl
#lang(pl) %%{_datadir}/gimp/2.0/help/pl/
%files pt_BR
%lang(pt_BR) %{_datadir}/gimp/2.0/help/pt_BR/
%files ro
%lang(ro) %{_datadir}/gimp/2.0/help/ro/
%files ru
%lang(ru) %{_datadir}/gimp/2.0/help/ru/
%files sl
#%lang(sl) %%{_datadir}/gimp/2.0/help/sl/
%files sv
#%lang(sv) %%{_datadir}/gimp/2.0/help/sv/
%files zh
%lang(zh) %{_datadir}/gimp/2.0/help/zh_CN/
%changelog