From b4a27d5e6b9d89ce0a3028ea0ab0110a1b1bf4e0 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 4 Feb 2008 13:33:33 +0000 Subject: [PATCH] version 2.4.0 mark language specific files with %lang() add BR: gettext --- .cvsignore | 2 +- gimp-help.spec | 59 ++++++++++++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 45 insertions(+), 18 deletions(-) diff --git a/.cvsignore b/.cvsignore index 643d17d..7251e51 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -gimp-help-2-0.13.tar.gz +gimp-help-2.4.0.tar.bz2 diff --git a/gimp-help.spec b/gimp-help.spec index b7d7798..fe94bf3 100644 --- a/gimp-help.spec +++ b/gimp-help.spec @@ -1,26 +1,30 @@ -%define gimphelpver 2-0.13 %define gimpsubver 2.0 -Summary: Help files for the GIMP. +Summary: Help files for GIMP Name: gimp-help -Version: %(echo %gimphelpver|cut -d- -f1) -Release: 0.2.%(echo %gimphelpver|cut -d- -f2)%{?dist} +Version: 2.4.0 +Release: 1%{?dist} License: GFDL Group: Applications/Multimedia URL: http://wiki.gimp.org/gimp/GimpDocs -Source: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{gimphelpver}.tar.gz +Source: ftp://ftp.gimp.org/pub/gimp/help/gimp-help-%{version}.tar.bz2 BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildRequires: libxslt +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%__id_u -n)-root BuildRequires: docbook-style-xsl -BuildRequires: gimp-devel >= 1:2.0 -Requires: gimp >= 2.0 +BuildRequires: gnome-doc-utils +BuildRequires: libxml2 +BuildRequires: libxslt +BuildRequires: pkgconfig >= 0.9.0 +BuildRequires: gimp-devel >= 2:2.4 +BuildRequires: gettext +Requires: gimp >= 2:2.4 %description -The GIMP User Manual is a newly written User Manual for the GIMP. +This package contains a user manual written for the GNU Image Manipulation +Program. %prep -%setup -q -n %{name}-%{gimphelpver} +%setup -q %build %configure @@ -30,16 +34,39 @@ make rm -rf %buildroot make DESTDIR=%{buildroot} install +rm -f files.list +cat << EOF > files.list +%%defattr (-, root, root) +%%dir %{_datadir}/gimp +%%dir %{_datadir}/gimp/%{gimpsubver} +%%dir %{_datadir}/gimp/%{gimpsubver}/help +%{_datadir}/gimp/%{gimpsubver}/help/images +EOF +f="$PWD/files.list" + +pushd %{buildroot}%{_datadir}/gimp/%{gimpsubver}/help +for dir in *; do + case "$dir" in + images) + ;; + *) + echo "%%lang($dir) %{_datadir}/gimp/%{gimpsubver}/help/$dir" >> "$f" + ;; + esac +done +popd + %clean rm -rf %buildroot -%files -%defattr (-, root, root) -%dir %{_datadir}/gimp -%dir %{_datadir}/gimp/%{gimpsubver} -%{_datadir}/gimp/%{gimpsubver}/help +%files -f files.list %changelog +* 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 diff --git a/sources b/sources index bdbb7e5..c911fe3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a0d3ab0e503cacaaaa031958bfad43e5 gimp-help-2-0.13.tar.gz +fb4402aabce1d7f4eccc1a8739cc7e56 gimp-help-2.4.0.tar.bz2