Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
PlotDigitizer
PlotDigitizer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PlotDigitizer.spec of Package PlotDigitizer
# # spec file for package PlotDigitizer # # Copyright (c) 2015 SUSE LINUX 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.6 Release: 0 Summary: Ditigize scanned plots of functional data License: LGPL-2.1 and GPL-2.0 Group: Productivity/Scientific/Other Url: http://plotdigitizer.sourceforge.net 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 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 %build # 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 %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 %files %defattr(-, root, root) %doc LesserGPL_license.txt README.txt %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %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