From 19fe6cfba934a3df047c600f7b3a8546e608e4e3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:45:36 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.5.6-1mamba;Tue Mar 25 2014] --- README.md | 2 ++ txt2man-1.5.6-mandir.patch | 22 +++++++++++++++++ txt2man.spec | 49 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 txt2man-1.5.6-mandir.patch create mode 100644 txt2man.spec diff --git a/README.md b/README.md index 56be353..744d9f5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # txt2man +Txt2man converts flat ASCII text to man page format. It is a shell script using gnu awk, that should run on any Unix like system. + diff --git a/txt2man-1.5.6-mandir.patch b/txt2man-1.5.6-mandir.patch new file mode 100644 index 0000000..1ed5747 --- /dev/null +++ b/txt2man-1.5.6-mandir.patch @@ -0,0 +1,22 @@ +diff -Nru txt2man-1.5.6.orig/Makefile txt2man-1.5.6/Makefile +--- txt2man-1.5.6.orig/Makefile 2011-03-16 22:45:13.000000000 +0100 ++++ txt2man-1.5.6/Makefile 2014-03-25 16:50:16.379181287 +0100 +@@ -1,5 +1,6 @@ + # Makefile + prefix ?= /usr/local ++datadir ?= $(prefix)/share + version = txt2man-1.5.6 + BIN = src2man bookman txt2man + MAN1 = src2man.1 txt2man.1 bookman.1 +@@ -7,9 +8,9 @@ + all: $(MAN1) + + install: $(MAN1) +- mkdir -p $(prefix)/bin $(prefix)/man/man1 ++ mkdir -p $(prefix)/bin $(datadir)/man/man1 + cp $(BIN) $(prefix)/bin/ +- cp $(MAN1) $(prefix)/man/man1 ++ cp $(MAN1) $(datadir)/man/man1 + + clean: + rm -f *.1 *.txt *.ps *.pdf *.html diff --git a/txt2man.spec b/txt2man.spec new file mode 100644 index 0000000..b021790 --- /dev/null +++ b/txt2man.spec @@ -0,0 +1,49 @@ +Name: txt2man +Version: 1.5.6 +Release: 1mamba +Summary: A script which converts flat ASCII text to man page format +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://mvertes.free.fr/ +Source: http://mvertes.free.fr/download/txt2man-%{version}.tar.gz +Patch0: txt2man-1.5.6-mandir.patch +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: gawk +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Txt2man converts flat ASCII text to man page format. It is a shell script using gnu awk, that should run on any Unix like system. + +%debug_package + +%prep +%setup -q +%patch0 -p1 + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeoldinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/bookman +%{_bindir}/src2man +%{_bindir}/txt2man +%{_mandir}/man1/bookman.1* +%{_mandir}/man1/src2man.1* +%{_mandir}/man1/txt2man.1* +%doc COPYING + +%changelog +* Tue Mar 25 2014 Silvan Calarco 1.5.6-1mamba +- package created using the webbuild interface