]>
Commit | Line | Data |
---|---|---|
742e5897 | 1 | # TODO: package the vim syntax file. |
86d6172c | 2 | Summary: A tool for converting text files to various formats |
465ba125 | 3 | Summary(pl.UTF-8): Narzędzie do konwersji plików tekstowych do różnych formatów |
86d6172c | 4 | Name: asciidoc |
742e5897 | 5 | Version: 8.2.5 |
6 | Release: 1 | |
86d6172c | 7 | License: GPL v2 |
8 | Group: Applications/System | |
742e5897 | 9 | Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 6810883dc0705aa6f9a4d621cf3e569c | |
86d6172c | 11 | URL: http://www.methods.co.nz/asciidoc/index.html |
d0e0c459 | 12 | BuildRequires: sed >= 4.0 |
86d6172c | 13 | Requires: python >= 2.3 |
5809aeb6 | 14 | Requires: python-modules >= 2.3 |
29d5dcd1 | 15 | Requires: xmlto |
86d6172c | 16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
742e5897 | 19 | %define sysconfdir /etc/asciidoc |
86d6172c | 20 | |
21 | %description | |
fd5d72cd JB |
22 | AsciiDoc is a text document format for writing short documents, |
23 | articles, books and UNIX man pages. AsciiDoc files can be translated | |
24 | to HTML (with or without stylesheets), DocBook and LinuxDoc markup | |
25 | using the asciidoc(1) command. AsciiDoc is highly configurable: both | |
26 | the AsciiDoc source file syntax and the backend output markups (which | |
27 | can be almost any type of SGML/XML markup) can be customized and | |
28 | extended by the user. | |
86d6172c | 29 | |
3dc03438 JR |
30 | %description -l pl.UTF-8 |
31 | AsciiDoc jest formatem dokumentów tekstowych do pisania krótkich | |
32 | dokumentów, artykułów, książek i podręczników systemu UNIX. Pliki | |
33 | AsciiDoc mogą być tłumaczone do HTML-a (z lub bez CSS), DocBooka i | |
34 | LinuxDoca używając polecenia asciidoc(1). AsciiDoc jest wysoce | |
35 | konfigurowalny: zarówno składnia plików źródłowych, jak i znaczniki | |
36 | backendów (które mogą być dowolnego typu SGML/XML) mogą być | |
37 | dostosowywane i rozszerzane przez użytkownika. | |
86d6172c | 38 | |
39 | %prep | |
40 | %setup -q | |
41 | ||
d0e0c459 | 42 | %build |
a8206f12 | 43 | sed -i -e '1s|^#!/usr/bin/env python|#!/usr/bin/python|' asciidoc.py |
d0e0c459 | 44 | |
86d6172c | 45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
742e5897 | 47 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{sysconfdir}} |
48 | install -d $RPM_BUILD_ROOT%{sysconfdir}/{docbook-xsl,javascripts,filters,stylesheets} | |
49 | install -d $RPM_BUILD_ROOT%{sysconfdir}/images/icons/callouts | |
86d6172c | 50 | |
742e5897 | 51 | install asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc |
52 | install a2x $RPM_BUILD_ROOT%{_bindir}/a2x | |
53 | install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
86d6172c | 54 | |
742e5897 | 55 | install *.conf $RPM_BUILD_ROOT%{sysconfdir} |
56 | install filters/*.py $RPM_BUILD_ROOT%{sysconfdir}/filters | |
57 | install filters/*.conf $RPM_BUILD_ROOT%{sysconfdir}/filters | |
58 | install docbook-xsl/*.xsl $RPM_BUILD_ROOT%{sysconfdir}/docbook-xsl | |
59 | install stylesheets/*.css $RPM_BUILD_ROOT%{sysconfdir}/stylesheets | |
60 | install javascripts/*.js $RPM_BUILD_ROOT%{sysconfdir}/javascripts | |
61 | install images/icons/callouts/* $RPM_BUILD_ROOT%{sysconfdir}/images/icons/callouts | |
62 | install images/icons/README images/icons/*.png $RPM_BUILD_ROOT%{sysconfdir}/images/icons | |
63 | ||
64 | # if [ -d $VIM_RPM_BUILD_ROOT%{sysconfdir} ]; then | |
65 | # install -d $VIM_RPM_BUILD_ROOT%{sysconfdir}/syntax | |
66 | # install -m 644 vim/syntax/asciidoc.vim \ | |
67 | # $VIM_RPM_BUILD_ROOT%{sysconfdir}/syntax/asciidoc.vim | |
68 | # install -d $VIM_RPM_BUILD_ROOT%{sysconfdir}/ftdetect | |
69 | # install -m 644 vim/ftdetect/asciidoc_filetype.vim \ | |
70 | # $VIM_RPM_BUILD_ROOT%{sysconfdir}/ftdetect/asciidoc_filetype.vim | |
71 | # fi | |
ebdc84fb AM |
72 | rm -rf examples/website |
73 | ||
86d6172c | 74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
c42e3e04 | 79 | %doc BUGS CHANGELOG README doc/asciidoc.html examples |
742e5897 | 80 | %attr(755,root,root) %{_bindir}/* |
81 | %dir %{sysconfdir} | |
82 | %config(noreplace) %verify(not md5 mtime size) %{sysconfdir}/*.conf | |
86d6172c | 83 | %{_mandir}/man1/* |