Package itk-snap: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | %define _unpackaged_files_terminate_build 1 # stable branches support uses this macro %define qIF_ver_lt() %if "%(rpmvercmp '%2' '%1')" > "0" %define itkver 4.12 Name: itk-snap Version: 3.8.0 Release: alt6 Summary: Software application used to segment structures in 3D medical images Group: Sciences/Medicine License: GPLv3 URL: http://www.itksnap.org/pmwiki/pmwiki.php ExclusiveArch: %ix86 x86_64 # https://git.code.sf.net/p/itk-snap/src Source: %name-%version.tar Source1: itk-snap.desktop Patch1: %name-alt-no-git.patch Patch2: %name-alt-build.patch Patch3: %name-alt-unbundle.patch Patch4: %name-alt-glibc-compat.patch BuildRequires(pre): rpm-build-ubt BuildRequires: gcc-c++ cmake BuildRequires: libitk%itkver-devel BuildRequires: qt5-declarative-devel BuildRequires: libcurl-devel # unbundled dependencies BuildRequires: libgreedy-devel BuildRequires: libconvert3d-devel BuildRequires: jsoncpp-devel Requires: greedy Requires: convert3d %define _description \ ITK-SNAP is a software application \ used to segment structures in 3D medical images. \ It is the product of a decade-long collaboration between \ Paul Yushkevich, Ph.D., of the Penn Image Computing and Science Laboratory (PICSL) \ at the University of Pennsylvania, \ and Guido Gerig, Ph.D., of the Scientific Computing and Imaging Institute (SCI) \ at the University of Utah, whose vision was to create a tool \ that would be dedicated to a specific function, \ segmentation, and would be easy to use and learn. \ ITK-SNAP is free, open-source, and multi-platform. \ \ ITK-SNAP provides semi-automatic segmentation using active contour methods, \ as well as manual delineation and image navigation. \ In addition to these core functions, ITK-SNAP offers many supporting utilities. \ \ Some of the core advantages of ITK-SNAP include: \ - Linked cursor for seamless 3D navigation \ - Manual segmentation in three orthogonal planes at once \ - A modern graphical user interface based on Qt \ - Support for many different 3D image formats, including NIfTI and DICOM \ - Support for concurrent, linked viewing, and segmentation of multiple images \ - Support for color, multi-channel, and time-variant images \ - 3D cut-plane tool for fast post-processing of segmentation results \ - Extensive tutorial and video documentation \ \ Compared to other, larger open-source image analysis tools, \ ITK-SNAP design focuses specifically on the problem of image segmentation, \ and extraneous or unrelated features are kept to a minimum. \ The design also emphasizes interaction and ease of use, \ with the bulk of the development effort dedicated to the user interface. %description %_description %prep %setup %patch1 -p1 %patch2 -p1 %patch3 -p1 %qIF_ver_lt S1 %ubt_id %patch4 -p1 %endif # remove unbundled libraries rm -rf Common/JSon %build # get SNAP_VERSION_GIT_ data from upstream commit being used to build this package # git rev-parse --abbrev-ref HEAD # git rev-parse HEAD # git show -s --format=%%ci HEAD %cmake \ -DSNAP_VERSION_GIT_BRANCH=master \ -DSNAP_VERSION_GIT_SHA1=7a104c25401ce23599dc8d32ea80f3daae80f379 \ -DSNAP_VERSION_GIT_TIMESTAMP="2019-06-12 06:53:09 -0400" \ %ifnarch %e2k -DOpenGL_GL_PREFERENCE=GLVND \ %endif -DSNAP_PACKAGE_QT_PLUGINS:BOOL=OFF \ %nil %cmake_build %install %cmakeinstall_std # install desktop file and icon install -d %buildroot%_desktopdir install -m644 %SOURCE1 %buildroot%_desktopdir/ install -d %buildroot%_datadir/%name install -m644 GUI/Qt/Resources/logo_square.png %buildroot%_datadir/%name/ %files %doc COPYING %doc README.md ReleaseNotes.md %doc Documentation %_bindir/itksnap %_bindir/itksnap-wt %_libexecdir/snap-%version/ITK-SNAP %_libdir/lib*.so* %_desktopdir/*.desktop %dir %_datadir/%name %_datadir/%name/logo_square.png %changelog * Tue Jun 08 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.0-alt6 - Added compatibility to p9. * Thu Jun 03 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.0-alt5 - Added desktop file. * Fri May 14 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.0-alt4 - Rebuilt with VTK-9.0.1. * Tue Jan 12 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.0-alt3 - Fixed build with new glibc. * Mon Feb 24 2020 Igor Vlasenko <viy@altlinux.ru> 3.8.0-alt2 - rebuild with new gbcm * Thu Jul 18 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 3.8.0-alt1 - Initial build for ALT. |