[doclifter/f20] Initial commit

Mario Blättermann mariobl at fedoraproject.org
Mon Nov 4 17:23:55 UTC 2013


commit 4fa0cb09d9cac4d2a43c7f7be0922c91b55bb21c
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Mon Nov 4 18:24:01 2013 +0100

    Initial commit

 .gitignore      |    1 +
 doclifter.patch |   17 ++++++++++++++++
 doclifter.spec  |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 4 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3ae8f90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/doclifter-2.13.tar.gz
diff --git a/doclifter.patch b/doclifter.patch
new file mode 100644
index 0000000..23849c3
--- /dev/null
+++ b/doclifter.patch
@@ -0,0 +1,17 @@
+--- doclifter	2013-09-27 10:32:16.000000000 +0200
++++ doclifter	2013-11-04 12:41:29.297434240 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python2
+ r"""
+ doclifter: translate man/mdoc/ms/me/mm sources to DocBook.
+ 
+--- manlifter	2013-09-27 10:32:16.000000000 +0200
++++ manlifter	2013-11-04 12:42:15.447626274 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python -u
++#!/usr/bin/python2 -u
+ #
+ # Run doclifter against an entire manual tree.
+ # Sees all files in section 1 through 8 by default.
+ 
\ No newline at end of file
diff --git a/doclifter.spec b/doclifter.spec
new file mode 100644
index 0000000..fbd501d
--- /dev/null
+++ b/doclifter.spec
@@ -0,0 +1,56 @@
+Name:           doclifter
+Version:        2.13
+Release:        2%{?dist}
+Summary:        Translates documents written in troff macros to DocBook
+
+License:        BSD
+URL:            http://www.catb.org/~esr/doclifter/
+Source0:        http://www.catb.org/~esr/%{name}/%{name}-%{version}.tar.gz
+Patch0:         %{name}.patch
+
+BuildArch:      noarch
+BuildRequires:  python2
+
+%description
+The doclifter program translates documents written in troff macros to DocBook.
+
+Lifting documents from presentation level to semantic level is hard, and
+a really good job requires human polishing.  This tool aims to do everything
+that can be mechanized, and to preserve any troff-level information that might
+have structural implications in XML comments.
+
+This tool does the hard parts.  TBL tables are translated into DocBook
+table markup, PIC into SVG, and EQN into MathML (relying on pic2svg
+and GNU eqn for the last two).
+
+%prep
+%setup -q
+%patch0
+
+
+%build
+# Nothing to build
+
+
+%install
+mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
+mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man1/
+cp doclifter manlifter "$RPM_BUILD_ROOT"%{_bindir}
+cp doclifter.1 manlifter.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/
+
+%check
+make check
+
+
+%files
+%doc COPYING README TODO
+%{_bindir}/*
+%{_mandir}/man1/*.1.*
+
+
+%changelog
+* Mon Nov 04 2013 Mario Blättermann <mariobl at fedoraproject.org> - 2.13-2
+- Patch for fixing the shebangs to python2
+
+* Sun Nov 3 2013 Mario Blättermann <mariobl at fedoraproject.org> - 2.13-1
+- Initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..0537b7e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eb2143a36042e241e8e50f86be5702c4  doclifter-2.13.tar.gz


More information about the scm-commits mailing list