]>
Commit | Line | Data |
---|---|---|
5bc5565e | 1 | # TODO: |
f4847c98 JB |
2 | # - use system libjpeg? (rather hard: it needs 8/12/16-bit versions; included libijg* |
3 | # are libjpeg 6b with some arithmetic and lossless patches applied; | |
ce2d2a2f | 4 | # libjpeg 8 already included arithmetic encoding support, but not lossless) |
5bc5565e | 5 | # |
ce2d2a2f JB |
6 | # Conditional build: |
7 | %bcond_without icu # use glibc iconv() instead of icu for charset conversion | |
8 | # glibc iconv supports only AbortTranscodingOnIllegalSequence conversion flag | |
9 | # icu supports AbortTranscodingOnIllegalSequence and DiscardIllegalSequences | |
10 | # standalone libiconv >= 1.8 supports additionally TransliterateIllegalSequences | |
11 | Summary: DICOM Toolkit - implementation of DICOM/MEDICOM standard | |
5bc5565e JB |
12 | Summary(pl.UTF-8): Narzędzia DICOM - implementacja standardu DICOM/MEDICOM |
13 | Name: dcmtk | |
580352da | 14 | Version: 3.6.7 |
1496d646 | 15 | Release: 2 |
5bc5565e JB |
16 | License: BSD |
17 | Group: Libraries | |
580352da JB |
18 | Source0: https://nero.offis.de/download/dcmtk/release/%{name}-%{version}.tar.gz |
19 | # Source0-md5: e4d519bb315ec3944f3f1d61df465cbd | |
0311e094 AM |
20 | Patch0: %{name}-3.6.0-0005-Fixed-includes-for-CharLS-1.0.patch |
21 | Patch1: %{name}-3.6.1-0001-Removed-reference-to-bundled-libcharls.patch | |
22 | Patch2: %{name}-3.6.1-0002-Find-and-include-CharLS.patch | |
23 | Patch3: %{name}-3.6.1-0003-Create-FindCharLS.cmake.patch | |
24 | Patch4: %{name}-3.6.1-0004-Use-cmake-suggested-location-for-CharLS.patch | |
25 | Patch5: %{name}-etc.patch | |
490ce120 | 26 | Patch6: CharLS.patch |
580352da JB |
27 | Patch7: %{name}-pc.patch |
28 | URL: https://dcmtk.org/ | |
5d98c3a5 | 29 | BuildRequires: CharLS-devel < 2.0 |
580352da | 30 | BuildRequires: cmake >= 3.0 |
ce2d2a2f JB |
31 | BuildRequires: doxygen |
32 | %{?with_icu:BuildRequires: libicu-devel} | |
5bc5565e | 33 | BuildRequires: libpng-devel >= 2:1.2.8 |
ce2d2a2f JB |
34 | # handled during configuration, but actually not used |
35 | #BuildRequires: libsndfile-devel | |
5d98c3a5 | 36 | BuildRequires: libstdc++-devel >= 6:4.8.1 |
580352da | 37 | BuildRequires: libtiff-devel >= 4 |
5bc5565e JB |
38 | BuildRequires: libwrap-devel |
39 | BuildRequires: libxml2-devel >= 1:2.6.26 | |
ce2d2a2f JB |
40 | BuildRequires: openjpeg2-devel >= 2 |
41 | BuildRequires: openssl-devel >= 1.0.1 | |
42 | BuildRequires: pkgconfig | |
5bc5565e | 43 | BuildRequires: zlib-devel >= 1.2.3 |
d163e5a5 | 44 | Requires: %{name}-libs = %{version}-%{release} |
5bc5565e JB |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | This DICOM ToolKit (DCMTK) package is a set of software libraries and | |
49 | applications implementing part of the DICOM/MEDICOM Standard. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Pakiet DICOM ToolKit (DCMTK) to zbiór bibliotek i aplikacji | |
53 | implementujących część standardu DICOM/MEDICOM. | |
54 | ||
d163e5a5 JB |
55 | %package libs |
56 | Summary: DICOM ToolKit shared libraries | |
57 | Summary(pl.UTF-8): Biblioteki współdzielone DICOM | |
58 | Group: Libraries | |
5d98c3a5 | 59 | Requires: libstdc++ >= 6:4.8.1 |
ce2d2a2f | 60 | Requires: openssl >= 1.0.1 |
580352da | 61 | Requires: zlib >= 1.2.3 |
d163e5a5 JB |
62 | |
63 | %description libs | |
64 | DICOM ToolKit shared libraries. | |
65 | ||
66 | %description libs -l pl.UTF-8 | |
67 | Biblioteki współdzielone DICOM. | |
68 | ||
5bc5565e JB |
69 | %package devel |
70 | Summary: Header files for DCMTK libraries | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek DCMTK | |
72 | Group: Development/Libraries | |
d163e5a5 | 73 | Requires: %{name}-libs = %{version}-%{release} |
580352da | 74 | %{?with_icu:Requires: libicu-devel} |
5d98c3a5 | 75 | Requires: libstdc++-devel >= 6:4.8.1 |
580352da JB |
76 | Requires: libtiff-devel >= 4 |
77 | Requires: libwrap-devel | |
78 | Requires: openjpeg2-devel >= 2 | |
79 | Requires: openssl-devel >= 1.0.1 | |
80 | Requires: zlib-devel >= 1.2.3 | |
5bc5565e JB |
81 | |
82 | %description devel | |
83 | Header files for DCMTK libraries. | |
84 | ||
85 | %description devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe bibliotek DCMTK. | |
87 | ||
5bc5565e | 88 | %prep |
490ce120 | 89 | %setup -q |
5bc5565e | 90 | %patch0 -p1 |
d163e5a5 JB |
91 | %patch1 -p1 |
92 | %patch2 -p1 | |
93 | %patch3 -p1 | |
94 | %patch4 -p1 | |
95 | %patch5 -p1 | |
490ce120 | 96 | %patch6 -p1 |
580352da | 97 | %patch7 -p1 |
d163e5a5 JB |
98 | |
99 | # enforce system CharLS | |
100 | %{__rm} -r dcmjpls/libcharls | |
5bc5565e JB |
101 | |
102 | %build | |
ce2d2a2f JB |
103 | install -d build |
104 | cd build | |
580352da | 105 | # SNDFILE does nothing (as of 3.6.7), just -devel dependency |
ce2d2a2f JB |
106 | %cmake .. \ |
107 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
0311e094 AM |
108 | -DDCMTK_INSTALL_CMKDIR=%{_lib}/cmake/dcmtk \ |
109 | -DBUILD_APPS:BOOL=ON \ | |
110 | -DBUILD_SHARED_LIBS:BOOL=ON \ | |
ce2d2a2f | 111 | -DDCMTK_ENABLE_CXX11:BOOL=ON \ |
5d98c3a5 | 112 | -DDCMTK_USE_CXX11_STL:BOOL=ON \ |
ce2d2a2f JB |
113 | -DDCMTK_WITH_CHARLS:BOOL=ON \ |
114 | -DDCMTK_WITH_ICONV:BOOL=OFF \ | |
115 | %{!?with_icu:-DDCMTK_WITH_ICU:BOOL=OFF} \ | |
0311e094 AM |
116 | -DDCMTK_WITH_OPENSSL:BOOL=ON \ |
117 | -DDCMTK_WITH_PNG:BOOL=ON \ | |
118 | -DDCMTK_WITH_PRIVATE_TAGS:BOOL=ON \ | |
580352da | 119 | -DDCMTK_WITH_SNDFILE:BOOL=OFF \ |
0311e094 AM |
120 | -DDCMTK_WITH_TIFF:BOOL=ON \ |
121 | -DDCMTK_WITH_XML:BOOL=ON \ | |
0311e094 | 122 | -DDCMTK_WITH_ZLIB:BOOL=ON |
5bc5565e JB |
123 | |
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
ce2d2a2f | 129 | %{__make} -C build install \ |
5bc5565e JB |
130 | DESTDIR=$RPM_BUILD_ROOT |
131 | ||
0972d695 JB |
132 | # disable completeness check incompatible with split packaging |
133 | %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d; /^unset(_IMPORT_CHECK_TARGETS)/d' $RPM_BUILD_ROOT%{_libdir}/cmake/dcmtk/DCMTKTargets.cmake | |
134 | ||
ce2d2a2f | 135 | # packaged as %doc |
490ce120 | 136 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
d163e5a5 | 137 | |
5bc5565e JB |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
d163e5a5 JB |
141 | %post libs -p /sbin/ldconfig |
142 | %postun libs -p /sbin/ldconfig | |
5bc5565e JB |
143 | |
144 | %files | |
145 | %defattr(644,root,root,755) | |
0311e094 AM |
146 | %doc ANNOUNCE CHANGES COPYRIGHT FAQ HISTORY README |
147 | %doc dcmdata/docs/datadict.txt dcmnet/docs/asconfig.txt | |
148 | %doc dcmqrdb/docs/dcmqr*.txt dcmtls/docs/ciphers.txt | |
ce2d2a2f | 149 | %attr(755,root,root) %{_bindir}/cda2dcm |
5bc5565e JB |
150 | %attr(755,root,root) %{_bindir}/dcm* |
151 | %attr(755,root,root) %{_bindir}/dcod2lum | |
152 | %attr(755,root,root) %{_bindir}/dconvlum | |
0311e094 AM |
153 | %attr(755,root,root) %{_bindir}/drtdump |
154 | %attr(755,root,root) %{_bindir}/drttest | |
5bc5565e JB |
155 | %attr(755,root,root) %{_bindir}/dsr2html |
156 | %attr(755,root,root) %{_bindir}/dsr2xml | |
157 | %attr(755,root,root) %{_bindir}/dsrdump | |
158 | %attr(755,root,root) %{_bindir}/dump2dcm | |
159 | %attr(755,root,root) %{_bindir}/echoscu | |
160 | %attr(755,root,root) %{_bindir}/findscu | |
0311e094 | 161 | %attr(755,root,root) %{_bindir}/getscu |
5bc5565e | 162 | %attr(755,root,root) %{_bindir}/img2dcm |
0311e094 | 163 | %attr(755,root,root) %{_bindir}/mkreport |
5bc5565e | 164 | %attr(755,root,root) %{_bindir}/movescu |
490ce120 | 165 | %attr(755,root,root) %{_bindir}/msgserv |
0311e094 | 166 | %attr(755,root,root) %{_bindir}/ofstd_tests |
5bc5565e | 167 | %attr(755,root,root) %{_bindir}/pdf2dcm |
ce2d2a2f | 168 | %attr(755,root,root) %{_bindir}/stl2dcm |
5bc5565e JB |
169 | %attr(755,root,root) %{_bindir}/storescp |
170 | %attr(755,root,root) %{_bindir}/storescu | |
171 | %attr(755,root,root) %{_bindir}/termscu | |
172 | %attr(755,root,root) %{_bindir}/wlmscpfs | |
490ce120 | 173 | %attr(755,root,root) %{_bindir}/wltest |
5bc5565e JB |
174 | %attr(755,root,root) %{_bindir}/xml2dcm |
175 | %attr(755,root,root) %{_bindir}/xml2dsr | |
176 | %dir %{_sysconfdir}/dcmtk | |
177 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/dcmpstat.cfg | |
178 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/dcmqrscp.cfg | |
179 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/filelog.cfg | |
180 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/logger.cfg | |
181 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/printers.cfg | |
182 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/storescp.cfg | |
183 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dcmtk/storescu.cfg | |
184 | %{_datadir}/dcmtk | |
ce2d2a2f | 185 | %{_mandir}/man1/cda2dcm.1* |
5bc5565e JB |
186 | %{_mandir}/man1/dcm*.1* |
187 | %{_mandir}/man1/dcod2lum.1* | |
188 | %{_mandir}/man1/dconvlum.1* | |
0311e094 | 189 | %{_mandir}/man1/drtdump.1* |
5bc5565e JB |
190 | %{_mandir}/man1/dsr2html.1* |
191 | %{_mandir}/man1/dsr2xml.1* | |
192 | %{_mandir}/man1/dsrdump.1* | |
193 | %{_mandir}/man1/dump2dcm.1* | |
194 | %{_mandir}/man1/echoscu.1* | |
195 | %{_mandir}/man1/findscu.1* | |
0311e094 | 196 | %{_mandir}/man1/getscu.1* |
5bc5565e JB |
197 | %{_mandir}/man1/img2dcm.1* |
198 | %{_mandir}/man1/movescu.1* | |
199 | %{_mandir}/man1/pdf2dcm.1* | |
ce2d2a2f | 200 | %{_mandir}/man1/stl2dcm.1* |
5bc5565e JB |
201 | %{_mandir}/man1/storescp.1* |
202 | %{_mandir}/man1/storescu.1* | |
203 | %{_mandir}/man1/termscu.1* | |
204 | %{_mandir}/man1/wlmscpfs.1* | |
205 | %{_mandir}/man1/xml2dcm.1* | |
206 | %{_mandir}/man1/xml2dsr.1* | |
207 | ||
d163e5a5 JB |
208 | %files libs |
209 | %defattr(644,root,root,755) | |
0311e094 | 210 | %attr(755,root,root) %{_libdir}/libcmr.so.*.*.* |
580352da | 211 | %attr(755,root,root) %ghost %{_libdir}/libcmr.so.17 |
d163e5a5 | 212 | %attr(755,root,root) %{_libdir}/libdcmdata.so.*.*.* |
580352da | 213 | %attr(755,root,root) %ghost %{_libdir}/libdcmdata.so.17 |
966e73a5 | 214 | %attr(755,root,root) %{_libdir}/libdcmect.so.*.*.* |
580352da | 215 | %attr(755,root,root) %ghost %{_libdir}/libdcmect.so.17 |
d163e5a5 | 216 | %attr(755,root,root) %{_libdir}/libdcmdsig.so.*.*.* |
580352da | 217 | %attr(755,root,root) %ghost %{_libdir}/libdcmdsig.so.17 |
0311e094 | 218 | %attr(755,root,root) %{_libdir}/libdcmfg.so.*.*.* |
580352da | 219 | %attr(755,root,root) %ghost %{_libdir}/libdcmfg.so.17 |
d163e5a5 | 220 | %attr(755,root,root) %{_libdir}/libdcmimage.so.*.*.* |
580352da | 221 | %attr(755,root,root) %ghost %{_libdir}/libdcmimage.so.17 |
d163e5a5 | 222 | %attr(755,root,root) %{_libdir}/libdcmimgle.so.*.*.* |
580352da | 223 | %attr(755,root,root) %ghost %{_libdir}/libdcmimgle.so.17 |
0311e094 | 224 | %attr(755,root,root) %{_libdir}/libdcmiod.so.*.*.* |
580352da | 225 | %attr(755,root,root) %ghost %{_libdir}/libdcmiod.so.17 |
d163e5a5 | 226 | %attr(755,root,root) %{_libdir}/libdcmjpeg.so.*.*.* |
580352da | 227 | %attr(755,root,root) %ghost %{_libdir}/libdcmjpeg.so.17 |
d163e5a5 | 228 | %attr(755,root,root) %{_libdir}/libdcmjpls.so.*.*.* |
580352da | 229 | %attr(755,root,root) %ghost %{_libdir}/libdcmjpls.so.17 |
d163e5a5 | 230 | %attr(755,root,root) %{_libdir}/libdcmnet.so.*.*.* |
580352da | 231 | %attr(755,root,root) %ghost %{_libdir}/libdcmnet.so.17 |
d163e5a5 | 232 | %attr(755,root,root) %{_libdir}/libdcmpstat.so.*.*.* |
580352da | 233 | %attr(755,root,root) %ghost %{_libdir}/libdcmpstat.so.17 |
d163e5a5 | 234 | %attr(755,root,root) %{_libdir}/libdcmqrdb.so.*.*.* |
580352da | 235 | %attr(755,root,root) %ghost %{_libdir}/libdcmqrdb.so.17 |
0311e094 | 236 | %attr(755,root,root) %{_libdir}/libdcmrt.so.*.*.* |
580352da | 237 | %attr(755,root,root) %ghost %{_libdir}/libdcmrt.so.17 |
0311e094 | 238 | %attr(755,root,root) %{_libdir}/libdcmseg.so.*.*.* |
580352da | 239 | %attr(755,root,root) %ghost %{_libdir}/libdcmseg.so.17 |
490ce120 | 240 | %attr(755,root,root) %{_libdir}/libdcmpmap.so.*.*.* |
580352da | 241 | %attr(755,root,root) %ghost %{_libdir}/libdcmpmap.so.17 |
d163e5a5 | 242 | %attr(755,root,root) %{_libdir}/libdcmsr.so.*.*.* |
580352da | 243 | %attr(755,root,root) %ghost %{_libdir}/libdcmsr.so.17 |
0311e094 | 244 | %attr(755,root,root) %{_libdir}/libdcmtract.so.*.*.* |
580352da | 245 | %attr(755,root,root) %ghost %{_libdir}/libdcmtract.so.17 |
d163e5a5 | 246 | %attr(755,root,root) %{_libdir}/libdcmtls.so.*.*.* |
580352da | 247 | %attr(755,root,root) %ghost %{_libdir}/libdcmtls.so.17 |
d163e5a5 | 248 | %attr(755,root,root) %{_libdir}/libdcmwlm.so.*.*.* |
580352da | 249 | %attr(755,root,root) %ghost %{_libdir}/libdcmwlm.so.17 |
d163e5a5 | 250 | %attr(755,root,root) %{_libdir}/libi2d.so.*.*.* |
580352da | 251 | %attr(755,root,root) %ghost %{_libdir}/libi2d.so.17 |
d163e5a5 | 252 | %attr(755,root,root) %{_libdir}/libijg12.so.*.*.* |
580352da | 253 | %attr(755,root,root) %ghost %{_libdir}/libijg12.so.17 |
d163e5a5 | 254 | %attr(755,root,root) %{_libdir}/libijg16.so.*.*.* |
580352da | 255 | %attr(755,root,root) %ghost %{_libdir}/libijg16.so.17 |
d163e5a5 | 256 | %attr(755,root,root) %{_libdir}/libijg8.so.*.*.* |
580352da | 257 | %attr(755,root,root) %ghost %{_libdir}/libijg8.so.17 |
d163e5a5 | 258 | %attr(755,root,root) %{_libdir}/liboflog.so.*.*.* |
580352da | 259 | %attr(755,root,root) %ghost %{_libdir}/liboflog.so.17 |
d163e5a5 | 260 | %attr(755,root,root) %{_libdir}/libofstd.so.*.*.* |
580352da | 261 | %attr(755,root,root) %ghost %{_libdir}/libofstd.so.17 |
d163e5a5 | 262 | |
5bc5565e JB |
263 | %files devel |
264 | %defattr(644,root,root,755) | |
0311e094 | 265 | %attr(755,root,root) %{_libdir}/libcmr.so |
d163e5a5 JB |
266 | %attr(755,root,root) %{_libdir}/libdcmdata.so |
267 | %attr(755,root,root) %{_libdir}/libdcmdsig.so | |
966e73a5 | 268 | %attr(755,root,root) %{_libdir}/libdcmect.so |
0311e094 | 269 | %attr(755,root,root) %{_libdir}/libdcmfg.so |
d163e5a5 JB |
270 | %attr(755,root,root) %{_libdir}/libdcmimage.so |
271 | %attr(755,root,root) %{_libdir}/libdcmimgle.so | |
0311e094 | 272 | %attr(755,root,root) %{_libdir}/libdcmiod.so |
d163e5a5 JB |
273 | %attr(755,root,root) %{_libdir}/libdcmjpeg.so |
274 | %attr(755,root,root) %{_libdir}/libdcmjpls.so | |
275 | %attr(755,root,root) %{_libdir}/libdcmnet.so | |
490ce120 | 276 | %attr(755,root,root) %{_libdir}/libdcmpmap.so |
d163e5a5 JB |
277 | %attr(755,root,root) %{_libdir}/libdcmpstat.so |
278 | %attr(755,root,root) %{_libdir}/libdcmqrdb.so | |
0311e094 AM |
279 | %attr(755,root,root) %{_libdir}/libdcmrt.so |
280 | %attr(755,root,root) %{_libdir}/libdcmseg.so | |
d163e5a5 JB |
281 | %attr(755,root,root) %{_libdir}/libdcmsr.so |
282 | %attr(755,root,root) %{_libdir}/libdcmtls.so | |
0311e094 | 283 | %attr(755,root,root) %{_libdir}/libdcmtract.so |
d163e5a5 JB |
284 | %attr(755,root,root) %{_libdir}/libdcmwlm.so |
285 | %attr(755,root,root) %{_libdir}/libi2d.so | |
286 | %attr(755,root,root) %{_libdir}/libijg12.so | |
287 | %attr(755,root,root) %{_libdir}/libijg16.so | |
288 | %attr(755,root,root) %{_libdir}/libijg8.so | |
289 | %attr(755,root,root) %{_libdir}/liboflog.so | |
290 | %attr(755,root,root) %{_libdir}/libofstd.so | |
0311e094 | 291 | %{_libdir}/cmake/dcmtk |
5bc5565e | 292 | %{_includedir}/dcmtk |
580352da | 293 | %{_pkgconfigdir}/dcmtk.pc |