* New default permissions to add/delete modalities through the Rest API
https://discourse.orthanc-server.org/t/managing-modalities-using-the-rest-api-and-keycloak/6137
* New standard configuration "stl"
OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc-authorization?expand=0&rev=15
121 lines
4.1 KiB
RPMSpec
121 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package orthanc-authorization
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
# Copyright (c) 2025 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-authorization
|
|
Summary: Authorisation plugin for Orthanc
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Graphics/Viewers
|
|
Version: 0.10.2
|
|
Release: 0
|
|
URL: http://orthanc-server.com
|
|
Source0: https://orthanc.uclouvain.be/downloads/sources/%{name}/OrthancAuthorization-%{version}.tar.gz
|
|
Source1: https://orthanc.uclouvain.be/downloads/third-party-downloads/curl-8.9.0.tar.gz
|
|
Source2: https://orthanc.uclouvain.be/downloads/third-party-downloads/gtest-1.8.1.tar.gz
|
|
Source3: https://orthanc.uclouvain.be/downloads/third-party-downloads/jsoncpp-1.9.5.tar.gz
|
|
Source4: https://orthanc.uclouvain.be/downloads/third-party-downloads/e2fsprogs-1.44.5.tar.gz
|
|
Source5: https://orthanc.uclouvain.be/downloads/third-party-downloads/boost_1_86_0_bcpdigest-1.12.5.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
%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_locale-devel >= 1.66
|
|
BuildRequires: libboost_regex-devel >= 1.66
|
|
%if 0%{?suse_version} <= 1600
|
|
BuildRequires: libboost_system-devel >= 1.66
|
|
%endif
|
|
BuildRequires: libboost_thread-devel >= 1.66
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: orthanc-devel
|
|
BuildRequires: orthanc-source
|
|
BuildRequires: unzip
|
|
BuildRequires: zlib-devel
|
|
|
|
Requires: orthanc
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Plugin for authorization
|
|
|
|
%prep
|
|
%autosetup -p1 -n OrthancAuthorization-%{version}
|
|
|
|
#OrthancPlugins may ask for additional files to be loaded
|
|
#Putting them into this folder prevents download of sources from the web
|
|
mkdir -p ThirdPartyDownloads
|
|
cp %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} ThirdPartyDownloads/.
|
|
|
|
%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=OFF \
|
|
-DSTANDALONE_BUILD=ON \
|
|
-DUSE_SYSTEM_NIFTILIB=OFF \
|
|
-DORTHANC_FRAMEWORK_SOURCE=path \
|
|
-DORTHANC_FRAMEWORK_ROOT=/usr/src/orthanc/OrthancFramework/Sources \
|
|
-DLIB_INSTALL_DIR=%{_libdir}/share/orthanc/plugins/
|
|
|
|
%cmake_build %{?_smp_mflags}
|
|
|
|
%install
|
|
%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/libOrthancAuthorization.so.%{version} \
|
|
%{buildroot}%{_prefix}/share/orthanc/plugins/libOrthancAuthorization.so
|
|
|
|
rm %{buildroot}%{_libdir}/share/orthanc/plugins/*.so
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING
|
|
%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
|