Sync from SUSE:SLFO:Main asciidoc revision ea7a8d2c75ec25c4dd00c6363b5a9057

This commit is contained in:
Adrian Schröter 2024-05-03 11:09:01 +02:00
commit 859ef14518
6 changed files with 797 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>latextest</package>
</multibuild>

BIN
asciidoc-10.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

588
asciidoc.changes Normal file
View File

@ -0,0 +1,588 @@
-------------------------------------------------------------------
Thu Jun 23 11:33:12 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 10.2.0:
+ Future feature:
- As part of the intended 10.3.0 release, the following
document attribute flags will be reserved for modifying
asciidoc-py runtime behavior:
. future-compat
. legacy-compat
. compat-mode
- Please see GH issue #254 for more information.
+ Bug fixes: Fix verbose output not working when using a2x or
asciidoc entry points.
+ Miscellaneous: Automate publishing asciidoc-py website as part
of release process.
-------------------------------------------------------------------
Wed Jun 22 15:43:52 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Do not recommend asciidoc-latex-backend: Do not pull in the LaTeX
stack on all systems using asciidoc.
- Supplement asciidoc and dblatext with the -latex-backend sub
package: users that have both, asciidoc and dblatex installed,
and thus already opted-in to LaTeX, will also get the backend
installed.
-------------------------------------------------------------------
Mon May 2 09:31:19 UTC 2022 - Stephan Kulow <coolo@suse.com>
- Add a subpackage that brings in the requirements for building pdf (too much
for default, recommends won't help in building OBS packages)
- Adding multibuild flavor to verify the latex dependencies are complete
- Motivated by nut failing to build pdf in SP4
-------------------------------------------------------------------
Sat Apr 30 11:07:26 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 10.1.4
* Add top-level __version__ and VERSION module exports
* Fix self reference errors in AsciiDocApi
* Add back asciidoc execute print in a2x verbose
- Update to version 10.0.0
* AsciiDoc.py has been rewritten to be a proper Python package
* Support for overriding the bundled *.conf files is done through
CLI flags, environment variables, etc., and not through directly
editing the files within the installation.
* Importing asciidoc should no longer require the asciidocapi.py script
and can be done through regular python import
* The APIs of the asciidoc and a2x scripts are now considered
"provisional" with no guarantee of BC between releases with the
exception of the asciidoc.execute method.
- Update to version 9.1.1
* Cleanup outfile on system-exiting exceptions
- Rebased asciidoc.version.patch
-------------------------------------------------------------------
Mon Mar 1 20:43:56 UTC 2021 - Matthias Eliasson <elimat@opensuse.org>
- update to version 9.1.0
* Can specify a line range when using the include macro.
* Setting the SGML_CATALOG_FILES environment variable will set --catalogs
on xmllint within a2x.
-------------------------------------------------------------------
Sun Jan 24 14:42:49 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 9.0.5:
- Use config newline setting in system attribute evaulation
- Update to deadsnakes/python@v2.0.2
-------------------------------------------------------------------
Tue Nov 3 08:09:36 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 9.0.4
* Fix listing out installed plugins (e.g. --filter list)
-------------------------------------------------------------------
Wed Oct 21 06:31:32 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 9.0.3
* Fix extra newline characters inserted into generated source
* Validate line endings as part of test suite
-------------------------------------------------------------------
Mon Aug 3 05:46:34 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 9.0.2:
* Revert to using optparse from argparse for a2x
-------------------------------------------------------------------
Fri Jul 3 07:25:59 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 9.0.1:
* Fix a2x crashing on decoding generated HTML pages
-------------------------------------------------------------------
Tue Jun 9 05:21:24 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 9.0.0:
* Port asciidoc to run on Python 3.5+
* Drop internal implementation of OrderedDict and use the
standard library collections.OrderedDict instead
* Implement Dockerfile for running asciidoc
* Add Catalan translation
* Add docbook5 backend
* Fix misspellings in various files and documents
* Use UTC for testing instead of Pacific/Auckland (which observes
daylight saving time)
* Use "with" context statement for opening and closing files
instead of older try/finally pattern
* Search sibling paths before system wide paths in asciidocapi
* Add manpage for testasciidoc.py
* Use argparse instead of optparse for argument parsing
* Add simplified Chinese translation (thanks @muirmok)
* vim-asciidoc: speed up the refresh process for big files
* Allow specifying floatstyle attribute for figures, tables,
equations, examples in docbook (thanks @psaris)
* Use https://pypi.org/project/trans/[trans python module]
(if available) to better handle character decomposition to
ascii for ascii-ids (thanks @rkel)
* Use lru_cache to memoize repeated calls to macro look-up
giving potential ~15% speed-up on parsing
* Fix index terms requiring two characters instead of just one
* Properly capture and use colophon, dedication, and preface for
docbooks in Japanese (see #2 (comment))
* make install did not include the unwraplatex.py filter
* Fix a2x option collection from input file with non-ascii
encoding
* Fix options attribute not being properly parsed in Delimited
Blocks attribute list
* Migrate from hierarchical A-A-P build system to top-level
Makefile
* Add make help target that prints out usage message for make
* Fix double slash issue in Makefile when installing asciidoc
or its docs
* Commit generated test files to the repository for continuous
integration
* Test against Python 3.5+ on Travis-CI
* Remove symlink tests/asciidocapi.py in favor of just appending
to sys.path
* Add requires directive to testasciidoc.conf to indicate
necessary external dependencies (e.g. source-highlight)
-------------------------------------------------------------------
Thu Apr 23 12:00:49 UTC 2020 - Stephan Kulow <coolo@suse.com>
- simplify requires - we don't need the full python3, but the
interpreter and xml module (which is part of base)
-------------------------------------------------------------------
Tue Apr 21 06:16:29 UTC 2020 - Stephan Kulow <coolo@suse.com>
- Bring back asciidoc in maintainable fashion to fix bsc#1135082
-------------------------------------------------------------------
Tue Apr 21 06:00:36 UTC 2020 - Stephan Kulow <coolo@suse.com>
- Update to 9.0.0rc2:
- Running `make help` will now print out a helpful usage message
- Add simplified Chinese translation (thanks @muirmok)
- vim-asciidoc: speed up the refresh process for big files (thanks @aerostitch)
-------------------------------------------------------------------
Tue Jan 14 15:26:40 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Small packaging adjustements
-------------------------------------------------------------------
Tue Jan 14 11:55:07 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 9.0.0rc1:
* Port asciidoc to run on Python 3.5+ (see https://github.com/asciidoc/asciidoc for the EOL Python 2 implementation)
* Drop internal implementation of OrderedDict and use the standard library collections.OrderedDict instead
* Implement Dockerfile for running asciidoc
* Add Catalan translation
* Add docbook5 backend
* Fix misspellings in various files and documents
* Use UTC for testing instead of Pacific/Auckland (which observes daylight saving time).
* Use "with" context statement for opening and closing files instead of older try/finally pattern.
* Search sibling paths before system wide paths in asciidocapi
* Add manpage for testasciidoc.py
* Use argparse instead of optparse for argument parsing
* Migrate from A-A-P based build system to Make
-------------------------------------------------------------------
Thu Oct 17 13:37:32 UTC 2019 - Richard Brown <rbrown@suse.com>
- Remove obsolete Groups tag (fate#326485)
-------------------------------------------------------------------
Tue Nov 7 09:54:03 UTC 2017 - mpluskal@suse.com
- Explicitly use python2 (fate#323526)
-------------------------------------------------------------------
Fri Oct 6 03:01:43 UTC 2017 - bwiedemann@suse.com
- Re-add documentation
-------------------------------------------------------------------
Wed Oct 4 09:21:58 UTC 2017 - olaf@aepfle.de
- Remove asciidoc version from generated files with asciidoc.version.patch
The version causes unneeded republish of pkgs that make use
of asciidoc
-------------------------------------------------------------------
Sun Oct 1 13:41:40 UTC 2017 - aavindraa@gmail.com
- Update to 8.6.10
* Improve reproducibility of builds (e.g. support SOURCE_DATE_EPOCH)
* SVG output support
* documentation and translations
- Lint spec file
- Remove asciidoc-change-Last-Updated-field.patch
* merged in https://github.com/asciidoc/asciidoc/pull/9
-------------------------------------------------------------------
Fri Jul 7 09:59:32 UTC 2017 - matthias.gerstner@suse.com
- added themes directory for installing the other available themes shipped
with asciidoc. Makes the "-a theme=volnitsky" and "-a theme=flask" switches
work.
-------------------------------------------------------------------
Thu Sep 1 14:17:15 UTC 2016 - olaf@aepfle.de
- Adding the ability to change "Last Updated" field
... to reduce build-compare noise in git.rpm
asciidoc-change-Last-Updated-field.patch
-------------------------------------------------------------------
Fri Mar 6 21:23:02 UTC 2015 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Remove asciidoc-vim-fix.diff
- Update to 8.6.9
* html5, xhtml11 and slidy outputs now wrap pre element contents at
right margin (see
[1]https://groups.google.com/group/asciidoc/browse_thread/thread/98
77a316b7a47309).
* Vim syntax file: highlight line breaks in lists (patch submitted by
Alex Efros). See
[2]https://groups.google.com/group/asciidoc/browse_thread/thread/51
45e4c0b65cde0a).
* Vim syntax file: fixed highlighting of lines with spaces preceding
an indented paragraph. See
[3]https://groups.google.com/group/asciidoc/browse_thread/thread/51
45e4c0b65cde0a
* Vim syntax file: dropped ) from list of illegal characters
following opening quote. See
[4]https://groups.google.com/group/asciidoc/browse_thread/thread/1a
60eb4507a0555f/264c39c6a89fc7a0
* Added + intrinsic attribute. See
[5]http://code.google.com/p/asciidoc/issues/detail?id=14
* Allow tabsize=0 in configuration file. See
[6]https://groups.google.com/group/asciidoc/browse_thread/thread/c8
8457020288ce1d
* Removed wordpress backend into the blogpost project (where it
belongs) as an AsciiDoc backend plugin.
* Added HTML5 footer badges.
* Added favicon to AsciiDoc website.
* Changed AsciiDoc website domain to asciidoc.org.
* Vim syntax file: closing quote character cannot be immediately
followed by same closing quote character.
* Documentation updates.
* If admonition icons are embedded using the Data URI Scheme and the
icons directory is undefined or does not exist then the iconsdir
attribute is set to the location of the icons installed in the
AsciiDoc configuration directory.
* Updated ./stylesheets/pygments.css from pygments 1.4.
* HTML backends: Align inline images to text-bottom.
* html4 backend: Added hr attribute to make the inter-section
horizontal ruler element optional.
* Documented Callout lists cannot be used within tables. See:
[7]https://groups.google.com/group/asciidoc/browse_thread/thread/26
8f9b46ebc192d3
* Removed Vim related stuff from the installer makefile. See:
[8]https://groups.google.com/group/asciidoc/browse_thread/thread/75
3a52b2af85fcfc/04c9091b0856fc13 and
[9]https://groups.google.com/group/asciidoc/browse_thread/thread/cd
07629fa7a53fb3
* Dropped vim/ftdetect/asciidoc_filetype.vim from distribution, the
file detection was broken and the default settings satisfied noone.
* Vim syntax highlighter: increase sync backtracking to catch changes
to large block elements.
* Added Romanian language configuration file. Contributed by Vitalie
Lazu. See
[10]https://groups.google.com/group/asciidoc/browse_thread/thread/2
fe14a10dbf20d20/27726e7e13f7bfc7?lnk=gst&q=romanian#27726e7e13f7bfc
7
* Added ruler and line-break outputs to HTML Help outputs. Patch
submitted by DonM. See
[11]https://groups.google.com/group/asciidoc/browse_thread/thread/b
131d0155eccd73e
* Added Czech language configuration file. Contributed by Petr Klíma.
* html4 backend: allow embedded images and icons (data-uri
attribute).
* html4 backend: table and example block caption place at bottom for
consistency.
* html4 backend: dropped border around example block.
* html4 backend: cellpaddings made equal to 4 for consistency.
* Vim syntax highligher: Highlight closing OpenBlock delimiter when
it immediately follows a list.
* Updated html5 backend (previous commit was xhtml11 only). See:
[12]https://groups.google.com/group/asciidoc/browse_thread/thread/d
bdfaf838f93e020
* Embedded data-uri images now figure file mimetype from file
contents rather than the file extension. Patch submitted by Lex
Trotman. See:
[13]https://groups.google.com/group/asciidoc/browse_thread/thread/d
bdfaf838f93e0
-------------------------------------------------------------------
Wed Mar 20 12:52:46 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Sat Oct 27 12:04:19 UTC 2012 - toms@opensuse.org
- updated to version 8.6.8 (2012-07-17):
* Added full complement of styles to Open Blocks and Normal Paragraphs
those with a minimalist bent could construct virtually any document
using just Title, Normal Paragraph and Open Block syntaxes.
* See details in
http://www.methods.co.nz/asciidoc/CHANGELOG.html
- previous version 8.6.7 (2012-03-17):
* No major enhancements but quite a few bug fixes which, among other
things, fixes Jython compatibility and improves Windows compatibility.
- SPEC file:
* Regenerated asciidoc-vim-fix.diff
-------------------------------------------------------------------
Mon Nov 7 13:04:59 UTC 2011 - mmarek@suse.cz
- Add missing dependency on python-xml.
-------------------------------------------------------------------
Fri Oct 28 13:52:10 UTC 2011 - yar@sibnet.ru
- updated to version 8.6.6:
* New html5 backend.
* Enhanced plugin system.
* See details in
http://www.methods.co.nz/asciidoc/CHANGELOG.html
-------------------------------------------------------------------
Sat Sep 17 12:22:41 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
-------------------------------------------------------------------
Mon Jul 20 12:24:33 CEST 2009 - tiwai@suse.de
- updated to version 8.4.5:
* multiple manpage names are now handled correctly when generating
DocBook output
* The article and book document header can now include a revision
remark
* French, German, Hungarian and Russian language file
contributions
* See details in
http://www.methods.co.nz/asciidoc/CHANGELOG.html
-------------------------------------------------------------------
Thu May 7 12:14:48 CEST 2009 - tiwai@suse.de
- updated to version 8.4.4:
See http://www.methods.co.nz/asciidoc/CHANGELOG.html for details
-------------------------------------------------------------------
Fri Jan 30 08:19:54 CET 2009 - tiwai@suse.de
- Additional error message about missing package in a2x
-------------------------------------------------------------------
Wed Jan 21 14:56:14 CET 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 8 14:18:28 CET 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 2 15:36:41 CET 2008 - bwalle@suse.de
- Call Python with -Wignore::DeprecationWarning to hide deprecation
warnings from the user.
-------------------------------------------------------------------
Mon Jul 28 16:34:33 CEST 2008 - tiwai@suse.de
- add requirement of xsltproc binary (bnc#410692)
-------------------------------------------------------------------
Tue Jul 22 09:35:01 CEST 2008 - bwalle@suse.de
- Suppression of manpage references list now works again.
(http://hg.sharesource.org/asciidoc/rev/eb3a27e2a482)
-------------------------------------------------------------------
Tue Jul 8 15:46:51 CEST 2008 - bwalle@suse.de
- install dblatex files
-------------------------------------------------------------------
Fri Jul 4 16:11:15 CEST 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 16:08:46 CEST 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 5 17:57:46 CEST 2008 - tiwai@suse.de
- added missing requires to docbook-xsl-stylesheets (bnc#386512)
-------------------------------------------------------------------
Wed Jan 30 18:01:42 CET 2008 - tiwai@suse.de
- fix fop.extensions in a2x pdf creation (bnc#353527)
-------------------------------------------------------------------
Fri Jan 25 11:26:49 CET 2008 - tiwai@suse.de
- fix a build error about vim directory
-------------------------------------------------------------------
Thu Jan 24 17:40:00 CET 2008 - tiwai@suse.de
- install vim files (#353528)
-------------------------------------------------------------------
Mon Jan 14 15:16:18 CET 2008 - tiwai@suse.de
- add requirement to fop, fix the fop command name in a2x
(#353527)
-------------------------------------------------------------------
Tue Jan 8 13:04:06 CET 2008 - tiwai@suse.de
- updated to version 8.2.5:
* fixes couple of bugs in 8.2.4, no new features
-------------------------------------------------------------------
Thu Nov 15 17:54:59 CET 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 16:57:58 CEST 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 2 18:16:56 CEST 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 12:26:32 CET 2006 - tiwai@suse.de
- Add missing a2x and other config files (#223299).
-------------------------------------------------------------------
Thu Oct 12 17:18:12 CEST 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 12:56:22 CEST 2006 - tiwai@suse.de
- updated to version 7.1.2.
* a2x toolchain wrapper
* ASCIIMathML support
-------------------------------------------------------------------
Wed Jan 25 21:45:47 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jan 11 16:44:11 CET 2006 - tiwai@suse.de
- updated to version 7.0.4.
-------------------------------------------------------------------
Fri Jul 1 12:31:09 CEST 2005 - tiwai@suse.de
- fixed norootforbuild.
-------------------------------------------------------------------
Fri Jun 24 15:37:08 CEST 2005 - tiwai@suse.de
- initial version: 7.0.1.

127
asciidoc.spec Normal file
View File

@ -0,0 +1,127 @@
#
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" != ""
%define name_suffix -%{flavor}
%endif
Name: asciidoc%{?name_suffix}
Version: 10.2.0
Release: 0
Summary: Text-Based Document Generation
License: GPL-2.0-or-later
URL: https://asciidoc-py.github.io/
Source0: https://github.com/asciidoc-py/asciidoc-py/releases/download/%{version}/asciidoc-%{version}.tar.gz
Patch0: asciidoc.version.patch
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pytest
BuildRequires: python3-pytest-mock >= 3.3
BuildRequires: python3-setuptools
BuildRequires: python3-xml
Requires: docbook-xsl-stylesheets
Requires: python3-xml
# a2x needs /usr/bin/xsltproc
Recommends: libxslt
BuildArch: noarch
%if "%{flavor}" == "latextest"
BuildRequires: asciidoc-latex-backend
%endif
%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.
%package examples
Summary: Examples and Documents for asciidoc
%description examples
This package contains examples and documents of asciidoc.
%package latex-backend
Summary: Provide latex backend dependencies
Requires: %{name} = %{version}
Requires: dblatex
Supplements: (%{name} and dblatex)
# some of them are actually required by dblatex, but it's easier to keep them all in here
Requires: texlive-metafont-bin
Requires: tex(8r.enc)
Requires: tex(fancybox.sty)
Requires: tex(mathrsfs.sty)
Requires: tex(pcrr8c.tfm)
Requires: tex(phvr8t.tfm)
Requires: tex(ptmr8t.tfm)
Requires: tex(ptmri7t.tfm)
Requires: tex(rsfs10.tfm)
Requires: tex(upquote.sty)
Requires: tex(zptmcm7v.tfm)
Requires: tex(zptmcm7y.tfm)
%description latex-backend
AsciiDoc can generate pdf from asciidoc format through dblatex. For that it needs quite some
latex dependencies that we don't want to have by default. So this package is optional.
%prep
%setup -q -n asciidoc-%{version}
# do not use env
find ./ -name \*.py -exec sed -i -e 's:/usr/bin/env\ :%{_bindir}/:g' {} \;
%if "%{flavor}" == "latextest"
%build
a2x --verbose --xsltproc-opts --nonet --attribute=badges --attribute=external_title -a toc -a numbered --attribute=pdf_format --format=pdf -a docinfo1 doc/a2x.1.txt
%else
%build
%python3_build
%install
%python3_install
mkdir -p %{buildroot}%{_mandir}/man1/
cp -a doc/*.1 %{buildroot}%{_mandir}/man1/
%fdupes %{buildroot}%{python3_sitelib}/%{name}
%check
export PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitelib}"
export PYTHONDONTWRITEBYTECODE=1
python3 -m asciidoc.asciidoc --doctest
python3 -m pytest --ignore=_build.python3 -v
python3 tests/testasciidoc.py run
%files
%license COPYRIGHT LICENSE
%doc README.md BUGS.adoc CHANGELOG.adoc
%{python3_sitelib}/asciidoc
%{python3_sitelib}/asciidoc-%{version}*
%{_bindir}/%{name}
%{_bindir}/a2x
%{_mandir}/man1/*
%files examples
%doc doc
%files latex-backend
%license COPYRIGHT
%endif
%changelog

53
asciidoc.version.patch Normal file
View File

@ -0,0 +1,53 @@
Avoid version number in generated files.
Output will be identical between versions.
In case the output changes, build-compare will catch it.
diff -Nur asciidoc-10.1.4/asciidoc/resources/html4.conf new/asciidoc/resources/html4.conf
--- asciidoc-10.1.4/asciidoc/resources/html4.conf 2022-03-01 16:49:15.000000000 +0100
+++ new/asciidoc/resources/html4.conf 2022-04-30 14:16:45.255134969 +0200
@@ -460,7 +460,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
-<meta name="generator" content="AsciiDoc {asciidoc-version}">
+<meta name="generator" content="AsciiDoc">
<meta name="description" content="{description}">
<meta name="keywords" content="{keywords}">
<title>{title}</title>
diff -Nur asciidoc-10.1.4/asciidoc/resources/html5.conf new/asciidoc/resources/html5.conf
--- asciidoc-10.1.4/asciidoc/resources/html5.conf 2022-03-01 16:49:15.000000000 +0100
+++ new/asciidoc/resources/html5.conf 2022-04-30 14:16:45.255134969 +0200
@@ -539,7 +539,7 @@
<html lang="{lang=en}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
-<meta name="generator" content="AsciiDoc {asciidoc-version}">
+<meta name="generator" content="AsciiDoc">
<meta name="description" content="{description}">
<meta name="keywords" content="{keywords}">
<title>{title}</title>
diff -Nur asciidoc-10.1.4/asciidoc/resources/slidy.conf new/asciidoc/resources/slidy.conf
--- asciidoc-10.1.4/asciidoc/resources/slidy.conf 2022-03-01 16:49:15.000000000 +0100
+++ new/asciidoc/resources/slidy.conf 2022-04-30 14:16:45.259134969 +0200
@@ -68,7 +68,7 @@
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
ifndef::copyright[<meta name="copyright" content="Copyright &#169; {author}" />]
<meta name="copyright" content="Copyright &#169; {copyright}" />
-<meta name="generator" content="AsciiDoc {asciidoc-version}" />
+<meta name="generator" content="AsciiDoc" />
<meta name="duration" content="{duration}" />
ifdef::linkcss[]
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css" />
diff -Nur asciidoc-10.1.4/asciidoc/resources/xhtml11.conf new/asciidoc/resources/xhtml11.conf
--- asciidoc-10.1.4/asciidoc/resources/xhtml11.conf 2022-03-01 16:49:15.000000000 +0100
+++ new/asciidoc/resources/xhtml11.conf 2022-04-30 14:16:45.259134969 +0200
@@ -531,7 +531,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang=en}">
<head>
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
-<meta name="generator" content="AsciiDoc {asciidoc-version}" />
+<meta name="generator" content="AsciiDoc" />
<meta name="description" content="{description}" />
<meta name="keywords" content="{keywords}" />
<title>{title}</title>
Binärdateien asciidoc-10.1.4/.setup.py.swp und new/.setup.py.swp sind verschieden.