]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - asciidoc/asciidoc.nm
libuecc: New package
[people/ms/ipfire-3.x.git] / asciidoc / asciidoc.nm
CommitLineData
b1656fcb
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = asciidoc
7version = 8.4.5
8release = 1
9arch = noarch
10
11groups = Application/System
12url = http://www.methods.co.nz/asciidoc/
13license = GPL+ and GPLv2+
14summary = Text based document generation.
15
16description
17 AsciiDoc is a text document format for writing short documents,
18 articles, books and UNIX man pages. AsciiDoc files can be translated
19 to HTML and DocBook markups using the asciidoc(1) command.
20end
21
22source_dl = http://sourceforge.net/projects/asciidoc/files/%{name}/%{version}/
23
24build
25 requires
26 python
27 end
28
29 prepare_cmds
30 # Remove forbidden "env" interpreter from script.
31 sed -e "s@#!.*@#!/bin/bash@g" -i a2x
32 end
33
34 install_cmds
35 # Determite python version.
36 PYTHON_VERSION=$(python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
37
38 # Create file layout.
39 mkdir -pv %{BUILDROOT}/etc/asciidoc
40 mkdir -pv %{BUILDROOT}/usr/lib/python${PYTHON_VERSION}/site-packages
41
42 # Move config data to /etc and link it to correct place,
43 # so asciidoc will work.
44 for dir in dblatex docbook-xsl images javascripts stylesheets ; do
45 mv %{BUILDROOT}/etc/asciidoc/$dir \
46 %{BUILDROOT}/usr/share/asciidoc
47 ln -svf ../../usr/share/asciidoc/$dir %{BUILDROOT}/etc/asciidoc/
48 done
49
50 # Install python API.
51 install -Dpm 644 asciidocapi.py %{BUILDROOT}/usr/lib/python${PYTHON_VERSION}/site-packages/asciidocapi.py
52 end
53end
54
55packages
56 package %{name}
57 requires
58 docbook-xsl
59 end
60 end
61end