]>
Commit | Line | Data |
---|---|---|
a252eb23 | 1 | Summary: Docbook refentry to roff converter |
daa59fa0 | 2 | Summary(pl.UTF-8): Konwerter z docbook/refentry do roff |
a252eb23 MM |
3 | Name: db2man |
4 | Version: 0.1 | |
5 | Release: 1 | |
6 | License: unknown | |
7 | Group: Applications/Publishing/XML | |
0f5a9610 MM |
8 | URL: http://www.ocaml-programming.de/programming/download-caml.html |
9 | Source0: http://www.ocaml-programming.de/packages/%{name}-%{version}.tar.gz | |
74e9a290 | 10 | # Source0-md5: acb049bc7a4f436ba9a797dc2fc532e0 |
a252eb23 MM |
11 | BuildRequires: ocaml-tony-devel |
12 | BuildRequires: ocaml-findlib | |
13 | BuildRequires: ocaml >= 3.04-7 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | This tool converts a "docbook" document that is represented as XML | |
18 | file to manual pages. All "refentry" sections are transformed to | |
19 | "troff"-formatted documents. Currently, only a subset of the "docbook" | |
20 | tags that are allowed in "refentry" are supported. Unknown tags are | |
21 | simply ignored. | |
22 | ||
e848697d JR |
23 | %description -l pl.UTF-8 |
24 | Narzędzie to konwertuje dokument w formacie XML-docbook do stron | |
25 | podręcznika systemowego. Wszystkie sekcje "refentry" są transformowane | |
a252eb23 | 26 | w formatowane troffem dokumenty. Chwilowo, dozwolony jest tylko |
e848697d | 27 | podzbiór tagów docbooka, nieznane tagi są po prostu ignorowane. |
a252eb23 MM |
28 | |
29 | %prep | |
30 | %setup -q -n %{name} | |
31 | ||
32 | %build | |
33 | ocamlfind ocamlopt -o db2man -package tony -linkpkg db2man.ml | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | install -d $RPM_BUILD_ROOT%{_bindir} | |
39 | install db2man $RPM_BUILD_ROOT%{_bindir} | |
40 | ||
a252eb23 MM |
41 | %clean |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
91134d0a | 46 | %doc README |
a252eb23 | 47 | %attr(755,root,root) %{_bindir}/* |