4 %bcond_without apidocs # do not build and package API docs
5 %bcond_without qt # Qt-based GUI
6 %bcond_without muparser # compute component module (based on MuParser)
7 %bcond_without dcmtk # DCMTK conv module
8 %bcond_without ffmpeg # FFmpeg conv module
9 %bcond_without gdal # GDAL conv module
10 %bcond_without jpeg # JPEG conv module (based on libjpeg)
11 %bcond_without magick # Magick conv module (based on ImageMagick's libMagick++)
12 %bcond_without matio # MAT conv module (MATLAB import/export, based on [lib]matio)
13 %bcond_without netcdf # NetCDF conv module
14 %bcond_without netpbm # NetPBM conv module
15 %bcond_without openexr # EXR conv module (based on OpenEXR)
16 %bcond_without pcl # PCD conv module (based on PCL's libpcl_io)
17 %bcond_without pfs # PFS conv module
18 %bcond_without sndfile # sndfile conv module
19 %bcond_without teem # teem (nrrd) conv module
21 Summary: Tools to manipulate Generic Tagged Array (GTA) files
22 Summary(pl.UTF-8): Narzędzia do obróbki plików GTA (ogólnych tablic etykietowanych)
27 Group: Applications/File
28 Source0: http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz
29 # Source0-md5: 2125af21cb29d049cdc789aedf078e58
30 URL: http://gta.nongnu.org/gtatool.html
31 %{?with_magick:BuildRequires: ImageMagick-c++-devel}
32 %{?with_openexr:BuildRequires: OpenEXR-devel}
33 %{?with_qt:BuildRequires: QtGui-devel >= 4.6}
34 %{?with_dcmtk:BuildRequires: dcmtk-devel}
35 %{?with_apidocs:BuildRequires: doxygen}
36 # libavformat >= 52.110.0 libavdevice libswscale
37 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
38 %{?with_gdal:BuildRequires: gdal-devel}
39 BuildRequires: libgta-devel >= 0.9.4
40 %{?with_jpeg:BuildRequires: libjpeg-devel}
41 %{?with_sndfile:BuildRequires: libsndfile-devel}
42 BuildRequires: libstdc++-devel
43 %{?with_matio:BuildRequires: matio-devel}
44 %{?with_muparser:BuildRequires: muparser-devel}
45 %{?with_netcdf:BuildRequires: netcdf-devel}
46 %{?with_netpbm:BuildRequires: netpbm-devel}
47 %{?with_pcl:BuildRequires: pcl-devel >= 1.6}
48 %{?with_pfs:BuildRequires: pfstools-devel}
49 BuildRequires: pkgconfig
50 %{?with_qt:BuildRequires: qt4-build >= 4.6}
51 BuildRequires: tar >= 1:1.22
52 %{?with_teem:BuildRequires: teem-devel}
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Gtatool manipulates Generic Tagged Array (GTA) files.
59 It provides a set of commands that manipulate GTAs on various levels,
60 and it can import from and export to many other file formats.
62 %description -l pl.UTF-8
63 gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych
64 tablicach etykietowanych).
66 Pakiet zawiera zestaw poleceń obrabiających GTA na różnych poziomach,
67 potrafiących importować i eksportować do wielu innych formatów plików.
69 %package component-compute
70 Summary: gtatool module to compute array element components
71 Summary(pl.UTF-8): Moduł gtatool do obliczania składowych elementów tablicy
72 Group: Applications/File
73 Requires: %{name} = %{version}-%{release}
75 %description component-compute
76 gtatool module to compute array element components.
78 %description component-compute -l pl.UTF-8
79 Moduł gtatool do obliczania składowych elementów tablicy.
82 Summary: gtatool module to convert from DICOM format
83 Summary(pl.UTF-8): Moduł gtatool do konwersji z formatu DICOM
84 Group: Applications/File
85 Requires: %{name} = %{version}-%{release}
87 %description conv-dcmtk
88 gtatool module to convert from DICOM format.
90 %description conv-dcmtk -l pl.UTF-8
91 Moduł gtatool do konwersji z formatu DICOM.
94 Summary: gtatool module to convert from/to EXR format
95 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu EXR
96 Group: Applications/File
97 Requires: %{name} = %{version}-%{release}
100 gtatool module to convert from/to EXR format.
102 %description conv-exr -l pl.UTF-8
103 Moduł gtatool do konwersji z/do formatu EXR.
106 Summary: gtatool module to convert from FFmpeg formats
107 Summary(pl.UTF-8): Moduł gtatool do konwersji z formatów FFmpeg
108 Group: Applications/File
109 Requires: %{name} = %{version}-%{release}
111 %description conv-ffmpeg
112 gtatool module to convert from FFmpeg formats.
114 %description conv-ffmpeg -l pl.UTF-8
115 Moduł gtatool do konwersji z formatów FFmpeg.
118 Summary: gtatool module to convert from/to GDAL supported formats
119 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL
120 Group: Applications/File
121 Requires: %{name} = %{version}-%{release}
123 %description conv-gdal
124 gtatool module to convert from/to GDAL supported formats.
126 %description conv-gdal -l pl.UTF-8
127 Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL.
130 Summary: gtatool module to convert from/to JPEG formats
131 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu JPEG
132 Group: Applications/File
133 Requires: %{name} = %{version}-%{release}
135 %description conv-jpeg
136 gtatool module to convert from/to JPEG formats.
138 %description conv-jpeg -l pl.UTF-8
139 Moduł gtatool do konwersji z/do formatu JPEG.
142 Summary: gtatool module to convert from/to ImageMagick supported formats
143 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez ImageMagick
144 Group: Applications/File
145 Requires: %{name} = %{version}-%{release}
147 %description conv-magick
148 gtatool module to convert from/to ImageMagick supported formats.
150 %description conv-magick -l pl.UTF-8
151 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
155 Summary: gtatool module to convert from/to MAT format
156 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu MAT
157 Group: Applications/File
158 Requires: %{name} = %{version}-%{release}
160 %description conv-mat
161 gtatool module to convert from/to MAT (Matlab) format.
163 %description conv-mat -l pl.UTF-8
164 Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab).
167 Summary: gtatool module to convert from/to NetCDF format
168 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu NetCDF
169 Group: Applications/File
170 Requires: %{name} = %{version}-%{release}
172 %description conv-netcdf
173 gtatool module to convert from/to NetCDF format.
175 %description conv-netcdf -l pl.UTF-8
176 Moduł gtatool do konwersji z/do formatu NetCDF.
179 Summary: gtatool module to convert from/to NetPBM supported formats
180 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM
181 Group: Applications/File
182 Requires: %{name} = %{version}-%{release}
184 %description conv-netpbm
185 gtatool module to convert from/to NetPBM supported formats.
187 %description conv-netpbm -l pl.UTF-8
188 Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM.
191 Summary: gtatool module to convert from/to PCD format
192 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PCD
193 Group: Applications/File
194 Requires: %{name} = %{version}-%{release}
196 %description conv-pcd
197 gtatool module to convert from/to PCD format.
199 %description conv-pcd -l pl.UTF-8
200 Moduł gtatool do konwersji z/do formatu PCD.
203 Summary: gtatool module to convert from/to PFS format
204 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PFS
205 Group: Applications/File
206 Requires: %{name} = %{version}-%{release}
208 %description conv-pfs
209 gtatool module to convert from/to PFS format.
211 %description conv-pfs -l pl.UTF-8
212 Moduł gtatool do konwersji z/do formatu PFS.
214 %package conv-sndfile
215 Summary: gtatool module to convert from/to libsndfile supported formats
216 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez libsndfile
217 Group: Applications/File
218 Requires: %{name} = %{version}-%{release}
220 %description conv-sndfile
221 gtatool module to convert from/to libsndfile supported formats.
223 %description conv-sndfile -l pl.UTF-8
224 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
228 Summary: gtatool module to convert from/to Teem (NRRD) format
229 Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu Teem (NRRD)
230 Group: Applications/File
231 Requires: %{name} = %{version}-%{release}
233 %description conv-teem
234 gtatool module to convert from/to Teem (NRRD) format.
236 %description conv-teem -l pl.UTF-8
237 Moduł gtatool do konwersji z/do formatu Teem (NRRD).
240 Summary: Qt-based GUI module for gtatool
241 Summary(pl.UTF-8): Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia gtatool
242 Group: X11/Applications
243 Requires: %{name} = %{version}-%{release}
244 Requires: QtGui >= 4.6
247 Qt-based GUI module for gtatool.
249 %description gui -l pl.UTF-8
250 Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia
258 --disable-silent-rules \
259 %{!?with_dcmtk:--without-dcmtk} \
260 %{!?with_ffmpeg:--without-ffmpeg} \
261 %{!?with_gdal:--without-gdal} \
262 %{!?with_jpeg:--without-jpeg} \
263 %{!?with_magick:--without-magick} \
264 %{!?with_matio:--without-matio} \
265 %{!?with_muparser:--without-muparser} \
266 %{!?with_netcdf:--without-netcdf} \
267 %{!?with_netpbm:--without-netpbm} \
268 %{!?with_openexr:--without-openexr} \
269 %{!?with_pcl:--without-pcd} \
270 %{!?with_pfs:--without-pfs} \
271 %{!?with_qt:--without-qt} \
272 %{!?with_sndfile:--without-sndfile} \
273 %{!?with_teem:--without-teem}
277 rm -rf $RPM_BUILD_ROOT
280 DESTDIR=$RPM_BUILD_ROOT
283 rm -rf $RPM_BUILD_ROOT
285 %post -p /sbin/postshell
286 -/usr/sbin/fix-info-dir -c %{_infodir}
288 %postun -p /sbin/postshell
289 -/usr/sbin/fix-info-dir -c %{_infodir}
292 %defattr(644,root,root,755)
293 %doc AUTHORS ChangeLog NEWS README
294 %attr(755,root,root) %{_bindir}/gta
295 %dir %{_libdir}/gtatool
296 %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so
297 %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so
298 %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so
299 %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so
300 %attr(755,root,root) %{_libdir}/gtatool/conv-rat.so
301 %attr(755,root,root) %{_libdir}/gtatool/conv-raw.so
302 %{_mandir}/man1/gta.1*
303 %{_infodir}/gta.info*
306 %files component-compute
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/gtatool/component-compute.so
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/gtatool/gui.so
393 %{_desktopdir}/gta_gui.desktop
394 %{_iconsdir}/hicolor/*/apps/gta.png
395 %{_iconsdir}/hicolor/scalable/apps/gta.svg