update to 1.14 [release 1.14-1mamba;Sun Apr 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 20:27:39 +01:00
parent 2331f8c53b
commit d0dc06dbcc
11 changed files with 17 additions and 813 deletions

View File

@ -1,151 +0,0 @@
diff -ruN batik-1.7.old/sources/batik-browser-ext.mf batik-1.7/sources/batik-browser-ext.mf
--- batik-1.7.old/sources/batik-browser-ext.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-browser-ext.mf 2007-11-23 12:30:47.000000000 -0500
@@ -1,4 +1,2 @@
Manifest-Version: 1.0
-Class-Path: ../batik-squiggle.jar \
- ../lib/batik-extension.jar
Main-Class: org.apache.batik.apps.svgbrowser.Main
diff -ruN batik-1.7.old/sources/batik-browser.mf batik-1.7/sources/batik-browser.mf
--- batik-1.7.old/sources/batik-browser.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-browser.mf 2007-11-23 12:30:03.000000000 -0500
@@ -1,23 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.svgbrowser.Main
-Class-Path: lib/batik-ext.jar \
- lib/batik-dom.jar \
- lib/batik-css.jar \
- lib/batik-svg-dom.jar \
- lib/batik-gvt.jar \
- lib/batik-parser.jar \
- lib/batik-script.jar \
- lib/batik-bridge.jar \
- lib/batik-swing.jar \
- lib/batik-anim.jar \
- lib/batik-transcoder.jar \
- lib/batik-gui-util.jar \
- lib/batik-awt-util.jar \
- lib/batik-codec.jar \
- lib/batik-util.jar \
- lib/batik-xml.jar \
- lib/xerces_2_5_0.jar \
- lib/xalan-2.6.0.jar \
- lib/xml-apis.jar \
- lib/xml-apis-ext.jar \
- lib/js.jar
diff -ruN batik-1.7.old/sources/batik.mf batik-1.7/sources/batik.mf
--- batik-1.7.old/sources/batik.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik.mf 2007-11-23 12:31:02.000000000 -0500
@@ -1,29 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.svgbrowser.Main
-Class-Path: lib/batik-ext.jar \
- lib/batik-dom.jar \
- lib/batik-css.jar \
- lib/batik-svg-dom.jar \
- lib/batik-gvt.jar \
- lib/batik-parser.jar \
- lib/batik-script.jar \
- lib/batik-bridge.jar \
- lib/batik-swing.jar \
- lib/batik-anim.jar \
- lib/batik-transcoder.jar \
- lib/batik-gui-util.jar \
- lib/batik-awt-util.jar \
- lib/batik-codec.jar \
- lib/batik-util.jar \
- lib/batik-root.jar \
- lib/batik-svggen.jar \
- lib/batik-xml.jar \
- batik-squiggle.jar \
- batik-rasterizer.jar \
- batik-pp.jar \
- lib/xerces_2_5_0.jar \
- lib/xalan-2.6.0.jar \
- lib/xml-apis.jar \
- lib/xml-apis-ext.jar \
- lib/pdf-transcoder.jar \
- lib/js.jar
diff -ruN batik-1.7.old/sources/batik-pp.mf batik-1.7/sources/batik-pp.mf
--- batik-1.7.old/sources/batik-pp.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-pp.mf 2007-11-23 12:30:39.000000000 -0500
@@ -1,10 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.svgpp.Main
-Class-Path: lib/batik-ext.jar \
- lib/batik-dom.jar \
- lib/batik-parser.jar \
- lib/batik-transcoder.jar \
- lib/batik-util.jar \
- lib/batik-xml.jar \
- lib/xml-apis.jar \
- lib/xml-apis-ext.jar
diff -ruN batik-1.7.old/sources/batik-rasterizer-ext.mf batik-1.7/sources/batik-rasterizer-ext.mf
--- batik-1.7.old/sources/batik-rasterizer-ext.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-rasterizer-ext.mf 2007-11-23 12:30:54.000000000 -0500
@@ -1,4 +1,2 @@
Manifest-Version: 1.0
-Class-Path: ../batik-rasterizer.jar \
- ../lib/batik-extension.jar
Main-Class: org.apache.batik.apps.rasterizer.Main
diff -ruN batik-1.7.old/sources/batik-rasterizer.mf batik-1.7/sources/batik-rasterizer.mf
--- batik-1.7.old/sources/batik-rasterizer.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-rasterizer.mf 2007-11-23 12:30:20.000000000 -0500
@@ -1,22 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.rasterizer.Main
-Class-Path: lib/batik-ext.jar \
- lib/batik-dom.jar \
- lib/batik-css.jar \
- lib/batik-svg-dom.jar \
- lib/batik-gvt.jar \
- lib/batik-parser.jar \
- lib/batik-script.jar \
- lib/batik-bridge.jar \
- lib/batik-anim.jar \
- lib/batik-transcoder.jar \
- lib/batik-awt-util.jar \
- lib/batik-codec.jar \
- lib/batik-util.jar \
- lib/batik-xml.jar \
- lib/xerces_2_5_0.jar \
- lib/xalan-2.6.0.jar \
- lib/xml-apis.jar \
- lib/xml-apis-ext.jar \
- lib/pdf-transcoder.jar \
- lib/js.jar
diff -ruN batik-1.7.old/sources/batik-slideshow.mf batik-1.7/sources/batik-slideshow.mf
--- batik-1.7.old/sources/batik-slideshow.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-slideshow.mf 2007-11-23 12:30:31.000000000 -0500
@@ -1,23 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.slideshow.Main
-Class-Path: lib/batik-ext.jar \
- lib/batik-dom.jar \
- lib/batik-css.jar \
- lib/batik-svg-dom.jar \
- lib/batik-gvt.jar \
- lib/batik-parser.jar \
- lib/batik-script.jar \
- lib/batik-bridge.jar \
- lib/batik-swing.jar \
- lib/batik-anim.jar \
- lib/batik-transcoder.jar \
- lib/batik-gui-util.jar \
- lib/batik-awt-util.jar \
- lib/batik-codec.jar \
- lib/batik-util.jar \
- lib/batik-xml.jar \
- lib/xerces_2_5_0.jar \
- lib/xalan-2.6.0.jar \
- lib/xml-apis.jar \
- lib/xml-apis-ext.jar \
- lib/js.jar
diff -ruN batik-1.7.old/sources/batik-ttf2svg.mf batik-1.7/sources/batik-ttf2svg.mf
--- batik-1.7.old/sources/batik-ttf2svg.mf 2007-03-26 11:53:18.000000000 -0400
+++ batik-1.7/sources/batik-ttf2svg.mf 2007-11-23 12:30:11.000000000 -0500
@@ -1,4 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.ttf2svg.Main
-Class-Path: lib/batik-svggen.jar \
- lib/batik-util.jar

View File

@ -1,34 +0,0 @@
diff -uNr batik-1.7-clean/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.bin.policy batik-1.7/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.bin.policy
--- batik-1.7-clean/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.bin.policy 2007-09-07 14:05:13.000000000 -0400
+++ batik-1.7/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.bin.policy 2007-09-12 13:36:24.000000000 -0400
@@ -30,6 +30,11 @@
permission java.security.AllPermission;
};
+//new stuff
+grant codeBase "${app.jar.base}/batik-all.jar" {
+ permission java.security.AllPermission;
+};
+
grant codeBase "${app.jar.base}/lib/batik-ext.jar" {
permission java.security.AllPermission;
};
diff -uNr batik-1.7-clean/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy batik-1.7/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy
--- batik-1.7-clean/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy 2007-09-07 14:05:13.000000000 -0400
+++ batik-1.7/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy 2007-09-12 13:36:49.000000000 -0400
@@ -34,6 +34,10 @@
permission java.security.AllPermission;
};
+grant codeBase "${app.jar.base}/batik-all.jar" {
+ permission java.security.AllPermission;
+};
+
grant codeBase "${app.jar.base}/lib/batik-ext.jar" {
permission java.security.AllPermission;
};
@@ -104,4 +108,3 @@
grant {
permission java.io.FilePermission "lib/batik-svg-dom.jar", "read";
};
-

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Categories=Graphics;VectorGraphics;Java;X-JPackage;
Comment=SVG browser
Exec=batik-squiggle
Icon=squiggleIcon
MimeType=image/svg+xml;
Name=Apache Batik Squiggle
Name[it]=Apache Batik Squiggle
Terminal=false
Type=Application

View File

@ -1,4 +0,0 @@
grant {
permission java.security.AllPermission;
};

View File

@ -1,36 +0,0 @@
#!/bin/sh
#
# Batik SVG Rasterizer script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Source system prefs
if [ -f /etc/batik-rasterizer.conf ] ; then
. /etc/batik-rasterizer.conf
fi
# Source user prefs
if [ -f $HOME/.xmlgraphics-batik-rasterizerrc ] ; then
. $HOME/.xmlgraphics-batik-rasterizerrc
fi
# Configuration
MAIN_CLASS=org.apache.batik.apps.rasterizer.Main
BASE_JARS="batik-rasterizer batik-util batik-transcoder batik-parser"
BASE_FLAGS="-Djava.security.policy=/etc/batik/rasterizer.policy"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,35 +0,0 @@
#!/bin/sh
#
# Batik SVG Slideshow script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Source system prefs
if [ -f /etc/xmlgraphics-batik-slideshow.conf ] ; then
. /etc/xmlgraphics-batik-slideshow.conf
fi
# Source user prefs
if [ -f $HOME/.xmlgraphics-batik-slideshowrc ] ; then
. $HOME/.xmlgraphics-batik-slideshowrc
fi
# Configuration
MAIN_CLASS=org.apache.batik.apps.slideshow.Main
BASE_JARS="batik-slideshow batik-bridge"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,474 +1,55 @@
Name: apache-batik Name: apache-batik
Version: 1.7 Version: 1.14
Release: 10mamba Release: 1mamba
Summary: Scalable Vector Graphics for Java Summary: Scalable Vector Graphics for Java
Group: Applications/Graphics Group: Applications/Graphics
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://xmlgraphics.apache.org/batik/ URL: http://xmlgraphics.apache.org/batik/
Source0: http://mirror.tomato.it/apache/xmlgraphics/batik/batik-src-%{version}.zip Source0: https://www.apache.org/dist/xmlgraphics/batik/source/batik-src-%{version}.tar.gz
Source1: apache-batik.squiggle.script
Source2: apache-batik.svgpp.script
Source3: apache-batik.ttf2svg.script
Source4: apache-batik.rasterizer.script
Source5: apache-batik.slideshow.script
Source6: apache-batik-squiggle.desktop
Source7: apache-batik.rasterizer.policy
Source8: batik-orbit-manifests.tar.gz
Source9: batik.squiggle.policy
Patch0: apache-batik-1.7-manifests.patch
Patch1: apache-batik-1.7-policy.patch
License: Apache Software License 2.0 License: Apache Software License 2.0
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: java-openjdk8
BuildRequires: javapackages
BuildRequires: apache-ant BuildRequires: apache-ant
%if "%{stage1}" != "1"
BuildRequires: apache-ant-trax
BuildRequires: apache-fop = 0.95
BuildRequires: apache-xml-stylebook
BuildRequires: apache-xml-crimson
BuildRequires: jython
%endif
BuildRequires: java-rhino
BuildRequires: java-rhino-javadoc
BuildRequires: jpackage-utils
BuildRequires: xalan-j2 BuildRequires: xalan-j2
BuildRequires: xerces-j2 BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
BuildRequires: xml-commons-apis-javadoc
%if "%{stage1}" != "1"
Requires: java-rhino Requires: java-rhino
%endif
Requires: xalan-j2 Requires: xalan-j2
Requires: xml-commons-apis Requires: xml-commons-apis
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation. Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
%package squiggle
Group: Applications/Graphics
Summary: Batik SVG browser
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
Requires: xerces-j2
%description squiggle
The Squiggle SVG Browser lets you view SVG file, zoom, pan and rotate in the content and select text items in the image and much more.
%package svgpp
Group: Applications/Graphics
Summary: Batik SVG pretty printer
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
Requires: xerces-j2
%description svgpp
The SVG Pretty Printer lets developers "pretty-up" their SVG files and get their tabulations and other cosmetic parameters in order. It can also be used to modify the DOCTYPE declaration on SVG files.
%package ttf2svg
Group: Applications/Graphics
Summary: Batik SVG font converter
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
%description ttf2svg
The SVG Font Converter lets developers convert character ranges from the True Type Font format to the SVG Font format to embed in SVG documents. This allows SVG document to be fully self-contained be rendered exactly the same on all systems.xalan-j2
%package rasterizer
Group: Applications/Graphics
Summary: Batik SVG rasterizer
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
Requires: xerces-j2
%description rasterizer
The SVG Rasterizer is a utility that can convert SVG files to a raster format. The tool can convert individual files or sets of files, making it easy to convert entire directories of SVG files. The supported formats are JPEG, PNG, and TIFF, however the design allows new formats to be added easily.
%package slideshow
Group: Applications/Graphics
Summary: Batik SVG slideshow
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
Requires: xalan-j2
Requires: xerces-j2
%description slideshow
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
This package contains Batik SVG slideshow.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
This package contains javadoc for %{name}.
%package demo
Group: Documentation
Summary: Demo for %{name}
Requires: %{name} = %{version}-%{release}
%description demo
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
This package contains demonstrations and samples for %{name}.
%package rasterizertask
Group: Applications/Graphics
Summary: SVG Rasterizer Task for Ant
Requires: %{name} = %{version}-%{release}
%description rasterizertask
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
This package contains rasterizer task for Ant. The task can be used to convert SVG files to raster format. This has been contributed by Henri Ruini (ruini@iki.fi).
%package rasterizertask-javadoc
Group: Documentation
Summary: Javadoc for %{name}-rasterizertask
%description rasterizertask-javadoc
Batik is a Java(tm) technology based toolkit for applications that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation.
%{name}-rasterizertask can be used to convert SVG images to raster images.
This package contains javadoc for %{name}-rasterizertask.
%prep %prep
%setup -q -n batik-%{version} %setup -q -n batik-%{version}
%patch0 -p1
%patch1 -p1
for j in $(find . -name "*.jar"); do
rm -rf $j
done
pushd documentation-sources/content/demo
ln -s $(build-classpath xml-commons-apis) xml-apis-dom3.jar
popd
pushd lib
%if "%{stage1}" != "1"
ln -s $(build-classpath rhino) js.jar
ln -s $(build-classpath jython) jython.jar
ln -s $(build-classpath fop-transcoder-allinone) pdf-transcoder.jar
%endif
ln -s $(build-classpath xalan-j2) xalan-2.6.0.jar
ln -s $(build-classpath xerces-j2) xerces_2_5_0.jar
ln -s $(build-classpath xml-commons-apis) xml-apis.jar
ln -s $(build-classpath xml-commons-apis-ext) xml-apis-ext.jar
pushd build
ln -s $(build-classpath ant-1.7.1) ant-1.6.5.jar
ln -s $(build-classpath ant/ant-launcher) ant-launcher-1.6.5.jar
%if "%{stage1}" != "1"
ln -s $(build-classpath crimson) crimson-1.1.3.jar
ln -s $(build-classpath xml-stylebook) stylebook.jar
%endif
popd
popd
rm resources/org/apache/batik/ext/awt/image/codec/properties
rm test-resources/org/apache/batik/apps/rasterizer/readOnly.png
mkdir orbit
pushd orbit
tar xzf %{SOURCE8}
popd
%build %build
export JAVA_HOME=%{_jvmdir}/java-8
export ANT_OPTS="-Xmx1024m" ant all-jar
sed -i 's|maxmemory="128m"|maxmemory="512m"|' build.xml
%if "%{stage1}" != "1"
#ant all-jar jars javadoc testjars maven-artifacts runtestsuite libs-jar bean
export CLASSPATH=$(build-classpath crimson js junit-3.8.2 rhino ant/ant-trax jython xml-stylebook)
CLASSPATH=$CLASSPATH:$(build-classpath xalan-j2 xerces-j2 xml-commons-apis xml-commons-apis-ext)
%else
export CLASSPATH=$(build-classpath junit-3.8.2 rhino)
CLASSPATH=$CLASSPATH:$(build-classpath xalan-j2 xerces-j2 xml-commons-apis xml-commons-apis-ext)
%endif
ant all-jar jars \
-Ddebug=on \
-Dsun-codecs.present=false \
-Dsun-codecs.disabled=true \
svg-pp-jar \
svg-slideshow-jar \
squiggle-jar \
rasterizer-jar \
ttf2svg-jar \
libs-jar bean
for j in $(find batik-%{version} -name *.jar); do
export CLASSPATH=$CLASSPATH:${j}
done
export CLASSPATH=$CLASSPATH:classes
ant \
-Ddom.javadoc=%{_javadocdir}/xml-commons-apis \
-Djdk.javadoc=%{_javadocdir}/java \
-Drhino.javadoc=%{_javadocdir}/rhino \
javadoc
pushd contrib/rasterizertask
for j in $(find ../../batik-%{version} -name *.jar); do
export CLASSPATH=$CLASSPATH:${j}
done
ant \
-Ddom.javadoc=%{_javadocdir}/xml-commons-apis \
-Djdk.javadoc=%{_javadocdir}/java \
-Drhino.javadoc=%{_javadocdir}/rhino \
jar javadoc
popd
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p META-INF install -D -m0644 batik-%{version}/lib/batik-all-%{version}.jar %{buildroot}%{_javadir}/batik/batik-all-%{version}.jar
cp -p orbit/batik-bridge-MANIFEST.MF META-INF/MANIFEST.MF ln -s batik-all-%{version}.jar %{buildroot}%{_javadir}/batik/batik-all.jar
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-bridge.jar META-INF/MANIFEST.MF
cp -p orbit/batik-css-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-css.jar META-INF/MANIFEST.MF
cp -p orbit/batik-dom-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-dom.jar META-INF/MANIFEST.MF
cp -p orbit/batik-dom-svg-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-svg-dom.jar META-INF/MANIFEST.MF
cp -p orbit/batik-ext-awt-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-awt-util.jar META-INF/MANIFEST.MF
cp -p orbit/batik-extension-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-extension.jar META-INF/MANIFEST.MF
cp -p orbit/batik-parser-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-parser.jar META-INF/MANIFEST.MF
cp -p orbit/batik-svggen-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-svggen.jar META-INF/MANIFEST.MF
cp -p orbit/batik-swing-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-swing.jar META-INF/MANIFEST.MF
cp -p orbit/batik-transcoder-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-transcoder.jar META-INF/MANIFEST.MF
cp -p orbit/batik-util-gui-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-gui-util.jar META-INF/MANIFEST.MF
cp -p orbit/batik-util-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-util.jar META-INF/MANIFEST.MF
cp -p orbit/batik-xml-MANIFEST.MF META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u batik-%{version}/lib/batik-xml.jar META-INF/MANIFEST.MF
mkdir -p %{buildroot}%{_javadir} cp --no-preserve=ownership lib/*.jar %{buildroot}%{_datadir}/java/batik/
for dir in batik-%{version} batik-%{version}/lib batik-%{version}/extensions; do
pushd ${dir}
for jar in batik-*.jar; do
basename=`basename ${jar} .jar`
# name=`echo ${basename} | sed "s|batik-||g"`
cp -p ${jar} %{buildroot}%{_javadir}/${basename}-%{version}.jar
done
popd
done
#for pkg in squiggle squiggle-ext svgpp ttf2svg rasterizer rasterizer-ext slideshow; do
# ln -s ${pkg}-%{version}.jar %{buildroot}%{_javadir}/%{name}/batik-${pkg}-%{version}.jar
#done
#mv %{buildroot}%{_javadir}/all-%{version}.jar %{buildroot}%{_javadir}/batik-all-%{version}.jar
#ln -s %{name}-all-%{version}.jar %{buildroot}%{_javadir}/batik-all-%{version}.jar
# %{buildroot}%{_javadir}/batik
for dir in %{buildroot}%{_javadir} ; do
pushd ${dir}
for jar in *-%{version}*.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
popd
done
mkdir -p %{buildroot}%{_bindir}
install -pm 755 %{S:1} %{buildroot}%{_bindir}/batik-squiggle
install -pm 755 %{S:2} %{buildroot}%{_bindir}/batik-svgpp
install -pm 755 %{S:3} %{buildroot}%{_bindir}/batik-ttf2svg
install -pm 755 %{S:4} %{buildroot}%{_bindir}/batik-rasterizer
install -pm 755 %{S:5} %{buildroot}%{_bindir}/batik-slideshow
mkdir -p %{buildroot}%{_datadir}/applications
install -pm 644 %{S:6} %{buildroot}%{_datadir}/applications/apache-batik-squiggle.desktop
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -pm 644 resources/org/apache/batik/apps/svgbrowser/resources/squiggleIcon.png \
%{buildroot}%{_datadir}/pixmaps/squiggleIcon.png
mkdir -p %{buildroot}%{_javadocdir}/batik-%{version}
cp -pr batik-%{version}/docs/javadoc/* %{buildroot}%{_javadocdir}/batik-%{version}
ln -s batik-%{version} %{buildroot}%{_javadocdir}/batik
rm -rf batik-%{version}/docs/javadoc
mkdir -p %{buildroot}%{_datadir}/batik
cp -pr contrib resources samples test-resources test-sources \
%{buildroot}%{_datadir}/batik
chmod +x %{buildroot}%{_datadir}/batik/contrib/rasterizertask/build.sh
chmod +x %{buildroot}%{_datadir}/batik/contrib/charts/convert.sh
mkdir -p %{buildroot}%{_sysconfdir}/batik
install -pm 644 %{S:7} %{buildroot}%{_sysconfdir}/batik/rasterizer.policy
#install -pm 644 %{S:9} %{buildroot}%{_sysconfdir}/batik/batik.squiggle.policy
touch %{buildroot}%{_sysconfdir}/batik-rasterizer.conf
touch %{buildroot}%{_sysconfdir}/batik-slideshow.conf
touch %{buildroot}%{_sysconfdir}/batik-squiggle.conf
touch %{buildroot}%{_sysconfdir}/batik-svgpp.conf
touch %{buildroot}%{_sysconfdir}/batik-ttf2svg.conf
install -pm 644 contrib/rasterizertask/build/lib/RasterizerTask.jar \
%{buildroot}%{_javadir}/rasterizertask-%{version}.jar
(
cd %{buildroot}%{_javadir}
ln -sf rasterizertask-%{version}.jar rasterizertask.jar
)
#mkdir -p %{buildroot}/opt/java/ant/lib
#install -pm 644 contrib/rasterizertask/build/lib/RasterizerTask.jar \
# %{buildroot}/opt/java/ant/lib/rasterizertask.jar
#(
# cd %{buildroot}/opt/java/ant/lib
# ln -sf rasterizertask.jar rasterizertask-%{version}.jar
#)
mkdir -p %{buildroot}%{_javadocdir}/batik-rasterizertask-%{version}
cp -pr contrib/rasterizertask/doc/javadoc/* %{buildroot}%{_javadocdir}/batik-rasterizertask-%{version}
ln -s batik-rasterizertask-%{version} %{buildroot}%{_javadocdir}/batik-rasterizertask
#%{_bindir}/aot-compile-rpm
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_sysconfdir}/batik %dir %{_javadir}/batik
%{_sysconfdir}/batik/rasterizer.policy %{_javadir}/batik/*.jar
%{_javadir}/batik-all-%{version}.jar
%{_javadir}/batik-all.jar
%{_javadir}/batik-anim-%{version}.jar
%{_javadir}/batik-anim.jar
%{_javadir}/batik-awt-util-%{version}.jar
%{_javadir}/batik-awt-util.jar
%{_javadir}/batik-bean-%{version}.jar
%{_javadir}/batik-bean.jar
%{_javadir}/batik-bridge-%{version}.jar
%{_javadir}/batik-bridge.jar
%{_javadir}/batik-codec-%{version}.jar
%{_javadir}/batik-codec.jar
%{_javadir}/batik-css-%{version}.jar
%{_javadir}/batik-css.jar
%{_javadir}/batik-dom-%{version}.jar
%{_javadir}/batik-dom.jar
%{_javadir}/batik-ext-%{version}.jar
%{_javadir}/batik-ext.jar
%{_javadir}/batik-extension-%{version}.jar
%{_javadir}/batik-extension.jar
%{_javadir}/batik-gui-util-%{version}.jar
%{_javadir}/batik-gui-util.jar
%{_javadir}/batik-gvt-%{version}.jar
%{_javadir}/batik-gvt.jar
%{_javadir}/batik-libs-%{version}.jar
%{_javadir}/batik-libs.jar
%{_javadir}/batik-parser-%{version}.jar
%{_javadir}/batik-parser.jar
%{_javadir}/batik-script-%{version}.jar
%{_javadir}/batik-script.jar
%{_javadir}/batik-svg-dom-%{version}.jar
%{_javadir}/batik-svg-dom.jar
%{_javadir}/batik-svggen-%{version}.jar
%{_javadir}/batik-svggen.jar
%{_javadir}/batik-swing-%{version}.jar
%{_javadir}/batik-swing.jar
%{_javadir}/batik-transcoder-%{version}.jar
%{_javadir}/batik-transcoder.jar
%{_javadir}/batik-util-%{version}.jar
%{_javadir}/batik-util.jar
%{_javadir}/batik-xml-%{version}.jar
%{_javadir}/batik-xml.jar
%doc KEYS LICENSE MAINTAIN NOTICE README
%files squiggle
%defattr(-,root,root)
#%{_sysconfdir}/batik/batik.squiggle.policy
%config(noreplace) %{_sysconfdir}/batik-squiggle.conf
%attr(0755,root,root) %{_bindir}/batik-squiggle
%{_datadir}/applications/apache-batik-squiggle.desktop
%{_datadir}/pixmaps/squiggleIcon.png
%{_javadir}/batik-squiggle-%{version}.jar
%{_javadir}/batik-squiggle-ext-%{version}.jar
%{_javadir}/batik-squiggle-ext.jar
%{_javadir}/batik-squiggle.jar
%files svgpp
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/batik-svgpp.conf
%attr(0755,root,root) %{_bindir}/batik-svgpp
%{_javadir}/batik-svgpp-%{version}.jar
%{_javadir}/batik-svgpp.jar
%files ttf2svg
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/batik-ttf2svg.conf
%attr(0755,root,root) %{_bindir}/batik-ttf2svg
%{_javadir}/batik-ttf2svg-%{version}.jar
%{_javadir}/batik-ttf2svg.jar
%files rasterizer
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/batik-rasterizer.conf
%attr(0755,root,root) %{_bindir}/batik-rasterizer
%{_javadir}/batik-rasterizer-%{version}.jar
%{_javadir}/batik-rasterizer-ext-%{version}.jar
%{_javadir}/batik-rasterizer-ext.jar
%{_javadir}/batik-rasterizer.jar
%files slideshow
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/batik-slideshow.conf
%attr(0755,root,root) %{_bindir}/batik-slideshow
%{_javadir}/batik-slideshow-%{version}.jar
%{_javadir}/batik-slideshow.jar
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/batik-%{version}
%{_javadocdir}/batik
%files demo
%defattr(-,root,root)
%{_datadir}/batik
%files rasterizertask
%defattr(-,root,root)
%{_javadir}/rasterizertask-%{version}.jar
%{_javadir}/rasterizertask.jar
%doc contrib/rasterizertask/README
%files rasterizertask-javadoc
%defattr(-,root,root)
%{_javadocdir}/batik-rasterizertask-%{version}
%{_javadocdir}/batik-rasterizertask
%changelog %changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.14-1mamba
- update to 1.14
* Tue Nov 09 2010 gil <puntogil@libero.it> 1.7-10mamba * Tue Nov 09 2010 gil <puntogil@libero.it> 1.7-10mamba
- rebuilt devel - rebuilt devel

View File

@ -1,34 +0,0 @@
#!/bin/sh
#
# Batik SVG Browser (Squiggle) script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Source system prefs
if [ -f /etc/batik-squiggle.conf ] ; then
. /etc/batik-squiggle.conf
fi
# Source user prefs
if [ -f $HOME/.xmlgraphics-batik-squigglerc ] ; then
. $HOME/.xmlgraphics-batik-squigglerc
fi
# Configuration
MAIN_CLASS=org.apache.batik.apps.svgbrowser.Main
BASE_JARS="batik-squiggle.jar batik-dom batik-css batik-swing batik-transcoder batik-svg-dom batik-gui-util batik-bridge batik-gvt batik-util batik-dom rhino xml-commons-jaxp-1.3-apis xml-commons-apis-ext batik-squiggle-ext"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,35 +0,0 @@
#!/bin/sh
#
# Batik SVG Pretty Printer script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Source system prefs
if [ -f /etc/batik-svgpp.conf ] ; then
. /etc/batik-svgpp.conf
fi
# Source user prefs
if [ -f $HOME/.xmlgraphics-batik-svgpprc ] ; then
. $HOME/.xmlgraphics-batik-svgpprc
fi
# Configuration
MAIN_CLASS=org.apache.batik.apps.svgpp.Main
BASE_JARS="batik-svgpp batik-transcoder batik-util"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,35 +0,0 @@
#!/bin/sh
#
# Batik SVG Font Converter script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Source user prefs
if [ -f /etc/batik-ttf2svg.conf ] ; then
. /etc/batik-ttf2svg.conf
fi
# Allow user-defined prefs
if [ -f $HOME/.xmlgraphics-batik-ttf2svgrc ] ; then
. $HOME/.xmlgraphics-batik-ttf2svgrc
fi
# Configuration
MAIN_CLASS=org.apache.batik.apps.ttf2svg.Main
BASE_JARS="batik-ttf2svg batik-svggen batik-util"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,3 +0,0 @@
grant {
permission java.security.AllPermission;
};