]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
asciidoc: Fix build
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Dec 2022 17:23:38 +0000 (17:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Dec 2022 17:24:13 +0000 (17:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
asciidoc/asciidoc.nm

index 35c8fc434ebe4cd8782eaf4baa63786c0e03116c..a8220579d74b0eac1c1d6e028dc32d2be2d2301c 100644 (file)
@@ -5,11 +5,12 @@
 
 name       = asciidoc
 version    = 8.6.9
-release    = 1
+release    = 2
+thisapp    = %{name}-py-%{version}
 arch       = noarch
 
 groups     = Application/System
-url        = http://www.methods.co.nz/asciidoc/
+url        = https://asciidoc.org/
 license    = GPL+ and GPLv2+
 summary    = Text based document generation.
 
@@ -19,19 +20,27 @@ description
        to HTML and DocBook markups using the asciidoc(1) command.
 end
 
-source_dl  = http://sourceforge.net/projects/asciidoc/files/%{name}/%{version}/
+source_dl  = https://github.com/%{name}-py/asciidoc-py/archive/%{version}/
 
 build
        requires
-               python
+               autoconf
+               automake
+               docbook-dsssl
+               docbook-xsl
+               libxslt
+               python3-devel
+       end
+
+       prepare_cmds
+               autoreconf -vfi
        end
 
        make_install_targets += docs
 
        install_cmds
-               # Install python API.
-               install -Dpm 644 asciidocapi.py \
-                       %{BUILDROOT}/usr/lib/python${PYTHON_VERSION}/site-packages/asciidocapi.py
+               # Broken symlink to an example that is not being installed
+               rm -vf %{BUILDROOT}%{datadir}/doc/asciidoc/examples/website/asciidoc-graphviz-sample.txt
        end
 end