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