Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37531890
en ru br
ALT Linux repos
S:9.1.0-alt2
5.0: 8.4.4-alt1
4.1: 7.1.2-alt2.1
4.0: 7.1.2-alt2
3.0: 7.0.1-alt1

Group :: Text tools
RPM: asciidoc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: asciidoc
Version: 8.4.4
Release: alt1

Summary: asciidoc converts an AsciiDoc text file to DocBook, HTML or LinuxDoc
Group: Text tools
License: GPLv2+
Url: http://www.methods.co.nz/asciidoc/
Packager: Artem Zolochevskiy <azol at altlinux.ru>
BuildArch: noarch

# http://www.methods.co.nz/asciidoc/%name-%version.tar.gz

Source: %name-%version.tar

Patch: %name-%version-%release.patch

BuildRequires(pre): rpm-build-vim
%define _unpackaged_files_terminate_build 1
%define docdir %_docdir/%name-%version

%description
The asciidoc(1) command translates the AsciiDoc text file to the backend
formatted file.

AsciiDoc is a text document format for writing short documents, articles,
books and UNIX man pages.


%package a2x
Summary: a2x converts AsciiDoc text file to PDF, XHTML, HTML Help, manpage or plain text
Group: Text tools
Requires: %name = %version-%release
Requires: lynx xsltproc docbook-style-xsl dblatex

%description a2x
A DocBook toolchain wrapper script that translates an AsciiDoc text
file to PDF, XHTML (single page or chunked), man page, HTML Help
or plain text formats. PDF, XHTML, man page and HTML Help formats are
generated using the asciidoc(1)/xsltproc(1)/DocBook XSL Stylesheets
toolchain. Plain text is produced by passing asciidoc(1) generated HTML
through lynx(1). The htmlhelp format option generates .hhp, .hhc and
.html files suitable for compilation to an HTML Help .chm file.


%package doc
Summary: AsciiDoc documentation and examples
Group: Development/Documentation

%description doc
The asciidoc(1) command translates the AsciiDoc text file to the backend
formatted file.

AsciiDoc is a text document format for writing short documents, articles,
books and UNIX man pages.

This package contains AsciiDoc documentation and examples.


%package -n vim-plugin-asciidoc-syntax
Summary: Vim syntax highlighting for AsciiDoc files
Group: Editors
PreReq: vim-common

%description -n vim-plugin-asciidoc-syntax
The asciidoc(1) command translates the AsciiDoc text file to the backend
formatted file.

AsciiDoc is a text document format for writing short documents, articles,
books and UNIX man pages.

This package contains AsciiDoc syntax highlighting support for Vim.


%prep
%setup
%patch -p1

%build
%configure docdir=%docdir

%install
%make_install DESTDIR=%buildroot install docs

# install vim plugin

install -d %buildroot{%vim_ftdetect_dir,%vim_syntax_dir}
install -p -m644 vim/ftdetect/asciidoc_filetype.vim %buildroot%vim_ftdetect_dir/
install -p -m644 vim/syntax/asciidoc.vim %buildroot%vim_syntax_dir/

# install extra docs for asciidoc package

install -d %buildroot%docdir/
install -pD -m644 COPYRIGHT  %buildroot%docdir/

%files
%_bindir/%name
%_bindir/%name.py

%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/*.conf
%config(noreplace) %_sysconfdir/%name/dblatex/
%config(noreplace) %_sysconfdir/%name/filters/
%_sysconfdir/%name/images
%config(noreplace) %_sysconfdir/%name/javascripts/
%config(noreplace) %_sysconfdir/%name/stylesheets/

%_man1dir/%name.*
%dir %docdir
%doc %docdir/BUGS
%doc %docdir/CHANGELOG
%doc %docdir/COPYRIGHT
%doc %docdir/README

%files a2x
%_bindir/a2x
%config(noreplace) %_sysconfdir/%name/docbook-xsl/
%_man1dir/a2x.*

%files doc
%doc %docdir
%exclude %docdir/BUGS
%exclude %docdir/CHANGELOG
%exclude %docdir/COPYRIGHT
%exclude %docdir/README

%files -n vim-plugin-asciidoc-syntax
%vim_ftdetect_dir/*.vim
%vim_syntax_dir/*.vim

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin