File aeskulap.spec of Package aeskulap
#
# spec file for package aeskulap
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%global git e43334e
%global github mikhailnov-aeskulap
%global checkout git%{git}
%global checkout_date 20190120
Name: aeskulap
Version: 0.2.2~alt6
Release: 0
Summary: Full open source replacement for commercially available DICOM viewers
# The sources of the (internal) libraries are LGPLv2+, the rest of the sources are GPLv2+,
# except binreloc.{c,h} and the documentation, which are in the public domain
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND SUSE-Public-Domain
Group: Productivity/Graphics/Viewers
URL: https://github.com/mikhailnov/%{name}
Source0: https://github.com/mikhailnov/%{name}/tarball/master/%{github}-%{git}.tar.gz
Patch0: no-gconf.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dcmtk-devel >= 3.6.4
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: tcpd-devel
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtkmm-2.4) >= 2.6.0
BuildRequires: pkgconfig(libglademm-2.4) >= 2.6.0
%glib2_gsettings_schema_requires
%if 0%{?suse_version} >= 1320
BuildRequires: appstream-glib
%endif
%description
Aeskulap is able to load a series of special images stored in the
DICOM format for review. Additionally Aeskulap is able to query
and fetch DICOM images from archive nodes (also called PACS) over
the network.
The goal of this project is to create a full open source replacement
for commercially available DICOM viewers.
Aeskulap is based on gtkmm, glademm and gconfmm and designed to run
under Linux. Ports of these packages are available for different
platforms. It should be quite easy to port Aeskulap to any platform
were these packages are available.
%package doc
Summary: Documentation for aeskulap
Group: Productivity/Graphics/Viewers
BuildArch: noarch
%description doc
Documentation for aeskulap.
%prep
%setup -q -n %{github}-%{git}
%patch0 -p1
%build
# point to the correct lib version depending on the arch
sed -i 's/lib -ldcmjpeg/%{_lib} -ldcmjpeg/' configure.ac
libtoolize --force --copy --install
autoreconf --force --install
intltoolize --force --copy --automake
%configure --disable-static
%make_build
%install
%make_install
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version} > 1320
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
%endif
%find_lang %{name}
%post
%glib2_gsettings_schema_post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/update-desktop-database &> /dev/null || :
%postun
%glib2_gsettings_schema_postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%{_bindir}/update-desktop-database &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/glib-2.0/schemas/org.gnu.aeskulap.gschema.xml
%dir %{_datadir}/appdata
%exclude %{_libdir}/%{name}/*.la
%doc AUTHORS ABOUT-NLS ChangeLog README
%license COPYING COPYING.LIB
%files doc
%doc doc/%{name}-tutorials.pdf
%license COPYING.DOC
%changelog