]> git.pld-linux.org Git - packages/xmlto.git/blame - xmlto.spec
- rel 3
[packages/xmlto.git] / xmlto.spec
CommitLineData
d4a7308b 1Summary: A tool for converting XML files to various formats
81fca885 2Summary(pl.UTF-8): Narzędzie do konwersji plików XML do różnych formatów
6690b348 3Name: xmlto
6fc0f7f5 4Version: 0.0.22
f81c9399 5Release: 3
e08e3df8 6License: GPL v2
6690b348 7Group: Applications/System
eb18f6ac 8Source0: https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
6fc0f7f5 9# Source0-md5: 12f297dc7051e4fef08339980f88a1dd
eb18f6ac 10URL: http://cyberelk.net/tim/software/xmlto/
6690b348 11BuildRequires: autoconf
e08e3df8 12BuildRequires: automake >= 1.6
6690b348
MK
13BuildRequires: docbook-dtd42-xml
14BuildRequires: docbook-style-xsl >= 1.56.0
d4a7308b
JB
15BuildRequires: libxslt-progs
16BuildRequires: util-linux
6690b348
MK
17Requires: docbook-dtd42-xml
18Requires: docbook-style-xsl >= 1.56.0
9d4545e8 19Requires: libxslt-progs
5054a5d8 20Requires: mktemp >= 1.5-19
4c07a39d 21Requires: xmltex
5c3c45f6 22# for getopt
23Requires: util-linux
6bfe9b02 24Obsoletes: refentry2man
6690b348
MK
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This is a package for converting XML files to various formats using
29XSL stylesheets.
30
f59b72bb
JR
31%description -l pl.UTF-8
32Jest to pakiet do konwersji plików w formacie XML do innych formatów
33przy użyciu styli XSL.
6690b348
MK
34
35%prep
36%setup -q
37
38%build
39%{__aclocal}
40%{__autoconf}
41%{__automake}
42%configure
43%{__make}
44
5e758c13 45cat > refentry2man <<'EOF'
6bfe9b02 46#!/bin/sh
d37e5944
ER
47XMLTO_TMPFILE=$(mktemp -t xmltoXXXXXX)
48XMLTO_TMPDIR=$(mktemp -d -t xmltodirXXXXXX)
5e758c13
ER
49cat - > $XMLTO_TMPFILE
50xmlto -o $XMLTO_TMPDIR man $XMLTO_TMPFILE >/dev/null
51cat $XMLTO_TMPDIR/*
52rm -f $XMLTO_TMPFILE
53rm -rf $XMLTO_TMPDIR
6bfe9b02 54EOF
55
6690b348 56%install
5054a5d8 57rm -rf $RPM_BUILD_ROOT
6690b348
MK
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
6bfe9b02 62install refentry2man $RPM_BUILD_ROOT%{_bindir}
63
6690b348
MK
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%doc AUTHORS ChangeLog NEWS README
70%attr(755,root,root) %{_bindir}/*
71%{_datadir}/%{name}
72%{_mandir}/man1/*
This page took 0.086688 seconds and 4 git commands to generate.