]> git.pld-linux.org Git - packages/gtatool.git/blob - gtatool.spec
25d7685161fa3a9aef0f0391c905e45c63594442
[packages/gtatool.git] / gtatool.spec
1 # TODO: teem/nrrd
2 #
3 # Conditional build:
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
20 #
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)
23 Name:           gtatool
24 Version:        1.3.1
25 Release:        1
26 License:        GPL v3+
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}
53 BuildRequires:  xz
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
57 Gtatool manipulates Generic Tagged Array (GTA) files.
58
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.
61
62 %description -l pl.UTF-8
63 gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych
64 tablicach etykietowanych).
65
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.
68
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}
74
75 %description component-compute
76 gtatool module to compute array element components.
77
78 %description component-compute -l pl.UTF-8
79 Moduł gtatool do obliczania składowych elementów tablicy.
80
81 %package conv-dcmtk
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}
86
87 %description conv-dcmtk
88 gtatool module to convert from DICOM format.
89
90 %description conv-dcmtk -l pl.UTF-8
91 Moduł gtatool do konwersji z formatu DICOM.
92
93 %package conv-exr
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}
98
99 %description conv-exr
100 gtatool module to convert from/to EXR format.
101
102 %description conv-exr -l pl.UTF-8
103 Moduł gtatool do konwersji z/do formatu EXR.
104
105 %package conv-ffmpeg
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}
110
111 %description conv-ffmpeg
112 gtatool module to convert from FFmpeg formats.
113
114 %description conv-ffmpeg -l pl.UTF-8
115 Moduł gtatool do konwersji z formatów FFmpeg.
116
117 %package conv-gdal
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}
122
123 %description conv-gdal
124 gtatool module to convert from/to GDAL supported formats.
125
126 %description conv-gdal -l pl.UTF-8
127 Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL.
128
129 %package conv-jpeg
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}
134
135 %description conv-jpeg
136 gtatool module to convert from/to JPEG formats.
137
138 %description conv-jpeg -l pl.UTF-8
139 Moduł gtatool do konwersji z/do formatu JPEG.
140
141 %package conv-magick
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}
146
147 %description conv-magick
148 gtatool module to convert from/to ImageMagick supported formats.
149
150 %description conv-magick -l pl.UTF-8
151 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
152 ImageMagick.
153
154 %package conv-mat
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}
159
160 %description conv-mat
161 gtatool module to convert from/to MAT (Matlab) format.
162
163 %description conv-mat -l pl.UTF-8
164 Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab).
165
166 %package conv-netcdf
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}
171
172 %description conv-netcdf
173 gtatool module to convert from/to NetCDF format.
174
175 %description conv-netcdf -l pl.UTF-8
176 Moduł gtatool do konwersji z/do formatu NetCDF.
177
178 %package conv-netpbm
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}
183
184 %description conv-netpbm
185 gtatool module to convert from/to NetPBM supported formats.
186
187 %description conv-netpbm -l pl.UTF-8
188 Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM.
189
190 %package conv-pcd
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}
195
196 %description conv-pcd
197 gtatool module to convert from/to PCD format.
198
199 %description conv-pcd -l pl.UTF-8
200 Moduł gtatool do konwersji z/do formatu PCD.
201
202 %package conv-pfs
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}
207
208 %description conv-pfs
209 gtatool module to convert from/to PFS format.
210
211 %description conv-pfs -l pl.UTF-8
212 Moduł gtatool do konwersji z/do formatu PFS.
213
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}
219
220 %description conv-sndfile
221 gtatool module to convert from/to libsndfile supported formats.
222
223 %description conv-sndfile -l pl.UTF-8
224 Moduł gtatool do konwersji z/do formatów obsługiwanych przez
225 libsndfile.
226
227 %package conv-teem
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}
232
233 %description conv-teem
234 gtatool module to convert from/to Teem (NRRD) format.
235
236 %description conv-teem -l pl.UTF-8
237 Moduł gtatool do konwersji z/do formatu Teem (NRRD).
238
239 %package gui
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
245
246 %description gui
247 Qt-based GUI module for gtatool.
248
249 %description gui -l pl.UTF-8
250 Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia
251 gtatool.
252
253 %prep
254 %setup -q
255
256 %build
257 %configure \
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}
274 %{__make}
275
276 %install
277 rm -rf $RPM_BUILD_ROOT
278
279 %{__make} install \
280         DESTDIR=$RPM_BUILD_ROOT
281
282 %clean
283 rm -rf $RPM_BUILD_ROOT
284
285 %post   -p /sbin/postshell
286 -/usr/sbin/fix-info-dir -c %{_infodir}
287
288 %postun -p /sbin/postshell
289 -/usr/sbin/fix-info-dir -c %{_infodir}
290
291 %files
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*
304
305 %if %{with muparser}
306 %files component-compute
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/gtatool/component-compute.so
309 %endif
310
311 %if %{with dcmtk}
312 %files conv-dcmtk
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
315 %endif
316
317 %if %{with openexr}
318 %files conv-exr
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
321 %endif
322
323 %if %{with ffmpeg}
324 %files conv-ffmpeg
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
327 %endif
328
329 %if %{with gdal}
330 %files conv-gdal
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
333 %endif
334
335 %if %{with jpeg}
336 %files conv-jpeg
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
339 %endif
340
341 %if %{with magick}
342 %files conv-magick
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
345 %endif
346
347 %if %{with matio}
348 %files conv-mat
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
351 %endif
352
353 %if %{with netcdf}
354 %files conv-netcdf
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so
357 %endif
358
359 %if %{with netpbm}
360 %files conv-netpbm
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
363 %endif
364
365 %if %{with pcl}
366 %files conv-pcd
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so
369 %endif
370
371 %if %{with pfs}
372 %files conv-pfs
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
375 %endif
376
377 %if %{with sndfile}
378 %files conv-sndfile
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
381 %endif
382
383 %if %{with teem}
384 %files conv-teem
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/gtatool/conv-teem.so
387 %endif
388
389 %if %{with qt}
390 %files gui
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
396 %endif
This page took 0.108627 seconds and 2 git commands to generate.