commit 106425e30e772ed1275b0e8fc0c2459493e2ef1f59a49c272cbd0dfa6c8e8bf2 Author: Michal Vyskocil Date: Thu Nov 4 14:59:34 2010 +0000 Accepting request 52154 from home:mvyskocil:fop OK for xmlgraphics-batik OBS-URL: https://build.opensuse.org/request/show/52154 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-batik?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/batik-src-1.7.zip b/batik-src-1.7.zip new file mode 100644 index 0000000..f94d62c --- /dev/null +++ b/batik-src-1.7.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bea593543a797561fa83651764e40b1b0ce01c1df21ab0359ade58e967379fd +size 15060504 diff --git a/xmlgraphics-batik-manifests.patch b/xmlgraphics-batik-manifests.patch new file mode 100644 index 0000000..ff8c6c9 --- /dev/null +++ b/xmlgraphics-batik-manifests.patch @@ -0,0 +1,151 @@ +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 diff --git a/xmlgraphics-batik-policy.patch b/xmlgraphics-batik-policy.patch new file mode 100644 index 0000000..79a6ba7 --- /dev/null +++ b/xmlgraphics-batik-policy.patch @@ -0,0 +1,34 @@ +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"; + }; +- diff --git a/xmlgraphics-batik-squiggle.desktop b/xmlgraphics-batik-squiggle.desktop new file mode 100644 index 0000000..6aa03a8 --- /dev/null +++ b/xmlgraphics-batik-squiggle.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Batik Squiggle +Comment=SVG browser +Comment[fi]=SVG-selain +Exec=xmlgraphics-batik-squiggle +Terminal=false +Type=Application +Icon=squiggle +Categories=Graphics;VectorGraphics;Java;X-JPackage; +MimeType=image/svg+xml; diff --git a/xmlgraphics-batik.changes b/xmlgraphics-batik.changes new file mode 100644 index 0000000..73ba930 --- /dev/null +++ b/xmlgraphics-batik.changes @@ -0,0 +1,90 @@ +------------------------------------------------------------------- +Wed Nov 3 08:56:40 UTC 2010 - mvyskocil@suse.cz + +- merge with xmlgraphics-batik-1.7-5.jpp5.src.rpm + +------------------------------------------------------------------- +Tue Mar 30 11:20:58 UTC 2010 - mvyskocil@suse.cz + +- enable batik-all.jar to ensure swingx (-> netbeans) build + +------------------------------------------------------------------- +Tue Nov 3 19:09:07 UTC 2009 - coolo@novell.com + +- updated patches to apply with fuzz=0 + +------------------------------------------------------------------- +Mon Aug 31 15:08:12 CEST 2009 - ro@suse.de + +- fix archive compression + +------------------------------------------------------------------- +Wed May 15 08:33:00 CET 2008 - toms@suse.de + +- Fixed errors in build by correction build.xml.patch: + Replaced target="1.5" with target="1.4" +- Cleaned up SPEC file a bit + +------------------------------------------------------------------- +Wed Mar 5 12:05:40 CET 2008 - toms@suse.de + +- Fixed BuildRequires + +------------------------------------------------------------------- +Fri Feb 29 09:20:30 CET 2008 - toms@suse.de + +- Removed from samples/tests/spec/fonts/ directory due to license issues: + fontAltGlyph.svg, fontAltGlyph3.svg, fontChoice.svg, fontDecorations.svg, + fontGlyphChoice.svg, fontGlyphsBoth.svg, fontGlyphsChildSVG.svg, + fontGlyphsD.svg, fontKerning.svg, fontStyling.svg and + samples/tests/spec/scripting/textcontent/missing-glpyh.svg + +------------------------------------------------------------------- +Tue Jan 29 15:13:23 CET 2008 - toms@suse.de + +- Added additional source and created subpackage -javadoc + +------------------------------------------------------------------- +Mon Jan 28 08:33:41 CET 2008 - toms@suse.de + +- Reorganised installation directory: Installed all jar files under + %{_javadir} and created link from %{_datadir}/%{name} +- Corrected *sh.in files + +------------------------------------------------------------------- +Wed Aug 29 14:54:05 CEST 2007 - toms@suse.de + +- Removed samples/tests/spec/scripting/textcontent/missing-glpyh.svg + due to license issues + +------------------------------------------------------------------- +Tue Aug 21 13:35:07 CEST 2007 - toms@suse.de + +- Updated to version 1.7 + Removed samples/fonts directory + +------------------------------------------------------------------- +Wed May 23 16:42:59 CEST 2007 - toms@suse.de + +- Corrected sh files (missing #), improved SPEC file + +------------------------------------------------------------------- +Fri Mar 30 14:49:53 CEST 2007 - toms@suse.de + +- Removed samples subdirectory + +------------------------------------------------------------------- +Fri Mar 30 11:01:57 CEST 2007 - toms@suse.de + +- Added unzip to BuildRequires + +------------------------------------------------------------------- +Thu Mar 29 16:37:26 CEST 2007 - toms@suse.de + +- Corrected *-sh files + +------------------------------------------------------------------- +Thu Mar 29 15:38:02 CEST 2007 - toms@suse.de + +- First inital version of 1.6 + diff --git a/xmlgraphics-batik.rasterizer.policy b/xmlgraphics-batik.rasterizer.policy new file mode 100644 index 0000000..5c2387a --- /dev/null +++ b/xmlgraphics-batik.rasterizer.policy @@ -0,0 +1,4 @@ +grant { + permission java.security.AllPermission; +}; + diff --git a/xmlgraphics-batik.rasterizer.script b/xmlgraphics-batik.rasterizer.script new file mode 100644 index 0000000..23e98c3 --- /dev/null +++ b/xmlgraphics-batik.rasterizer.script @@ -0,0 +1,36 @@ +#!/bin/sh +# +# Batik SVG Rasterizer script +# JPackage Project + +# 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-rasterizer.conf ] ; then + . /etc/xmlgraphics-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="xmlgraphics-batik/rasterizer xmlgraphics-batik/util xmlgraphics-batik/transcoder xmlgraphics-batik/parser" +BASE_FLAGS="-Djava.security.policy=/etc/xmlgraphics-batik/rasterizer.policy" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/xmlgraphics-batik.slideshow.script b/xmlgraphics-batik.slideshow.script new file mode 100644 index 0000000..e730552 --- /dev/null +++ b/xmlgraphics-batik.slideshow.script @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Batik SVG Slideshow script +# JPackage Project + +# 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="xmlgraphics-batik/slideshow xmlgraphics-batik/bridge" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/xmlgraphics-batik.spec b/xmlgraphics-batik.spec new file mode 100644 index 0000000..a6711a3 --- /dev/null +++ b/xmlgraphics-batik.spec @@ -0,0 +1,476 @@ +# Copyright (c) 2000-2008, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +Name: xmlgraphics-batik +Version: 1.7 +Release: 5%{?dist} +Summary: Scalable Vector Graphics for Java +License: ASL 2.0 +URL: http://xml.apache.org/batik/ +Group: Multimedia/Graphics +Source: batik-src-%{version}.zip +Source1: %{name}.squiggle.script +Source2: %{name}.svgpp.script +Source3: %{name}.ttf2svg.script +Source4: %{name}.rasterizer.script +Source5: %{name}.slideshow.script +Source6: %{name}-squiggle.desktop +Source7: %{name}.rasterizer.policy +Patch1: %{name}-manifests.patch +Patch2: %{name}-policy.patch +Obsoletes: batik < %{version}-%{release} +Provides: batik = %{version}-%{release} +Requires: rhino >= 1.5 +Requires: xml-commons-jaxp-1.3-apis >= 1.3.03 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: ant +BuildRequires: rhino >= 1.5 +BuildRequires: java-devel +BuildRequires: xerces-j2 +BuildRequires: jython +BuildRequires: java-javadoc +BuildRequires: rhino-javadoc +BuildRequires: xml-commons-jaxp-1.3-apis >= 1.3.03 +%if %defined suse_version +BuildRequires: unzip +%endif +BuildArch: noarch + +%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. + +%package squiggle +Summary: Batik SVG browser +Group: Multimedia/Graphics +Obsoletes: batik-squiggle < %{version}-%{release} +Provides: batik-squiggle = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils >= 1.5 +Requires: xerces-j2 >= 2.3 + +%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 +Summary: Batik SVG pretty printer +Group: Multimedia/Graphics +Obsoletes: batik-svgpp < %{version}-%{release} +Provides: batik-svgpp = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils >= 1.5 +Requires: xerces-j2 >= 2.3 + +%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 +Summary: Batik SVG font converter +Group: Multimedia/Graphics +Obsoletes: batik-ttf2svg < %{version}-%{release} +Provides: batik-ttf2svg = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils >= 1.5 + +%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. + +%package rasterizer +Summary: Batik SVG rasterizer +Group: Multimedia/Graphics +Obsoletes: batik-rasterizer < %{version}-%{release} +Provides: batik-rasterizer = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils >= 1.5 +Requires: xerces-j2 >= 2.3 + +%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 +Summary: Batik SVG slideshow +Group: Multimedia/Graphics +Obsoletes: batik-slideshow < %{version}-%{release} +Provides: batik-slideshow = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils >= 1.5 +Requires: xerces-j2 >= 2.3 + +%description slideshow +Batik SVG slideshow. + +%package javadoc +Summary: Javadoc for %{name} +Group: Multimedia/Graphics +Obsoletes: batik-javadoc < %{version}-%{release} +Provides: batik-javadoc = %{version}-%{release} + +%description javadoc +Javadoc for %{name}. + +%package demo +Summary: Demo for %{name} +Group: Multimedia/Graphics +Obsoletes: batik-demo < %{version}-%{release} +Provides: batik-demo = %{version}-%{release} +Requires: %{name} = %{version}-%{release} + +%description demo +Demonstrations and samples for %{name}. + +%prep +%setup -q -n batik-%{version} +%patch1 -p1 +%patch2 -p1 + +rm resources/org/apache/batik/ext/awt/image/codec/properties +rm test-resources/org/apache/batik/apps/rasterizer/readOnly.png + +%build +export CLASSPATH= +export OPT_JAR_LIST=: +%{ant} all-jar jars javadoc + +%install + +# jars +mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name} + +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 -e 's/batik-//'` + cp -p ${jar} $RPM_BUILD_ROOT%{_javadir}/%{name}/${name}-%{version}.jar + done + popd +done + +for pkg in squiggle squiggle-ext svgpp ttf2svg rasterizer rasterizer-ext slideshow; do + ln -s %{name}/${pkg}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/batik-${pkg}-%{version}.jar +done + +mv $RPM_BUILD_ROOT%{_javadir}/%{name}/all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-all-%{version}.jar +ln -s %{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/batik-all-%{version}.jar + +for dir in $RPM_BUILD_ROOT%{_javadir} $RPM_BUILD_ROOT%{_javadir}/%{name}; do + pushd ${dir} + for jar in *-%{version}*.jar; do + ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; + done + popd +done + +# scripts +mkdir -p $RPM_BUILD_ROOT%{_bindir} +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-squiggle +cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-svgpp +cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-ttf2svg +cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}-rasterizer +cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/%{name}-slideshow + +# javadoc +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr batik-%{version}/docs/javadoc/* \ + $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} || : +# FIXME: (dwalluck): This breaks bi --short-circuit +rm -rf %{name}-%{version}/docs/javadoc +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/batik-%{version} +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} +ln -s %{name} $RPM_BUILD_ROOT%{_javadocdir}/batik + +# demo +mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} +cp -pr contrib resources samples test-resources test-sources \ + $RPM_BUILD_ROOT%{_datadir}/%{name} +ln -s %{name} $RPM_BUILD_ROOT%{_datadir}/batik + +# policy +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/rasterizer.policy + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(0644,root,root,0755) +%doc KEYS LICENSE MAINTAIN NOTICE README +%dir %{_javadir}/%{name} +%{_javadir}/%{name}-all-%{version}.jar +%{_javadir}/%{name}-all.jar +%{_javadir}/batik-all-%{version}.jar +%{_javadir}/batik-all.jar +%{_javadir}/%{name}/anim-%{version}.jar +%{_javadir}/%{name}/anim.jar +%{_javadir}/%{name}/awt-util-%{version}.jar +%{_javadir}/%{name}/awt-util.jar +%{_javadir}/%{name}/bridge-%{version}.jar +%{_javadir}/%{name}/bridge.jar +%{_javadir}/%{name}/codec-%{version}.jar +%{_javadir}/%{name}/codec.jar +%{_javadir}/%{name}/css-%{version}.jar +%{_javadir}/%{name}/css.jar +%{_javadir}/%{name}/dom-%{version}.jar +%{_javadir}/%{name}/dom.jar +%{_javadir}/%{name}/ext-%{version}.jar +%{_javadir}/%{name}/ext.jar +%{_javadir}/%{name}/extension-%{version}.jar +%{_javadir}/%{name}/extension.jar +%{_javadir}/%{name}/gui-util-%{version}.jar +%{_javadir}/%{name}/gui-util.jar +%{_javadir}/%{name}/gvt-%{version}.jar +%{_javadir}/%{name}/gvt.jar +%{_javadir}/%{name}/parser-%{version}.jar +%{_javadir}/%{name}/parser.jar +%{_javadir}/%{name}/script-%{version}.jar +%{_javadir}/%{name}/script.jar +%{_javadir}/%{name}/svg-dom-%{version}.jar +%{_javadir}/%{name}/svg-dom.jar +%{_javadir}/%{name}/svggen-%{version}.jar +%{_javadir}/%{name}/svggen.jar +%{_javadir}/%{name}/swing-%{version}.jar +%{_javadir}/%{name}/swing.jar +%{_javadir}/%{name}/transcoder-%{version}.jar +%{_javadir}/%{name}/transcoder.jar +%{_javadir}/%{name}/util-%{version}.jar +%{_javadir}/%{name}/util.jar +%{_javadir}/%{name}/xml-%{version}.jar +%{_javadir}/%{name}/xml.jar +%dir %{_sysconfdir}/%{name} + +%files squiggle +%defattr(0644,root,root,0755) +%{_javadir}/%{name}/squiggle-%{version}.jar +%{_javadir}/%{name}/squiggle.jar +%{_javadir}/%{name}/squiggle-ext-%{version}.jar +%{_javadir}/%{name}/squiggle-ext.jar +%{_javadir}/batik-squiggle-%{version}.jar +%{_javadir}/batik-squiggle.jar +%{_javadir}/batik-squiggle-ext-%{version}.jar +%{_javadir}/batik-squiggle-ext.jar +%attr(0755,root,root) %{_bindir}/%{name}-squiggle + +%files svgpp +%defattr(0644,root,root,0755) +%{_javadir}/%{name}/svgpp-%{version}.jar +%{_javadir}/%{name}/svgpp.jar +%{_javadir}/batik-svgpp-%{version}.jar +%{_javadir}/batik-svgpp.jar +%attr(0755,root,root) %{_bindir}/%{name}-svgpp + +%files ttf2svg +%defattr(0644,root,root,0755) +%{_javadir}/%{name}/ttf2svg-%{version}.jar +%{_javadir}/%{name}/ttf2svg.jar +%{_javadir}/batik-ttf2svg-%{version}.jar +%{_javadir}/batik-ttf2svg.jar +%attr(0755,root,root) %{_bindir}/%{name}-ttf2svg + +%files rasterizer +%defattr(0644,root,root,0755) +%{_javadir}/%{name}/rasterizer-%{version}.jar +%{_javadir}/%{name}/rasterizer.jar +%{_javadir}/%{name}/rasterizer-ext-%{version}.jar +%{_javadir}/%{name}/rasterizer-ext.jar +%{_javadir}/batik-rasterizer-%{version}.jar +%{_javadir}/batik-rasterizer.jar +%{_javadir}/batik-rasterizer-ext-%{version}.jar +%{_javadir}/batik-rasterizer-ext.jar +%attr(0755,root,root) %{_bindir}/%{name}-rasterizer +%config(noreplace) %{_sysconfdir}/%{name}/rasterizer.policy + +%files slideshow +%defattr(0644,root,root,0755) +%{_javadir}/%{name}/slideshow-%{version}.jar +%{_javadir}/%{name}/slideshow.jar +%{_javadir}/batik-slideshow-%{version}.jar +%{_javadir}/batik-slideshow.jar +%attr(0755,root,root) %{_bindir}/%{name}-slideshow + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name} +%{_javadocdir}/batik-%{version} +%{_javadocdir}/batik + +%files demo +%defattr(0644,root,root,0755) +%{_datadir}/%{name} +%{_datadir}/batik +%exclude %{_datadir}/%{name}/contrib/rasterizertask/build.sh +%exclude %{_datadir}/%{name}/contrib/charts/convert.sh +%attr(0755,root,root) %{_datadir}/%{name}/contrib/rasterizertask/build.sh +%attr(0755,root,root) %{_datadir}/%{name}/contrib/charts/convert.sh + +%changelog +* Tue Aug 12 2008 David Walluck 0:1.7-5 +- add rasterizer.policy + +* Sun Aug 10 2008 David Walluck 0:1.7-4 +- fix classpaths in scripts + +* Fri Aug 01 2008 David Walluck 0:1.7-3 +- add Provides/Obsoletes for subpackages + +* Fri Aug 01 2008 David Walluck 0:1.7-2 +- Provides/Obsoletes: batik +- add symlinks for %%{_javadir}/batik-all.jar and %%{_javadocdir}/batik + +* Wed Jul 30 2008 David Walluck 0:1.7-1 +- upgrade to batik 1.7 and rename to xmlgraphics-batik + +* Thu Feb 22 2007 Ralph Apel - 0:1.6-3jpp +- Add gcj_support option +- Add option to avoid rhino, jython on bootstrap, omit -squiggle subpackage + +* Wed Apr 26 2006 Fernando Nasser - 0:1.6-2jpp +- First JPP 1.7 build + +* Tue Aug 2 2005 Ville Skyttä - 0:1.6-1jpp +- 1.6. +- Fix build of manual (java.awt.headless for stylebook). + +* Fri Jan 28 2005 Jason Corley - 0:1.5.1-1jpp +- Update to 1.5.1 + +* Mon Nov 22 2004 Ville Skyttä - 0:1.5-5jpp +- Drop -monolithic and obsolete it in main package. It shouldn't be needed + in the first place, and the *.policy files that end up in it will contain + wrong paths which causes all sorts of borkage. +- BuildRequire jython to get support for it built. +- Remove xml-commons-apis and xalan-j2 from scripts and install time + dependencies, require Java >= 1.4 instead (xalan-j2 is still needed at + build time). +- New style versionless javadoc dir symlinking. +- Crosslink with full J2SE javadocs. +- Associate SVG MIME type with Squiggle in freedesktop.org menu entry. + +* Fri Aug 20 2004 Ralph Apel - 0:1.5-4jpp +- Build with ant-1.6.2 + +* Mon Nov 03 2003 Paul Nasrat - 0:1.5-3jpp +- Fix non-versioned javadoc symlinks + +* Fri Aug 15 2003 Ville Skyttä - 0:1.5-2jpp +- Fix jar names in policy files, kudos to Scott Douglas-Watson. +- Add freedesktop.org menu entry for Squiggle. +- Improve subpackage descriptions. +- Save .spec in UTF-8, get rid of # ------- separators. + +* Sat Jul 19 2003 Ville Skyttä - 0:1.5-1jpp +- Update to 1.5. +- Crosslink with xml-commons-apis and rhino javadocs. + +* Thu Apr 17 2003 Ville Skyttä - 0:1.5-0.beta5.2jpp +- Rebuild to satisfy dependencies due to renamed rhino (r4 -> R4). + +* Sun Mar 30 2003 Ville Skyttä - 1.5-0.beta5.1jpp +- Update to 1.5 beta5. +- Rebuild for JPackage 1.5. +- Use bundled crimson and stylebook for building the manual. + +* Tue May 07 2002 Guillaume Rousse 1.1.1-4jpp +- vendor, distribution, group tags +- scripts use system prefs +- scripts source user prefs before configuration + +* Thu Mar 28 2002 Guillaume Rousse 1.1.1-3jpp +- libs package is now monolithic package + +* Sun Jan 27 2002 Guillaume Rousse 1.1.1-2jpp +- adaptation to new stylebook1.0b3 package + +* Mon Jan 21 2002 Guillaume Rousse 1.1.1-1jpp +- 1.1.1 +- additional sources in individual archives +- no dependencies for manual and javadoc packages +- stricter dependency for demo package +- versioned dir for javadoc +- explicitely set xalan-j2.jar and xml-commons-api.jar in classpath +- splitted applications in distinct packages + +* Wed Dec 5 2001 Guillaume Rousse 1.1-0.rc4.3jpp +- javadoc into javadoc package +- new launch scripts using functions library +- Requires jpackage-utils +- added name-slideshow.jar +- main jar renamed name.jar + +* Wed Nov 21 2001 Christian Zoffoli 1.1-0.rc4.2jpp +- fixed previous changelog +- changed extension --> jpp + +* Tue Nov 20 2001 Christian Zoffoli 1.1-0.rc4.1jpp +- rc4 + +* Sat Nov 17 2001 Christian Zoffoli 1.1-0.rc3.2jpp +- added batik-libs creation + +* Thu Nov 9 2001 Christian Zoffoli 1.1-0.rc3.1jpp +- changed version to 0.rc3.1 + +* Mon Nov 5 2001 Christian Zoffoli 1.1rc3-1jpp +- 1.1rc3 + +* Sat Oct 6 2001 Guillaume Rousse 1.0-4jpp +- first unified release +- removed xalan-j2 from classpath as it is autoloaded by stylebook-1.0b3 +- used original tarball +- s/jPackage/JPackage + +* Mon Sep 17 2001 Guillaume Rousse 1.0-3mdk +- provided *working* startup scripts + +* Sat Sep 15 2001 Guillaume Rousse 1.0-2mdk +- requires specificaly crimson +- only manual buildrequires stylebook-1.0b3 and xerces-j1 +- dropped xalan-j2 buildrequires as stylebook-1.0b3 needs it already +- changed samples package name to demo +- moved demo files to _datadir/name +- provided startup scripts + +* Thu Aug 30 2001 Guillaume Rousse 1.0-1mdk +- first Mandrake release diff --git a/xmlgraphics-batik.squiggle.script b/xmlgraphics-batik.squiggle.script new file mode 100644 index 0000000..8b434ac --- /dev/null +++ b/xmlgraphics-batik.squiggle.script @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Batik SVG Browser (Squiggle) script +# JPackage Project + +# 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-squiggle.conf ] ; then + . /etc/xmlgraphics-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="xmlgraphics-batik/squiggle xmlgraphics-batik/swing xmlgraphics-batik/gui-util xmlgraphics-batik/bridge xmlgraphics-batik/util xmlgraphics-batik/dom rhino xml-commons-jaxp-1.3-apis xml-commons-jaxp-1.3-apis-ext" +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/xmlgraphics-batik.svgpp.script b/xmlgraphics-batik.svgpp.script new file mode 100644 index 0000000..fb0d60f --- /dev/null +++ b/xmlgraphics-batik.svgpp.script @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Batik SVG Pretty Printer script +# JPackage Project + +# 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-svgpp.conf ] ; then + . /etc/xmlgraphics-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="xmlgraphics-batik/svgpp xmlgraphics-batik/transcoder xmlgraphics-batik/util" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/xmlgraphics-batik.ttf2svg.script b/xmlgraphics-batik.ttf2svg.script new file mode 100644 index 0000000..ee41cfe --- /dev/null +++ b/xmlgraphics-batik.ttf2svg.script @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Batik SVG Font Converter script +# JPackage Project + +# 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/xmlgraphics-batik-ttf2svg.conf ] ; then + . /etc/xmlgraphics-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="xmlgraphics-batik/ttf2svg xmlgraphics-batik/svggen xmlgraphics-batik/util" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@"