[man-pages-de/f20] Some patches and enhancements

Mario Blättermann mariobl at fedoraproject.org
Sun Oct 5 14:06:58 UTC 2014


commit c812992471e9dde65d647f22a8989985ac927b53
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Sun Oct 5 16:06:41 2014 +0200

    Some patches and enhancements

 man-pages-de.spec |   20 +++++++++++++++++++-
 ncal.1.patch      |   11 +++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/man-pages-de.spec b/man-pages-de.spec
index cea3d32..dc81ef4 100644
--- a/man-pages-de.spec
+++ b/man-pages-de.spec
@@ -1,11 +1,18 @@
+%global man_ver_curr %(rpm -q man-pages --queryformat "%{VERSION}")
+# This version number must always be taken from a gettext message
+# in the section 2 or 3 man pages in the tarball.
+%global man_ver_repl 3.65
+
 Summary:        German man pages from the Linux Documentation Project
 Name:           man-pages-de
 Version:        1.7
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv3+
 Group:          Documentation
 URL:            http://manpages-de.alioth.debian.org/
 Source:         http://alioth.debian.org/projects/manpages-de/download/manpages-de-%{version}.tar.xz
+# This has been committed upstream
+Patch0:         ncal.1.patch
 
 BuildArch:      noarch
 
@@ -34,9 +41,14 @@ German.
 %prep
 
 %setup -q -n manpages-de-%{version}
+%patch0
 cd po/man1
 mv -f ncal.1.po cal.1.po
 
+# match the current version number of man-pages on the target system
+%__sed -i.fix_ver 's|part of release %{man_ver_repl} of the Linux|part of release %{man_ver_curr} of the Linux|g' ../man*/*.po
+%__sed -i.fix_ver 's|Veröffentlichung %{man_ver_repl} des Projekts|Veröffentlichung %{man_ver_curr} des Projekts|g' ../man*/*.po
+
 %build
 %configure
 make %{?_smp_mflags}
@@ -49,6 +61,12 @@ make install DESTDIR=${RPM_BUILD_ROOT}
 %{_mandir}/de/man?/*
 
 %changelog
+* Sun Oct 05 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 1.7-2
+- Patch for cal.1.po to fix a typo
+- Some %%global defintions
+- Fix version number in all man-pages based files so that the string
+  can be translated
+
 * Sat Jul 19 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 1.7-1
 - New upstream release
 - New build requirement: ddate
diff --git a/ncal.1.patch b/ncal.1.patch
new file mode 100644
index 0000000..9e384e6
--- /dev/null
+++ b/ncal.1.patch
@@ -0,0 +1,11 @@
+--- po/man1/ncal.1.po	2014-07-14 12:25:05.000000000 +0200
++++ po/man1/ncal.1.po	2014-10-04 22:30:07.350901732 +0200
+@@ -140,7 +140,7 @@
+ "allow colors to be outputed when B<cal> outputs to pipe, or is called from a "
+ "script."
+ msgstr ""
+-"Die Ausgabe einfärben. Die <Bedingung> kann I<never>, I<auto> oder I<always> "
++"Die Ausgabe einfärben. Die I<Bedingung> kann I<never>, I<auto> oder I<always> "
+ "sein. »Never« unterdrückt die Einfärbung generell. »Auto« ist die Vorgabe, "
+ "wobei die Einfärbung nur bei Ausgabe im Terminal vorgenommen wird. »Always« "
+ "ermöglicht die Einfärbung auch bei Weiterleitung der Ausgabe in eine Pipe "


More information about the scm-commits mailing list