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