diff --git a/.gitignore b/.gitignore index 7d848b5..c22497e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ gimp-help-2.4.2.tar.bz2 /gimp-help-2.8.0-missing-po-files.patch.xz /gimp-help-2.8.1.tar.bz2 /gimp-help-2.8.2.tar.bz2 +/gimp-help-2.10.0.tar.bz2 +/gimp-help-2.10.34.tar.bz2 +/gimp-help-2.99.0-git2b4f24e36.tar.xz +/gimp-help-3.0.0.tar.bz2 diff --git a/apply-languages.py b/apply-languages.py index 6267f27..1ddf6f5 100755 --- a/apply-languages.py +++ b/apply-languages.py @@ -28,10 +28,12 @@ import re from stat import S_IMODE from itertools import islice + def usage(): - print("Usage: {} .spec".format(sys.argv[0]), file=sys.stderr) + print(f"Usage: {sys.argv[0]} .spec", file=sys.stderr) sys.exit(1) + def cleantmpfile(): global newfspath @@ -40,12 +42,13 @@ def cleantmpfile(): except OSError: pass + if len(sys.argv) != 2: usage() sfpath = sys.argv[1] if not os.access(sfpath, os.R_OK | os.W_OK): - print("Not readable/writable:", sfpath, file=sys.stderr) + print(f"Not readable/writable: {sfpath}", file=sys.stderr) sys.exit(2) sfdir = os.path.dirname(sfpath) @@ -62,72 +65,87 @@ sf.close() sfmode = S_IMODE(os.stat(sfpath).st_mode) languages_re = re.compile( - r"^#\s*LANGUAGES:\s*(?P[^\n\r]+)\s*$", re.MULTILINE) + r"^#\s*LANGUAGES:\s*(?P[^\n\r]+)\s*$", re.MULTILINE +) langsplit_re = re.compile(r"\s+") begin_obsoletes_re = re.compile( - r"^#\s*BEGIN:\s*OBSOLETE\s+LANGUAGES\s*$", re.MULTILINE) + r"^#\s*BEGIN:\s*OBSOLETE\s+LANGUAGES\s*$", re.MULTILINE +) end_obsoletes_re = re.compile( - r"^#\s*END:\s*OBSOLETE\s+LANGUAGES\s*$", re.MULTILINE) + r"^#\s*END:\s*OBSOLETE\s+LANGUAGES\s*$", re.MULTILINE +) begin_langpkgs_re = re.compile( - r"^#\s*BEGIN:\s*LANGUAGE\s+SUB\s+PACKAGES\s*$", re.MULTILINE) + r"^#\s*BEGIN:\s*LANGUAGE\s+SUB\s+PACKAGES\s*$", re.MULTILINE +) end_langpkgs_re = re.compile( - r"^#\s*END:\s*LANGUAGE\s+SUB\s+PACKAGES\s*$", re.MULTILINE) + r"^#\s*END:\s*LANGUAGE\s+SUB\s+PACKAGES\s*$", re.MULTILINE +) begin_langfiles_re = re.compile( - r"^#\s*BEGIN:\s*LANGUAGE\s+FILE\s+LISTS\s*$", re.MULTILINE) + r"^#\s*BEGIN:\s*LANGUAGE\s+FILE\s+LISTS\s*$", re.MULTILINE +) end_langfiles_re = re.compile( - r"^#\s*END:\s*LANGUAGE\s+FILE\s+LISTS\s*$", re.MULTILINE) + r"^#\s*END:\s*LANGUAGE\s+FILE\s+LISTS\s*$", re.MULTILINE +) -name_re = re.compile(r"^name:\s*(?P[^\n\r]+)\s*$", - re.MULTILINE | re.IGNORECASE) -version_re = re.compile(r"^version:\s*(?P[^\n\r]+)\s*$", - re.MULTILINE | re.IGNORECASE) -release_re = re.compile(r"^release:\s*(?P[^\n\r]+)\s*$", - re.MULTILINE | re.IGNORECASE) -license_re = re.compile(r"^license:\s*(?P[^\n\r]+)\s*$", - re.MULTILINE | re.IGNORECASE) -pkg_re = re.compile(r"^%package\s*(?P\S+)\s*$", - re.MULTILINE | re.IGNORECASE) -group_re = re.compile(r"^group:\s*(?P[^\n\r]+)\s*$", - re.MULTILINE | re.IGNORECASE) +name_re = re.compile( + r"^name:\s*(?P[^\n\r]+)\s*$", re.MULTILINE | re.IGNORECASE +) +version_re = re.compile( + r"^version:\s*(?P[^\n\r]+)\s*$", re.MULTILINE | re.IGNORECASE +) +release_re = re.compile( + r"^release:\s*(?P[^\n\r]+)\s*$", re.MULTILINE | re.IGNORECASE +) +license_re = re.compile( + r"^license:\s*(?P[^\n\r]+)\s*$", re.MULTILINE | re.IGNORECASE +) +pkg_re = re.compile( + r"^%package\s*(?P\S+)\s*$", re.MULTILINE | re.IGNORECASE +) missing = False -for what, what_re in (("name tag", name_re), ("license tag", license_re), - ("group tag", group_re), ("LANGUAGES comment", languages_re), - ("BEGIN: OBSOLETE LANGUAGES comment", begin_obsoletes_re), - ("END: OBSOLETE LANGUAGES comment", end_obsoletes_re), - ("BEGIN: LANGUAGE SUB PACKAGES comment", begin_langpkgs_re), - ("END: LANGUAGE SUB PACKAGES comment", end_langpkgs_re), - ("BEGIN: LANGUAGE FILE LISTS comment", begin_langfiles_re), - ("END: LANGUAGE FILE LISTS comment", end_langfiles_re), - ): +for what, what_re in ( + ("name tag", name_re), + ("license tag", license_re), + ("LANGUAGES comment", languages_re), + ("BEGIN: OBSOLETE LANGUAGES comment", begin_obsoletes_re), + ("END: OBSOLETE LANGUAGES comment", end_obsoletes_re), + ("BEGIN: LANGUAGE SUB PACKAGES comment", begin_langpkgs_re), + ("END: LANGUAGE SUB PACKAGES comment", end_langpkgs_re), + ("BEGIN: LANGUAGE FILE LISTS comment", begin_langfiles_re), + ("END: LANGUAGE FILE LISTS comment", end_langfiles_re), +): found = what_re.search(sfcontent) if found is None: - print("{} not found".format(what), file=sys.stderr) + print(f"{what} not found", file=sys.stderr) missing = True if missing: sys.exit(2) langspecs = langsplit_re.split( - languages_re.search(sfcontent).group('languages')) -#languages = [] -#for ls in langspecs: + languages_re.search(sfcontent).group("languages") +) +# languages = [] +# for ls in langspecs: # langcode, langname = ls.split(",") # languages.append((langcode, langname)) -languages = [(x.split(",")[0], x.split(",")[1].replace('_', ' ')) - for x in langspecs] +languages = [ + (x.split(",")[0], x.split(",")[1].replace("_", " ")) for x in langspecs +] langcodes = set((x[0] for x in languages)) -name = name_re.search(sfcontent).group('name') -version = version_re.search(sfcontent).group('version') -release = release_re.search(sfcontent).group('release') -license = license_re.search(sfcontent).group('license') -group = group_re.search(sfcontent).group('group') +name = name_re.search(sfcontent).group("name") +version = version_re.search(sfcontent).group("version") +release = release_re.search(sfcontent).group("release") +license = license_re.search(sfcontent).group("license") obsoletes_re = re.compile( - r"^obsoletes:\s*{}-(?P(?P\S+)\s*.*)$".format(name), - re.MULTILINE | re.IGNORECASE) + fr"^obsoletes:\s*{name}-(?P(?P\S+)\s*.*)$", + re.MULTILINE | re.IGNORECASE, +) conflicts_re = re.compile( - r"^conflicts:\s*{}-(?P(?P\S+)\s*.*)$".format(name), - re.MULTILINE | re.IGNORECASE) + fr"^conflicts:\s*{name}-(?P(?P\S+)\s*.*)$", + re.MULTILINE | re.IGNORECASE, +) numlang = len(languages) replacing = None @@ -138,13 +156,17 @@ if sflines[-1] == "": # handle obsoleting language subpackages preprocess_state_transitions = { - 'out': ( - begin_obsoletes_re, 'in_obsoletes', begin_langpkgs_re, 'in_langpkgs'), - 'in_obsoletes': (end_obsoletes_re, 'out'), - 'in_langpkgs': (end_langpkgs_re, 'out'), - } + "out": ( + begin_obsoletes_re, + "in_obsoletes", + begin_langpkgs_re, + "in_langpkgs", + ), + "in_obsoletes": (end_obsoletes_re, "out"), + "in_langpkgs": (end_langpkgs_re, "out"), +} -state = 'out' +state = "out" state_change = True found_obsoleted_langs = set() @@ -153,8 +175,12 @@ found_lang_pkgs = set() for line in sflines: if state_change: transitions = preprocess_state_transitions[state] - packed_transitions = zip( - islice(transitions, 0, None, 2), islice(transitions, 1, None, 2)) + packed_transitions = list( + zip( + islice(transitions, 0, None, 2), + islice(transitions, 1, None, 2), + ) + ) state_change = False for regex, new_state in packed_transitions: @@ -165,14 +191,14 @@ for line in sflines: if state_change: continue - if state == 'in_obsoletes': + if state == "in_obsoletes": m = obsoletes_re.match(line) if m: - found_obsoleted_langs.add(m.group('lang')) - elif state == 'in_langpkgs': + found_obsoleted_langs.add(m.group("lang")) + elif state == "in_langpkgs": m = pkg_re.match(line) if m: - found_lang_pkgs.add(m.group('pkg')) + found_lang_pkgs.add(m.group("pkg")) langcodes_to_obsolete = found_lang_pkgs - langcodes langcodes_to_unobsolete = found_obsoleted_langs & langcodes @@ -183,12 +209,12 @@ for line in sflines: if not replacing: print(line, file=newsf) if begin_obsoletes_re.match(line): - replacing = 'obsoletes' + replacing = "obsoletes" elif begin_langpkgs_re.match(line): - replacing = 'langpkgs' + replacing = "langpkgs" elif begin_langfiles_re.match(line): - replacing = 'langfiles' - elif replacing == 'obsoletes': + replacing = "langfiles" + elif replacing == "obsoletes": om = obsoletes_re.match(line) cm = conflicts_re.match(line) em = end_obsoletes_re.match(line) @@ -197,42 +223,51 @@ for line in sflines: replacing = None for lang in langcodes_to_obsolete: print( - "Obsoletes: {name}-{lang} < {version}-{release}\n" - "Conflicts: {name}-{lang} < {version}-{release}".format( - **locals()), file=newsf) + f"Obsoletes: {name}-{lang} < {version}-{release}\n" + + f"Conflicts: {name}-{lang} < {version}-{release}", + file=newsf, + ) print(line, file=newsf) elif not (om or cm): if not gobble: print(line, file=newsf) elif ( - om and om.group('lang') not in langcodes_to_unobsolete or - cm and cm.group('lang') not in langcodes_to_unobsolete): + om + and om.group("lang") not in langcodes_to_unobsolete + or cm + and cm.group("lang") not in langcodes_to_unobsolete + ): gobble = False print(line, file=newsf) else: gobble = True - elif replacing == 'langpkgs': + elif replacing == "langpkgs": if end_langpkgs_re.match(line): replacing = None for no, lang in enumerate(languages): langcode, langname = lang - print("""%package {langcode} + print( + f"""%package {langcode} Summary: {langname} ({langcode}) language support for {name} Requires: %{{name}} = %{{?epoch:%{{epoch}}:}}%{{version}}-%{{release}} -Supplements: (%{{name}} = %{{?epoch:%{{epoch}}:}}%{{version}}-%{{release}} and langpacks-{langcode}) +Supplements: (%{{name}} = %{{?epoch:%{{epoch}}:}}%{{version}}-%{{release}}""" + + f""" and langpacks-{langcode}) %description {langcode} -{langname} language support for {name}.""".format(**locals()), file=newsf) +{langname} language support for {name}.""", + file=newsf, + ) if no < numlang: print(file=newsf) print(line, file=newsf) - elif replacing == 'langfiles': + elif replacing == "langfiles": if end_langfiles_re.match(line): replacing = None for lang in languages: langcode, langname = lang - print("%files {langcode} -f files.list.{langcode}".format( - langcode=langcode), file=newsf) + print( + f"%files {langcode} -f files.list.{langcode}", file=newsf + ) print(line, file=newsf) newsf.close() diff --git a/changelog b/changelog new file mode 100644 index 0000000..24e781e --- /dev/null +++ b/changelog @@ -0,0 +1,204 @@ +* Wed Jul 19 2023 Fedora Release Engineering - 2.10.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Josef Ridky - 2.10.0-11 +- Migrate to SPDX license + +* Thu Jan 19 2023 Fedora Release Engineering - 2.10.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 2.10.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 2.10.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.10.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.10.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 2.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 2.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Jan 06 2020 Josef Ridky - 2.10.0-3 +- remplace Python 2 with Python 3 support (#1754462) + +* Thu Jul 25 2019 Fedora Release Engineering - 2.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 24 2019 Josef Ridky - 2.10.0-1 +- new upstream release 2.10.0 (#1722969) +- remove unsupported languages (sl, sv) +- add new languages (fi, ro) + +* Thu Jan 31 2019 Fedora Release Engineering - 2.8.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 20 2018 Josef Ridky - 2.8.2-11 +- fix FTBFS by set proper python invocation (#1604107) + +* Fri Jul 13 2018 Fedora Release Engineering - 2.8.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 21 2018 Josef Ridky - 2.8.2-9 +- remove obsolete rm buildroot statement + +* Wed Feb 07 2018 Fedora Release Engineering - 2.8.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.8.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.8.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Mar 04 2016 Nils Philippsen - 2.8.2-5 +- remove obsolete %%clean, %%defattr, Group and BuildRoot tags + +* Thu Mar 03 2016 Parag Nemade - 2.8.2-5 +- Mark COPYING with %%license instead of %%doc + +* Thu Mar 03 2016 Nils Philippsen - 2.8.2-5 +- add supplements directives for language subpackages, see + https://fedoraproject.org/wiki/Packaging:Langpacks for detail + +* Wed Feb 03 2016 Fedora Release Engineering - 2.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jan 19 2016 Nils Philippsen +- use %%global instead of %%define + +* Tue Jun 23 2015 Nils Philippsen - 2.8.2-3 +- fix website URL +- disable parallel building because it tends to produce bad output + +* Wed Jun 17 2015 Fedora Release Engineering - 2.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Aug 05 2014 Nils Philippsen - 2.8.2-1 +- version 2.8.2 +- update source URL + +* Sat Jun 07 2014 Fedora Release Engineering - 2.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Jan 09 2014 Nils Philippsen - 2.8.1-1 +- version 2.8.1 +- reenable parallel building +- add Brazilian Portuguese translation +- remove (empty) translations: Finnish, Hungarian, Lithuanian, Polish +- fix translation that makes xml2po.py/libxml2 crash + +* Sat Aug 03 2013 Fedora Release Engineering - 2.8.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jul 09 2013 Nils Philippsen - 2.8.0-7 +- add GPLv2+ to license list (included tools used for building) + +* Tue May 14 2013 Nils Philippsen - 2.8.0-6 +- don't attempt parallel builds, they succeed or fail without a clear pattern + +* Mon May 13 2013 Nils Philippsen - 2.8.0-5 +- include all PO files missing from the tarball (#914031) + +* Wed Feb 13 2013 Fedora Release Engineering - 2.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 2.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 19 2012 Nils Philippsen - 2.8.0-2 +- add language subpackages + +* Tue Jun 05 2012 Nils Philippsen - 2.8.0-1 +- version 2.8.0 +- add po files missing in tarball +- add new build requirements: dblatex, graphviz, pngnq, pngcrush +- fix file list generation + +* Fri Jan 13 2012 Fedora Release Engineering - 2.4.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 2.4.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 2.4.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 2.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 12 2008 Nils Philippsen - 2.4.2-3 +- Merge Review (#225798): + - quote percent signs written into files list + - enable parallel make + +* Thu Dec 11 2008 Nils Philippsen - 2.4.2-2 +- Merge Review (#225798): + - ship AUTHORS, ChangeLog, COPYING, NEWS, README, TERMINOLOGY + - don't own directories included in the gimp package + - use %%defattr(-, root, root, -) + +* Wed Nov 26 2008 Nils Philippsen +- Group: Documentation + +* Fri Oct 10 2008 Nils Philippsen - 2.4.2-1 +- version 2.4.2 + +* Fri Apr 18 2008 Nils Philippsen - 2.4.1-1 +- version 2.4.1 + +* Mon Feb 04 2008 Nils Philippsen - 2.4.0-1 +- version 2.4.0 +- mark language specific files with %%lang() +- add BR: gettext + +* Wed Aug 08 2007 Nils Philippsen - 2-0.2.0.13 +- change licensing tag to GFDL + +* Wed Aug 08 2007 Nils Philippsen - 2-0.1.0.13 +- version 2-0.13 +- don't use "%%makeinstall ..." but "make DESTDIR=... install" for installing + +* Thu Apr 12 2007 Nils Philippsen - 2-0.1.0.12 +- version 2-0.12 + +* Thu Jan 04 2007 Nils Philippsen - 2-0.1.0.11 +- version 2-0.11 +- add disttag + +* Wed Jul 12 2006 Jesse Keating - 2-0.1.0.10.1.1 +- rebuild + +* Mon Apr 24 2006 Nils Philippsen +- version 2-0.10 + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Oct 21 2005 Nils Philippsen +- version 2-0.9 + +* Wed Feb 23 2005 Nils Philippsen +- version 2-0.7 + +* Sat Jan 15 2005 Nils Philippsen +- version 2-0.6 + +* Fri Jul 02 2004 Nils Philippsen +- version 2-0.3 + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Apr 02 2004 Nils Philippsen +- version 2-0.2 + +* Wed Mar 17 2004 Nils Philippsen +- version 2-0.1 +- initial build diff --git a/gimp-help.spec b/gimp-help.spec index 3093a41..6ab1594 100644 --- a/gimp-help.spec +++ b/gimp-help.spec @@ -1,44 +1,70 @@ # NOTE: en/English is in the main package -# LANGUAGES: ca,Catalan da,Danish de,German el,Greek en_GB,British_English es,Spanish fr,French it,Italian ja,Japanese ko,Korean nl,Dutch nn,Norwegian_Nynorsk pt_BR,Brazilian_Portuguese ru,Russian sl,Slovenian sv,Swedish zh_CN,Simplified_Chinese -%global gimpsubver 2.0 +# LANGUAGES: bg,Bulgarian ca,Catalan cs,Czech da,Danish de,German el,Greek en_GB,British_English es,Spanish fa,Farsi fi,Finnish fr,French hr,Croatian hu,Hungarian it,Italian ja,Japanese ko,Korean lt,Lithuanian nl,Dutch nn,Norwegian_Nynorsk pl,Polish pt,Portuguese pt_BR,Brazilian_Portuguese ro,Romanian ru,Russian sl,Slovenian sv,Swedish tr,Turkish uk,Ukrainian zh_CN,Simplified_Chinese + +%global _smp_tasksize_proc 6144 + +%global gimpsubver 3.0 Summary: Help files for GIMP Name: gimp-help -Version: 2.8.2 -Release: 7%{?dist} -License: GFDL and GPLv2+ -URL: http://docs.gimp.org/ -Source0: http://download.gimp.org/pub/gimp/help/gimp-help-%{version}.tar.bz2 +Version: 3.0.0 +Release: %autorelease +License: GFDL-1.2-invariants-only +URL: https://docs.gimp.org/ BuildArch: noarch +# https://bugzilla.redhat.com/show_bug.cgi?id=2318369 +ExcludeArch: s390x + +# Compute some version related macros. + +# In the case of a snapshot version (e.g. "Version: 2.99.19^20240814git256e0ca5a0"), this computes +# the "plain" version (as defined in upstream sources), %%snapshot and %%git_rev macros. In the case +# of a normal release, %%plain_version will be the same as %%version. +%global plain_version %{lua: + local plain_version = (string.gsub(macros.version, '^(.*)[%^~].*$', '%1')) + print(plain_version) + if plain_version ~= macros.version then + macros.snapshot = (string.gsub(macros.version, '^.*[%^~](.*)$', '%1')) + macros.git_rev = (string.gsub(macros.snapshot, '^.*git(.*)$', '%1')) + end +} + +%if ! %defined snapshot +Source0: https://download.gimp.org/pub/gimp/help/gimp-help-%{version}.tar.bz2 +%else +Source0: gimp-help-%{plain_version}-git%{git_rev}.tar.xz +%endif + BuildRequires: dblatex # BuildRequires: docbook2odf [orphaned] BuildRequires: docbook-style-xsl BuildRequires: gnome-doc-utils -BuildRequires: libxml2 +BuildRequires: libxml2-python3 BuildRequires: libxslt BuildRequires: pkgconfig >= 0.9.0 -BuildRequires: gimp-devel >= 2:2.4 +BuildRequires: gimp-devel >= 2:3.0.0~RC1 BuildRequires: gettext BuildRequires: graphviz BuildRequires: pngnq BuildRequires: pngcrush -Requires: gimp >= 2:2.4 +BuildRequires: python3 +BuildRequires: make +Requires: gimp >= 2:3.0.0~RC1 # BEGIN: OBSOLETE LANGUAGES -Obsoletes: gimp-help-fi < 2.8.1-1%{?dist} -Conflicts: gimp-help-fi < 2.8.1-1%{?dist} -Obsoletes: gimp-help-hr < 2.8.1-1%{?dist} -Conflicts: gimp-help-hr < 2.8.1-1%{?dist} -Obsoletes: gimp-help-lt < 2.8.1-1%{?dist} -Conflicts: gimp-help-lt < 2.8.1-1%{?dist} -Obsoletes: gimp-help-pl < 2.8.1-1%{?dist} -Conflicts: gimp-help-pl < 2.8.1-1%{?dist} # END: OBSOLETE LANGUAGES - %description This package contains a user manual written for the GNU Image Manipulation Program. # BEGIN: LANGUAGE SUB PACKAGES +%package bg +Summary: Bulgarian (bg) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-bg) + +%description bg +Bulgarian language support for gimp-help. + %package ca Summary: Catalan (ca) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -47,6 +73,14 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-c %description ca Catalan language support for gimp-help. +%package cs +Summary: Czech (cs) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-cs) + +%description cs +Czech language support for gimp-help. + %package da Summary: Danish (da) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -87,6 +121,22 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-e %description es Spanish language support for gimp-help. +%package fa +Summary: Farsi (fa) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-fa) + +%description fa +Farsi language support for gimp-help. + +%package fi +Summary: Finnish (fi) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-fi) + +%description fi +Finnish language support for gimp-help. + %package fr Summary: French (fr) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -95,6 +145,22 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-f %description fr French language support for gimp-help. +%package hr +Summary: Croatian (hr) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-hr) + +%description hr +Croatian language support for gimp-help. + +%package hu +Summary: Hungarian (hu) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-hu) + +%description hu +Hungarian language support for gimp-help. + %package it Summary: Italian (it) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -119,6 +185,14 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-k %description ko Korean language support for gimp-help. +%package lt +Summary: Lithuanian (lt) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-lt) + +%description lt +Lithuanian language support for gimp-help. + %package nl Summary: Dutch (nl) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -135,6 +209,22 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-n %description nn Norwegian Nynorsk language support for gimp-help. +%package pl +Summary: Polish (pl) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-pl) + +%description pl +Polish language support for gimp-help. + +%package pt +Summary: Portuguese (pt) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-pt) + +%description pt +Portuguese language support for gimp-help. + %package pt_BR Summary: Brazilian Portuguese (pt_BR) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -143,6 +233,14 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-p %description pt_BR Brazilian Portuguese language support for gimp-help. +%package ro +Summary: Romanian (ro) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-ro) + +%description ro +Romanian language support for gimp-help. + %package ru Summary: Russian (ru) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -167,6 +265,22 @@ Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-s %description sv Swedish language support for gimp-help. +%package tr +Summary: Turkish (tr) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-tr) + +%description tr +Turkish language support for gimp-help. + +%package uk +Summary: Ukrainian (uk) language support for gimp-help +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Supplements: (%{name} = %{?epoch:%{epoch}:}%{version}-%{release} and langpacks-uk) + +%description uk +Ukrainian language support for gimp-help. + %package zh_CN Summary: Simplified Chinese (zh_CN) language support for gimp-help Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} @@ -178,16 +292,15 @@ Simplified Chinese language support for gimp-help. # END: LANGUAGE SUB PACKAGES %prep -%setup -q +%setup -q -n gimp-help-%{plain_version} %build %configure -# don't attempt parallel builds, they tend to produce bad output without -# failing -make +# Building gimp-help in parallel is flaky 😬. Do as much as possible in parallel, then attempt to +# fix. +make -k %{?_smp_mflags} || make %install -rm -rf %buildroot make DESTDIR=%{buildroot} install rm -f files.list.* @@ -195,185 +308,58 @@ f="$PWD/files.list" pushd %{buildroot}%{_datadir}/gimp/%{gimpsubver}/help for lang in *; do + [ "$lang" = "pdf" ] && continue echo "%%lang($lang) %%{_datadir}/gimp/%%{gimpsubver}/help/$lang" > "$f.$lang" done +cd pdf +for pdf in *.pdf; do + l="${pdf%.pdf}" + l="${l#gimp-keys-}" + if [ ! -d "../$l" ]; then + rm -f "$pdf" + else + echo "%%lang($lang) %%{_datadir}/gimp/%%{gimpsubver}/help/pdf/$pdf" >> "$f.$lang" + fi +done popd %files %dir %{_datadir}/gimp/%{gimpsubver}/help %{_datadir}/gimp/%{gimpsubver}/help/en -%doc AUTHORS ChangeLog NEWS README TERMINOLOGY +%doc AUTHORS ChangeLog NEWS README.md TERMINOLOGY %license COPYING # BEGIN: LANGUAGE FILE LISTS +%files bg -f files.list.bg %files ca -f files.list.ca +%files cs -f files.list.cs %files da -f files.list.da %files de -f files.list.de %files el -f files.list.el %files en_GB -f files.list.en_GB %files es -f files.list.es +%files fa -f files.list.fa +%files fi -f files.list.fi %files fr -f files.list.fr +%files hr -f files.list.hr +%files hu -f files.list.hu %files it -f files.list.it %files ja -f files.list.ja %files ko -f files.list.ko +%files lt -f files.list.lt %files nl -f files.list.nl %files nn -f files.list.nn +%files pl -f files.list.pl +%files pt -f files.list.pt %files pt_BR -f files.list.pt_BR +%files ro -f files.list.ro %files ru -f files.list.ru %files sl -f files.list.sl %files sv -f files.list.sv +%files tr -f files.list.tr +%files uk -f files.list.uk %files zh_CN -f files.list.zh_CN # END: LANGUAGE FILE LISTS %changelog -* Wed Jul 26 2017 Fedora Release Engineering - 2.8.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 2.8.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Mar 04 2016 Nils Philippsen - 2.8.2-5 -- remove obsolete %%clean, %%defattr, Group and BuildRoot tags - -* Thu Mar 03 2016 Parag Nemade - 2.8.2-5 -- Mark COPYING with %%license instead of %%doc - -* Thu Mar 03 2016 Nils Philippsen - 2.8.2-5 -- add supplements directives for language subpackages, see - https://fedoraproject.org/wiki/Packaging:Langpacks for detail - -* Wed Feb 03 2016 Fedora Release Engineering - 2.8.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Tue Jan 19 2016 Nils Philippsen -- use %%global instead of %%define - -* Tue Jun 23 2015 Nils Philippsen - 2.8.2-3 -- fix website URL -- disable parallel building because it tends to produce bad output - -* Wed Jun 17 2015 Fedora Release Engineering - 2.8.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Tue Aug 05 2014 Nils Philippsen - 2.8.2-1 -- version 2.8.2 -- update source URL - -* Sat Jun 07 2014 Fedora Release Engineering - 2.8.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Jan 09 2014 Nils Philippsen - 2.8.1-1 -- version 2.8.1 -- reenable parallel building -- add Brazilian Portuguese translation -- remove (empty) translations: Finnish, Hungarian, Lithuanian, Polish -- fix translation that makes xml2po.py/libxml2 crash - -* Sat Aug 03 2013 Fedora Release Engineering - 2.8.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Tue Jul 09 2013 Nils Philippsen - 2.8.0-7 -- add GPLv2+ to license list (included tools used for building) - -* Tue May 14 2013 Nils Philippsen - 2.8.0-6 -- don't attempt parallel builds, they succeed or fail without a clear pattern - -* Mon May 13 2013 Nils Philippsen - 2.8.0-5 -- include all PO files missing from the tarball (#914031) - -* Wed Feb 13 2013 Fedora Release Engineering - 2.8.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Jul 19 2012 Fedora Release Engineering - 2.8.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Jun 19 2012 Nils Philippsen - 2.8.0-2 -- add language subpackages - -* Tue Jun 05 2012 Nils Philippsen - 2.8.0-1 -- version 2.8.0 -- add po files missing in tarball -- add new build requirements: dblatex, graphviz, pngnq, pngcrush -- fix file list generation - -* Fri Jan 13 2012 Fedora Release Engineering - 2.4.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Feb 08 2011 Fedora Release Engineering - 2.4.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Jul 24 2009 Fedora Release Engineering - 2.4.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Tue Feb 24 2009 Fedora Release Engineering - 2.4.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Fri Dec 12 2008 Nils Philippsen - 2.4.2-3 -- Merge Review (#225798): - - quote percent signs written into files list - - enable parallel make - -* Thu Dec 11 2008 Nils Philippsen - 2.4.2-2 -- Merge Review (#225798): - - ship AUTHORS, ChangeLog, COPYING, NEWS, README, TERMINOLOGY - - don't own directories included in the gimp package - - use %%defattr(-, root, root, -) - -* Wed Nov 26 2008 Nils Philippsen -- Group: Documentation - -* Fri Oct 10 2008 Nils Philippsen - 2.4.2-1 -- version 2.4.2 - -* Fri Apr 18 2008 Nils Philippsen - 2.4.1-1 -- version 2.4.1 - -* Mon Feb 04 2008 Nils Philippsen - 2.4.0-1 -- version 2.4.0 -- mark language specific files with %%lang() -- add BR: gettext - -* Wed Aug 08 2007 Nils Philippsen - 2-0.2.0.13 -- change licensing tag to GFDL - -* Wed Aug 08 2007 Nils Philippsen - 2-0.1.0.13 -- version 2-0.13 -- don't use "%%makeinstall ..." but "make DESTDIR=... install" for installing - -* Thu Apr 12 2007 Nils Philippsen - 2-0.1.0.12 -- version 2-0.12 - -* Thu Jan 04 2007 Nils Philippsen - 2-0.1.0.11 -- version 2-0.11 -- add disttag - -* Wed Jul 12 2006 Jesse Keating - 2-0.1.0.10.1.1 -- rebuild - -* Mon Apr 24 2006 Nils Philippsen -- version 2-0.10 - -* Fri Dec 09 2005 Jesse Keating -- rebuilt - -* Fri Oct 21 2005 Nils Philippsen -- version 2-0.9 - -* Wed Feb 23 2005 Nils Philippsen -- version 2-0.7 - -* Sat Jan 15 2005 Nils Philippsen -- version 2-0.6 - -* Fri Jul 02 2004 Nils Philippsen -- version 2-0.3 - -* Tue Jun 15 2004 Elliot Lee -- rebuilt - -* Fri Apr 02 2004 Nils Philippsen -- version 2-0.2 - -* Wed Mar 17 2004 Nils Philippsen -- version 2-0.1 -- initial build +%autochangelog diff --git a/sources b/sources index 3f480fd..27249ed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a591c8974b2f4f584d0a769d52ed6c5b gimp-help-2.8.2.tar.bz2 +SHA512 (gimp-help-3.0.0.tar.bz2) = 4a240bfebb633c1603057474adeb2bf2e42fcc65f5c5b696e5202bad18940eba69b1b12f6493b470b6f402cee7d6dcbd23f83c9e2871f459a420b7c521a0bd6d