initial import

This commit is contained in:
Lubomir Rintel 2008-03-12 17:51:49 +00:00
parent f69f04d7af
commit 60dea2446b
4 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1 @@
xmltoman-0.3.tar.gz

View File

@ -0,0 +1 @@
30272d184b99f5920994bda9abe4baf7 xmltoman-0.3.tar.gz

View File

@ -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

54
xmltoman.spec Normal file
View File

@ -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 <lkundrak@redhat.com> - 0.3-2
- Preserve timestamps, sanitize requires (thanks to Parag AN)
* Sun Mar 09 2008 Lubomir Kundrak <lkundrak@redhat.com> - 0.3-1
- Initial packaging attempt