2023-11-02 17:08:52 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package jsvg
|
|
|
|
|
#
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-11-02 17:08:52 +00:00
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
%global version_base 2.0.0
|
|
|
|
|
%global version_suffix rc5
|
2023-11-02 17:08:52 +00:00
|
|
|
|
Name: jsvg
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
Version: %{version_base}~%{version_suffix}
|
2023-11-02 17:08:52 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Java SVG renderer
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
URL: https://github.com/weisJ/%{name}
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
Source0: %{url}/archive/refs/tags/v%{version_base}-%{version_suffix}.tar.gz
|
|
|
|
|
Source1: https://repo1.maven.org/maven2/com/github/weisj/%{name}/%{version_base}/%{name}-%{version_base}.pom
|
2023-11-02 17:08:52 +00:00
|
|
|
|
BuildRequires: fdupes
|
2024-06-17 05:53:21 +00:00
|
|
|
|
BuildRequires: java-devel >= 9
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
BuildRequires: jurand
|
2023-11-02 17:08:52 +00:00
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(com.google.errorprone:error_prone_annotations)
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2023-11-02 17:08:52 +00:00
|
|
|
|
BuildRequires: mvn(org.jetbrains:annotations)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
JSVG is an SVG user agent using AWT graphics. Its aim is to provide a small and
|
|
|
|
|
fast implementation. This library is under active development and doesn’t yet
|
|
|
|
|
support all features of the SVG specification, some of which it decidedly won’t
|
|
|
|
|
support at all. This implementation only tries to be a static user agent
|
|
|
|
|
meaning it won’t support any scripting languages or interaction. Animations
|
|
|
|
|
aren’t currently implemented but are planned to be supported.
|
|
|
|
|
|
|
|
|
|
This library aims to be as lightweight as possible. Generally JSVG uses ~50%
|
|
|
|
|
less memory than svgSalamander and ~98% less than Batik.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
%autosetup -n %{name}-%{version_base}-%{version_suffix}
|
2023-11-02 17:08:52 +00:00
|
|
|
|
|
|
|
|
|
cp %{SOURCE1} %{name}/pom.xml
|
|
|
|
|
|
|
|
|
|
%pom_add_dep org.jetbrains:annotations %{name}
|
|
|
|
|
%pom_add_dep com.google.errorprone:error_prone_annotations %{name}
|
|
|
|
|
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
jurand -i -a -n Sealed \
|
|
|
|
|
jsvg/src/main/java/com/github/weisj/jsvg/attributes/{value,font/FontStyle.java}
|
|
|
|
|
|
2024-06-17 05:48:17 +00:00
|
|
|
|
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin %{name} \
|
|
|
|
|
'<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>compile-java-8</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>8</source>
|
|
|
|
|
<target>8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>compile-java-9</id>
|
|
|
|
|
<phase>compile</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<release>9</release>
|
|
|
|
|
<compileSourceRoots>
|
|
|
|
|
<compileSourceRoot>${project.basedir}/src/main/module</compileSourceRoot>
|
|
|
|
|
</compileSourceRoots>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>'
|
|
|
|
|
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
%pom_xpath_inject pom:project '<packaging>bundle</packaging>' %{name}
|
|
|
|
|
|
|
|
|
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name} \
|
|
|
|
|
'<extensions>true</extensions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<instructions>
|
|
|
|
|
<Bundle-SymbolicName>com.github.weisj.%{name}</Bundle-SymbolicName>
|
|
|
|
|
<_exportcontents>
|
|
|
|
|
com.github.weisj.%{name},
|
|
|
|
|
com.github.weisj.%{name}.paint,
|
|
|
|
|
com.github.weisj.%{name}.parser,
|
|
|
|
|
com.github.weisj.%{name}.parser.css,
|
|
|
|
|
com.github.weisj.%{name}.parser.resources,
|
|
|
|
|
com.github.weisj.%{name}.provider,
|
|
|
|
|
com.github.weisj.%{name}.renderer,
|
|
|
|
|
com.github.weisj.%{name}.renderer.animation,
|
|
|
|
|
com.github.weisj.%{name}.renderer.awt,
|
|
|
|
|
com.github.weisj.%{name}.renderer.output,
|
|
|
|
|
com.github.weisj.%{name}.ui,
|
|
|
|
|
com.github.weisj.%{name}.view,
|
|
|
|
|
</_exportcontents>
|
|
|
|
|
<Import-Package>!com.google.errorprone.annotations, *</Import-Package>
|
|
|
|
|
<_removeheaders>Private-Package,Tool</_removeheaders>
|
|
|
|
|
</instructions>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>bundle-manifest</id>
|
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>manifest</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>'
|
|
|
|
|
|
|
|
|
|
mkdir jsvg/src/main/module
|
|
|
|
|
cat >jsvg/src/main/module/module-info.java <<__JAVA__
|
|
|
|
|
open module com.github.weisj.jsvg
|
|
|
|
|
{
|
|
|
|
|
requires org.jetbrains.annotations;
|
|
|
|
|
requires static com.google.errorprone.annotations;
|
|
|
|
|
requires java.base;
|
|
|
|
|
requires transitive java.desktop;
|
|
|
|
|
requires java.logging;
|
|
|
|
|
requires transitive java.xml;
|
|
|
|
|
exports com.github.weisj.jsvg;
|
|
|
|
|
exports com.github.weisj.jsvg.paint;
|
|
|
|
|
exports com.github.weisj.jsvg.parser;
|
|
|
|
|
exports com.github.weisj.jsvg.parser.css;
|
|
|
|
|
exports com.github.weisj.jsvg.parser.resources;
|
|
|
|
|
exports com.github.weisj.jsvg.renderer;
|
|
|
|
|
exports com.github.weisj.jsvg.renderer.animation;
|
|
|
|
|
exports com.github.weisj.jsvg.renderer.awt;
|
|
|
|
|
exports com.github.weisj.jsvg.renderer.output;
|
|
|
|
|
exports com.github.weisj.jsvg.ui;
|
|
|
|
|
exports com.github.weisj.jsvg.view;
|
|
|
|
|
}
|
|
|
|
|
__JAVA__
|
|
|
|
|
|
2023-11-02 17:08:52 +00:00
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
|
|
|
|
|
|
%build
|
2025-03-27 21:22:31 +00:00
|
|
|
|
pushd %{name}
|
Accepting request 1288405 from home:urbic:branches:Java:packages
- Update to v2.0.0
* Changes
+ Errors during parsing are now logged with WARNING as their
log level instead of SEVERE.
+ ParsedElement and ParsedDocument have been removed from the
public API. They have been replaced with DomDocument and
DomElement. The DOMProcessor, ResourceLoader, StyleSheet etc.
interfaces have been adjusted accordingly.
+ AttributeNode and AttributeParser have been removed from the
public facing API e.g. they are no longer arguments to the
methods in PaintParser. Attributes can now only be accessed
by their raw string value through
DomElement#attribute(String). The PaintParser can be obtained
through the DomDocument associated to the DomElement.
+ the functionality of ParserProvider has been moved into
LoaderContext. This unifies the places of customisation
points during parsing.
+ SVGNode including all implementations have been removed from
the public API. Use DomElement#tagName() to determine the
type of an element instead.
+ The exposed API of RenderContext has been reduced to
transform related functions, colors and opacity.
+ Graphics2DOutput has been removed from the public API. Use
Output#createForGraphics(Graphics2D) to obtain a ready to be
used configured instance.
* New API:
+ LoaderContext has been extended to support the customisation
previously available through ParserProvider.
+ SVGDocument#load(XMLInput, URI, LoaderContext) has been added
to support loading from non InputStream/URL based sources.
The XMLInput input classes has the method
XMLInput#createReader returning an XMLEventReader.
* The following classes have been renamed:
+ UIFuture has been renamed to ResourceSupplier.
+ AnimationPeriod has been renamed to Animation.
+ All occurrences of Provider<T> have been replaced with
Supplier<T> from the JDK.
* The following API has been removed:
+ The asynchronous implementation of UIFuture.
+ ParserProvider#createPostProcessor() has been removed.
+ ParserProvider has been removed. Its functionality has been
merged into LoaderContext.
* The following deprecated methods have been removed:
+ SVGDocument#render(JComponent, Graphics2D, ViewBox).
~ Use render(Component, Graphics2D, ViewBox) instead.
+ SVGLoader#SVGDocument load(InputStream),
SVGLoader#load(InputStream, ParserProvider),
SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
~ Use SVGLoader#load(InputStream, URI, LoaderContext) instead.
+ The NullPlatformSupport constructor.
~ Use NullPlatformSupport.INSTANCE instead.
All other previously deprecated functions are in classes which
have been removed from the public API completely.
- Update to v1.7.2
* Changes
+ Fix broken animations
- Update to v1.7.1
Important: The last release erroneously contained byte code
incompatible with Java versions before Java 21 if animations are
used. This release fixes this and makes the library again
compatible with Java 8.
* Changes
+ Correctness improvements for text-anchor #110 7d1fb8f
+ The default resource policy now allows for embedded data uri
images. 8ab4aae
+ Percentage values in startOffset of a <textPath> now properly
resolve with respect to the length of the paths. Some
scenarios are still unsupported e.g. negative values and
values larger than the path length. #115 eef2211
+ Fix incorrect inheritance behaviour of the dominant-baseline
property #116 be43583
+ Font family names within single or double quotes are now
correctly resolved. #117 5614b6c
+ Fix exception when radial gradients have a non-positive
radius #118 e953115
+ Fix exception when the last two gradients stops have have the
same offset value #118 e953115
+ Fix exception when gradients have only one specified stop
#118 55261f7
- Update to v1.7.0
Warning: This release erroneously contains byte code incompatible
with Java versions before Java 21. This has been fixed in JSVG
version 1.7.1.
* Changes
+ Implementors of Output now have more control over how text
gets rendered. The can opt to receive information about the
text being laid out by returning a custom TextOutput in
Output#textOutput.
+ ExternalResourcePolicy now applies to all resources not only
referenced SVG elements.
+ Support for multi-char codepoints such as "𝄞".
+ Rudimentary support for rendering emoji. This feature does
not work on every operating system and JDK version.
+ Support for more units:
~ rem
~ ch
~ Q
~ vw,vh,vmin,vmax
~ vi,vb
+ ParsedElement now has access to the document it belongs to
(via ParsedElement#document) and to its parent element (via
ParsedElement#parent).
+ The rx and ry attributes are now correctly applied in cases.
+ Fixed rendering of paths with repeated cubic/quadratic bezier
commands.
+ Fixed usage of repeated values in the paint-order attribute.
+ stroke-opacity and fill-opacity now correctly don't
accumulate to child elements.
+ Percentages in stroke related properties now correctly refer
to the diagonal length of the current viewport.
+ Fixed bounds computation of empty groups for which a
transform is specified.
+ Support for the transform-box property. (by @Cu3PO42 in #99)
+ Prevent DOS attacks through exponential leaf nodes using use
elements. The limits for this can be configured setting
custom DocumentLimits in the LoaderContext.
+ JSVG now provides OSGi metadata (by @HannesWell in #107)
+ Preview support for animations. Not many properties outside
of geometry properties are animatable. Only basic animation
timings are implemented.
* Deprecations
See documentation for replacements.
+ LoadHelper(AttributeParser, ResourceLoader)
+ SVGDocument#render(JComponent, Graphics2D, ViewBox)
+ AttributeNode#getPercentage(String, float)
+ SVGDocumentBuilder(ParserProvider, ResourceLoader,
NodeSupplier)
+ SVGLoader#load(InputStream)
+ SVGLoader#load(InputStream, ParserProvider)
+ SVGLoader#load(InputStream, ParserProvider, ResourceLoader)
- Add the OSGi metadata to the manifest
OBS-URL: https://build.opensuse.org/request/show/1288405
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsvg?expand=0&rev=9
2025-06-25 04:54:11 +00:00
|
|
|
|
%{mvn_build} -f
|
2025-03-27 21:22:31 +00:00
|
|
|
|
popd
|
2023-11-02 17:08:52 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2025-03-27 21:22:31 +00:00
|
|
|
|
pushd %{name}
|
2023-11-02 17:08:52 +00:00
|
|
|
|
%mvn_install
|
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
2025-03-27 21:22:31 +00:00
|
|
|
|
popd
|
2023-11-02 17:08:52 +00:00
|
|
|
|
|
2025-03-27 21:22:31 +00:00
|
|
|
|
%files -f %{name}/.mfiles
|
2023-11-02 17:08:52 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc {CONTRIBUTING,README}.md
|
|
|
|
|
|
2025-03-27 21:22:31 +00:00
|
|
|
|
%files javadoc -f %{name}/.mfiles-javadoc
|
2023-11-02 17:08:52 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%changelog
|