]> git.pld-linux.org Git - packages/gtatool.git/blob - gtatool.spec
461c0288cdd6eec7c8eeac7c837561e882f257f4
[packages/gtatool.git] / gtatool.spec
1 #
2 # Conditional build:
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
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
23 Version:        1.5.0
24 Release:        1
25 License:        GPL v3+
26 Group:          Applications/File
27 Source0:        http://download.savannah.gnu.org/releases/gta/%{name}-%{version}.tar.xz
28 # Source0-md5:  2cce87f0880e1042af3fd18c9f9b3e24
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}
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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}
243 Requires:       QtGui >= 4.6
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 \
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} \
271         %{!?with_sndfile:--without-sndfile} \
272         %{!?with_teem:--without-teem}
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
295 %attr(755,root,root) %{_libdir}/gtatool/conv-csv.so
296 %attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so
297 %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so
298 %attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so
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
304 %if %{with muparser}
305 %files component-compute
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/gtatool/component-compute.so
308 %endif
309
310 %if %{with dcmtk}
311 %files conv-dcmtk
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
314 %endif
315
316 %if %{with openexr}
317 %files conv-exr
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
320 %endif
321
322 %if %{with ffmpeg}
323 %files conv-ffmpeg
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
326 %endif
327
328 %if %{with gdal}
329 %files conv-gdal
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
332 %endif
333
334 %if %{with jpeg}
335 %files conv-jpeg
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
338 %endif
339
340 %if %{with magick}
341 %files conv-magick
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
344 %endif
345
346 %if %{with matio}
347 %files conv-mat
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
350 %endif
351
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}
359 %files conv-netpbm
360 %defattr(644,root,root,755)
361 %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
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
369
370 %if %{with pfs}
371 %files conv-pfs
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
374 %endif
375
376 %if %{with sndfile}
377 %files conv-sndfile
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
380 %endif
381
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
388 %if %{with qt}
389 %files gui
390 %defattr(644,root,root,755)
391 %attr(755,root,root) %{_libdir}/gtatool/gui.so
392 %{_desktopdir}/gta_gui.desktop
393 %{_iconsdir}/hicolor/*/apps/gta.png
394 %{_iconsdir}/hicolor/scalable/apps/gta.svg
395 %endif
This page took 0.089828 seconds and 2 git commands to generate.