public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/txt2man] epel10: adding txt2man, maintained by me
@ 2026-07-21  1:42 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-21  1:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/txt2man
Branch : epel10
Commit : f85a7ee4fe2270d24c9ca33b46f58fd622eb2deb
Author : Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org>
Date   : 2009-03-05T21:09:21+00:00
Stats  : +81/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/txt2man/c/f85a7ee4fe2270d24c9ca33b46f58fd622eb2deb?branch=epel10

Log:
adding txt2man, maintained by me

---
diff --git a/.cvsignore b/.cvsignore
index e69de29..167f71f 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+txt2man-1.5.5.tar.gz

diff --git a/import.log b/import.log
new file mode 100644
index 0000000..9c2bd53
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+txt2man-1_5_5-1_fc10:HEAD:txt2man-1.5.5-1.fc10.src.rpm:1236287080

diff --git a/sources b/sources
index e69de29..a14704e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d10fe6e9876a2969201ea4d75ac9ea48  txt2man-1.5.5.tar.gz

diff --git a/txt2man-1.5.5-fixbashisms.patch b/txt2man-1.5.5-fixbashisms.patch
new file mode 100644
index 0000000..ff30a97
--- /dev/null
+++ b/txt2man-1.5.5-fixbashisms.patch
@@ -0,0 +1,23 @@
+diff -Nru txt2man-1.5.5/bookman txt2man-1.5.5/bookman
+--- txt2man-1.5.5/bookman	2007-03-21 11:07:24.000000000 +0000
++++ txt2man-1.5.5/bookman	2008-04-12 03:29:07.000000000 +0100
+@@ -83,16 +83,16 @@
+ shift $(($OPTIND - 1))
+ date=${date:-$(date +'%d %B %Y')}
+ 
+-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
++[ $1 ] || set -- $(while read REPLY; do echo $REPLY; done)
+ 
+-[[ $outfile ]] && post="$post >$outfile"
++[ $outfile ] && post="$post >$outfile"
+ 
+ {
+ 	# Compute table of content from postscript output.
+ 	# Generate output in gtroff intermediate format, so
+ 	# it can be merged with content.
+ 	{
+-		[[ -f $cover ]] && cat $cover || {
++		[ -f $cover ] && cat $cover || {
+ 			printf ".af %% i\n.P1\n"
+ 			printf ".OH ||%s||\n" "$volume"
+ 			printf ".EH ||%s||\n" "$volume"

diff --git a/txt2man.spec b/txt2man.spec
new file mode 100644
index 0000000..2c5b4ca
--- /dev/null
+++ b/txt2man.spec
@@ -0,0 +1,55 @@
+Name:           txt2man
+Version:        1.5.5
+Release:        1%{?dist}
+Summary:        Convert flat ASCII text to man page format
+
+Group:          Applications/Text
+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
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+Requires:       gawk
+
+%description
+tx2man is a shell script using gnu awk, that should run on any
+Unix-like system. The syntax of the ASCII text is very straightforward
+and looks very much like the output of the man(1) program. 
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+#no build needed
+
+%install
+rm -rf $RPM_BUILD_ROOT
+#manual install
+install -p -m 0755 -D bookman $RPM_BUILD_ROOT%{_bindir}/bookman
+install -p -m 0755 -D src2man $RPM_BUILD_ROOT%{_bindir}/src2man
+install -p -m 0755 -D txt2man $RPM_BUILD_ROOT%{_bindir}/txt2man
+
+install -p -m 0644 -D bookman.1 $RPM_BUILD_ROOT%{_mandir}/man1/bookman.1
+install -p -m 0644 -D src2man.1 $RPM_BUILD_ROOT%{_mandir}/man1/src2man.1
+install -p -m 0644 -D txt2man.1 $RPM_BUILD_ROOT%{_mandir}/man1/txt2man.1
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING Changelog README
+%{_bindir}/*
+%{_mandir}/man?/*
+
+
+%changelog
+* Tue Mar 04 2009 Sindre Pedersen Bjordal <sindrepb@fedoraproject.org> - 1.5.5-1
+- Initial build
+- Include debian patch to fix bashisms

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-21  1:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-21  1:42 [rpms/txt2man] epel10: adding txt2man, maintained by me 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox