Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:Test
batik
batik.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File batik.spec of Package batik
# # spec file for package batik (Version 1.7) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: batik License: The Apache Software License Group: Productivity/Graphics/Convertors Summary: Java based toolkit for viewing, generating or manipulating SVG graphics #Requires: jre1.3.x Version: 1.7 Release: 117 Url: http://xmlgraphics.apache.org/batik Source0: %{name}-%{version}-src.tar.bz2 Source1: %{name}-docs-%{version}.tar.bz2 # Source1: http://apache.mirroring.de/xml/batik/%{name}-src-%{version}.zip Source10: squiggle.sh.in Source11: slideshow.sh.in Source12: svgpp.sh.in Source13: ttf2svg.sh.in Source14: rasterizer.sh.in Patch0: build.xml.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: xerces-j2 xalan-j2 xerces-j2-xml-apis BuildArch: noarch BuildRequires: ant ant-trax java-devel >= 1.4 unzip xalan-j2 xerces-j2 xml-commons-apis xml-commons-resolver Requires: java >= 1.4 %description Batik is a Java based toolkit for applications which handle images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation. Batik provides building blocks that developerscan assemble in various ways in their Java technologyapplications to generate, parse, view or convert SVGcontents. Batik, for example, contains a Swing componentthat can add SVG viewing capability to all Java technologyapplications. It can also be used to generate SVG on a client or server, and allows to convert SVG content into other formats such as JPEG or PNG. Batik's goal is tomake it easy for application developers to handle SVGcontent for various purposes, client-side or server-side. Authors: -------- The Apache XML Project %package javadoc Group: Productivity/Graphics/Convertors Summary: Javadoc Documentation for Batik License: The Apache Software License %description javadoc Javadoc documenation for batik Authors: -------- The Apache XML Project %prep %setup -q -n %{name}-%{version} %patch0 -p0 for i in %{S:10} %{S:11} %{S:12} %{S:13} %{S:14}; do # Remove path and '.in' extension x=${i##*/} x=${x%%.in} cat $i | sed s=@BATIK_HOME@=%{_datadir}/%{name}= > ${x} done # Extract Javadoc tar xjf %{S:1} %build ant jars # ant javadoc # ant clean # ant package # Extract Javadoc tar xjf %{S:1} %install %define BATIK_HOME %{_datadir}/%{name} %define builddir %{name}-%{version} rm -rf $RPM_BUILD_ROOT install -m 755 -d $RPM_BUILD_ROOT%{_javadir}/%{name}/lib \ -d $RPM_BUILD_ROOT%{_prefix}/bin/ \ -d $RPM_BUILD_ROOT%{BATIK_HOME}/lib \ -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -m 644 %{builddir}/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name} install -m 644 %{builddir}/lib/js.jar \ %{builddir}/lib/batik*.jar \ %{builddir}/lib/pdf-transcoder.jar \ %{builddir}/lib/xml-*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/ #install -m 644 lib/xml-apis-ext.jar $RPM_BUILD_ROOT%{_javadir} # %{S:10} %{S:11} %{S:12} %{S:13} %{S:14} for i in *.sh; do install -m 755 $i $RPM_BUILD_ROOT%{_prefix}/bin/$x done JAR_LIBS=$(cd %{builddir}/lib; ls [a-wyz]*.jar) JARS=$(cd %{builddir}; ls *.jar) pushd . cd $RPM_BUILD_ROOT%{BATIK_HOME} for i in $JARS; do ln -s ../java/%{name}/$i . done cd lib/ for i in $JAR_LIBS; do ln -s ../../java/%{name}/lib/$i . done # ln -s ../../java/xml-commons-apis.jar . popd # Install Javadoc subpackage cp -a docs/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) # README.SuSE %doc README LICENSE NOTICE %doc CHANGES MAINTAIN KEYS NOTICE # %doc docs %{_prefix}/bin/* %{_javadir}/%{name}/ # %{_javadir}/%{name} %{_datadir}/%{name} %files javadoc %defattr(-, root, root) %{_javadocdir}/%{name}-%{version} %changelog * Thu May 15 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 05 2008 toms@suse.de - Fixed BuildRequires * Fri Feb 29 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 2008 toms@suse.de - Added additional source and created subpackage -javadoc * Mon Jan 28 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 2007 toms@suse.de - Removed samples/tests/spec/scripting/textcontent/missing-glpyh.svg due to license issues * Tue Aug 21 2007 toms@suse.de - Updated to version 1.7 Removed samples/fonts directory * Wed May 23 2007 toms@suse.de - Corrected sh files (missing #), improved SPEC file * Fri Mar 30 2007 toms@suse.de - Removed samples subdirectory * Fri Mar 30 2007 toms@suse.de - Added unzip to BuildRequires * Thu Mar 29 2007 toms@suse.de - Corrected *-sh files * Thu Mar 29 2007 toms@suse.de - First inital version of 1.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor