first commit
This commit is contained in:
commit
2facec2477
25
xmltoman-0.3-timestamps.patch
Normal file
25
xmltoman-0.3-timestamps.patch
Normal 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:
|
||||||
|
+ 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
|
||||||
BIN
xmltoman-0.4.tar.gz
Normal file
BIN
xmltoman-0.4.tar.gz
Normal file
Binary file not shown.
45
xmltoman.spec
Normal file
45
xmltoman.spec
Normal file
@ -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 <wangyiru1@huawei.com> - 0.4-19
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user