From 60dea2446b1c66c0c6dd626df83a2b16b55db482 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 12 Mar 2008 17:51:49 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + sources | 1 + xmltoman-0.3-timestamps.patch | 25 ++++++++++++++++ xmltoman.spec | 54 +++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 xmltoman-0.3-timestamps.patch create mode 100644 xmltoman.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1923302 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +xmltoman-0.3.tar.gz diff --git a/sources b/sources index e69de29..df29124 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +30272d184b99f5920994bda9abe4baf7 xmltoman-0.3.tar.gz diff --git a/xmltoman-0.3-timestamps.patch b/xmltoman-0.3-timestamps.patch new file mode 100644 index 0000000..ae7cd21 --- /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 -p: ++ 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.spec b/xmltoman.spec new file mode 100644 index 0000000..64aee46 --- /dev/null +++ b/xmltoman.spec @@ -0,0 +1,54 @@ +Name: xmltoman +Version: 0.3 +Release: 2%{?dist} +Summary: Scripts for converting XML to roff or HTML + +Group: Applications/Publishing +License: GPLv2+ +URL: http://sourceforge.net/projects/xmltoman/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: xmltoman-0.3-timestamps.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(XML::Parser) +BuildArch: noarch + +%description +This package provides xmltoman and xmlmantohtml scripts, to compile +the xml representation of manual page to either roff source, or HTML +(while providing the CSS stylesheet for eye-candy look). XSL stylesheet +for doing rougly the same job is provided. + + +%prep +%setup -q +%patch0 -p1 -b .timestamps + + +%build +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/xmltoman +%{_bindir}/xmlmantohtml +%{_datadir}/xmltoman +%doc COPYING README + + +%changelog +* Wed Mar 12 2008 Lubomir Kundrak - 0.3-2 +- Preserve timestamps, sanitize requires (thanks to Parag AN) + +* Sun Mar 09 2008 Lubomir Kundrak - 0.3-1 +- Initial packaging attempt