Hello community,

here is the log from the commit of package PlotDigitizer for openSUSE:Factory 
checked in at 2013-01-08 14:54:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/PlotDigitizer (Old)
 and      /work/SRC/openSUSE:Factory/.PlotDigitizer.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "PlotDigitizer", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2012-12-21 01:49:00.356010756 +0100
+++ /work/SRC/openSUSE:Factory/.PlotDigitizer.new/PlotDigitizer.changes 
2013-01-08 14:54:53.000000000 +0100
@@ -0,0 +1,34 @@
+-------------------------------------------------------------------
+Wed Jan  2 16:13:19 UTC 2013 - [email protected]
+
+- license update: LGPL-2.1 and GPL-2.0
+  Package also contains GPL components. See e.g.
+  /PlotDigitizer_Source/src/jahuwaldt/image/BMPWriter.java
+
+-------------------------------------------------------------------
+Fri Dec 28 15:51:49 UTC 2012 - [email protected]
+
+- Update to version 2.6.2
+  * Added a zoom capability allowing the user to zoom in and out
+    on an image being digitized.
+  * Added an optional grid display to the scaled axes.
+  * Calibration data can now be exported to a file so you do not
+    have to recalibrate to return to digitizing an image later.
+  * Previously digitized points saved to a CSV file can now be 
+    re-imported to a calibrated image.
+  * Added ability to change the plot symbol, size and color 
+    as a preference.
+  * Improved robustness for running autotrace.
+  * Corrected a bug with the number of fraction digits
+     written to the CSV output file.
+
+-------------------------------------------------------------------
+Sat Aug 18 11:20:43 UTC 2012 - [email protected]
+
+- Spec file cleanups
+- Add desktop file
+
+-------------------------------------------------------------------
+Sat Dec 04 04:32:58 UTC 2011 - [email protected]
+
+- Initial package, version 2.5.1
\ No newline at end of file

New:
----
  BareBonesBrowserLaunch.java
  MRJAdapter_1.0.8_Src.zip
  PlotDigitizer.changes
  PlotDigitizer.desktop
  PlotDigitizer.spec
  PlotDigitizer_2.6.2_Source.zip

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ PlotDigitizer.spec ++++++
#
# spec file for package PlotDigitizer
#
# Copyright (c) 2012 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:           PlotDigitizer
Version:        2.6.2
Release:        1
Summary:        Ditigize scanned plots of functional data
License:        LGPL-2.1 and GPL-2.0
Url:            http://plotdigitizer.sourceforge.net
Group:          Productivity/Scientific/Other
Source0:        
http://downloads.sourceforge.net/plotdigitizer/%{name}_%{version}_Source.zip
Source1:        BareBonesBrowserLaunch.java
Source2:        PlotDigitizer.desktop
# MRJAdapter from PlotDigitizer 2.5.1 source archive
Source3:        MRJAdapter_1.0.8_Src.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  ant
BuildRequires:  java-devel >= 1.6.0
BuildRequires:  jpackage-utils
BuildRequires:  sed
BuildRequires:  unzip
BuildRequires:  update-alternatives
BuildRequires:  update-desktop-files
Requires:       autotrace
Requires:       java >= 1.6.0
Requires:       jpackage-utils
BuildArch:      noarch

%description

Plot Digitizer is a Java program used to digitize scanned plots of functional 
data. Often data is found presented in reports and references as functional X-Y 
type scatter or line plots. In order to use this data, it must somehow be 
digitized. This program will allow you to take a scanned image of a plot (in 
GIF, JPEG, or PNG format) and quickly digitize values off the plot just by 
clicking the mouse on each data point. The numbers can then be saved to a text 
file and used where ever you need them. Plot Digitizer works with both linear 
and logarithmic axis scales. Besides digitizing points off of data plots, this 
program can be used to digitize other types of scanned data (such as scaled 
drawings or orthographic photos).


%prep
%setup -q -n %{name}_Source
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} lib/.

# remove the third party jars
find . -iname '*.jar' | xargs rm -rf

# rebuild MRJAdapter
cd  lib
unzip MRJAdapter_1.0.8_Src.zip
cd MRJAdapter\ 1.0.8
#update target version
sed -i 's/target="1.1"/target="1.5"/' build.xml
sed -i 's/target="1.5"/target="1.5"\nsource="1.4"/' build.xml

%ant --execdebug library
cd ../..

#create barebonesbrowserlaunch
# taken from http://www.centerkey.com/java/browser/myapp/full-make.sh.command
cd lib
mkdir -p com/centerkey/utils
mv ../BareBonesBrowserLaunch.java com/centerkey/utils
javac -source 5 -target 5 com/centerkey/utils/*java
javadoc -d doc com/centerkey/utils/*.java
jar cvf bare-bones-browser-launch.jar com/centerkey/utils/*.* doc
mv bare-bones-browser-launch.jar bare-bones-browser-launch-3.1.jar
rm -r doc
rm -r com
cd ..

# remove mac and windows build instructions
sed -i '/<target name="\(run\|install\|package\|exe\)"/,/<\/target>/ d' 
build.xml
sed -i '/macos/d' build.xml
sed -i '/launch4j/d' build.xml


%build
%ant jar

%install
# jars
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
install -m 0644 jars/%{name}.jar %{buildroot}%{_datadir}/%{name}/

# startscript
install -d -m 0755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
exec java -Xmx128m -jar %{_datadir}/%{name}/%{name}.jar
EOF
chmod 0755 %{buildroot}%{_bindir}/%{name}

install -Dm 644 %{name}.desktop 
%{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 644 Resources/images/%{name}Icon64x64.png 
%{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc LesserGPL_license.txt README.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
++++++ BareBonesBrowserLaunch.java ++++++
package com.centerkey.utils;

import javax.swing.JOptionPane;
import java.util.Arrays;

/**
 * <b>Bare Bones Browser Launch for Java</b><br>
 * Utility class to open a web page from a Swing application
 * in the user's default browser.<br>
 * Supports: Mac OS X, GNU/Linux, Unix, Windows XP/Vista/7<br>
 * Example Usage:<code><br> &nbsp; &nbsp;
 *    String url = "http://www.google.com/";;<br> &nbsp; &nbsp;
 *    BareBonesBrowserLaunch.openURL(url);<br></code>
 * Latest Version: <a 
href="http://www.centerkey.com/java/browser/";>www.centerkey.com/java/browser</a><br>
 * Author: Dem Pilafian<br>
 * Public Domain Software -- Free to Use as You Like
 * @version 3.1, June 6, 2010
 */
public class BareBonesBrowserLaunch {

   static final String[] browsers = { "google-chrome", "firefox", "opera",
      "epiphany", "konqueror", "conkeror", "midori", "kazehakase", "mozilla" };
   static final String errMsg = "Error attempting to launch web browser";

   /**
    * Opens the specified web page in the user's default browser
    * @param url A web address (URL) of a web page (ex: 
"http://www.google.com/";)
    */
   public static void openURL(String url) {
      try {  //attempt to use Desktop library from JDK 1.6+
         Class<?> d = Class.forName("java.awt.Desktop");
         d.getDeclaredMethod("browse", new Class[] {java.net.URI.class}).invoke(
            d.getDeclaredMethod("getDesktop").invoke(null),
            new Object[] {java.net.URI.create(url)});
         //above code mimicks:  java.awt.Desktop.getDesktop().browse()
         }
      catch (Exception ignore) {  //library not available or failed
         String osName = System.getProperty("os.name");
         try {
            if (osName.startsWith("Mac OS")) {
               Class.forName("com.apple.eio.FileManager").getDeclaredMethod(
                  "openURL", new Class[] {String.class}).invoke(null,
                  new Object[] {url});
               }
            else if (osName.startsWith("Windows"))
               Runtime.getRuntime().exec(
                  "rundll32 url.dll,FileProtocolHandler " + url);
            else { //assume Unix or Linux
               String browser = null;
               for (String b : browsers)
                  if (browser == null && Runtime.getRuntime().exec(new String[]
                        {"which", b}).getInputStream().read() != -1)
                     Runtime.getRuntime().exec(new String[] {browser = b, url});
               if (browser == null)
                  throw new Exception(Arrays.toString(browsers));
               }
            }
         catch (Exception e) {
            JOptionPane.showMessageDialog(null, errMsg + "\n" + e.toString());
            }
         }
      }

   }
++++++ PlotDigitizer.desktop ++++++
[Desktop Entry]
Name=PlotDigitizer
Comment=Ditigize scanned plots of functional data
Exec=PlotDigitizer
Icon=PlotDigitizer
Terminal=false
Type=Application
Categories=Education;Science;
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to