3 %bcond_without apidocs # do not build and package API docs
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
18 %bcond_without teem # teem (nrrd) conv module
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)
26 Group: Applications/File
27 Source0: http://download.savannah.gnu.org/releases/gta/%{name}-%{version}.tar.xz
28 # Source0-md5: 1f899e0872d0d706878844bb7f48bc7e
30 Patch1: %{name}-pcl.patch
31 URL: http://gta.nongnu.org/gtatool.html
32 %{?with_magick:BuildRequires: ImageMagick-c++-devel}
33 %{?with_openexr:BuildRequires: OpenEXR-devel}
34 %{?with_qt:BuildRequires: QtGui-devel >= 4.6}
35 BuildRequires: OpenCL-devel
36 BuildRequires: autoconf >= 2.65
37 BuildRequires: automake >= 1:1.11.1
38 %{?with_dcmtk:BuildRequires: dcmtk-devel}
39 %{?with_apidocs:BuildRequires: doxygen}
40 # libavformat >= 52.110.0 libavdevice libswscale
41 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
42 %{?with_gdal:BuildRequires: gdal-devel}
43 BuildRequires: libgta-devel >= 0.9.4
44 %{?with_jpeg:BuildRequires: libjpeg-devel}
45 %{?with_sndfile:BuildRequires: libsndfile-devel}
46 BuildRequires: libstdc++-devel
47 BuildRequires: libtool
48 %{?with_matio:BuildRequires: matio-devel}
49 %{?with_muparser:BuildRequires: muparser-devel}
50 %{?with_netcdf:BuildRequires: netcdf-devel}
51 %{?with_netpbm:BuildRequires: netpbm-devel}
52 %{?with_pcl:BuildRequires: pcl-devel >= 1.7}
53 %{?with_pfs:BuildRequires: pfstools-devel}
54 BuildRequires: pkgconfig
55 %{?with_qt:BuildRequires: qt4-build >= 4.6}
56 BuildRequires: tar >= 1:1.22
57 %{?with_teem:BuildRequires: teem-devel}
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 Gtatool manipulates Generic Tagged Array (GTA) files.
64 It provides a set of commands that manipulate GTAs on various levels,
65 and it can import from and export to many other file formats.
67 %description -l pl.UTF-8
68 gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych
69 tablicach etykietowanych).
71 Pakiet zawiera zestaw poleceń obrabiających GTA na różnych poziomach,
72 potrafiących importować i eksportować do wielu innych formatów plików.
74 %package component-compute
75 Summary: gtatool module to compute array element components
76 Summary(pl.UTF-8): Moduł gtatool do obliczania składowych elementów tablicy
77 Group: Applications/File
78 Requires: %{name} = %{version}-%{release}
80 %description component-compute
81 gtatool module to compute array element components.
83 %description component-compute -l pl.UTF-8
84 Moduł gtatool do obliczania składowych elementów tablicy.
87 Summary: gtatool module to convert from DICOM format
88 Summary(pl.UTF-8): Moduł gtatool do konwersji z formatu DICOM
89 Group: Applications/File
90 Requires: %{name} = %{version}-%{release}
92 %description conv-dcmtk
93 gtatool module to convert from DICOM format.
95 %description conv-dcmtk -l pl.UTF-8
96 Moduł gtatool do konwersji z formatu DICOM.
99 Summary: gtatool module to convert from/to EXR format
100 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu EXR
101 Group: Applications/File
102 Requires: %{name} = %{version}-%{release}
104 %description conv-exr
105 gtatool module to convert from/to EXR format.
107 %description conv-exr -l pl.UTF-8
108 Moduł gtatool do konwersji z/do formatu EXR.
111 Summary: gtatool module to convert from FFmpeg formats
112 Summary(pl.UTF-8): Moduł gtatool do konwersji z formatów FFmpeg
113 Group: Applications/File
114 Requires: %{name} = %{version}-%{release}
116 %description conv-ffmpeg
117 gtatool module to convert from FFmpeg formats.
119 %description conv-ffmpeg -l pl.UTF-8
120 Moduł gtatool do konwersji z formatów FFmpeg.
123 Summary: gtatool module to convert from/to GDAL supported formats
124 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL
125 Group: Applications/File
126 Requires: %{name} = %{version}-%{release}
128 %description conv-gdal
129 gtatool module to convert from/to GDAL supported formats.
131 %description conv-gdal -l pl.UTF-8
132 Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL.
135 Summary: gtatool module to convert from/to JPEG formats
136 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu JPEG
137 Group: Applications/File
138 Requires: %{name} = %{version}-%{release}
140 %description conv-jpeg
141 gtatool module to convert from/to JPEG formats.
143 %description conv-jpeg -l pl.UTF-8
144 Moduł gtatool do konwersji z/do formatu JPEG.
147 Summary: gtatool module to convert from/to ImageMagick supported formats
148 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez ImageMagick
149 Group: Applications/File
150 Requires: %{name} = %{version}-%{release}
152 %description conv-magick
153 gtatool module to convert from/to ImageMagick supported formats.
155 %description conv-magick -l pl.UTF-8
156 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
160 Summary: gtatool module to convert from/to MAT format
161 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu MAT
162 Group: Applications/File
163 Requires: %{name} = %{version}-%{release}
165 %description conv-mat
166 gtatool module to convert from/to MAT (Matlab) format.
168 %description conv-mat -l pl.UTF-8
169 Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab).
172 Summary: gtatool module to convert from/to NetCDF format
173 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu NetCDF
174 Group: Applications/File
175 Requires: %{name} = %{version}-%{release}
177 %description conv-netcdf
178 gtatool module to convert from/to NetCDF format.
180 %description conv-netcdf -l pl.UTF-8
181 Moduł gtatool do konwersji z/do formatu NetCDF.
184 Summary: gtatool module to convert from/to NetPBM supported formats
185 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM
186 Group: Applications/File
187 Requires: %{name} = %{version}-%{release}
189 %description conv-netpbm
190 gtatool module to convert from/to NetPBM supported formats.
192 %description conv-netpbm -l pl.UTF-8
193 Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM.
196 Summary: gtatool module to convert from/to PCD format
197 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PCD
198 Group: Applications/File
199 Requires: %{name} = %{version}-%{release}
201 %description conv-pcd
202 gtatool module to convert from/to PCD format.
204 %description conv-pcd -l pl.UTF-8
205 Moduł gtatool do konwersji z/do formatu PCD.
208 Summary: gtatool module to convert from/to PFS format
209 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PFS
210 Group: Applications/File
211 Requires: %{name} = %{version}-%{release}
213 %description conv-pfs
214 gtatool module to convert from/to PFS format.
216 %description conv-pfs -l pl.UTF-8
217 Moduł gtatool do konwersji z/do formatu PFS.
219 %package conv-sndfile
220 Summary: gtatool module to convert from/to libsndfile supported formats
221 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez libsndfile
222 Group: Applications/File
223 Requires: %{name} = %{version}-%{release}
225 %description conv-sndfile
226 gtatool module to convert from/to libsndfile supported formats.
228 %description conv-sndfile -l pl.UTF-8
229 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
233 Summary: gtatool module to convert from/to Teem (NRRD) format
234 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu Teem (NRRD)
235 Group: Applications/File
236 Requires: %{name} = %{version}-%{release}
238 %description conv-teem
239 gtatool module to convert from/to Teem (NRRD) format.
241 %description conv-teem -l pl.UTF-8
242 Moduł gtatool do konwersji z/do formatu Teem (NRRD).
245 Summary: Qt-based GUI module for gtatool
246 Summary(pl.UTF-8): Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia gtatool
247 Group: X11/Applications
248 Requires: %{name} = %{version}-%{release}
249 Requires: QtGui >= 4.6
252 Qt-based GUI module for gtatool.
254 %description gui -l pl.UTF-8
255 Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia
258 %package -n bash-completion-gtatool
259 Summary: Bash completion for gtatool command
260 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów programu gtatool
261 Group: Applications/Shells
262 Requires: %{name} = %{version}-%{release}
263 Requires: bash-completion
264 %if "%{_rpmversion}" >= "5"
268 %description -n bash-completion-gtatool
269 Bash completion for gtatool command.
271 %description -n bash-completion-gtatool -l pl.UTF-8
272 Bashowe uzupełnianie parametrów programu gtatool.
286 --disable-silent-rules \
287 %{!?with_dcmtk:--without-dcmtk} \
288 %{!?with_ffmpeg:--without-ffmpeg} \
289 %{!?with_gdal:--without-gdal} \
290 %{!?with_jpeg:--without-jpeg} \
291 %{!?with_magick:--without-magick} \
292 %{!?with_matio:--without-matio} \
293 %{!?with_muparser:--without-muparser} \
294 %{!?with_netcdf:--without-netcdf} \
295 %{!?with_netpbm:--without-netpbm} \
296 %{!?with_openexr:--without-openexr} \
297 %{!?with_pcl:--without-pcd} \
298 %{!?with_pfs:--without-pfs} \
299 %{!?with_qt:--without-qt} \
300 %{!?with_sndfile:--without-sndfile} \
301 %{!?with_teem:--without-teem}
305 rm -rf $RPM_BUILD_ROOT
308 DESTDIR=$RPM_BUILD_ROOT
311 rm -rf $RPM_BUILD_ROOT
313 %post -p /sbin/postshell
314 -/usr/sbin/fix-info-dir -c %{_infodir}
316 %postun -p /sbin/postshell
317 -/usr/sbin/fix-info-dir -c %{_infodir}
320 %defattr(644,root,root,755)
321 %doc AUTHORS ChangeLog NEWS README
322 %attr(755,root,root) %{_bindir}/gta
323 %dir %{_libdir}/gtatool
324 %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so
325 %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so
326 %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so
327 %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so
328 %attr(755,root,root) %{_libdir}/gtatool/conv-rat.so
329 %attr(755,root,root) %{_libdir}/gtatool/conv-raw.so
330 %{_mandir}/man1/gta.1*
331 %{_infodir}/gta.info*
334 %files component-compute
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/gtatool/component-compute.so
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
407 %defattr(644,root,root,755)
408 %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/gtatool/gui.so
421 %{_desktopdir}/gta_gui.desktop
422 %{_iconsdir}/hicolor/*/apps/gta.png
423 %{_iconsdir}/hicolor/scalable/apps/gta.svg
426 %files -n bash-completion-gtatool
427 %defattr(644,root,root,755)
428 /etc/bash_completion.d/gta-completion.bash