asciidoc/asciidoc.spec

251 lines
9.0 KiB
RPMSpec

#
# spec file for package asciidoc (Version 8.3.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: asciidoc
Summary: Text-Based Document Generation
Version: 8.3.3
Release: 3
License: GPL v2 or later
Group: Development/Tools/Doc Generators
Requires: python >= 2.3
Requires: docbook-xsl-stylesheets
Recommends: dblatex
# a2x needs /usr/bin/xsltproc
Recommends: libxslt
AutoReqProv: on
Url: http://www.methods.co.nz/asciidoc/
Source0: %{name}-%{version}.tar.bz2
Patch0: asciidoc-vim-fix.diff
Patch1: asciidoc-8.2.6-no-safe-check.diff
Patch2: asciidoc-a2x-fop-fix.diff
Patch3: asciidoc-ignore-deprecation.diff
Patch4: a2x-missing-package-msg.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 <srackham@methods.co.nz>
%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 <srackham@methods.co.nz>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4
%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 dblatex; 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)
%config /etc/asciidoc
%{_datadir}/asciidoc
%{_bindir}/*
%{_datadir}/vim
%doc %{_mandir}/man1/*
%doc README BUGS CHANGELOG COPYRIGHT
%files examples
%defattr(-,root,root)
%doc doc examples
%changelog
* Fri Jan 30 2009 tiwai@suse.de
- Additional error message about missing package in a2x
* Wed Jan 21 2009 tiwai@suse.de
- Don't require fop and libxslt but use recommends as asciidoc
itself can work without these packages. They are needed only
for a2x for some file types like PDF.
This may break the build of some packages; in such a case, just
add either fop or dblatex to buildrequires.
* Thu Jan 08 2009 bbrunner@suse.de
- updated to version 8.3.3
* The broken and confusing numeration and numeration2 numbered list
attributes have been dropped, use the style attribute instead.
* SidebarBlock element can be rendered with an abstract style.
* (see CHANGELOG)
* Sun Nov 02 2008 bwalle@suse.de
- Call Python with -Wignore::DeprecationWarning to hide deprecation
warnings from the user.
* Mon Jul 28 2008 tiwai@suse.de
- add requirement of xsltproc binary (bnc#410692)
* Tue Jul 22 2008 bwalle@suse.de
- Suppression of manpage references list now works again.
(http://hg.sharesource.org/asciidoc/rev/eb3a27e2a482)
* Tue Jul 08 2008 bwalle@suse.de
- install dblatex files
* Fri Jul 04 2008 bwalle@suse.de
- updated to version 8.2.7
* Added dvi, ps and tex output format options to a2x(1).
* Added —dblatex option to a2x(1) so dblatex(1) can be used to
generate PDFs.
* Added custom dblatex(1) configuration files (in distribution
./dblatex directory) which are used by a2x(1).
* dblatex(1) is now used to generate the distributed PDF version
of the AsciiDoc User Guide.
* If you don't need a customized the link caption you can enter
the http, https, ftp, file URLs and email addresses without
any special macro syntax.
* Highlighted source code paragraphs have been implemented.
* The source highlighter and music filter syntax has changed
* QuoteBlocks now have a verse style
* It is no up to the DocBook processor to highlight source code
syntax
* scaledwidth and align attributes have been added to the image
macro
* Added a2x(1) —fop-opts=FOP_OPTS option
* Added a2x(1) —dblatex-opts=DBLATEX_OPTS
* Added Mikhail Yakshin's FOP 0.95 patch
* The User Guide has been updated
* Fixed stylesheets/xhtml11-manpage.css not being included when
linkcss attribute was used
* Configuration file *-style attributes are now dumped correctly
* Fixed FAILED: malformed section entry LaTeX backend error
* Tue Jun 10 2008 tiwai@suse.de
- updated to version 8.2.6:
* Bug fixes since the last release plus a code cleanup and a
few minor additions and changes.
* Mon May 05 2008 tiwai@suse.de
- added missing requires to docbook-xsl-stylesheets (bnc#386512)
* 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.