Hello community,

here is the log from the commit of package orthanc-wsi for openSUSE:Leap:15.2 
checked in at 2020-02-19 18:45:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/orthanc-wsi (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.orthanc-wsi.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "orthanc-wsi"

Wed Feb 19 18:45:51 2020 rev:1 rq:775797 version:0.6

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

--- /dev/null   2019-12-19 10:12:34.003146842 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.orthanc-wsi.new.26092/orthanc-wsi.changes     
2020-02-19 18:45:52.474738030 +0100
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Tue Dec 10 16:43:07 UTC 2019 - Axel Braun <[email protected]>
+
+- version 0.6
+  Initial build on OBS

New:
----
  OrthancWSI-0.6.tar.gz
  openlayers-3.19.0-dist.zip
  orthanc-wsi-readme.SUSE
  orthanc-wsi.changes
  orthanc-wsi.spec
  wsi.json

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

Other differences:
------------------
++++++ orthanc-wsi.spec ++++++
#
# spec file for package orthanc-wsi
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2019 Dr. Axel Braun
#
# 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:           orthanc-wsi
Summary:        Whole Slide Imaging for Orthanc
License:        AGPL-3.0-or-later
Group:          Productivity/Graphics/Viewers
Version:        0.6
Release:        0
Url:            https://orthanc-server.com
Source0:        
https://www.orthanc-server.com/downloads/get.php?path=/whole-slide-imaging/OrthancWSI-%{version}.tar.gz
Source1:        openlayers-3.19.0-dist.zip
Source11:       orthanc-wsi-readme.SUSE
Source12:       wsi.json
BuildRequires:  cmake
BuildRequires:  dcmtk
BuildRequires:  dcmtk-devel
BuildRequires:  gcc-c++
BuildRequires:  curl-devel
BuildRequires:  jsoncpp-devel
BuildRequires:  libboost_date_time-devel >= 1.66
BuildRequires:  libboost_filesystem-devel >= 1.66
BuildRequires:  libboost_locale-devel >= 1.66
BuildRequires:  libboost_program_options-devel >= 1.66
BuildRequires:  libboost_regex-devel >= 1.66
BuildRequires:  libboost_system-devel >= 1.66
BuildRequires:  libboost_thread-devel >= 1.66
BuildRequires:  libuuid-devel
BuildRequires:  libicu-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
# Check was missing:
BuildRequires:  libxml2-devel
BuildRequires:  tcpd-devel
# Check was missing - end
BuildRequires:  openjpeg2-devel
BuildRequires:  openssl-devel
BuildRequires:  orthanc-devel
BuildRequires:  orthanc-source
BuildRequires:  unzip

Requires:       orthanc

BuildRoot:      OrthancWSI-%{version}-build

%description
The Orthanc project provides three official tools to support DICOM for 
whole-slide microscopic imaging (WSI):
- A so-called “DICOM-izer” command-line tool that converts whole-slide images 
to DICOM series, following Supplement 145.
- A plugin that extends Orthanc with a Web viewer of whole-slide images for 
digital pathology.
- Another command-line tool that converts a DICOM series stored inside Orthanc, 
to a standard hierarchical TIFF image.

%prep
%setup -q -n OrthancWSI-%{version}

#OrthanPlugin may ask for additional files to be loaded
#Putting them into this folder prevents download of sources from the web
cd ViewerPlugin
mkdir ThirdPartyDownloads
cp %{S:1} ThirdPartyDownloads/.

%build
# build the applications
cd Applications

%cmake .. \
       -DALLOW_DOWNLOADS=OFF \
       -DUSE_SYSTEM_ORTHANC_SDK=ON \
       -DORTHANC_FRAMEWORK_SOURCE=path \
       -DBoost_NO_BOOST_CMAKE=ON \
       -DORTHANC_FRAMEWORK_ROOT=/usr/src/orthanc/ \
       -DLIB_INSTALL_DIR=%{_libdir}/share/orthanc/plugins/
                      
%cmake_build %{?_smp_mflags}

#and the plugins
cd ../../ViewerPlugin

%cmake .. \
       -DALLOW_DOWNLOADS=OFF \
       -DUSE_SYSTEM_ORTHANC_SDK=ON \
       -DORTHANC_FRAMEWORK_SOURCE=path \
       -DBoost_NO_BOOST_CMAKE=ON \
       -DORTHANC_FRAMEWORK_ROOT=/usr/src/orthanc/ \
       -DLIB_INSTALL_DIR=%{_libdir}/share/orthanc/plugins/
                      
%cmake_build %{?_smp_mflags}

%install
cd Applications
%cmake_install
cd ../ViewerPlugin
%cmake_install

# architecture dependet files should not be in /usr/share... 
# create a directory
mkdir -p -m 755 %{buildroot}%{_libdir}/share/orthanc/plugins
mkdir -p -m 755 %{buildroot}%{_docdir}/orthanc

mv %{buildroot}%{_prefix}/share/orthanc/plugins/*.so* 
%{buildroot}%{_libdir}/share/orthanc/plugins/.

#Link from lib64 to orthanc plugin-directory, where it is expected
ln -s ../../../..%{_libdir}/share/orthanc/plugins/libOrthancWSI.so.%{version} \
      %{buildroot}%{_prefix}/share/orthanc/plugins/libOrthancWSI.so
      
rm %{buildroot}%{_libdir}/share/orthanc/plugins/*.so

cp %{S:11} %{S:12} %{buildroot}%{_docdir}/orthanc/.

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%license COPYING
%dir %{_docdir}/orthanc
%{_docdir}/orthanc/*
%dir %{_libdir}/share
%dir %{_libdir}/share/orthanc
%dir %{_libdir}/share/orthanc/plugins
%{_libdir}/share/orthanc/plugins/*.so*
%dir %{_prefix}/share/orthanc
%dir %{_prefix}/share/orthanc/plugins
%{_prefix}/share/orthanc/plugins/*.so*
%{_bindir}/OrthancWSIDicomizer
%{_bindir}/OrthancWSIDicomToTiff

%changelog
++++++ orthanc-wsi-readme.SUSE ++++++
README: Orthanc for openSUSE
============================

Orthanc is a RESTful DICOM server for healthcare and medical research.

This package provides the Whole Slide Imaging (WSI) plugin for Orthanc.

Once Orthanc is installed, you must add a section in the Orthanc configuration 
file that specifies the details of the WSI plugin. 

You may use /usr/share/doc/packages/orthanc/wsi.json as template and copy it to 
/etc/orthanc.
You need to restart the Orthanc-Server to enable the configuration.

Note: If you have multiple plugins installed, make sure you have the line 

"Plugins" : [
    "/usr/share/orthanc/plugins/"
  ],

only ONCE in all .json files!

For the command line tools, run

OrthancWSIDicomizer --help
OrthancWSIDicomToTiff --help
  
Check out http://book.orthanc-server.com/plugins/wsi.html for additional 
information!

Have fun
Axel Braun <[email protected]> Tue Dec 09 17:59:14 UTC 2019 
++++++ wsi.json ++++++
{
  /**
   * Configuration of the WSI plugin
   * Axel Braun <[email protected]>
   **/
  "Plugins" : [
    "/usr/share/orthanc/plugins/"
  ],
  
}

Reply via email to