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