# # spec file for package asciidoc (Version 8.2.5) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: asciidoc Summary: Text-Based Document Generation Version: 8.2.5 Release: 10 License: GPL v2 or later Group: Development/Tools/Doc Generators Requires: python >= 2.3, fop AutoReqProv: on Url: http://www.methods.co.nz/asciidoc/ Source0: %{name}-%{version}.tar.bz2 Patch: asciidoc-a2x-fop-fix.diff Patch1: asciidoc-vim-fix.diff Patch2: asciidoc-fop-extensions-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %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 command. Authors: -------- Stuart Rackham %package examples Summary: Examples and Documents for asciidoc Group: Development/Tools/Doc Generators License: GPL v2 or later %description examples This package contains examples and documetns of asciidoc. Authors: -------- Stuart Rackham %prep %setup -q %patch %patch1 %patch2 -p1 %build %install mkdir -p $RPM_BUILD_ROOT/etc/asciidoc/filters mkdir -p $RPM_BUILD_ROOT%{_datadir}/asciidoc mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -m 0644 *.conf $RPM_BUILD_ROOT/etc/asciidoc install -m 0644 filters/*.conf $RPM_BUILD_ROOT/etc/asciidoc/filters/ install -m 0755 filters/*.py $RPM_BUILD_ROOT/etc/asciidoc/filters/ install -m 0755 -D asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc install -m 0755 -D a2x $RPM_BUILD_ROOT%{_bindir}/a2x install -m 0644 doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ for i in images stylesheets javascripts docbook-xsl; do cp -av $i $RPM_BUILD_ROOT%{_datadir}/asciidoc/ ln -s ../../%{_datadir}/asciidoc/$i $RPM_BUILD_ROOT/etc/asciidoc done # install vim files mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/site/{syntax,ftdetect} install -m 0644 vim/syntax/* $RPM_BUILD_ROOT%{_datadir}/vim/site/syntax install -m 0644 vim/ftdetect/* $RPM_BUILD_ROOT%{_datadir}/vim/site/ftdetect %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /etc/asciidoc %{_datadir}/asciidoc %{_bindir}/* %{_datadir}/vim %doc %{_mandir}/man1/* %doc README BUGS CHANGELOG COPYRIGHT %files examples %defattr(-,root,root) %doc doc examples %changelog * Wed Jan 30 2008 tiwai@suse.de - fix fop.extensions in a2x pdf creation (bnc#353527) * Fri Jan 25 2008 tiwai@suse.de - fix a build error about vim directory * Thu Jan 24 2008 tiwai@suse.de - install vim files (#353528) * Mon Jan 14 2008 tiwai@suse.de - add requirement to fop, fix the fop command name in a2x (#353527) * Tue Jan 08 2008 tiwai@suse.de - updated to version 8.2.5: * fixes couple of bugs in 8.2.4, no new features * Thu Nov 15 2007 tiwai@suse.de - updated to version 8.2.2-8.2.4: * improvements on lang attribute handling * fixed spurious warning in Python 2.6 * auto-generated section IDs * changed format of {localdate} attribute to ISO 8601 (%%Y-%%m-%%d). * added abc2ly —beams=None option * XHTML level 2 section headings are now styled with an underlining border * XHTML links to AsciiDoc title elements are now implemented with title ID attributes * multi-word first, middle and last names can be entered in the header author line * the nested inline macros restriction has now been lifted * help topic names can be shortened * added {two_colons} and {two_semicolons} attributes * LaTeXMathML capability has been added * added an —attribute=ATTRIBUTE option to a2x(1) * image block and inline macros prepend optional {imagesdir} attribute to image link targets - split doc and examples to separate sub-package to make rpmlint happy * Tue May 22 2007 tiwai@suse.de - updated to version 8.2.1: * VIM syntax highlighter * Labeled list definitions have been tightened * Added toclevel attribute (1..4) * Added a listindex attribute * The single line titles syntax now accepts trailing suffixes * An end of line backslash performs line continuation for horizontal labeled list items. * The Revision line now accommodates Subversion $Id markers * a2x(1) option —skip-asciidoc * Defaults to appropriate format if -format isn't given. * Mon Apr 02 2007 tiwai@suse.de - updated to version 8.1.0: * AsciiDoc generated XHTML documents now display as table of contents if the toc attribute is defined. * A music filter is included. * Conditionally redefined subscript and superscripting so they use the old replacements mechanism when asciidoc7compatible is defined rather than the asciidoc 8 default unconstrained quoting. * Added {verbose} intrinsic attribute. * Added {outdir} intrinsic attribute. * Renamed {docdir} intrinsic attribute to unambiguous`{indir} * If asciidoc(1) outputs to stdout then instrinsic attribute {docname} is extracted from the input file name. * Thu Nov 23 2006 tiwai@suse.de - Add missing a2x and other config files (#223299). * Thu Oct 12 2006 tiwai@suse.de - updated to version 8.0.0: * An experimental LaTeX backend * Unconstrained quoting allows quoting to appear anywhere in inline text * a2x toolchain wrapper script can generate Open Document text files * More on CHANGELOG * Mon May 15 2006 tiwai@suse.de - updated to version 7.1.2. * a2x toolchain wrapper * ASCIIMathML support * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Jan 11 2006 tiwai@suse.de - updated to version 7.0.4. * Fri Jul 01 2005 tiwai@suse.de - fixed norootforbuild. * Fri Jun 24 2005 tiwai@suse.de - initial version: 7.0.1.