]>
Commit | Line | Data |
---|---|---|
1 | # TODO - doc | |
2 | %include /usr/lib/rpm/macros.perl | |
3 | Summary: Shell scripts to manage DocBook documents | |
4 | Summary(pl.UTF-8): Skrypty do obróbki dokumentów DocBook | |
5 | Name: docbook-utils | |
6 | Version: 0.6.14 | |
7 | Release: 5 | |
8 | License: Eric Bischoff, Mark Galassi, Jochem Huhmann, Steve Cheng, and Frederik Fouvry; GPL 2.0 | |
9 | Group: Applications/Publishing/SGML | |
10 | Source0: ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 6b41b18c365c01f225bc417cf632d81c | |
12 | Source1: gdp-both.dsl | |
13 | Source2: db2html | |
14 | Patch1: %{name}-roff_includes_in_man_pages.patch | |
15 | Patch2: %{name}-catalog.patch | |
16 | Patch3: %{name}-debian.patch | |
17 | Patch4: %{name}-grep-2.7.patch | |
18 | URL: http://sources.redhat.com/docbook-tools/ | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: docbook-dtd31-sgml | |
22 | BuildRequires: docbook-style-dsssl | |
23 | BuildRequires: grep >= 2:2.7 | |
24 | BuildRequires: openjade >= 1.4-12.20020409 | |
25 | BuildRequires: perl-SGMLS | |
26 | BuildRequires: rpm-perlprov | |
27 | Requires: docbook-style-dsssl >= 1.76-6 | |
28 | Requires: jadetex >= 2.5 | |
29 | Requires: openjade | |
30 | Requires: perl-SGMLS | |
31 | Requires: which | |
32 | Obsoletes: docbook2X | |
33 | BuildArch: noarch | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | These little scripts allow to convert easily DocBook files to other | |
38 | formats (HTML, RTF, PostScript...), and to compare SGML files. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Te małe skrypty pozwalają w prosty sposób konwertować pliki DocBook do | |
42 | innych formatów (HTML, RTF, PostScript...) i porównywać pliki SGML. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | %patch1 -p1 | |
47 | %patch2 -p1 | |
48 | %patch3 -p1 | |
49 | %patch4 -p1 | |
50 | ||
51 | %build | |
52 | %{__aclocal} | |
53 | %{__autoconf} | |
54 | %{__automake} | |
55 | %configure | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | rm -f doc/HTML/Makefile* | |
65 | rm -f doc/HTML/*.in | |
66 | ||
67 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl | |
68 | sed 's/^ "USletter"/ "A4"/' %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils-a4.dsl | |
69 | ||
70 | for util in dvi html pdf ps rtf man texi tex ; do | |
71 | ln -sf docbook2${util} $RPM_BUILD_ROOT%{_bindir}/db2${util} | |
72 | echo '.so jw.1' >$RPM_BUILD_ROOT%{_mandir}/man1/db2${util}.1 | |
73 | done | |
74 | ||
75 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/db2html | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc NEWS README TODO doc/HTML | |
83 | %attr(755,root,root) %{_bindir}/jw | |
84 | %attr(755,root,root) %{_bindir}/docbook2* | |
85 | %attr(755,root,root) %{_bindir}/db2* | |
86 | %attr(755,root,root) %{_bindir}/sgmldiff | |
87 | %{_datadir}/sgml/docbook/utils-%{version} | |
88 | %{_mandir}/man1/* | |
89 | %{_mandir}/man7/* |