]> git.pld-linux.org Git - packages/asciidoc.git/blob - asciidoc.spec
- initial PLD release
[packages/asciidoc.git] / asciidoc.spec
1 #
2 Summary:        A tool for converting text files to various formats
3 Summary(pl):    Narzêdzie do konwersji plików tekstowych do ró¿nych formatów
4 Name:           asciidoc
5 Version:        6.0.3
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        http://www.methods.co.nz/asciidoc/%{name}-%{version}.tar.gz
10 # Source0-md5:  7b8d918f68a24c1d13be6999248788f8
11 URL:            http://www.methods.co.nz/asciidoc/index.html
12 Requires:       python >= 2.3
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _sysconfdir     /etc/asciidoc
17
18 %description
19 AsciiDoc is a text document format for writing short documents, articles,
20 books and UNIX man pages. AsciiDoc files can be translated to HTML (with
21 or without stylesheets), DocBook and LinuxDoc markup using the asciidoc(1)
22 command. AsciiDoc is highly configurable: both the AsciiDoc source file
23 syntax and the backend output markups (which can be almost any type
24 of SGML/XML markup) can be customized and extended by the user.
25
26 %description -l pl
27 AsciiDoc jest formatem dokumentów tekstowych do pisania krótkich dokumentów,
28 artyku³ów, ksi±¿ek i podrêczników systemu UNIX. Pliki AsciiDoc mog± byæ
29 t³umaczone do HTML-u (z lub bez CSS), DocBook-a i LinuxDoc-a u¿ywaj±c
30 polecenia asciidoc(1). AsciiDoc jest wysoce konfigurowalny: zarówno sk³adnia
31 plików ¼ród³owych, jak i znaczniki backendów (które mog± byæ dowolnego typu
32 SGML/XML) mog± byæ dostosowywane i rozszerzane przez u¿ytkownika.
33
34 %prep
35 %setup -q
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/asciidoc/{filters,stylesheets},%{_mandir}/man1,%{_sysconfdir}}
40 install -d $RPM_BUILD_ROOT%{_datadir}/asciidoc/images/{callouts,jimmac,plain}
41
42 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}
43 install asciidoc.py $RPM_BUILD_ROOT%{_datadir}/%{name}
44 find filters -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
45 find images -type f -exec install {} $RPM_BUILD_ROOT%{_datadir}/%{name}/{} \;;
46 install doc/asciidoc.1 $RPM_BUILD_ROOT%{_mandir}/man1
47 ln -sf %{_datadir}/asciidoc/asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc BUGS README
55 %dir %{_sysconfdir}
56 %config %{_sysconfdir}/*
57 %{_datadir}/%{name}
58 %attr(755,root,root) %{_datadir}/%{name}/asciidoc.py
59 %{_bindir}/%{name}
60 %{_mandir}/man1/*
This page took 0.07377 seconds and 3 git commands to generate.