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: 0b31c12493484a26321cf53dec24b92b
29 URL: http://gta.nongnu.org/gtatool.html
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}
34 %{?with_apidocs:BuildRequires: doxygen}
35 # libavformat >= 52.110.0 libavdevice libswscale
36 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
37 %{?with_gdal:BuildRequires: gdal-devel}
38 BuildRequires: libgta-devel >= 0.9.4
39 %{?with_jpeg:BuildRequires: libjpeg-devel}
40 %{?with_sndfile:BuildRequires: libsndfile-devel}
41 BuildRequires: libstdc++-devel
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}
48 BuildRequires: pkgconfig
49 %{?with_qt:BuildRequires: qt4-build >= 4.6}
50 BuildRequires: tar >= 1:1.22
51 %{?with_teem:BuildRequires: teem-devel}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Gtatool manipulates Generic Tagged Array (GTA) files.
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.
61 %description -l pl.UTF-8
62 gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych
63 tablicach etykietowanych).
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.
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}
74 %description component-compute
75 gtatool module to compute array element components.
77 %description component-compute -l pl.UTF-8
78 Moduł gtatool do obliczania składowych elementów tablicy.
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}
86 %description conv-dcmtk
87 gtatool module to convert from DICOM format.
89 %description conv-dcmtk -l pl.UTF-8
90 Moduł gtatool do konwersji z formatu DICOM.
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}
99 gtatool module to convert from/to EXR format.
101 %description conv-exr -l pl.UTF-8
102 Moduł gtatool do konwersji z/do formatu EXR.
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}
110 %description conv-ffmpeg
111 gtatool module to convert from FFmpeg formats.
113 %description conv-ffmpeg -l pl.UTF-8
114 Moduł gtatool do konwersji z formatów FFmpeg.
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}
122 %description conv-gdal
123 gtatool module to convert from/to GDAL supported formats.
125 %description conv-gdal -l pl.UTF-8
126 Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL.
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}
134 %description conv-jpeg
135 gtatool module to convert from/to JPEG formats.
137 %description conv-jpeg -l pl.UTF-8
138 Moduł gtatool do konwersji z/do formatu JPEG.
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}
146 %description conv-magick
147 gtatool module to convert from/to ImageMagick supported formats.
149 %description conv-magick -l pl.UTF-8
150 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
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}
159 %description conv-mat
160 gtatool module to convert from/to MAT (Matlab) format.
162 %description conv-mat -l pl.UTF-8
163 Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab).
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}
171 %description conv-netcdf
172 gtatool module to convert from/to NetCDF format.
174 %description conv-netcdf -l pl.UTF-8
175 Moduł gtatool do konwersji z/do formatu NetCDF.
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}
183 %description conv-netpbm
184 gtatool module to convert from/to NetPBM supported formats.
186 %description conv-netpbm -l pl.UTF-8
187 Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM.
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}
195 %description conv-pcd
196 gtatool module to convert from/to PCD format.
198 %description conv-pcd -l pl.UTF-8
199 Moduł gtatool do konwersji z/do formatu PCD.
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}
207 %description conv-pfs
208 gtatool module to convert from/to PFS format.
210 %description conv-pfs -l pl.UTF-8
211 Moduł gtatool do konwersji z/do formatu PFS.
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}
219 %description conv-sndfile
220 gtatool module to convert from/to libsndfile supported formats.
222 %description conv-sndfile -l pl.UTF-8
223 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
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}
232 %description conv-teem
233 gtatool module to convert from/to Teem (NRRD) format.
235 %description conv-teem -l pl.UTF-8
236 Moduł gtatool do konwersji z/do formatu Teem (NRRD).
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}
243 Requires: QtGui >= 4.6
246 Qt-based GUI module for gtatool.
248 %description gui -l pl.UTF-8
249 Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia
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
259 %description -n bash-completion-gtatool
260 Bash completion for gtatool command.
262 %description -n bash-completion-gtatool -l pl.UTF-8
263 Bashowe uzupełnianie parametrów programu gtatool.
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} \
284 %{!?with_sndfile:--without-sndfile} \
285 %{!?with_teem:--without-teem}
289 rm -rf $RPM_BUILD_ROOT
292 DESTDIR=$RPM_BUILD_ROOT
295 rm -rf $RPM_BUILD_ROOT
297 %post -p /sbin/postshell
298 -/usr/sbin/fix-info-dir -c %{_infodir}
300 %postun -p /sbin/postshell
301 -/usr/sbin/fix-info-dir -c %{_infodir}
304 %defattr(644,root,root,755)
305 %doc AUTHORS ChangeLog NEWS README
306 %attr(755,root,root) %{_bindir}/gta
307 %dir %{_libdir}/gtatool
308 %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so
309 %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so
310 %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so
311 %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so
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*
318 %files component-compute
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/gtatool/component-compute.so
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_libdir}/gtatool/gui.so
405 %{_desktopdir}/gta_gui.desktop
406 %{_iconsdir}/hicolor/*/apps/gta.png
407 %{_iconsdir}/hicolor/scalable/apps/gta.svg
410 %files -n bash-completion-gtatool
411 %defattr(644,root,root,755)
412 /etc/bash_completion.d/gta-completion.bash