]>
Commit | Line | Data |
---|---|---|
77f1f9bf JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
ce930cd4 JB |
4 | %bcond_without qt # Qt-based GUI |
5 | %bcond_without muparser # compute component module (based on MuParser) | |
6 | %bcond_without dcmtk # DCMTK conv module | |
7 | %bcond_without ffmpeg # FFmpeg conv module | |
8 | %bcond_without gdal # GDAL conv module | |
9 | %bcond_without jpeg # JPEG conv module (based on libjpeg) | |
10 | %bcond_without magick # Magick conv module (based on ImageMagick's libMagick++) | |
11 | %bcond_without matio # MAT conv module (MATLAB import/export, based on [lib]matio) | |
12 | %bcond_without netcdf # NetCDF conv module | |
13 | %bcond_without netpbm # NetPBM conv module | |
14 | %bcond_without openexr # EXR conv module (based on OpenEXR) | |
15 | %bcond_without pcl # PCD conv module (based on PCL's libpcl_io) | |
16 | %bcond_without pfs # PFS conv module | |
17 | %bcond_without sndfile # sndfile conv module | |
53d34f41 | 18 | %bcond_without teem # teem (nrrd) conv module |
77f1f9bf JB |
19 | # |
20 | Summary: Tools to manipulate Generic Tagged Array (GTA) files | |
21 | Summary(pl.UTF-8): Narzędzia do obróbki plików GTA (ogólnych tablic etykietowanych) | |
22 | Name: gtatool | |
d4dbb544 | 23 | Version: 1.5.1 |
77f1f9bf JB |
24 | Release: 1 |
25 | License: GPL v3+ | |
26 | Group: Applications/File | |
648baef2 | 27 | Source0: http://download.savannah.gnu.org/releases/gta/%{name}-%{version}.tar.xz |
d4dbb544 | 28 | # Source0-md5: 0b31c12493484a26321cf53dec24b92b |
77f1f9bf | 29 | URL: http://gta.nongnu.org/gtatool.html |
ce930cd4 JB |
30 | %{?with_magick:BuildRequires: ImageMagick-c++-devel} |
31 | %{?with_openexr:BuildRequires: OpenEXR-devel} | |
32 | %{?with_qt:BuildRequires: QtGui-devel >= 4.6} | |
33 | %{?with_dcmtk:BuildRequires: dcmtk-devel} | |
1a8c37c1 | 34 | %{?with_apidocs:BuildRequires: doxygen} |
ce930cd4 JB |
35 | # libavformat >= 52.110.0 libavdevice libswscale |
36 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
37 | %{?with_gdal:BuildRequires: gdal-devel} | |
77f1f9bf | 38 | BuildRequires: libgta-devel >= 0.9.4 |
ce930cd4 JB |
39 | %{?with_jpeg:BuildRequires: libjpeg-devel} |
40 | %{?with_sndfile:BuildRequires: libsndfile-devel} | |
77f1f9bf | 41 | BuildRequires: libstdc++-devel |
ce930cd4 JB |
42 | %{?with_matio:BuildRequires: matio-devel} |
43 | %{?with_muparser:BuildRequires: muparser-devel} | |
44 | %{?with_netcdf:BuildRequires: netcdf-devel} | |
45 | %{?with_netpbm:BuildRequires: netpbm-devel} | |
46 | %{?with_pcl:BuildRequires: pcl-devel >= 1.6} | |
47 | %{?with_pfs:BuildRequires: pfstools-devel} | |
77f1f9bf | 48 | BuildRequires: pkgconfig |
ce930cd4 | 49 | %{?with_qt:BuildRequires: qt4-build >= 4.6} |
77f1f9bf | 50 | BuildRequires: tar >= 1:1.22 |
53d34f41 | 51 | %{?with_teem:BuildRequires: teem-devel} |
77f1f9bf JB |
52 | BuildRequires: xz |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Gtatool manipulates Generic Tagged Array (GTA) files. | |
57 | ||
58 | It provides a set of commands that manipulate GTAs on various levels, | |
59 | and it can import from and export to many other file formats. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych | |
63 | tablicach etykietowanych). | |
64 | ||
65 | Pakiet zawiera zestaw poleceń obrabiających GTA na różnych poziomach, | |
66 | potrafiących importować i eksportować do wielu innych formatów plików. | |
67 | ||
1a8c37c1 JB |
68 | %package component-compute |
69 | Summary: gtatool module to compute array element components | |
70 | Summary(pl.UTF-8): Moduł gtatool do obliczania składowych elementów tablicy | |
71 | Group: Applications/File | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
74 | %description component-compute | |
75 | gtatool module to compute array element components. | |
76 | ||
77 | %description component-compute -l pl.UTF-8 | |
78 | Moduł gtatool do obliczania składowych elementów tablicy. | |
79 | ||
e75f31c6 JB |
80 | %package conv-dcmtk |
81 | Summary: gtatool module to convert from DICOM format | |
82 | Summary(pl.UTF-8): Moduł gtatool do konwersji z formatu DICOM | |
83 | Group: Applications/File | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | ||
86 | %description conv-dcmtk | |
87 | gtatool module to convert from DICOM format. | |
88 | ||
89 | %description conv-dcmtk -l pl.UTF-8 | |
90 | Moduł gtatool do konwersji z formatu DICOM. | |
91 | ||
77f1f9bf JB |
92 | %package conv-exr |
93 | Summary: gtatool module to convert from/to EXR format | |
94 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu EXR | |
95 | Group: Applications/File | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | ||
98 | %description conv-exr | |
99 | gtatool module to convert from/to EXR format. | |
100 | ||
101 | %description conv-exr -l pl.UTF-8 | |
102 | Moduł gtatool do konwersji z/do formatu EXR. | |
103 | ||
104 | %package conv-ffmpeg | |
105 | Summary: gtatool module to convert from FFmpeg formats | |
106 | Summary(pl.UTF-8): Moduł gtatool do konwersji z formatów FFmpeg | |
107 | Group: Applications/File | |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description conv-ffmpeg | |
111 | gtatool module to convert from FFmpeg formats. | |
112 | ||
113 | %description conv-ffmpeg -l pl.UTF-8 | |
114 | Moduł gtatool do konwersji z formatów FFmpeg. | |
115 | ||
fec333dc JB |
116 | %package conv-gdal |
117 | Summary: gtatool module to convert from/to GDAL supported formats | |
118 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL | |
119 | Group: Applications/File | |
120 | Requires: %{name} = %{version}-%{release} | |
121 | ||
122 | %description conv-gdal | |
123 | gtatool module to convert from/to GDAL supported formats. | |
124 | ||
125 | %description conv-gdal -l pl.UTF-8 | |
126 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL. | |
127 | ||
dc0d3430 JB |
128 | %package conv-jpeg |
129 | Summary: gtatool module to convert from/to JPEG formats | |
130 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu JPEG | |
131 | Group: Applications/File | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description conv-jpeg | |
135 | gtatool module to convert from/to JPEG formats. | |
136 | ||
137 | %description conv-jpeg -l pl.UTF-8 | |
138 | Moduł gtatool do konwersji z/do formatu JPEG. | |
139 | ||
77f1f9bf JB |
140 | %package conv-magick |
141 | Summary: gtatool module to convert from/to ImageMagick supported formats | |
142 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez ImageMagick | |
143 | Group: Applications/File | |
144 | Requires: %{name} = %{version}-%{release} | |
145 | ||
146 | %description conv-magick | |
147 | gtatool module to convert from/to ImageMagick supported formats. | |
148 | ||
149 | %description conv-magick -l pl.UTF-8 | |
150 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
151 | ImageMagick. | |
152 | ||
0c601f44 JB |
153 | %package conv-mat |
154 | Summary: gtatool module to convert from/to MAT format | |
155 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu MAT | |
156 | Group: Applications/File | |
157 | Requires: %{name} = %{version}-%{release} | |
158 | ||
159 | %description conv-mat | |
160 | gtatool module to convert from/to MAT (Matlab) format. | |
161 | ||
162 | %description conv-mat -l pl.UTF-8 | |
163 | Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab). | |
164 | ||
ce930cd4 JB |
165 | %package conv-netcdf |
166 | Summary: gtatool module to convert from/to NetCDF format | |
167 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu NetCDF | |
168 | Group: Applications/File | |
169 | Requires: %{name} = %{version}-%{release} | |
170 | ||
171 | %description conv-netcdf | |
172 | gtatool module to convert from/to NetCDF format. | |
173 | ||
174 | %description conv-netcdf -l pl.UTF-8 | |
175 | Moduł gtatool do konwersji z/do formatu NetCDF. | |
176 | ||
77f1f9bf JB |
177 | %package conv-netpbm |
178 | Summary: gtatool module to convert from/to NetPBM supported formats | |
179 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM | |
180 | Group: Applications/File | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | ||
183 | %description conv-netpbm | |
184 | gtatool module to convert from/to NetPBM supported formats. | |
185 | ||
186 | %description conv-netpbm -l pl.UTF-8 | |
187 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM. | |
188 | ||
ce930cd4 JB |
189 | %package conv-pcd |
190 | Summary: gtatool module to convert from/to PCD format | |
191 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PCD | |
192 | Group: Applications/File | |
193 | Requires: %{name} = %{version}-%{release} | |
194 | ||
195 | %description conv-pcd | |
196 | gtatool module to convert from/to PCD format. | |
197 | ||
198 | %description conv-pcd -l pl.UTF-8 | |
199 | Moduł gtatool do konwersji z/do formatu PCD. | |
200 | ||
dcb8070a JB |
201 | %package conv-pfs |
202 | Summary: gtatool module to convert from/to PFS format | |
203 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PFS | |
204 | Group: Applications/File | |
205 | Requires: %{name} = %{version}-%{release} | |
206 | ||
207 | %description conv-pfs | |
208 | gtatool module to convert from/to PFS format. | |
209 | ||
210 | %description conv-pfs -l pl.UTF-8 | |
211 | Moduł gtatool do konwersji z/do formatu PFS. | |
212 | ||
77f1f9bf JB |
213 | %package conv-sndfile |
214 | Summary: gtatool module to convert from/to libsndfile supported formats | |
215 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez libsndfile | |
216 | Group: Applications/File | |
217 | Requires: %{name} = %{version}-%{release} | |
218 | ||
219 | %description conv-sndfile | |
220 | gtatool module to convert from/to libsndfile supported formats. | |
221 | ||
222 | %description conv-sndfile -l pl.UTF-8 | |
223 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
224 | libsndfile. | |
225 | ||
53d34f41 JB |
226 | %package conv-teem |
227 | Summary: gtatool module to convert from/to Teem (NRRD) format | |
228 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu Teem (NRRD) | |
229 | Group: Applications/File | |
230 | Requires: %{name} = %{version}-%{release} | |
231 | ||
232 | %description conv-teem | |
233 | gtatool module to convert from/to Teem (NRRD) format. | |
234 | ||
235 | %description conv-teem -l pl.UTF-8 | |
236 | Moduł gtatool do konwersji z/do formatu Teem (NRRD). | |
237 | ||
77f1f9bf JB |
238 | %package gui |
239 | Summary: Qt-based GUI module for gtatool | |
240 | Summary(pl.UTF-8): Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia gtatool | |
241 | Group: X11/Applications | |
242 | Requires: %{name} = %{version}-%{release} | |
dc0d3430 | 243 | Requires: QtGui >= 4.6 |
77f1f9bf JB |
244 | |
245 | %description gui | |
246 | Qt-based GUI module for gtatool. | |
247 | ||
248 | %description gui -l pl.UTF-8 | |
249 | Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia | |
250 | gtatool. | |
251 | ||
d4dbb544 JB |
252 | %package -n bash-completion-gtatool |
253 | Summary: Bash completion for gtatool command | |
254 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów programu gtatool | |
255 | Group: Applications/Shells | |
256 | Requires: %{name} = %{version}-%{release} | |
257 | Requires: bash-completion | |
258 | ||
259 | %description -n bash-completion-gtatool | |
260 | Bash completion for gtatool command. | |
261 | ||
262 | %description -n bash-completion-gtatool -l pl.UTF-8 | |
263 | Bashowe uzupełnianie parametrów programu gtatool. | |
264 | ||
77f1f9bf JB |
265 | %prep |
266 | %setup -q | |
267 | ||
268 | %build | |
269 | %configure \ | |
ce930cd4 JB |
270 | --disable-silent-rules \ |
271 | %{!?with_dcmtk:--without-dcmtk} \ | |
272 | %{!?with_ffmpeg:--without-ffmpeg} \ | |
273 | %{!?with_gdal:--without-gdal} \ | |
274 | %{!?with_jpeg:--without-jpeg} \ | |
275 | %{!?with_magick:--without-magick} \ | |
276 | %{!?with_matio:--without-matio} \ | |
277 | %{!?with_muparser:--without-muparser} \ | |
278 | %{!?with_netcdf:--without-netcdf} \ | |
279 | %{!?with_netpbm:--without-netpbm} \ | |
280 | %{!?with_openexr:--without-openexr} \ | |
281 | %{!?with_pcl:--without-pcd} \ | |
282 | %{!?with_pfs:--without-pfs} \ | |
283 | %{!?with_qt:--without-qt} \ | |
53d34f41 JB |
284 | %{!?with_sndfile:--without-sndfile} \ |
285 | %{!?with_teem:--without-teem} | |
77f1f9bf JB |
286 | %{__make} |
287 | ||
288 | %install | |
289 | rm -rf $RPM_BUILD_ROOT | |
290 | ||
291 | %{__make} install \ | |
292 | DESTDIR=$RPM_BUILD_ROOT | |
293 | ||
294 | %clean | |
295 | rm -rf $RPM_BUILD_ROOT | |
296 | ||
297 | %post -p /sbin/postshell | |
298 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
299 | ||
300 | %postun -p /sbin/postshell | |
301 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
302 | ||
303 | %files | |
304 | %defattr(644,root,root,755) | |
305 | %doc AUTHORS ChangeLog NEWS README | |
306 | %attr(755,root,root) %{_bindir}/gta | |
307 | %dir %{_libdir}/gtatool | |
dc0d3430 JB |
308 | %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so |
309 | %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so | |
77f1f9bf | 310 | %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so |
dc0d3430 | 311 | %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so |
77f1f9bf JB |
312 | %attr(755,root,root) %{_libdir}/gtatool/conv-rat.so |
313 | %attr(755,root,root) %{_libdir}/gtatool/conv-raw.so | |
314 | %{_mandir}/man1/gta.1* | |
315 | %{_infodir}/gta.info* | |
316 | ||
ce930cd4 | 317 | %if %{with muparser} |
1a8c37c1 JB |
318 | %files component-compute |
319 | %defattr(644,root,root,755) | |
320 | %attr(755,root,root) %{_libdir}/gtatool/component-compute.so | |
ce930cd4 | 321 | %endif |
1a8c37c1 | 322 | |
ce930cd4 | 323 | %if %{with dcmtk} |
e75f31c6 JB |
324 | %files conv-dcmtk |
325 | %defattr(644,root,root,755) | |
326 | %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so | |
ce930cd4 | 327 | %endif |
e75f31c6 | 328 | |
ce930cd4 | 329 | %if %{with openexr} |
77f1f9bf JB |
330 | %files conv-exr |
331 | %defattr(644,root,root,755) | |
332 | %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so | |
ce930cd4 | 333 | %endif |
77f1f9bf | 334 | |
ce930cd4 | 335 | %if %{with ffmpeg} |
77f1f9bf JB |
336 | %files conv-ffmpeg |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so | |
ce930cd4 | 339 | %endif |
77f1f9bf | 340 | |
ce930cd4 | 341 | %if %{with gdal} |
fec333dc JB |
342 | %files conv-gdal |
343 | %defattr(644,root,root,755) | |
344 | %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so | |
ce930cd4 | 345 | %endif |
fec333dc | 346 | |
ce930cd4 | 347 | %if %{with jpeg} |
dc0d3430 JB |
348 | %files conv-jpeg |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so | |
ce930cd4 | 351 | %endif |
dc0d3430 | 352 | |
ce930cd4 | 353 | %if %{with magick} |
77f1f9bf JB |
354 | %files conv-magick |
355 | %defattr(644,root,root,755) | |
356 | %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so | |
ce930cd4 | 357 | %endif |
77f1f9bf | 358 | |
ce930cd4 | 359 | %if %{with matio} |
0c601f44 JB |
360 | %files conv-mat |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so | |
ce930cd4 | 363 | %endif |
0c601f44 | 364 | |
ce930cd4 JB |
365 | %if %{with netcdf} |
366 | %files conv-netcdf | |
367 | %defattr(644,root,root,755) | |
368 | %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so | |
369 | %endif | |
370 | ||
371 | %if %{with netpbm} | |
77f1f9bf JB |
372 | %files conv-netpbm |
373 | %defattr(644,root,root,755) | |
374 | %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so | |
ce930cd4 JB |
375 | %endif |
376 | ||
377 | %if %{with pcl} | |
378 | %files conv-pcd | |
379 | %defattr(644,root,root,755) | |
380 | %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so | |
381 | %endif | |
77f1f9bf | 382 | |
ce930cd4 | 383 | %if %{with pfs} |
dcb8070a JB |
384 | %files conv-pfs |
385 | %defattr(644,root,root,755) | |
386 | %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so | |
ce930cd4 | 387 | %endif |
dcb8070a | 388 | |
ce930cd4 | 389 | %if %{with sndfile} |
77f1f9bf JB |
390 | %files conv-sndfile |
391 | %defattr(644,root,root,755) | |
392 | %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so | |
ce930cd4 | 393 | %endif |
77f1f9bf | 394 | |
53d34f41 JB |
395 | %if %{with teem} |
396 | %files conv-teem | |
397 | %defattr(644,root,root,755) | |
398 | %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so | |
399 | %endif | |
400 | ||
ce930cd4 | 401 | %if %{with qt} |
77f1f9bf JB |
402 | %files gui |
403 | %defattr(644,root,root,755) | |
404 | %attr(755,root,root) %{_libdir}/gtatool/gui.so | |
dc0d3430 JB |
405 | %{_desktopdir}/gta_gui.desktop |
406 | %{_iconsdir}/hicolor/*/apps/gta.png | |
407 | %{_iconsdir}/hicolor/scalable/apps/gta.svg | |
ce930cd4 | 408 | %endif |
d4dbb544 JB |
409 | |
410 | %files -n bash-completion-gtatool | |
411 | %defattr(644,root,root,755) | |
412 | /etc/bash_completion.d/gta-completion.bash |