Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Slowroll:Build:2
orthanc-volview
orthanc-volview.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File orthanc-volview.spec of Package orthanc-volview
# # spec file for package orthanc-volview # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2023-2024 Dr. Axel Braun <DocB@opensuse.org> # # 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 https://bugs.opensuse.org/ # Name: orthanc-volview Summary: VolView plugin for Orthanc License: AGPL-3.0-or-later Group: Productivity/Graphics/Viewers Version: 1.1 Release: 0 URL: https://orthanc-server.com Source0: https://orthanc.uclouvain.be/downloads/sources/%{name}/OrthancVolView-%{version}.tar.gz Source1: https://lsb.orthanc-server.com/plugin-volview/%{version}/dist.zip # https://orthanc.uclouvain.be/hg/orthanc-ohif/rev/154cb76a042f Patch0: reproducible.patch BuildRequires: cmake BuildRequires: e2fsprogs-devel %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 BuildRequires: gcc13-c++ %else BuildRequires: gcc-c++ %endif BuildRequires: googletest-devel BuildRequires: jsoncpp-devel BuildRequires: libboost_date_time-devel >= 1.66 BuildRequires: libboost_filesystem-devel >= 1.66 BuildRequires: libboost_iostreams-devel >= 1.66 BuildRequires: libboost_regex-devel >= 1.66 BuildRequires: libboost_system-devel >= 1.66 BuildRequires: libboost_thread-devel >= 1.66 BuildRequires: openssl-devel BuildRequires: orthanc-devel BuildRequires: orthanc-source BuildRequires: pugixml-devel BuildRequires: unzip BuildRequires: uuid-devel ##Force python 3.11 for Leap %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150400 BuildRequires: python311 %endif Requires: orthanc BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Plugin to access KitWares VolView viewer from Orthanc The homepage of VolView can be found at: https://volview.kitware.com/ The source code of VolView is available at: https://github.com/Kitware/VolView %prep %autosetup -p1 -n OrthancVolView-%{version} #OrthanPlugins may ask for additional files to be loaded #Putting them into this folder prevents download of sources from the web #static assets of the VolView viewer unzip %{S:1} -d VolView %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150400 #shebag ersetzen find . -iname "*.py" -exec sed -i "s/python3/python311/" '{}' \; %endif %build %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 export CC=gcc-13 export CXX=g++-13 %endif %cmake ../ \ -DALLOW_DOWNLOADS=OFF \ -DUSE_SYSTEM_GOOGLE_TEST=ON \ -DUSE_SYSTEM_ORTHANC_SDK=ON \ -DORTHANC_FRAMEWORK_SOURCE=path \ -DBoost_NO_BOOST_CMAKE=ON \ -DORTHANC_FRAMEWORK_ROOT=/usr/src/orthanc/OrthancFramework/Sources \ -DLIB_INSTALL_DIR=%{_libdir}/share/orthanc/plugins/ %cmake_build %{?_smp_mflags} %install mkdir -p -m 755 %{buildroot}%{_docdir}/orthanc-volview %cmake_install # architecture dependent files should not be in /usr/share... # create a directory mkdir -p -m 755 %{buildroot}%{_libdir}/share/orthanc/plugins mv %{buildroot}%{_prefix}/share/orthanc/plugins/*.so* %{buildroot}%{_libdir}/share/orthanc/plugins/. #orthanc expects the libs in the plugin-directory ln -s ../../../..%{_libdir}/share/orthanc/plugins/libOrthancVolView.so.%{version} \ %{buildroot}%{_prefix}/share/orthanc/plugins/libOrthancVolView.so rm %{buildroot}%{_libdir}/share/orthanc/plugins/libOrthancVolView.so cp NEWS README %{buildroot}%{_docdir}/orthanc-volview/. %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSES/* %dir %{_docdir}/orthanc-volview %{_docdir}/orthanc-volview/* %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* %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