debian/0000755000000000000000000000000011642663106007173 5ustar debian/copyright0000644000000000000000000000610111171432267011123 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=436 Upstream-Name: jCharts Upstream-Maintainer: Nathaniel G. Auvil Upstream-Source: http://jcharts.sourceforge.net/ Files: * Copyright: Copyright 2002 Nathaniel G. Auvil License: jCharts License Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain copyright statements and notices. Redistributions must also contain a copy of this document. 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. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote products derived from this Software without prior written permission of Nathaniel G. Auvil. For written permission, please contact nathaniel_auvil@users.sourceforge.net 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear in their names without prior written permission of Nathaniel G. Auvil. jCharts is a registered trademark of Nathaniel G. Auvil. 5. Due credit should be given to the jCharts Project (http://jcharts.krysalis.org). THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED 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 jCharts OR ITS 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 Files: debian/* Copyright: Copyright 2009 Onkar Shinde License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/patches/0000755000000000000000000000000011642663106010622 5ustar debian/patches/01_remove_old_functionality.diff0000644000000000000000000001036411561274221017057 0ustar Description: Do not build JPEGEncoder13.java which uses Sun proprietary APIs and is superceeded by JPEGEncoder.java. Patched other source files accordingly. Forwarded: not-needed Author: Onkar Shinde --- a/build/build.xml 2011-05-07 20:46:55.000000000 +0530 +++ b/build/build.xml 2011-05-07 20:48:21.000000000 +0530 @@ -47,7 +47,9 @@ - + + + @@ -83,7 +85,11 @@ - + + + + + @@ -92,8 +98,8 @@ - + + + + + --- a/src/org/jCharts/encoders/ServletEncoderHelper.java 2011-05-07 20:46:55.000000000 +0530 +++ b/src/org/jCharts/encoders/ServletEncoderHelper.java 2011-05-07 20:47:08.000000000 +0530 @@ -81,30 +81,6 @@ * Convenience method to call from a Servlet or JSP. This method will set the appropriate * mime type and then export the chart as the response. * - * We cannot overload encode(...) as it will create a compile time dependency with the - * HttpServletResponse Class which will require the J2EE libraries. - * - * @param chart - * @param quality float value from 0.0f(worst image quality) - 1.0f(best image quality) - * @param httpServletResponse - * @throws ChartDataException - * @throws PropertyException - * @throws IOException - * @since 0.7 - ******************************************************************************************/ - public static final void encodeJPEG13( Chart chart, - float quality, - HttpServletResponse httpServletResponse ) throws ChartDataException, PropertyException, IOException - { - httpServletResponse.setContentType( JPEG_MIME_TYPE ); - JPEGEncoder13.encode( chart, quality, httpServletResponse.getOutputStream() ); - } - - - /****************************************************************************************** - * Convenience method to call from a Servlet or JSP. This method will set the appropriate - * mime type and then export the chart as the response. - * * @param chart * @param quality float value from 0.0f(worst image quality) - 1.0f(best image quality) * @param httpServletResponse --- a/src/org/jCharts/test/ChartTestDriver.java 2011-05-07 20:46:55.000000000 +0530 +++ b/src/org/jCharts/test/ChartTestDriver.java 2011-05-07 20:47:08.000000000 +0530 @@ -182,7 +182,7 @@ } else if( EXTENSION.equals( JPEG_LEGACY ) ) { - JPEGEncoder13.encode( chart, 1.0f, fileOutputStream ); + JPEGEncoder.encode( chart, 1.0f, fileOutputStream ); } else { debian/patches/series0000644000000000000000000000004111560704245012031 0ustar 01_remove_old_functionality.diff debian/rules0000755000000000000000000000125111642662735010261 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILDFILE := build/build.xml DEB_JARS := batik servlet-api-2.5 ANT_ARGS := -Dbatik.classpath=/usr/share/java/batik.jar -Dant.build.javac.source=1.4 DEB_ANT_BUILD_TARGET := jar javadocs clean:: rm -rf build/garbage rm -rf build/javadocs rm -f build/jCharts-$(DEB_UPSTREAM_VERSION).jar install/libjcharts-java:: dh_install build/jCharts-$(DEB_UPSTREAM_VERSION).jar usr/share/java/ dh_link /usr/share/java/jCharts-$(DEB_UPSTREAM_VERSION).jar usr/share/java/jcharts.jar get-orig-source: uscan --verbose --force-download debian/libjcharts-java.lintian-overrides0000644000000000000000000000016111561274221015611 0ustar # The library uses AWT APIs so a dependency on JRE is needed. libjcharts-java binary: needless-dependency-on-jre debian/orig-tar.sh0000644000000000000000000000067011171432267011255 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' DIR=jcharts-$2 # clean up the upstream tarball unzip -d debian/ $3 mv debian/jCharts-$2 debian/$DIR GZIP=--best tar czf ../jcharts_$2.orig.tar.gz -X debian/orig-tar.exclude -C debian $DIR rm -rf debian/$DIR rm -f $3 # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $3 $origDir echo "moved $3 to $origDir" fi exit 0 debian/changelog0000644000000000000000000000407611642662735011063 0ustar jcharts (0.7.5-3) unstable; urgency=low * Team upload. * Switch to default-jdk. (Closes: #643515) * Switch to debhelper level 7. * Remove Java runtime from Depends. -- Torsten Werner Tue, 04 Oct 2011 21:59:52 +0200 jcharts (0.7.5-2) unstable; urgency=low * debian/patches/01_remove_old_functionality.diff - Patch to exclude files that use Sun proprietary APIs and related changes. (Closes: #594270) * debian/control - No need to use only OpenJDK or Sun JDK/JRE now. Updated depedencies accordingly. - Build against libservlet2.5-java instead of libservlet2.4-java. - Add libjcharts-java-doc package containing API documentation. - Update standards version to 3.9.2. No change needed. * debian/rules - Use servlet-api-2.5 instead of servlet-api in build classpath. - Build javadocs as well. Update clean rule to delete javadocs directory. * debian/libjcharts-java-doc.install - Install API documentation at appropriate place. * debian/libjcharts-java.lintian-overrides - The library needs to depend on jre. So add override for lintian warning. * Convert package to source format 3.0. -- Onkar Shinde Fri, 06 May 2011 10:27:01 +0530 jcharts (0.7.5-1) unstable; urgency=low * Merge from Ubuntu. (Closes: #522213) * Remaining Debian changes: - debian/control * Change section from 'libs' to 'java'. * Set 'Maintainer' to 'Debian Java Maintainers'. * Add myself to 'Uploaders'. * Bump standards version to 3.8.1. No changes required. * Add Vcs-* fields. * Add ${misc:Depends} to runtime dependencies. -- Onkar Shinde Wed, 15 Apr 2009 22:51:43 +0530 jcharts (0.7.5-0ubuntu2) jaunty; urgency=low * debian/rules - Remove commented code. - Change symlink name for library to all lowercase. -- Onkar Shinde Tue, 14 Apr 2009 23:26:41 +0530 jcharts (0.7.5-0ubuntu1) jaunty; urgency=low * Initial release. -- Onkar Shinde Wed, 04 Feb 2009 00:05:03 +0530 debian/orig-tar.exclude0000644000000000000000000000002611171432267012267 0ustar *.jar *.war lib/*.jar debian/watch0000644000000000000000000000012511171432267010221 0ustar version=3 http://sf.net/jcharts/jCharts-(0\.[\d\.]+)\.zip debian debian/orig-tar.sh debian/control0000644000000000000000000000265011642662735010610 0ustar Source: jcharts Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Onkar Shinde Build-Depends: debhelper (>= 7), cdbs, ant, ant-optional Build-Depends-Indep: default-jdk, default-jdk-doc, libbatik-java, libservlet2.5-java, libservlet2.5-java-doc Standards-Version: 3.9.2 Homepage: http://jcharts.sourceforge.net/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jcharts Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/jcharts Package: libjcharts-java Architecture: all Depends: libbatik-java, ${misc:Depends} Suggests: libjcharts-java-doc (= ${binary:Version}) Description: java based charts library jCharts is a 100% Java based charting utility that outputs a variety of charts. This package has been designed from the ground up by volunteers for displaying charts via Servlets, JSP's, and Swing apps. . This package contains the library. Package: libjcharts-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Recommends: default-jdk-doc, libservlet2.5-java-doc Suggests: libjcharts-java (= ${binary:Version}) Description: java based charts library (API docs) jCharts is a 100% Java based charting utility that outputs a variety of charts. This package has been designed from the ground up by volunteers for displaying charts via Servlets, JSP's, and Swing apps. . This package contains the API documentation. debian/source/0000755000000000000000000000000011642663106010473 5ustar debian/source/format0000644000000000000000000000001411560704245011700 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211642662735010400 0ustar 7 debian/libjcharts-java-doc.install0000644000000000000000000000006411560704245014371 0ustar build/javadocs/* usr/share/doc/libjcharts-java/api/