SHA256
1
0
forked from pool/imagej
imagej/imagej.spec
Matthias Mailänder ed40d4ec8a Accepting request 852707 from home:andythe_great:branches:science
- Update to version 1.53f.
  * Added a popup menu to the magnifying glass tool icon.
  * Added a popup menu triggered on a right click or long press 
    inside a selection.
  * Updated the built in toolbar "Dev" menu.
  * The text in a text selection can be edited in the 
    Edit>Selection>Properties dialog.
  * The File>Import>Image Sequence dialog is used when drag and 
    dropping a folder on the "ImageJ" window.
  * Undo works with overlays when translating and rotating images,
    and the "Overlay only" checkbox is only shown in the Translate 
    dialog when there is an overlay.
  * Added the Edit>Options>Fresh Start command, which closes all 
    images, empties the ROI Manager, clears the Results table and
    enables the "Black background" option.
  * The Reslice command is faster on Windows when re-slicing from 
    "Left" or "Right" and it uses an ordinary progress bar when 
    run from a macro.
  * Added an "Open as separate images" checkbox to the 
    File>Import>Image Sequence dialog.
  * Added "Foreground..." and "Background..." entries to the color
    picker tool popup menu.
  * Added the Image.width, Image.height, Image.copy and 
    Image.paste(x,y) macro functions (example).
  * Added the Array.filter(arr,str), Math.toRadians(degrees) and
    Math.toDegrees(radians) functions.
  * Added the ResultsTable.addRow() method. For an example, run 
    Help>Examples>JavaScript>Sine/Cosine Table.
  * Fixed a bug that caused the RoiManager.getSelectedIndexes() 
    method to sometimes not work as expected.
  * Fixed a bug that slowed saving of virtual stacks in TIFF 
    format.
  * Fixed a bug that caused the dynamic "Value" and "Count" values
    in HIstogram windows to sometimes not be displayed correctly.
  * Fixed a bug that caused the Ctrl+F (Edit>Fill) keyboard 
    shortcut on Windows, when used on a stack, to not display the 
    "Proces Stack?" dialog.
  * Fixed a 1.53e regression that caused the imageCaculator() macro
    function do somethimes not work as expected.
  * Fixed a 1.52 regression that caused the Analyze Skeleton plugin
    to output incorrect Results tables.
  * Fixed a regression that caused the Edit>Copy to Image Info 
    command in the text editor to fail.
  * Fixed a 1.53c regression in the AVI Reader that caused it to 
    throw a null pointer exception.
  * Fixed a 1.52 regression that caused the IJ.getImage() method to 
    sometimes display model error dialogs. 
  * Many bugfixes and usability improvements

OBS-URL: https://build.opensuse.org/request/show/852707
OBS-URL: https://build.opensuse.org/package/show/science/imagej?expand=0&rev=15
2020-12-08 16:12:15 +00:00

108 lines
3.3 KiB
RPMSpec

#
# spec file for package imagej
#
# Copyright (c) 2017 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/
#
%define SrcVersion 153f
Name: imagej
Version: 1.53f
Release: 0
Summary: A Java image processing program
License: SUSE-Public-Domain
Group: Productivity/Graphics/Convertors
Url: http://rsbweb.nih.gov/ij/
Source: http://rsbweb.nih.gov/ij/download/src/ij%{SrcVersion}-src.zip
Source1: %{name}.in
Source2: %{name}.desktop
BuildRequires: ImageMagick
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: java >= 1.6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
ImageJ is a multithreaded image processing program inspired by NIH
Image for the Macintosh, running either as an applet or as a
standalone program.
It can read many image formats including TIFF, GIF, JPEG, BMP, DICOM,
FITS and "raw", and display, edit, anazlye, process and print
8/16/32-bit images. It supports "stacks", a series of images that
share a single window. It can calculate area and pixel value
statistics of user-defined selections, measure distances and angles,
create density histograms and line profile plots, supports standard
image processing functions such as contrast manipulation, sharpening,
smoothing, edge detection and median filtering. It does geometric
transformations such as scaling, rotation and flips. Zoom in/out up
to 32:1/1:32. Spatial calibration is available to provide real-world
dimensional measurements in units such as millimeters. Density or
gray scale calibration is also available.
ImageJ can be extended via Java plugins, and has a built-in editor and
compiler.
%prep
%setup -n source
%build
%ant build
%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 ij.jar %{buildroot}%{_datadir}/%{name}/%{name}.jar
# startscript
cat > %{name} << 'EOF'
#!/bin/sh
#
# imagej startscript
#
# Source functions library
echo Starting %{name} version %{version} ...
echo with options : ${@}
java -jar %{_datadir}/%{name}/imagej.jar ${@}
EOF
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/
# Icon
convert -strip build/microscope.gif build/%{name}.png
install -Dm 644 build/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Desktop menu entry
install -d -m 755 %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}
%files
%defattr(-,root,root)
%doc release-notes.html
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/%{name}/*.jar
#%{_datadir}/%{name}/lib/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog