1 Summary: A tool for converting text files to various formats
2 Summary(pl): Narzêdzie do konwersji plików tekstowych do ró¿nych formatów
7 Group: Applications/System
8 Source0: http://www.methods.co.nz/asciidoc/%{name}-%{version}.tar.gz
9 # Source0-md5: fdce1bb38f9ec8b333ced4f22f5e95a0
10 URL: http://www.methods.co.nz/asciidoc/index.html
11 Requires: python >= 2.3
12 %pyrequires_eq python-modules
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _sysconfdir /etc/asciidoc
19 AsciiDoc is a text document format for writing short documents,
20 articles, books and UNIX man pages. AsciiDoc files can be translated
21 to HTML (with or without stylesheets), DocBook and LinuxDoc markup
22 using the asciidoc(1) command. AsciiDoc is highly configurable: both
23 the AsciiDoc source file syntax and the backend output markups (which
24 can be almost any type of SGML/XML markup) can be customized and
28 AsciiDoc jest formatem dokumentów tekstowych do pisania krótkich
29 dokumentów, artyku³ów, ksi±¿ek i podrêczników systemu UNIX. Pliki
30 AsciiDoc mog± byæ t³umaczone do HTML-a (z lub bez CSS), DocBooka i
31 LinuxDoca u¿ywaj±c polecenia asciidoc(1). AsciiDoc jest wysoce
32 konfigurowalny: zarówno sk³adnia plików ¼ród³owych, jak i znaczniki
33 backendów (które mog± byæ dowolnego typu SGML/XML) mog± byæ
34 dostosowywane i rozszerzane przez u¿ytkownika.
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/asciidoc/{filters,stylesheets},%{_mandir}/man1,%{_sysconfdir}}
42 install -d $RPM_BUILD_ROOT%{_datadir}/asciidoc/images/{callouts,jimmac,plain}
44 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}
45 install asciidoc.py $RPM_BUILD_ROOT%{_datadir}/%{name}
46 find filters -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
47 find images -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
48 install doc/asciidoc.1 $RPM_BUILD_ROOT%{_mandir}/man1
49 ln -sf %{_datadir}/asciidoc/asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/%{name}
59 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
60 %dir %{_datadir}/%{name}
61 %attr(755,root,root) %{_datadir}/%{name}/asciidoc.py
62 %{_datadir}/%{name}/filters
63 %{_datadir}/%{name}/images
64 %{_datadir}/%{name}/stylesheets