]> git.pld-linux.org Git - packages/asciidoc.git/blob - asciidoc.spec
- libxslt-progs is already required by xmlto
[packages/asciidoc.git] / asciidoc.spec
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
3 Name:           asciidoc
4 Version:        7.0.0
5 Release:        2
6 License:        GPL v2
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 Requires:       python-modules >= 2.3
13 Requires:       xmlto
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir     /etc/asciidoc
18
19 %description
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
26 extended by the user.
27
28 %description -l pl
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.
36
37 %prep
38 %setup -q
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/asciidoc/{filters,stylesheets},%{_mandir}/man1,%{_sysconfdir}}
43 install -d $RPM_BUILD_ROOT%{_datadir}/asciidoc/images/{callouts,jimmac,plain}
44
45 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}
46 install asciidoc.py $RPM_BUILD_ROOT%{_datadir}/%{name}
47 find filters -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
48 find images -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
49 find stylesheets -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
50 install doc/asciidoc.1 $RPM_BUILD_ROOT%{_mandir}/man1
51 ln -sf %{_datadir}/asciidoc/asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc
52 ln -sf %{_datadir}/%{name}/stylesheets $RPM_BUILD_ROOT%{_sysconfdir}/stylesheets
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc BUGS README
60 %attr(755,root,root) %{_bindir}/%{name}
61 %dir %{_sysconfdir}
62 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
63 %dir %{_datadir}/%{name}
64 %attr(755,root,root) %{_datadir}/%{name}/asciidoc.py
65 %{_datadir}/%{name}/filters
66 %{_datadir}/%{name}/images
67 %{_datadir}/%{name}/stylesheets
68 %{_mandir}/man1/*
This page took 0.048542 seconds and 3 git commands to generate.