[txt2man] Copy working 1.5.6 package from f15 branch, as f16 up to master were incomplete and missing the sour

Michael Schwendt mschwendt at fedoraproject.org
Thu Jul 26 15:29:11 UTC 2012


commit 7702a628986c98c25c9f3239f29249602dc052a0
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Thu Jul 26 17:29:09 2012 +0200

    Copy working 1.5.6 package from f15 branch, as f16 up to master were
    incomplete and missing the source tarball, for example.

 .gitignore                      |    1 +
 sources                         |    2 +-
 txt2man-1.5.5-fixbashisms.patch |   23 -----------------------
 txt2man-1.5.6-fixbashisms.patch |   14 ++++++++++++++
 txt2man.spec                    |   19 ++++++++++---------
 5 files changed, 26 insertions(+), 33 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 167f71f..3312619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 txt2man-1.5.5.tar.gz
+/txt2man-1.5.6.tar.gz
diff --git a/sources b/sources
index a14704e..6b106df 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d10fe6e9876a2969201ea4d75ac9ea48  txt2man-1.5.5.tar.gz
+f301b3dc1872fab1b7740f9f69ff281b  txt2man-1.5.6.tar.gz
diff --git a/txt2man-1.5.6-fixbashisms.patch b/txt2man-1.5.6-fixbashisms.patch
new file mode 100644
index 0000000..ec0a504
--- /dev/null
+++ b/txt2man-1.5.6-fixbashisms.patch
@@ -0,0 +1,14 @@
+--- bookman.orig	2011-05-09 08:53:22.000000000 -0500
++++ bookman	2011-05-09 08:54:02.000000000 -0500
+@@ -83,9 +83,9 @@
+ shift $(($OPTIND - 1))
+ date=${date:-$(date +'%d %B %Y')}
+ 
+-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
++[ $1 ] || set -- $(while read; do echo $REPLY; done)
+ 
+-[[ $outfile ]] && post="$post >$outfile"
++[ $outfile ] && post="$post >$outfile"
+ 
+ {
+ 	# Compute table of content from postscript output.
diff --git a/txt2man.spec b/txt2man.spec
index fa1f9f7..93754af 100644
--- a/txt2man.spec
+++ b/txt2man.spec
@@ -1,6 +1,6 @@
 Name:           txt2man
 Version:        1.5.6
-Release:        3%{?dist}
+Release:        1%{?dist}
 Summary:        Convert flat ASCII text to man page format
 
 Group:          Applications/Text
@@ -8,7 +8,11 @@ License:        GPLv2+
 URL:            http://mvertes.free.fr/txt2man/
 Source0:        http://mvertes.free.fr/download/%{name}-%{version}.tar.gz
 #Fixes bug with bashisms in /bin/sh script, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473696
-#Patch0:         txt2man-1.5.5-fixbashisms.patch # Fixed in upstream 1.5.6
+#Patch0:         txt2man-1.5.5-fixbashisms.patch
+
+# Fixes same bug as above, but code was changed in new release so old patch
+# no longer worked.
+Patch1:         txt2man-1.5.6-fixbashisms.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
@@ -23,6 +27,7 @@ and looks very much like the output of the man(1) program.
 %prep
 %setup -q
 #%patch0 -p1
+%patch1
 
 %build
 #no build needed
@@ -51,14 +56,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.6-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.6-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
-
 * Mon May 09 2011 Adam Miller <maxamillion at fedoraproject.org> - 1.5.6-1
-- New upstream release, fixes old bug converting bash script to POSIX shell code
+- New upstream release, fixes old bugs.
+- Upstream release notes claim POSIX shell code, but bookman still relies on
+  bash styled syntax so we continue to patch it out.
 
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.5-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild


More information about the scm-commits mailing list