Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 03f2f6a296 | |||
| 657679be6d | |||
| dcf9795dea | |||
| 65fc9fa21b | |||
| 6a98723a6f |
BIN
docutils-0.21.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
docutils-0.21.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:21486ae730e4ca9f622677b1412b879af1791efcfba517e4c6f60be543fc8cdd
|
|
||||||
size 2290153
|
|
||||||
@@ -1,279 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Nov 6 09:20:50 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
|
||||||
|
|
||||||
- Update to 0.22.3:
|
|
||||||
- docutils/parsers/rst/directives/body.py, docutils/parsers/rst/directives/parts.py
|
|
||||||
Do not flag uncategorized, auxiliary elements
|
|
||||||
like sphinx.addnodes.only when testing for
|
|
||||||
invalid parents of topics or sidebars (cf.
|
|
||||||
https://github.com/sphinx-doc/sphinx/issues/14002).
|
|
||||||
- docutils/parsers/rst/states.py
|
|
||||||
More informative error messages when a substitution
|
|
||||||
definition contains problematic or not supported content.
|
|
||||||
Ignore combining characters when extracting a grid table block
|
|
||||||
- docutils/parsers/rst/tableparser.py
|
|
||||||
Ignore combining characters when parsing the grid table
|
|
||||||
structure. Fixes bugs #128 and #512.
|
|
||||||
- docutils/statemachine.py
|
|
||||||
Fix handling of combining characters when extracting
|
|
||||||
2d-block.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Sep 22 10:26:15 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
|
||||||
|
|
||||||
- Update to 0.22.2:
|
|
||||||
- Remove a spurious vim .swp-file to fix bug #513.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Sep 17 19:37:12 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
|
||||||
|
|
||||||
- Update to 0.22.1:
|
|
||||||
- Only documentation fixes.
|
|
||||||
docutils/frontend.py, docutils/writers/
|
|
||||||
More consistent and concise command line help.
|
|
||||||
docutils/nodes.py
|
|
||||||
- nodes.Element.section_hierarchy() now returns only
|
|
||||||
elements with non-empty "parent" attribute.
|
|
||||||
docutils/parsers/rst/states.py
|
|
||||||
- Relax "section title" system messages from SEVERE to
|
|
||||||
ERROR.
|
|
||||||
- Fix behaviour with nested parsing into a detached node
|
|
||||||
(cf. bugs #508 and #509).
|
|
||||||
- New attribute NestedStateMachine.parent_state_machine.
|
|
||||||
Use case: update the "current node" of parent state
|
|
||||||
machine(s) after nested parsing.
|
|
||||||
- Better error messages for grid table markup errors (bug
|
|
||||||
#504), based on patch #214 by Jynn Nelson.
|
|
||||||
docutils/transforms/references.py
|
|
||||||
- Better error reports for hyperlinks with embedded URI or
|
|
||||||
alias.
|
|
||||||
docutils/writers/latex2e/__init__.py
|
|
||||||
- Add cross-reference anchors (\phantomsection\label{...})
|
|
||||||
for elements with IDs (fixes bug #503).
|
|
||||||
- Fix cross-reference anchor placement in figures, images,
|
|
||||||
literal-blocks, tables, and (sub)titles.
|
|
||||||
- Simplify code for images nested in reference or figure
|
|
||||||
elements.
|
|
||||||
- Update to 0.22.0:
|
|
||||||
General
|
|
||||||
- We have started to add type hints to Docutils
|
|
||||||
(feature-request #87).
|
|
||||||
- This will be a complex programme of work and as such, for
|
|
||||||
the time being, these type hints are "provisional" and
|
|
||||||
should not be relied upon.
|
|
||||||
- By default, the Python interpreter treats type hints as
|
|
||||||
annotations. Python >= 3.10 is required with active type
|
|
||||||
hints (typing.TYPE_CHECKING == True).
|
|
||||||
docs/ref/docutils.dtd
|
|
||||||
- Allow multiple <term> elements in a
|
|
||||||
<definition_list_item>. Fixes feature-request #60
|
|
||||||
- The first element in a <figure> may also be a <reference>
|
|
||||||
(with nested "clickable" <image>).
|
|
||||||
docutils/core.py
|
|
||||||
- Removed Publisher.setup_option_parser() (internal,
|
|
||||||
obsolete).
|
|
||||||
- Allow a string value (component name or alias) in
|
|
||||||
the "reader", "parser", and "writer" arguments of
|
|
||||||
Publisher.__init__() and the publish_*() convenience
|
|
||||||
functions.
|
|
||||||
docutils/frontend.py
|
|
||||||
- Drop short options -i and -o for --input-encoding and
|
|
||||||
--output-encoding.
|
|
||||||
- Change the default input encoding from None (auto-detect)
|
|
||||||
to "utf-8".
|
|
||||||
- Change the default value of the root_prefix setting to
|
|
||||||
the empty string (no change to the behaviour).
|
|
||||||
docutils/io.py
|
|
||||||
- Change the default input encoding from None (auto-detect)
|
|
||||||
to "utf-8".
|
|
||||||
docutils/nodes.py
|
|
||||||
- Raise TypeError if the "rawsource" argument in
|
|
||||||
Element.__init__() is an Element instance. Catches errors
|
|
||||||
like nodes.hint(nodes.paragraph()).
|
|
||||||
- New element category classes SubStructural and
|
|
||||||
PureTextElement.
|
|
||||||
- Fix element categories.
|
|
||||||
- New method Element.validate(): raise
|
|
||||||
nodes.ValidationError if the element does not comply with
|
|
||||||
the "Docutils Document Model". Provisional.
|
|
||||||
- New "attribute validating functions" convert string
|
|
||||||
representations to correct data type, normalize values,
|
|
||||||
and raise ValueError for invalid attribute names or
|
|
||||||
values.
|
|
||||||
- New function parse_measure().
|
|
||||||
- Removed Element.set_class().
|
|
||||||
- Downgrade "duplicate ID" message level from SERIOUS to
|
|
||||||
ERROR.
|
|
||||||
- Fix recursion in Element.get_language_code().
|
|
||||||
- Do not insert <system_message> elements for duplicate
|
|
||||||
explicit targets if this results in an invalid doctree
|
|
||||||
(cf. bug #489).
|
|
||||||
- Don't include a "backlink" reference in system messages,
|
|
||||||
if the referenced element is an external target (not
|
|
||||||
visible in the output).
|
|
||||||
- Don't invalidate indirect targets with duplicate name,
|
|
||||||
if they refer to the same refname (similar to external
|
|
||||||
targets refering to the same URI).
|
|
||||||
docutils/parsers/docutils_xml.py
|
|
||||||
- New parser for Docutils XML sources. Provisional.
|
|
||||||
docutils/parsers/recommonmark_wrapper.py
|
|
||||||
- New method Parser.finish_parse() to clean up (before
|
|
||||||
validating).
|
|
||||||
docutils/parsers/rst/languages/
|
|
||||||
- Remove mistranslations of the "admonition" directive
|
|
||||||
name.
|
|
||||||
docutils/parsers/rst/languages/en.py
|
|
||||||
- Add alias "rst-class" for the "class" directive to
|
|
||||||
improve the compatibility with Sphinx.
|
|
||||||
docutils/parsers/rst/directives/__init__.py
|
|
||||||
- Support CSS3 length units. Fixes feature-request #57.
|
|
||||||
docutils/parsers/rst/directives/images.py
|
|
||||||
- New option "figname" for the "figure" directive. Fixes
|
|
||||||
feature-request #44.
|
|
||||||
docutils/parsers/rst/directives/misc.py
|
|
||||||
- Pass the included file's path to the parser when the
|
|
||||||
"include" directive is used with :parser: option. Enables
|
|
||||||
system messages with correct source/line info.
|
|
||||||
- Pass default settings to custom parser for included file.
|
|
||||||
docutils/parsers/rst/directives/references.py
|
|
||||||
- Remove "name" from TargetNotes.option_spec. The
|
|
||||||
"target-notes" directive generates one footnote element
|
|
||||||
per external target but "name" must be unique across the
|
|
||||||
document. So far, the name was silently dropped.
|
|
||||||
docutils/parsers/rst/directives/tables.py
|
|
||||||
- Removed CSVTable.decode_from_csv() and
|
|
||||||
CSVTable.encode_from_csv(). Not required with Python 3.
|
|
||||||
docutils/parsers/rst/roles.py
|
|
||||||
- Renamed normalized_role_options() to normalize_options()
|
|
||||||
(it is now also used for directive options).
|
|
||||||
docutils/parsers/rst/states.py
|
|
||||||
- Raise warning for empty footnotes and citations.
|
|
||||||
- Add source and line info to <enumerated-list> elements.
|
|
||||||
Fix line number of "start value not ordinal-1" INFO
|
|
||||||
message.
|
|
||||||
- Change section handling to not rely on exceptions and
|
|
||||||
reparsing. Based on patch #213 by Arne Skjærholt. Fixes
|
|
||||||
bug #346 (duplicate System Messages).
|
|
||||||
- Use types.SimpleNamespace instead of a local definition
|
|
||||||
for the auxilliary class states.Struct.
|
|
||||||
- Warn about duplicate name in references with embedded
|
|
||||||
internal targets. Fixes bug #502.
|
|
||||||
- "Downgrade" targets generated from hyperlink references
|
|
||||||
with embedded URI or alias from explicit to implicit (cf.
|
|
||||||
bug #502).
|
|
||||||
docutils/readers/__init__.py:
|
|
||||||
- Deprecate "parser_name" argument of Reader.__init__().
|
|
||||||
docutils/transforms/frontmatter.py
|
|
||||||
- Update DocInfo to work with corrected element categories.
|
|
||||||
docutils/transforms/misc.py:
|
|
||||||
- Fix for misc.Transitions: report an error if a
|
|
||||||
<transition> element follows a <meta> or <decoration>
|
|
||||||
element as this is invalid according to docutils.dtd.
|
|
||||||
docutils/transforms/references.py
|
|
||||||
- Make AnonymousHyperlinks transform idempotent.
|
|
||||||
- New transform CitationReferences. Marks
|
|
||||||
citation_references as resolved if BibTeX is used by the
|
|
||||||
backend (LaTeX).
|
|
||||||
docutils/transforms/writer_aux.py
|
|
||||||
- Removed Compound transform.
|
|
||||||
docutils/transforms/universal.py
|
|
||||||
- Messages transform now also handles "loose" system
|
|
||||||
messages generated by the parser.
|
|
||||||
docutils/utils/__init__.py
|
|
||||||
- Removed Reporter.set_conditions(). Set attributes via
|
|
||||||
configuration settings or directly.
|
|
||||||
docutils/utils/_roman_numerals.py
|
|
||||||
- New implementation or Roman numeral support. Replaces the
|
|
||||||
local copy of the roman.py package.
|
|
||||||
docutils/utils/error_reporting.py
|
|
||||||
- Removed. Obsolete in Python 3.
|
|
||||||
docutils/writers/docutils-xml.py
|
|
||||||
- Do not increase indentation of follow-up lines inside
|
|
||||||
inline elements. when formatting with indents.
|
|
||||||
docutils/writers/__init__.py
|
|
||||||
- New base class writers.DoctreeTranslator with auxiliary
|
|
||||||
method uri2path().
|
|
||||||
docutils/writers/_html_base.py
|
|
||||||
- Make MathML the default math_output.
|
|
||||||
- Revise image size handling methods, use "width" and
|
|
||||||
"height" attributes for unitless values.
|
|
||||||
- Add "px" to unitless table "width" values.
|
|
||||||
- Fix error when determining the document metadata title
|
|
||||||
from the source path and the internal source attribute is
|
|
||||||
None.
|
|
||||||
docutils/writers/html4css1/__init__.py
|
|
||||||
- Keep default math_output value "HTML math.css".
|
|
||||||
- Add "px" to unitless table "width" values.
|
|
||||||
docutils/writers/latex2e/__init__.py
|
|
||||||
- LaTeXTranslator.to_latex_length(): Handle CSS3 length
|
|
||||||
units. Remove optional argument pxunit (ignored since at
|
|
||||||
least 2012). Drop trailing zeroes from length values.
|
|
||||||
Move XeTeX-specific code to the "xetex" writer.
|
|
||||||
- Don't wrap references with custom reference-label in a
|
|
||||||
\hyperref command.
|
|
||||||
- Mark the main language when loading "babel".
|
|
||||||
- Provide an "unknown_references_resolver" (cf.
|
|
||||||
docutils/TransformSpec) for citation references resolved
|
|
||||||
with BibTeX (cf. use_bibtex setting).
|
|
||||||
- Support SVG image inclusion with the "svg" LaTeX package
|
|
||||||
(see the stylesheet configuration setting). Solves
|
|
||||||
feature-request #83
|
|
||||||
- Add "template" to the parts returned by
|
|
||||||
Writer.assemble_parts().
|
|
||||||
- Use standard dict for LaTeXTranslator.requirements and
|
|
||||||
LaTeXTranslator.fallbacks.
|
|
||||||
- Use <document> "title" attribute in pdfinfo.
|
|
||||||
- Encode <meta> element content in pdfinfo.
|
|
||||||
- Improve formatting of docinfo fields.
|
|
||||||
- LaTeXTranslator.pop_output_collector() now returns the
|
|
||||||
popped list.
|
|
||||||
- Replace Writer.bibtex_reference_resolver() with a
|
|
||||||
transform.
|
|
||||||
- LaTeXTranslator.visit_inline() now inserts labels for the
|
|
||||||
node's IDs.
|
|
||||||
- Disable footnote handling by the "hyperref" LaTeX package
|
|
||||||
(Docutils' \DUfootnotemark and \DUfootnotetext macros
|
|
||||||
implement hyperlinks and backlinks). Avoids "empty
|
|
||||||
anchor" warnings.
|
|
||||||
- Fix target position and re-style system messages.
|
|
||||||
- Don't merge paragraphs if there is a target between them.
|
|
||||||
docutils/writers/latex2e/docutils.sty
|
|
||||||
- Replace use of \ifthenelse{\isundefined... (from
|
|
||||||
"ifthen.sty") with the eTeX primitive \ifdefined.
|
|
||||||
- Add macros to emulate CSS3 length units unknown to LaTeX.
|
|
||||||
docutils/writers/manpage.py
|
|
||||||
- Remove code for unused emdash bullets.
|
|
||||||
- Print Docutils version in header comment (feature-request
|
|
||||||
#105).
|
|
||||||
- Stop converting text to full capitals (bug #481).
|
|
||||||
- Fix reference output (bug #497).
|
|
||||||
- Use macros .UR/.UE for hyperlink references unless the
|
|
||||||
new configuration setting text_references is True. The
|
|
||||||
current default is True (text references), it will change
|
|
||||||
to False (macro references) in Docutils 1.0.
|
|
||||||
- Do not drop text of internal targets.
|
|
||||||
docutils/writers/null.py
|
|
||||||
- null.Writer.translate() sets self.output to the empty
|
|
||||||
string.
|
|
||||||
docutils/writers/odf_odt/__init__.py
|
|
||||||
- Use "px" as fallback unit for unitless image size
|
|
||||||
attributes.
|
|
||||||
- Fix conversion factor of "pc" (pica) to "cm".
|
|
||||||
- Fix conversion of image width in "%" if the height is
|
|
||||||
specified.
|
|
||||||
- Adjust fallback DPI value (currently not used) to match
|
|
||||||
CSS units.
|
|
||||||
- Fix errors with *.xml style files (bug #494).
|
|
||||||
- Use <document> "title" attribute in document metadata.
|
|
||||||
pyproject.toml
|
|
||||||
- Add tox.ini to the "include" list (fixes bug #486).
|
|
||||||
tools/rst2odt.py
|
|
||||||
- Use core.publish_file() instead of
|
|
||||||
core.publish_file_to_binary().
|
|
||||||
tools/rst2odt_prepstyles.py
|
|
||||||
- Removed. Use python -m
|
|
||||||
docutils.writers.odf_odt.prepstyles.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 17 09:00:56 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
Fri Jan 17 09:00:56 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
@@ -377,7 +101,7 @@ Sun Apr 16 01:30:00 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 24 07:15:02 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Jan 24 07:15:02 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Refactor pygments-2.14.patch to not use distutils.
|
- Refactor pygments-2.14.patch to not use distutils.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 10 15:42:55 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
Tue Jan 10 15:42:55 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
@@ -677,7 +401,7 @@ Fri Aug 9 09:53:07 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
|||||||
- update to version 0.15.2
|
- update to version 0.15.2
|
||||||
* Docutils 0.14.x is the last version supporting Python 2.4, 2.5,
|
* Docutils 0.14.x is the last version supporting Python 2.4, 2.5,
|
||||||
3.1, and 3.2.
|
3.1, and 3.2.
|
||||||
* reStructured text: Allow embedded colons in field list field
|
* reStructured text: Allow embedded colons in field list field
|
||||||
names (before, tokens like :this:example: were considered ordinary text).
|
names (before, tokens like :this:example: were considered ordinary text).
|
||||||
* Fixed a bug with the "trim" options of the "unicode" directive.
|
* Fixed a bug with the "trim" options of the "unicode" directive.
|
||||||
|
|
||||||
@@ -842,11 +566,11 @@ Tue Sep 24 09:48:27 UTC 2013 - toddrme2178@gmail.com
|
|||||||
- Update to 0.11
|
- Update to 0.11
|
||||||
* Fix for the overwritting of document attributes.
|
* Fix for the overwritting of document attributes.
|
||||||
* Support embedded aliases within hyperlink references.
|
* Support embedded aliases within hyperlink references.
|
||||||
* try local import of docutils components (reader, writer, parser,
|
* try local import of docutils components (reader, writer, parser,
|
||||||
language module) before global search.
|
language module) before global search.
|
||||||
* Python 3.3 checks CVS syntax only if "strict" is True.
|
* Python 3.3 checks CVS syntax only if "strict" is True.
|
||||||
* Now, it is easy to add a custom stylesheet to Docutils' default
|
* Now, it is easy to add a custom stylesheet to Docutils' default
|
||||||
stylesheet with, e.g.,
|
stylesheet with, e.g.,
|
||||||
--stylesheet_path='html4css1.css, mystyle.css'
|
--stylesheet_path='html4css1.css, mystyle.css'
|
||||||
* If there is a file html4css1.css in the working directory of the
|
* If there is a file html4css1.css in the working directory of the
|
||||||
process at launch, it is used instead of the one provided by
|
process at launch, it is used instead of the one provided by
|
||||||
@@ -854,15 +578,15 @@ Tue Sep 24 09:48:27 UTC 2013 - toddrme2178@gmail.com
|
|||||||
* New default for math-output: HTML math.css.
|
* New default for math-output: HTML math.css.
|
||||||
* Avoid repeated class declarations in html4css1 writer
|
* Avoid repeated class declarations in html4css1 writer
|
||||||
* Drop the simple algorithm replacing straight double quotes with
|
* Drop the simple algorithm replacing straight double quotes with
|
||||||
English typographic ones. Activate the SmartQuotes transform if
|
English typographic ones. Activate the SmartQuotes transform if
|
||||||
you want this feature.
|
you want this feature.
|
||||||
* New setting stylesheet_dirs: Comma-separated list of directories
|
* New setting stylesheet_dirs: Comma-separated list of directories
|
||||||
where stylesheets are found. Used by stylesheet_path when
|
where stylesheets are found. Used by stylesheet_path when
|
||||||
expanding relative path arguments.
|
expanding relative path arguments.
|
||||||
* handle lines starting with a period.
|
* handle lines starting with a period.
|
||||||
* Fix option separating comma was bold (thanks to Bill Morris).
|
* Fix option separating comma was bold (thanks to Bill Morris).
|
||||||
- Use pypi url and download
|
- Use pypi url and download
|
||||||
- Replace rpmlint-non-executable-scripts.diff with sed in the spec
|
- Replace rpmlint-non-executable-scripts.diff with sed in the spec
|
||||||
file
|
file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
@@ -904,25 +628,25 @@ Tue Nov 20 19:34:53 UTC 2012 - saschpe@suse.de
|
|||||||
Fri Oct 26 08:26:29 UTC 2012 - highwaystar.ru@gmail.com
|
Fri Oct 26 08:26:29 UTC 2012 - highwaystar.ru@gmail.com
|
||||||
|
|
||||||
- patch from upstream for python3.3 support
|
- patch from upstream for python3.3 support
|
||||||
* Fix [3541369] Relative __import__ also with Python 3.3
|
* Fix [3541369] Relative __import__ also with Python 3.3
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 3 14:28:17 UTC 2012 - toddrme2178@gmail.com
|
Thu May 3 14:28:17 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
- Update to version 0.9:
|
- Update to version 0.9:
|
||||||
* reStructuredText "code" role and directive with syntax
|
* reStructuredText "code" role and directive with syntax
|
||||||
highlighting by Pygments_.
|
highlighting by Pygments_.
|
||||||
* "code" option of the "include" directive.
|
* "code" option of the "include" directive.
|
||||||
* Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
|
* Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
|
||||||
characters and "international" quotes around inline markup.
|
characters and "international" quotes around inline markup.
|
||||||
* Fix handling of missing stylesheets.
|
* Fix handling of missing stylesheets.
|
||||||
* Fix [ 2971827 ] and [ 3442827 ] extras/roman.py moved to
|
* Fix [ 2971827 ] and [ 3442827 ] extras/roman.py moved to
|
||||||
docutils/utils/roman.py
|
docutils/utils/roman.py
|
||||||
* docutils.utils is now a package (providing a place for
|
* docutils.utils is now a package (providing a place for
|
||||||
sub-modules)
|
sub-modules)
|
||||||
* change default for `math-output` setting to MathJax
|
* change default for `math-output` setting to MathJax
|
||||||
* Support the `abbreviation` and `acronym` standard roles.
|
* Support the `abbreviation` and `acronym` standard roles.
|
||||||
* Record only files required to generate the LaTeX source as
|
* Record only files required to generate the LaTeX source as
|
||||||
dependencies.
|
dependencies.
|
||||||
* Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
|
* Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
|
||||||
when suppressing LaTeX section numbering.
|
when suppressing LaTeX section numbering.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-docutils
|
# spec file for package python-docutils
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-docutils%{psuffix}
|
Name: python-docutils%{psuffix}
|
||||||
Version: 0.22.3
|
Version: 0.21.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Documentation Utilities
|
Summary: Python Documentation Utilities
|
||||||
License: BSD-2-Clause AND Python-2.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain
|
License: BSD-2-Clause AND Python-2.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain
|
||||||
@@ -84,11 +84,10 @@ find . -name \*.swp -delete
|
|||||||
sed -i '1{/^#!/d}' \
|
sed -i '1{/^#!/d}' \
|
||||||
docutils/__main__.py \
|
docutils/__main__.py \
|
||||||
docutils/parsers/commonmark_wrapper.py \
|
docutils/parsers/commonmark_wrapper.py \
|
||||||
docutils/parsers/docutils_xml.py \
|
|
||||||
docutils/parsers/recommonmark_wrapper.py \
|
docutils/parsers/recommonmark_wrapper.py \
|
||||||
|
docutils/utils/error_reporting.py \
|
||||||
docutils/utils/math/math2html.py \
|
docutils/utils/math/math2html.py \
|
||||||
docutils/utils/math/tex2unichar.py \
|
docutils/utils/math/tex2unichar.py \
|
||||||
docutils/utils/math/mathalphabet2unichar.py \
|
|
||||||
docutils/utils/smartquotes.py \
|
docutils/utils/smartquotes.py \
|
||||||
docutils/writers/_html_base.py \
|
docutils/writers/_html_base.py \
|
||||||
docutils/writers/odf_odt/prepstyles.py \
|
docutils/writers/odf_odt/prepstyles.py \
|
||||||
@@ -103,9 +102,7 @@ sed -i '1{/^#!/d}' \
|
|||||||
for binary in docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5 ; do
|
for binary in docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5 ; do
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$binary
|
%python_clone -a %{buildroot}%{_bindir}/$binary
|
||||||
done
|
done
|
||||||
%{python_expand find %{buildroot}%{$python_sitelib} -name \*.py -executable -exec chmod -x '{}' \;
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -127,8 +124,8 @@ update-alternatives --query rst2html >/dev/null 2>&1 && update-alternatives --qu
|
|||||||
%python_uninstall_alternative docutils
|
%python_uninstall_alternative docutils
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING.rst licenses/*.txt licenses/*.rst
|
%license COPYING.txt licenses/*.txt
|
||||||
%doc FAQ.rst HISTORY.rst README.rst THANKS.rst BUGS.rst docs/*
|
%doc FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs/*
|
||||||
%python_alternative %{_bindir}/docutils
|
%python_alternative %{_bindir}/docutils
|
||||||
%python_alternative %{_bindir}/rst2html
|
%python_alternative %{_bindir}/rst2html
|
||||||
%python_alternative %{_bindir}/rst2latex
|
%python_alternative %{_bindir}/rst2latex
|
||||||
|
|||||||
Reference in New Issue
Block a user