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