]> git.pld-linux.org Git - packages/xmltoman.git/commitdiff
- initial auto/th/xmltoman-0.4-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 26 May 2016 23:55:25 +0000 (01:55 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 26 May 2016 23:55:25 +0000 (01:55 +0200)
xmltoman-0.3-timestamps.patch [new file with mode: 0644]
xmltoman.spec [new file with mode: 0644]

diff --git a/xmltoman-0.3-timestamps.patch b/xmltoman-0.3-timestamps.patch
new file mode 100644 (file)
index 0000000..50c325c
--- /dev/null
@@ -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.spec b/xmltoman.spec
new file mode 100644 (file)
index 0000000..5c79d04
--- /dev/null
@@ -0,0 +1,47 @@
+Summary:       Scripts for converting XML to roff or HTML
+Name:          xmltoman
+Version:       0.4
+Release:       1
+License:       GPL v2+
+Group:         Applications/Publishing
+URL:           http://sourceforge.net/projects/xmltoman/
+Source0:       http://downloads.sourceforge.net/xmltoman/%{name}-%{version}.tar.gz
+# Source0-md5: 99be944b9fce40b3fe397049bf14a097
+Patch0:                %{name}-0.3-timestamps.patch
+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}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}
+
+cp -p *.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/xmltoman
+%attr(755,root,root) %{_bindir}/xmlmantohtml
+%{_datadir}/xmltoman
+%{_mandir}/man1/*.1*
This page took 0.09112 seconds and 4 git commands to generate.