]>
Commit | Line | Data |
---|---|---|
1 | # TODO: package the vim syntax file. | |
2 | Summary: A tool for converting text files to various formats | |
3 | Summary(pl.UTF-8): Narzędzie do konwersji plików tekstowych do różnych formatów | |
4 | Name: asciidoc | |
5 | Version: 10.2.0 | |
6 | Release: 1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/System | |
9 | #Source0Download: https://github.com/asciidoc-py/asciidoc-py/releases | |
10 | Source0: https://github.com/asciidoc-py/asciidoc-py/archive/%{version}/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: dce6bfe35fd2fe4fc71e1ca8c8ead683 | |
12 | URL: https://asciidoc.org/ | |
13 | BuildRequires: autoconf >= 2.50 | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: sed >= 4.0 | |
16 | Requires: /usr/bin/pygmentize | |
17 | Requires: docbook-dtd45-xml | |
18 | Requires: python3 >= 1:3.5 | |
19 | Requires: python3-modules >= 1:3.5 | |
20 | Requires: xmlto | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | AsciiDoc is a text document format for writing short documents, | |
26 | articles, books and UNIX man pages. AsciiDoc files can be translated | |
27 | to HTML (with or without stylesheets), DocBook and LinuxDoc markup | |
28 | using the asciidoc(1) command. AsciiDoc is highly configurable: both | |
29 | the AsciiDoc source file syntax and the backend output markups (which | |
30 | can be almost any type of SGML/XML markup) can be customized and | |
31 | extended by the user. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | AsciiDoc jest formatem dokumentów tekstowych do pisania krótkich | |
35 | dokumentów, artykułów, książek i podręczników systemu UNIX. Pliki | |
36 | AsciiDoc mogą być tłumaczone do HTML-a (z lub bez CSS), DocBooka i | |
37 | LinuxDoca używając polecenia asciidoc(1). AsciiDoc jest wysoce | |
38 | konfigurowalny: zarówno składnia plików źródłowych, jak i znaczniki | |
39 | backendów (które mogą być dowolnego typu SGML/XML) mogą być | |
40 | dostosowywane i rozszerzane przez użytkownika. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{name}-py-%{version} | |
44 | ||
45 | %{__sed} -i -e '1s|/usr/bin/env python3|%{__python3}|' \ | |
46 | asciidoc/resources/filters/code/code-filter.py \ | |
47 | asciidoc/resources/filters/graphviz/graphviz2png.py \ | |
48 | asciidoc/resources/filters/latex/latex2img.py \ | |
49 | asciidoc/resources/filters/music/music2png.py \ | |
50 | asciidoc/resources/filters/unwraplatex.py | |
51 | ||
52 | %build | |
53 | # make man pages | |
54 | %{__autoconf} | |
55 | %configure | |
56 | %{__make} | |
57 | ||
58 | %py3_build | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %py3_install | |
64 | ||
65 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
66 | cp -p doc/a*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc BUGS.adoc CHANGELOG.adoc COPYRIGHT README.md doc/{asciidoc,asciidocapi,asciimath}.txt | |
74 | %attr(755,root,root) %{_bindir}/a2x | |
75 | %attr(755,root,root) %{_bindir}/asciidoc | |
76 | %dir %{py3_sitescriptdir}/asciidoc | |
77 | %{py3_sitescriptdir}/asciidoc/*.py | |
78 | %{py3_sitescriptdir}/asciidoc/__pycache__ | |
79 | %{py3_sitescriptdir}/asciidoc/blocks | |
80 | %dir %{py3_sitescriptdir}/asciidoc/resources | |
81 | %{py3_sitescriptdir}/asciidoc/resources/*.conf | |
82 | %{py3_sitescriptdir}/asciidoc/resources/dblatex | |
83 | %{py3_sitescriptdir}/asciidoc/resources/docbook-xsl | |
84 | %dir %{py3_sitescriptdir}/asciidoc/resources/filters | |
85 | %attr(755,root,root) %{py3_sitescriptdir}/asciidoc/resources/filters/unwraplatex.py | |
86 | %{py3_sitescriptdir}/asciidoc/resources/filters/__pycache__ | |
87 | %dir %{py3_sitescriptdir}/asciidoc/resources/filters/code | |
88 | %attr(755,root,root) %{py3_sitescriptdir}/asciidoc/resources/filters/code/code-filter.py | |
89 | %{py3_sitescriptdir}/asciidoc/resources/filters/code/__pycache__ | |
90 | %{py3_sitescriptdir}/asciidoc/resources/filters/code/*.conf | |
91 | %{py3_sitescriptdir}/asciidoc/resources/filters/code/*.txt | |
92 | %dir %{py3_sitescriptdir}/asciidoc/resources/filters/graphviz | |
93 | %attr(755,root,root) %{py3_sitescriptdir}/asciidoc/resources/filters/graphviz/graphviz2png.py | |
94 | %{py3_sitescriptdir}/asciidoc/resources/filters/graphviz/__pycache__ | |
95 | %{py3_sitescriptdir}/asciidoc/resources/filters/graphviz/*.conf | |
96 | %{py3_sitescriptdir}/asciidoc/resources/filters/graphviz/*.txt | |
97 | %dir %{py3_sitescriptdir}/asciidoc/resources/filters/latex | |
98 | %attr(755,root,root) %{py3_sitescriptdir}/asciidoc/resources/filters/latex/latex2img.py | |
99 | %{py3_sitescriptdir}/asciidoc/resources/filters/latex/__pycache__ | |
100 | %{py3_sitescriptdir}/asciidoc/resources/filters/latex/*.conf | |
101 | %dir %{py3_sitescriptdir}/asciidoc/resources/filters/music | |
102 | %attr(755,root,root) %{py3_sitescriptdir}/asciidoc/resources/filters/music/music2png.py | |
103 | %{py3_sitescriptdir}/asciidoc/resources/filters/music/__pycache__ | |
104 | %{py3_sitescriptdir}/asciidoc/resources/filters/music/*.conf | |
105 | %{py3_sitescriptdir}/asciidoc/resources/filters/music/*.txt | |
106 | %{py3_sitescriptdir}/asciidoc/resources/filters/source | |
107 | %{py3_sitescriptdir}/asciidoc/resources/icons | |
108 | %{py3_sitescriptdir}/asciidoc/resources/javascripts | |
109 | %{py3_sitescriptdir}/asciidoc/resources/stylesheets | |
110 | %{py3_sitescriptdir}/asciidoc/resources/themes | |
111 | %{py3_sitescriptdir}/asciidoc-%{version}-py*.egg-info | |
112 | %{_mandir}/man1/a2x.1* | |
113 | %{_mandir}/man1/asciidoc.1* |