69b2efb
%global commit 71799c27da506c899f2ef04b50cd8d454374870d
70c51cc
%global comm %(c=%{commit}; echo ${c:0:7})
69b2efb
%global checkout 20171224git%{comm}
70c51cc
%global _docdir_fmt %{name}
70c51cc
c69c5dc
Name: ctk
c69c5dc
Version: 0.1
0655d83
Release: 0.18.20190721%{?dist}
c69c5dc
Summary: The Commmon Toolkit for biomedical imaging
c69c5dc
c69c5dc
License: ASL 2.0
c69c5dc
URL: http://www.commontk.org
c69c5dc
Source0: https://github.com/commontk/CTK/archive/2018-10-29/CTK-2018-10-29.tar.gz
c69c5dc
c69c5dc
Patch0:	%{name}-%{version}.%{checkout}-fix_qreal_cast.patch
c69c5dc
Patch1: %{name}-DCMTK_3.6.4_updated_function.patch
c69c5dc
c69c5dc
BuildRequires: gcc-c++
c69c5dc
BuildRequires: cmake
c69c5dc
BuildRequires: doxygen
c69c5dc
BuildRequires: graphviz
c69c5dc
BuildRequires: dcmtk-devel
c69c5dc
BuildRequires: gdcm-devel
c69c5dc
BuildRequires: libjpeg-turbo-devel
c69c5dc
BuildRequires: libxml2-devel
c69c5dc
BuildRequires: openssl-devel
c69c5dc
BuildRequires: qt-devel
3c83fc4
BuildRequires: make
70c51cc
70c51cc
%description
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
This package contains the CTK Core library.
70c51cc
70c51cc
70c51cc
%package dicom
70c51cc
c69c5dc
Summary: Library of high-level classes for querying PACS and local databases
70c51cc
70c51cc
%description dicom
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
DICOM library provides high-level classes supporting query and retrieve
70c51cc
operations from PACS and local databases. It includes Qt widgets to easily
70c51cc
set-up a server connection and to send queries and view the results.
70c51cc
70c51cc
70c51cc
%package plugin-framework
70c51cc
c69c5dc
Summary: A dynamic component system for C++
70c51cc
70c51cc
%description plugin-framework
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
The Plugin Framework is a dynamic component system for C++, modeled after the
70c51cc
OSGi specifications. It enable a development model where applications are
70c51cc
(dynamically) composed of many different (reusable) components following a
70c51cc
service oriented approach.
70c51cc
70c51cc
70c51cc
%package widgets
70c51cc
c69c5dc
Summary: A collection of Qt widgets for biomedical imaging applications
70c51cc
70c51cc
%description widgets
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
The Widgets library is a collection of Qt widgets for usage in biomedical
70c51cc
imaging applications.
70c51cc
70c51cc
70c51cc
%package devel
70c51cc
c69c5dc
Summary: Development files for the Common Toolkit
70c51cc
c69c5dc
Requires: %{name}%{?_isa} = %{version}-%{release}
c69c5dc
Requires: %{name}-dicom%{?_isa} = %{version}-%{release}
c69c5dc
Requires: %{name}-plugin-framework%{?_isa} = %{version}-%{release}
c69c5dc
Requires: %{name}-widgets%{?_isa} = %{version}-%{release}
c69c5dc
Requires: cmake%{?_isa}
c69c5dc
Requires: qt-devel%{?_isa}
70c51cc
70c51cc
%description devel
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
This package contains files for development of CTK applications.
70c51cc
70c51cc
70c51cc
%package doc
70c51cc
c69c5dc
Summary: Documentation for the Common Toolkit
c69c5dc
BuildArch: noarch
70c51cc
70c51cc
%description doc
70c51cc
The Common Toolkit is a community effort to provide support code for medical
70c51cc
image analysis, surgical navigation, and related projects.
70c51cc
70c51cc
This package contains CTK developer documentation.
70c51cc
70c51cc
70c51cc
%prep
c69c5dc
%autosetup -n CTK-2018-10-29 -p1
0655d83
# Set up the logo
0655d83
cp ctkLogo-small.png ctkLogo-small-transparent.png
70c51cc
70c51cc
%build
70c51cc
%cmake \
70c51cc
    -DCMAKE_PREFIX_PATH=%{_libdir}/cmake/InsightToolkit \
70c51cc
    -DCTK_SUPERBUILD=OFF \
70c51cc
    -DCTK_INSTALL_LIB_DIR=%{_libdir} \
70c51cc
    -DCTK_INSTALL_CMAKE_DIR=%{_libdir}/cmake/%{name} \
70c51cc
    -DCTK_INSTALL_PLUGIN_DIR=%{_libdir}/%{name}/plugins \
70c51cc
    -DCTK_INSTALL_QTPLUGIN_DIR=%{_qt4_plugindir} \
70c51cc
    -DCTK_ENABLE_DICOM=ON \
70c51cc
    -DCTK_ENABLE_PluginFramework=ON \
70c51cc
    -DCTK_ENABLE_Widgets=ON \
d439b31
    -DDOCUMENTATION_TARGET_IN_ALL=OFF \
c69c5dc
    -DBUILD_TESTING:BOOL=OFF ..
0655d83
%cmake_build
0655d83
0655d83
# why doesnt cmake_build doc work
0655d83
pushd %{__cmake_builddir}
d439b31
%make_build doc
70c51cc
popd
70c51cc
70c51cc
0655d83
70c51cc
%install
0655d83
%cmake_install
70c51cc
70c51cc
70c51cc
# No %%check section here because running tests requires working X server
70c51cc
# and data files that are distributed without any copyright/license info
70c51cc
# (see https://github.com/commontk/CTKData/issues/1).
70c51cc
70c51cc
61e7a30
%ldconfig_scriptlets
70c51cc
61e7a30
%ldconfig_scriptlets dicom
70c51cc
61e7a30
%ldconfig_scriptlets plugin-framework
70c51cc
61e7a30
%ldconfig_scriptlets widgets
70c51cc
70c51cc
70c51cc
%files
9ad7fdd
%doc README.rst
70c51cc
%license NOTICE LICENSE
70c51cc
%{_libdir}/libCTKCore.so.*
70c51cc
70c51cc
%files dicom
70c51cc
%{_libdir}/libCTKDICOM*.so.*
70c51cc
70c51cc
%files plugin-framework
70c51cc
%{_libdir}/libCTKPluginFramework.so.*
70c51cc
70c51cc
%files widgets
70c51cc
%{_libdir}/libCTKWidgets.so.*
70c51cc
70c51cc
%files devel
70c51cc
%{_includedir}/%{name}-%{version}
70c51cc
%{_libdir}/*.so
70c51cc
%{_qt4_plugindir}/designer/*.so
70c51cc
%{_libdir}/cmake/%{name}
70c51cc
70c51cc
%files doc
c69c5dc
%license NOTICE LICENSE
0655d83
%doc %{__cmake_builddir}/Documentation/html
70c51cc
70c51cc
%changelog
0655d83
* Fri Sep 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1-0.18.20190721
0655d83
- Fix build using correct cmake macros
0655d83
- Remove uneeded exclude
0655d83
04456fd
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.17.20190721
04456fd
- Second attempt - Rebuilt for
04456fd
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
04456fd
bac28d3
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.16.20190721
bac28d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bac28d3
620a4d3
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.15.20190721
620a4d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
620a4d3
afab008
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.14.20190721
afab008
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
afab008
a8bafaa
* Sun Jul 21 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1-0.13.20190721
a8bafaa
- Rebuild for ITK
a8bafaa
4f4d513
* Sat Mar 02 2019 Antonio Trande <sagitterATfedoraproject.org> - 0.1-0.12.20181029
c69c5dc
- Release 2018 10 29
c69c5dc
d9edae0
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.11.20171224git71799c2
d9edae0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d9edae0
bb6e0a1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.10.20171224git71799c2
bb6e0a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bb6e0a1
e634dc1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.9.20171224git71799c2
e634dc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e634dc1
2f935e8
* Wed Jan 03 2018 Björn Esser <besser82@fedoraproject.org> - 0.1-0.8.20171224git71799c2
2f935e8
- Remove BR: tcp_wrappers (#1518758)
2f935e8
69b2efb
* Wed Jan 03 2018 Björn Esser <besser82@fedoraproject.org> - 0.1-0.7.20171224git71799c2
69b2efb
- Update to recent snapshot
69b2efb
10e141a
* Wed Jan 03 2018 Björn Esser <besser82@fedoraproject.org> - 0.1-0.6.20151015gitbdc8cac
10e141a
- Rebuilt for dcmtk
10e141a
6cc30d6
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 0.1-0.5.20151015gitbdc8cac
6cc30d6
- Rebuilt for AutoReq cmake-filesystem
6cc30d6
70d1087
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.4.20151015gitbdc8cac
70d1087
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
70d1087
6e6b990
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.3.20151015gitbdc8cac
6e6b990
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6e6b990
3714330
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.2.20151015gitbdc8cac
3714330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3714330
70c51cc
* Tue Feb 2 2016 Dmitry Mikhirev <mikhirev@gmail.com> 0.1-0.1.20151015gitbdc8cac
70c51cc
- Initial package