############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = asciidoc version = 10.2.0 release = 1 thisapp = %{name}-py-%{version} arch = noarch groups = Application/System url = https://asciidoc.org/ license = GPL+ and GPLv2+ summary = Text based document generation. description AsciiDoc is a text document format for writing short documents, articles, books and UNIX man pages. AsciiDoc files can be translated to HTML and DocBook markups using the asciidoc(1) command. end source_dl = https://github.com/%{name}-py/asciidoc-py/archive/%{version}/ build requires autoconf docbook-dsssl docbook-xsl libxslt python3-devel python3-setuptools end prepare_cmds autoconf end build_cmds # Build asciidoc %{python3} setup.py build end install # Install asciidoc %{python3} setup.py install \ --root=%{BUILDROOT} # Create directory layout for manpages mkdir -pv %{BUILDROOT}%{mandir}/man1 # Install manpages install -Dm0644 -t "%{BUILDROOT}%{mandir}/man1/" doc/*.1 end end packages package %{name} requires docbook-xsl libxslt end end end