]>
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) | |
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 | |
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 | |
ce930cd4 | 23 | Version: 1.3.1 |
77f1f9bf JB |
24 | Release: 1 |
25 | License: GPL v3+ | |
26 | Group: Applications/File | |
27 | Source0: http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz | |
ce930cd4 | 28 | # Source0-md5: 2125af21cb29d049cdc789aedf078e58 |
77f1f9bf | 29 | URL: http://gta.nongnu.org/gtatool.html |
ce930cd4 JB |
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} | |
1a8c37c1 | 34 | %{?with_apidocs:BuildRequires: doxygen} |
ce930cd4 JB |
35 | # libavformat >= 52.110.0 libavdevice libswscale |
36 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
37 | %{?with_gdal:BuildRequires: gdal-devel} | |
77f1f9bf | 38 | BuildRequires: libgta-devel >= 0.9.4 |
ce930cd4 JB |
39 | %{?with_jpeg:BuildRequires: libjpeg-devel} |
40 | %{?with_sndfile:BuildRequires: libsndfile-devel} | |
77f1f9bf | 41 | BuildRequires: libstdc++-devel |
ce930cd4 JB |
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} | |
77f1f9bf | 48 | BuildRequires: pkgconfig |
ce930cd4 | 49 | %{?with_qt:BuildRequires: qt4-build >= 4.6} |
77f1f9bf | 50 | BuildRequires: tar >= 1:1.22 |
53d34f41 | 51 | %{?with_teem:BuildRequires: teem-devel} |
77f1f9bf JB |
52 | BuildRequires: xz |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Gtatool manipulates Generic Tagged Array (GTA) files. | |
57 | ||
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. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych | |
63 | tablicach etykietowanych). | |
64 | ||
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. | |
67 | ||
1a8c37c1 JB |
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} | |
73 | ||
74 | %description component-compute | |
75 | gtatool module to compute array element components. | |
76 | ||
77 | %description component-compute -l pl.UTF-8 | |
78 | Moduł gtatool do obliczania składowych elementów tablicy. | |
79 | ||
e75f31c6 JB |
80 | %package conv-dcmtk |
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} | |
85 | ||
86 | %description conv-dcmtk | |
87 | gtatool module to convert from DICOM format. | |
88 | ||
89 | %description conv-dcmtk -l pl.UTF-8 | |
90 | Moduł gtatool do konwersji z formatu DICOM. | |
91 | ||
77f1f9bf JB |
92 | %package conv-exr |
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} | |
97 | ||
98 | %description conv-exr | |
99 | gtatool module to convert from/to EXR format. | |
100 | ||
101 | %description conv-exr -l pl.UTF-8 | |
102 | Moduł gtatool do konwersji z/do formatu EXR. | |
103 | ||
104 | %package conv-ffmpeg | |
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} | |
109 | ||
110 | %description conv-ffmpeg | |
111 | gtatool module to convert from FFmpeg formats. | |
112 | ||
113 | %description conv-ffmpeg -l pl.UTF-8 | |
114 | Moduł gtatool do konwersji z formatów FFmpeg. | |
115 | ||
fec333dc JB |
116 | %package conv-gdal |
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} | |
121 | ||
122 | %description conv-gdal | |
123 | gtatool module to convert from/to GDAL supported formats. | |
124 | ||
125 | %description conv-gdal -l pl.UTF-8 | |
126 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL. | |
127 | ||
dc0d3430 JB |
128 | %package conv-jpeg |
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} | |
133 | ||
134 | %description conv-jpeg | |
135 | gtatool module to convert from/to JPEG formats. | |
136 | ||
137 | %description conv-jpeg -l pl.UTF-8 | |
138 | Moduł gtatool do konwersji z/do formatu JPEG. | |
139 | ||
77f1f9bf JB |
140 | %package conv-magick |
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} | |
145 | ||
146 | %description conv-magick | |
147 | gtatool module to convert from/to ImageMagick supported formats. | |
148 | ||
149 | %description conv-magick -l pl.UTF-8 | |
150 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
151 | ImageMagick. | |
152 | ||
0c601f44 JB |
153 | %package conv-mat |
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} | |
158 | ||
159 | %description conv-mat | |
160 | gtatool module to convert from/to MAT (Matlab) format. | |
161 | ||
162 | %description conv-mat -l pl.UTF-8 | |
163 | Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab). | |
164 | ||
ce930cd4 JB |
165 | %package conv-netcdf |
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} | |
170 | ||
171 | %description conv-netcdf | |
172 | gtatool module to convert from/to NetCDF format. | |
173 | ||
174 | %description conv-netcdf -l pl.UTF-8 | |
175 | Moduł gtatool do konwersji z/do formatu NetCDF. | |
176 | ||
77f1f9bf JB |
177 | %package conv-netpbm |
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} | |
182 | ||
183 | %description conv-netpbm | |
184 | gtatool module to convert from/to NetPBM supported formats. | |
185 | ||
186 | %description conv-netpbm -l pl.UTF-8 | |
187 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM. | |
188 | ||
ce930cd4 JB |
189 | %package conv-pcd |
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} | |
194 | ||
195 | %description conv-pcd | |
196 | gtatool module to convert from/to PCD format. | |
197 | ||
198 | %description conv-pcd -l pl.UTF-8 | |
199 | Moduł gtatool do konwersji z/do formatu PCD. | |
200 | ||
dcb8070a JB |
201 | %package conv-pfs |
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} | |
206 | ||
207 | %description conv-pfs | |
208 | gtatool module to convert from/to PFS format. | |
209 | ||
210 | %description conv-pfs -l pl.UTF-8 | |
211 | Moduł gtatool do konwersji z/do formatu PFS. | |
212 | ||
77f1f9bf JB |
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} | |
218 | ||
219 | %description conv-sndfile | |
220 | gtatool module to convert from/to libsndfile supported formats. | |
221 | ||
222 | %description conv-sndfile -l pl.UTF-8 | |
223 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
224 | libsndfile. | |
225 | ||
53d34f41 JB |
226 | %package conv-teem |
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} | |
231 | ||
232 | %description conv-teem | |
233 | gtatool module to convert from/to Teem (NRRD) format. | |
234 | ||
235 | %description conv-teem -l pl.UTF-8 | |
236 | Moduł gtatool do konwersji z/do formatu Teem (NRRD). | |
237 | ||
77f1f9bf JB |
238 | %package gui |
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} | |
dc0d3430 | 243 | Requires: QtGui >= 4.6 |
77f1f9bf JB |
244 | |
245 | %description gui | |
246 | Qt-based GUI module for gtatool. | |
247 | ||
248 | %description gui -l pl.UTF-8 | |
249 | Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia | |
250 | gtatool. | |
251 | ||
252 | %prep | |
253 | %setup -q | |
254 | ||
255 | %build | |
256 | %configure \ | |
ce930cd4 JB |
257 | --disable-silent-rules \ |
258 | %{!?with_dcmtk:--without-dcmtk} \ | |
259 | %{!?with_ffmpeg:--without-ffmpeg} \ | |
260 | %{!?with_gdal:--without-gdal} \ | |
261 | %{!?with_jpeg:--without-jpeg} \ | |
262 | %{!?with_magick:--without-magick} \ | |
263 | %{!?with_matio:--without-matio} \ | |
264 | %{!?with_muparser:--without-muparser} \ | |
265 | %{!?with_netcdf:--without-netcdf} \ | |
266 | %{!?with_netpbm:--without-netpbm} \ | |
267 | %{!?with_openexr:--without-openexr} \ | |
268 | %{!?with_pcl:--without-pcd} \ | |
269 | %{!?with_pfs:--without-pfs} \ | |
270 | %{!?with_qt:--without-qt} \ | |
53d34f41 JB |
271 | %{!?with_sndfile:--without-sndfile} \ |
272 | %{!?with_teem:--without-teem} | |
77f1f9bf JB |
273 | %{__make} |
274 | ||
275 | %install | |
276 | rm -rf $RPM_BUILD_ROOT | |
277 | ||
278 | %{__make} install \ | |
279 | DESTDIR=$RPM_BUILD_ROOT | |
280 | ||
281 | %clean | |
282 | rm -rf $RPM_BUILD_ROOT | |
283 | ||
284 | %post -p /sbin/postshell | |
285 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
286 | ||
287 | %postun -p /sbin/postshell | |
288 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
289 | ||
290 | %files | |
291 | %defattr(644,root,root,755) | |
292 | %doc AUTHORS ChangeLog NEWS README | |
293 | %attr(755,root,root) %{_bindir}/gta | |
294 | %dir %{_libdir}/gtatool | |
dc0d3430 JB |
295 | %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so |
296 | %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so | |
77f1f9bf | 297 | %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so |
dc0d3430 | 298 | %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so |
77f1f9bf JB |
299 | %attr(755,root,root) %{_libdir}/gtatool/conv-rat.so |
300 | %attr(755,root,root) %{_libdir}/gtatool/conv-raw.so | |
301 | %{_mandir}/man1/gta.1* | |
302 | %{_infodir}/gta.info* | |
303 | ||
ce930cd4 | 304 | %if %{with muparser} |
1a8c37c1 JB |
305 | %files component-compute |
306 | %defattr(644,root,root,755) | |
307 | %attr(755,root,root) %{_libdir}/gtatool/component-compute.so | |
ce930cd4 | 308 | %endif |
1a8c37c1 | 309 | |
ce930cd4 | 310 | %if %{with dcmtk} |
e75f31c6 JB |
311 | %files conv-dcmtk |
312 | %defattr(644,root,root,755) | |
313 | %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so | |
ce930cd4 | 314 | %endif |
e75f31c6 | 315 | |
ce930cd4 | 316 | %if %{with openexr} |
77f1f9bf JB |
317 | %files conv-exr |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so | |
ce930cd4 | 320 | %endif |
77f1f9bf | 321 | |
ce930cd4 | 322 | %if %{with ffmpeg} |
77f1f9bf JB |
323 | %files conv-ffmpeg |
324 | %defattr(644,root,root,755) | |
325 | %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so | |
ce930cd4 | 326 | %endif |
77f1f9bf | 327 | |
ce930cd4 | 328 | %if %{with gdal} |
fec333dc JB |
329 | %files conv-gdal |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so | |
ce930cd4 | 332 | %endif |
fec333dc | 333 | |
ce930cd4 | 334 | %if %{with jpeg} |
dc0d3430 JB |
335 | %files conv-jpeg |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so | |
ce930cd4 | 338 | %endif |
dc0d3430 | 339 | |
ce930cd4 | 340 | %if %{with magick} |
77f1f9bf JB |
341 | %files conv-magick |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so | |
ce930cd4 | 344 | %endif |
77f1f9bf | 345 | |
ce930cd4 | 346 | %if %{with matio} |
0c601f44 JB |
347 | %files conv-mat |
348 | %defattr(644,root,root,755) | |
349 | %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so | |
ce930cd4 | 350 | %endif |
0c601f44 | 351 | |
ce930cd4 JB |
352 | %if %{with netcdf} |
353 | %files conv-netcdf | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so | |
356 | %endif | |
357 | ||
358 | %if %{with netpbm} | |
77f1f9bf JB |
359 | %files conv-netpbm |
360 | %defattr(644,root,root,755) | |
361 | %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so | |
ce930cd4 JB |
362 | %endif |
363 | ||
364 | %if %{with pcl} | |
365 | %files conv-pcd | |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so | |
368 | %endif | |
77f1f9bf | 369 | |
ce930cd4 | 370 | %if %{with pfs} |
dcb8070a JB |
371 | %files conv-pfs |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so | |
ce930cd4 | 374 | %endif |
dcb8070a | 375 | |
ce930cd4 | 376 | %if %{with sndfile} |
77f1f9bf JB |
377 | %files conv-sndfile |
378 | %defattr(644,root,root,755) | |
379 | %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so | |
ce930cd4 | 380 | %endif |
77f1f9bf | 381 | |
53d34f41 JB |
382 | %if %{with teem} |
383 | %files conv-teem | |
384 | %defattr(644,root,root,755) | |
385 | %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so | |
386 | %endif | |
387 | ||
ce930cd4 | 388 | %if %{with qt} |
77f1f9bf JB |
389 | %files gui |
390 | %defattr(644,root,root,755) | |
391 | %attr(755,root,root) %{_libdir}/gtatool/gui.so | |
dc0d3430 JB |
392 | %{_desktopdir}/gta_gui.desktop |
393 | %{_iconsdir}/hicolor/*/apps/gta.png | |
394 | %{_iconsdir}/hicolor/scalable/apps/gta.svg | |
ce930cd4 | 395 | %endif |