Sync from SUSE:SLFO:Main xmlgraphics-batik revision 8732f327bc7b66504e140b0f8c2395ae
This commit is contained in:
parent
4ab60aa8d4
commit
66c481697b
@ -1,25 +0,0 @@
|
|||||||
From 02e469f660450b37300984ad7ac258dfa0111baa Mon Sep 17 00:00:00 2001
|
|
||||||
From: Michael Simacek <msimacek@redhat.com>
|
|
||||||
Date: Fri, 27 Nov 2015 15:35:57 +0100
|
|
||||||
Subject: [PATCH] Fix imageio codec lookup
|
|
||||||
|
|
||||||
---
|
|
||||||
.../java/org/apache/batik/transcoder/image/PNGTranscoder.java | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/batik-transcoder/src/main/java/org/apache/batik/transcoder/image/PNGTranscoder.java b/batik-transcoder/src/main/java/org/apache/batik/transcoder/image/PNGTranscoder.java
|
|
||||||
index c25804e..7ea8c26 100644
|
|
||||||
--- a/batik-transcoder/src/main/java/org/apache/batik/transcoder/image/PNGTranscoder.java
|
|
||||||
+++ b/batik-transcoder/src/main/java/org/apache/batik/transcoder/image/PNGTranscoder.java
|
|
||||||
@@ -116,7 +116,7 @@ public class PNGTranscoder extends ImageTranscoder {
|
|
||||||
"org.apache.batik.ext.awt.image.codec.png.PNGTranscoderInternalCodecWriteAdapter");
|
|
||||||
if (adapter == null) {
|
|
||||||
adapter = getWriteAdapter(
|
|
||||||
- "org.apache.batik.transcoder.image.PNGTranscoderImageIOWriteAdapter");
|
|
||||||
+ "org.apache.batik.ext.awt.image.codec.imageio.PNGTranscoderImageIOWriteAdapter");
|
|
||||||
}
|
|
||||||
if (adapter == null) {
|
|
||||||
throw new TranscoderException(
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
BIN
batik-build.tar.xz
(Stored with Git LFS)
BIN
batik-build.tar.xz
(Stored with Git LFS)
Binary file not shown.
BIN
batik-src-1.17.tar.gz
(Stored with Git LFS)
BIN
batik-src-1.17.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
batik-src-1.18.tar.gz
(Stored with Git LFS)
Normal file
BIN
batik-src-1.18.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 12 16:20:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1.18
|
||||||
|
* Needed by xmlgraphics-fop 2.10
|
||||||
|
* Changes
|
||||||
|
+ BATIK-1225: PNG transcoder references nonexistent class
|
||||||
|
+ BATIK-1285: Set offset to 0 if missing in stop tag
|
||||||
|
+ BATIK-1318: Validate throws NPE
|
||||||
|
+ BATIK-1355: Missing arabic characters
|
||||||
|
+ BATIK-1361: Animated rotate tranform ignores y-origin at
|
||||||
|
exactly 270 degrees
|
||||||
|
+ BATIK-1362: Set an automatic module name
|
||||||
|
+ BATIK-1363: Ignore inkscape properties
|
||||||
|
+ BATIK-1364: Switch to spotbugs
|
||||||
|
+ FOP-3135: Allow source and target resolution configuration
|
||||||
|
- Removed patch:
|
||||||
|
* 0001-Fix-imageio-codec-lookup.patch
|
||||||
|
+ fixed upstream
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 19 11:26:34 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Specify a reproducible build.id
|
||||||
|
- Clean the spec file and modernize it a bit
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 1 19:02:03 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Fri Mar 1 19:02:03 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
%define _buildshell /bin/bash
|
%define _buildshell /bin/bash
|
||||||
%global classpath xmlgraphics-batik:rhino:xml-commons-apis:xml-commons-apis-ext:xmlgraphics-commons
|
%global classpath xmlgraphics-batik:rhino:xml-commons-apis:xml-commons-apis-ext:xmlgraphics-commons
|
||||||
Name: xmlgraphics-batik
|
Name: xmlgraphics-batik
|
||||||
Version: 1.17
|
Version: 1.18
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Scalable Vector Graphics for Java
|
Summary: Scalable Vector Graphics for Java
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -31,7 +31,6 @@ Source0: http://archive.apache.org/dist/xmlgraphics/batik/source/batik-sr
|
|||||||
Source1: batik-build.tar.xz
|
Source1: batik-build.tar.xz
|
||||||
Source7: %{name}.security.policy
|
Source7: %{name}.security.policy
|
||||||
Patch0: %{name}-nolinksinjavadoc.patch
|
Patch0: %{name}-nolinksinjavadoc.patch
|
||||||
Patch1: 0001-Fix-imageio-codec-lookup.patch
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
@ -165,7 +164,6 @@ find -name '*.class' -delete
|
|||||||
find -name '*.jar' -delete
|
find -name '*.jar' -delete
|
||||||
|
|
||||||
%patch -P 0 -p1
|
%patch -P 0 -p1
|
||||||
%patch -P 1 -p1
|
|
||||||
|
|
||||||
cp -p %{SOURCE7} batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy
|
cp -p %{SOURCE7} batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy
|
||||||
cp -p %{SOURCE7} batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy
|
cp -p %{SOURCE7} batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy
|
||||||
@ -196,25 +194,26 @@ rm -rf batik-script/src/main/java/org/apache/batik/script/jpython
|
|||||||
build-jar-repository -s lib js xml-apis xml-commons-apis-ext xmlgraphics-commons
|
build-jar-repository -s lib js xml-apis xml-commons-apis-ext xmlgraphics-commons
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=
|
ant \
|
||||||
export OPT_JAR_LIST=:
|
-f build-batik.xml \
|
||||||
%{ant} \
|
-Dtest.skip=true \
|
||||||
-f build-batik.xml -Dtest.skip=true \
|
package
|
||||||
package
|
ant \
|
||||||
%{ant} \
|
-Dbuild.id="%{version} ($(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ))" \
|
||||||
|
-Ddev=true \
|
||||||
all-jar jars javadoc
|
all-jar jars javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||||
|
|
||||||
for dir in batik-%{version} batik-%{version}/lib batik-%{version}/extensions; do
|
for dir in batik-%{version} batik-%{version}/lib batik-%{version}/extensions; do
|
||||||
pushd ${dir}
|
pushd ${dir}
|
||||||
for jar in batik-*.jar; do
|
for jar in batik-*.jar; do
|
||||||
basename=`basename ${jar} .jar`
|
basename=`basename ${jar} .jar`
|
||||||
name=`echo ${basename} | sed -e 's/batik-//' | sed -e 's/-%{version}//' `
|
name=`echo ${basename} | sed -e 's/batik-//' | sed -e 's/-%{version}//' `
|
||||||
cp -p ${jar} %{buildroot}%{_javadir}/%{name}/${name}.jar
|
install -pm 0644 ${jar} %{buildroot}%{_javadir}/%{name}/${name}.jar
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
@ -227,13 +226,7 @@ mv %{buildroot}%{_javadir}/%{name}/all.jar %{buildroot}%{_javadir}/%{name}-all.j
|
|||||||
ln -s %{name}-all.jar %{buildroot}%{_javadir}/batik-all.jar
|
ln -s %{name}-all.jar %{buildroot}%{_javadir}/batik-all.jar
|
||||||
|
|
||||||
#pom
|
#pom
|
||||||
mkdir -p %{buildroot}%{_mavenpomdir}/%{name}
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
|
|
||||||
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/parent.pom
|
|
||||||
%add_maven_depmap %{name}/parent.pom
|
|
||||||
|
|
||||||
%{mvn_install_pom} batik-all/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-all.pom
|
|
||||||
%add_maven_depmap %{name}-all.pom %{name}-all.jar
|
|
||||||
|
|
||||||
for i in anim awt-util bridge codec constants dom ext extension gvt i18n parser script shared-resources svg-dom svgbrowser svggen svgrasterizer swing transcoder util gui-util xml;
|
for i in anim awt-util bridge codec constants dom ext extension gvt i18n parser script shared-resources svg-dom svgbrowser svggen svgrasterizer swing transcoder util gui-util xml;
|
||||||
do
|
do
|
||||||
@ -241,27 +234,21 @@ do
|
|||||||
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar
|
||||||
done
|
done
|
||||||
|
|
||||||
cp -p batik-css/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/css.pom
|
for i in css svgpp ttf2svg slideshow;
|
||||||
%add_maven_depmap %{name}/css.pom %{name}/css.jar -f css
|
do
|
||||||
|
%{mvn_install_pom} batik-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||||
cp -p batik-svgpp/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/svgpp.pom
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f ${i}
|
||||||
%add_maven_depmap %{name}/svgpp.pom %{name}/svgpp.jar -f svgpp
|
done
|
||||||
|
|
||||||
cp -p batik-ttf2svg/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/ttf2svg.pom
|
|
||||||
%add_maven_depmap %{name}/ttf2svg.pom %{name}/ttf2svg.jar -f ttf2svg
|
|
||||||
|
|
||||||
cp -p batik-slideshow/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/slideshow.pom
|
|
||||||
%add_maven_depmap %{name}/slideshow.pom %{name}/slideshow.jar -f slideshow
|
|
||||||
|
|
||||||
for i in squiggle squiggle-ext;
|
for i in squiggle squiggle-ext;
|
||||||
do
|
do
|
||||||
cp -p batik-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
%{mvn_install_pom} batik-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||||
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f squiggle
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f squiggle
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in rasterizer rasterizer-ext;
|
for i in rasterizer rasterizer-ext;
|
||||||
do
|
do
|
||||||
cp -p batik-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
%{mvn_install_pom} batik-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/${i}.pom
|
||||||
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f rasterizer
|
%add_maven_depmap %{name}/${i}.pom %{name}/${i}.jar -f rasterizer
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -273,18 +260,18 @@ done
|
|||||||
%jpackage_script org.apache.batik.apps.slideshow.Main '' '' %{classpath} %{name}-slideshow true
|
%jpackage_script org.apache.batik.apps.slideshow.Main '' '' %{classpath} %{name}-slideshow true
|
||||||
|
|
||||||
# demo
|
# demo
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
install -dm 0755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -pr contrib samples test-resources \
|
cp -pr contrib samples test-resources \
|
||||||
%{buildroot}%{_datadir}/%{name}
|
%{buildroot}%{_datadir}/%{name}
|
||||||
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
||||||
ln -s %{name} %{buildroot}%{_datadir}/batik
|
ln -s %{name} %{buildroot}%{_datadir}/batik
|
||||||
|
|
||||||
# policy
|
# policy
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
install -dm 0755 %{buildroot}%{_sysconfdir}/%{name}
|
||||||
cp -p %{SOURCE7} %{buildroot}%{_sysconfdir}/%{name}/rasterizer.policy
|
install -pm 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/%{name}/rasterizer.policy
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr batik-%{version}/docs/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr batik-%{version}/docs/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
@ -292,6 +279,7 @@ cp -pr batik-%{version}/docs/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
%doc KEYS MAINTAIN README
|
%doc KEYS MAINTAIN README
|
||||||
%{_javadir}/batik-all.jar
|
%{_javadir}/batik-all.jar
|
||||||
|
%{_javadir}/%{name}-all.jar
|
||||||
|
|
||||||
%files css -f .mfiles-css
|
%files css -f .mfiles-css
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user