commit 2facec2477627207e8e84e1eeac38e4bd22a594b Author: wangyiru826 Date: Wed Dec 4 17:47:01 2019 +0800 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/xmltoman-0.3-timestamps.patch b/xmltoman-0.3-timestamps.patch new file mode 100644 index 0000000..50c325c --- /dev/null +++ b/xmltoman-0.3-timestamps.patch @@ -0,0 +1,25 @@ +Preserve timestamps, thanks Parag. +https://bugzilla.redhat.com/show_bug.cgi?id=xmltoman-review#c2 + +diff -urp xmltoman-0.3.orig/Makefile xmltoman-0.3/Makefile +--- xmltoman-0.3.orig/Makefile 2003-10-03 15:43:17.000000000 +0200 ++++ xmltoman-0.3/Makefile 2008-03-12 13:16:56.000000000 +0100 +@@ -12,12 +12,12 @@ xmltoman.1: xml/xmltoman.1.xml + xmlmantohtml.1: xml/xmlmantohtml.1.xml + ./xmltoman $< > $@ + +-install: +- install -D xmltoman $(DESTDIR)/$(PREFIX)/bin/xmltoman +- install -D xmlmantohtml $(DESTDIR)/$(PREFIX)/bin/xmlmantohtml +- install -D -m 0644 xmltoman.dtd $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.dtd +- install -D -m 0644 xmltoman.css $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.css +- install -D -m 0644 xmltoman.xsl $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.xsl ++install: ++ install -p -D xmltoman $(DESTDIR)/$(PREFIX)/bin/xmltoman ++ install -p -D xmlmantohtml $(DESTDIR)/$(PREFIX)/bin/xmlmantohtml ++ install -p -D -m 0644 xmltoman.dtd $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.dtd ++ install -p -D -m 0644 xmltoman.css $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.css ++ install -p -D -m 0644 xmltoman.xsl $(DESTDIR)/$(PREFIX)/share/xmltoman/xmltoman.xsl + + dist: + [ -d $(DISTNAME) ] && rm -rf $(DISTNAME) || true diff --git a/xmltoman-0.4.tar.gz b/xmltoman-0.4.tar.gz new file mode 100644 index 0000000..d2f49ca Binary files /dev/null and b/xmltoman-0.4.tar.gz differ diff --git a/xmltoman.spec b/xmltoman.spec new file mode 100644 index 0000000..e511e96 --- /dev/null +++ b/xmltoman.spec @@ -0,0 +1,45 @@ +Name: xmltoman +Version: 0.4 +Release: 19 +Summary: Scripts to convert xml to man pages in groff format or html +License: GPLv2+ +URL: http://sourceforge.net/projects/xmltoman/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0001: xmltoman-0.3-timestamps.patch +BuildRequires: perl-generators perl(XML::Parser) +BuildArch: noarch + +%description +xmltoman and xmlmantohtml are two small scripts to convert XML to man pages +in groff format or HTML. It features the usual man page items such as +'description', 'options', 'see also', etc. + +%package help +Summary: This package contains help documents + +%description help +Files for help with xmltoman + +%prep +%autosetup -p1 + +%build +%make_build + +%install +%make_install PREFIX=%{_prefix} +install -p -D xmlmantohtml.1 %{buildroot}%{_mandir}/man1/xmlmantohtml.1 +install -p -D xmltoman.1 %{buildroot}%{_mandir}/man1/xmltoman.1 + +%files +%doc COPYING README +%{_bindir}/{xmltoman,xmlmantohtml} +%{_datadir}/xmltoman + +%files help +%{_mandir}/*/* + + +%changelog +* Sat Nov 30 2019 wangyiru - 0.4-19 +- Package init