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

291 lines
8.3 KiB
RPMSpec

#
# spec file for package gimp-help
#
# Copyright (c) 2012 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/
#
Name: gimp-help
Version: 2.8.0
Release: 0
# FIXME: on update, see if we still need Makefile.GNU as additional source (last check: 2.6.1). See bgo#639057.
# FIXME: Check if parallel build reliably works again (last check: 2.6.1)
Summary: Help System Data for GIMP
License: GFDL-1.2
Group: Productivity/Graphics/Bitmap Editors
Url: http://www.gimp.org/
Source0: ftp://ftp.gimp.org/pub/gimp/help/%{name}-%{version}.tar.bz2
# Taken from git on 2011-01-09. Default Makefile doesn't work.
Source1: Makefile.GNU
Source2: gimp-help-2.doap
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
BuildRequires: gimp-devel
BuildRequires: libxslt
BuildRequires: xhtml-dtd
BuildRequires: xml2po
BuildRequires: xmlcharent
Requires: gimp
Enhances: gimp
Provides: gimp-help-2
Obsoletes: gimp-help-2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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 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 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 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 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 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 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 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
cp %{S:1} .
cp %{S:2} .
%build
%configure
#make -f Makefile.GNU %{?jobs:-j%jobs}
# Parallel build is broken
make -f Makefile.GNU
# unify the permissions of images, to make fdupes working again (bnc#784670)
find images/ -type f -exec chmod 0644 {} +
%install
#FIXME: we can't use the usual macro since we don't use the standard Makefile
#%make_install
install -d %{buildroot}%{_datadir}/gimp/2.0/help
cp -RL html/* %{buildroot}%{_datadir}/gimp/2.0/help/
for locale in %{buildroot}%{_datadir}/gimp/2.0/help/*; do
%fdupes $locale
done
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TERMINOLOGY
%dir %{_datadir}/gimp/2.0/help
%{_datadir}/gimp/2.0/help/en/
%files da
%defattr (-,root,root)
%lang(da) %{_datadir}/gimp/2.0/help/da/
%files de
%defattr (-,root,root)
%lang(de) %{_datadir}/gimp/2.0/help/de/
%files es
%defattr (-,root,root)
%lang(es) %{_datadir}/gimp/2.0/help/es/
%files fr
%defattr (-,root,root)
%lang(fr) %{_datadir}/gimp/2.0/help/fr/
%files it
%defattr (-,root,root)
%lang(it) %{_datadir}/gimp/2.0/help/it/
%files ja
%defattr (-,root,root)
%lang(ja) %{_datadir}/gimp/2.0/help/ja/
%files ko
%defattr (-,root,root)
%lang(ko) %{_datadir}/gimp/2.0/help/ko/
%files nl
%defattr (-,root,root)
%lang(nl) %{_datadir}/gimp/2.0/help/nl/
%files nn
%defattr (-,root,root)
%lang(nn) %{_datadir}/gimp/2.0/help/nn/
%files pl
%defattr (-,root,root)
%lang(pl) %{_datadir}/gimp/2.0/help/pl/
%files ru
%defattr (-,root,root)
%lang(ru) %{_datadir}/gimp/2.0/help/ru/
%files sv
%defattr (-,root,root)
%lang(sv) %{_datadir}/gimp/2.0/help/sv/
%files zh
%defattr (-,root,root)
%lang(zh) %{_datadir}/gimp/2.0/help/zh_CN/
%changelog