Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2: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) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: batik License: 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: 194 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: 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
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