1 Summary: A tool for converting text files to various formats
2 Summary(pl.UTF-8): 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: 554af81fb0e578a77ede4359ef79db69
10 URL: http://www.methods.co.nz/asciidoc/index.html
11 Requires: python >= 2.3
12 Requires: python-modules >= 2.3
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _sysconfdir /etc/asciidoc
20 AsciiDoc is a text document format for writing short documents,
21 articles, books and UNIX man pages. AsciiDoc files can be translated
22 to HTML (with or without stylesheets), DocBook and LinuxDoc markup
23 using the asciidoc(1) command. AsciiDoc is highly configurable: both
24 the AsciiDoc source file syntax and the backend output markups (which
25 can be almost any type of SGML/XML markup) can be customized and
28 %description -l pl.UTF-8
29 AsciiDoc jest formatem dokumentów tekstowych do pisania krótkich
30 dokumentów, artykułów, książek i podręczników systemu UNIX. Pliki
31 AsciiDoc mogą być tłumaczone do HTML-a (z lub bez CSS), DocBooka i
32 LinuxDoca używając polecenia asciidoc(1). AsciiDoc jest wysoce
33 konfigurowalny: zarówno składnia plików źródłowych, jak i znaczniki
34 backendów (które mogą być dowolnego typu SGML/XML) mogą być
35 dostosowywane i rozszerzane przez użytkownika.
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}}
43 install -d $RPM_BUILD_ROOT%{_datadir}/asciidoc/{docbook-xsl,javascripts,filters,stylesheets}
44 install -d $RPM_BUILD_ROOT%{_datadir}/asciidoc/images/icons/callouts
46 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}
47 install asciidoc.py $RPM_BUILD_ROOT%{_datadir}/%{name}
48 for i in docbook-xsl filters images javascripts stylesheets
50 find $i -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
52 install doc/asciidoc.1 $RPM_BUILD_ROOT%{_mandir}/man1
53 ln -sf %{_datadir}/asciidoc/asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc
54 ln -sf %{_datadir}/%{name}/stylesheets $RPM_BUILD_ROOT%{_sysconfdir}/stylesheets
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc BUGS CHANGELOG README doc/asciidoc.html examples
62 %attr(755,root,root) %{_bindir}/%{name}
64 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
65 %dir %{_datadir}/%{name}
66 %attr(755,root,root) %{_datadir}/%{name}/asciidoc.py
67 %{_datadir}/%{name}/docbook-xsl
68 %{_datadir}/%{name}/filters
69 %{_datadir}/%{name}/images
70 %{_datadir}/%{name}/javascripts
71 %{_datadir}/%{name}/stylesheets