]> git.pld-linux.org Git - packages/gtatool.git/blame - gtatool.spec
- release 4 (by relup.sh)
[packages/gtatool.git] / gtatool.spec
CommitLineData
6077409b
JB
1# TODO: pmd (BR: proprietary libpmdaccess2)
2# libequalizer (pkgconfig(Equalizer) >= 1.0.0) for multi-display OpenGL support
3# libgls (pkgconfig(gls) >= 1.0.0) for stereoscopic-3D OpenGL support
77f1f9bf
JB
4#
5# Conditional build:
6%bcond_without apidocs # do not build and package API docs
ce930cd4
JB
7%bcond_without qt # Qt-based GUI
8%bcond_without muparser # compute component module (based on MuParser)
9%bcond_without dcmtk # DCMTK conv module
10%bcond_without ffmpeg # FFmpeg conv module
11%bcond_without gdal # GDAL conv module
12%bcond_without jpeg # JPEG conv module (based on libjpeg)
13%bcond_without magick # Magick conv module (based on ImageMagick's libMagick++)
14%bcond_without matio # MAT conv module (MATLAB import/export, based on [lib]matio)
15%bcond_without netcdf # NetCDF conv module
16%bcond_without netpbm # NetPBM conv module
17%bcond_without openexr # EXR conv module (based on OpenEXR)
dc73249c 18%bcond_without pcl # PCD conv module (based on PCL's libpcl_io)
ce930cd4
JB
19%bcond_without pfs # PFS conv module
20%bcond_without sndfile # sndfile conv module
53d34f41 21%bcond_without teem # teem (nrrd) conv module
77f1f9bf
JB
22#
23Summary: Tools to manipulate Generic Tagged Array (GTA) files
24Summary(pl.UTF-8): Narzędzia do obróbki plików GTA (ogólnych tablic etykietowanych)
25Name: gtatool
83ab4220 26Version: 2.0.1
18ae3a44 27Release: 4
77f1f9bf
JB
28License: GPL v3+
29Group: Applications/File
648baef2 30Source0: http://download.savannah.gnu.org/releases/gta/%{name}-%{version}.tar.xz
83ab4220 31# Source0-md5: 1133c5687bd14d321eefffab6b495d74
3d11a131 32Patch0: ffmpeg2.patch
6077409b
JB
33Patch1: %{name}-getopt.patch
34Patch2: %{name}-bashcomp.patch
77f1f9bf 35URL: http://gta.nongnu.org/gtatool.html
ce930cd4
JB
36%{?with_magick:BuildRequires: ImageMagick-c++-devel}
37%{?with_openexr:BuildRequires: OpenEXR-devel}
6077409b
JB
38%{?with_qt:BuildRequires: OpenGL-devel}
39%{?with_qt:BuildRequires: QtGui-devel >= 4.8}
40%{?with_qt:BuildRequires: QtOpenGL-devel >= 4.8}
dc73249c
JB
41BuildRequires: autoconf >= 2.65
42BuildRequires: automake >= 1:1.11.1
ce930cd4 43%{?with_dcmtk:BuildRequires: dcmtk-devel}
1a8c37c1 44%{?with_apidocs:BuildRequires: doxygen}
ce930cd4
JB
45# libavformat >= 52.110.0 libavdevice libswscale
46%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
47%{?with_gdal:BuildRequires: gdal-devel}
6077409b 48%{?with_qt:BuildRequires: glew-devel >= 1.6.0}
77f1f9bf 49BuildRequires: libgta-devel >= 0.9.4
ce930cd4
JB
50%{?with_jpeg:BuildRequires: libjpeg-devel}
51%{?with_sndfile:BuildRequires: libsndfile-devel}
77f1f9bf 52BuildRequires: libstdc++-devel
6077409b
JB
53BuildRequires: libtool >= 2:2.2.6
54%{?with_matio:BuildRequires: matio-devel >= 1.5.0}
ce930cd4
JB
55%{?with_muparser:BuildRequires: muparser-devel}
56%{?with_netcdf:BuildRequires: netcdf-devel}
57%{?with_netpbm:BuildRequires: netpbm-devel}
dc73249c 58%{?with_pcl:BuildRequires: pcl-devel >= 1.7}
6077409b 59%{?with_pfs:BuildRequires: pfstools-devel >= 1.2}
77f1f9bf 60BuildRequires: pkgconfig
6077409b
JB
61%{?with_qt:BuildRequires: qt4-build >= 4.8}
62BuildRequires: rpmbuild(macros) >= 1.673
77f1f9bf 63BuildRequires: tar >= 1:1.22
53d34f41 64%{?with_teem:BuildRequires: teem-devel}
77f1f9bf
JB
65BuildRequires: xz
66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68%description
69Gtatool manipulates Generic Tagged Array (GTA) files.
70
71It provides a set of commands that manipulate GTAs on various levels,
72and it can import from and export to many other file formats.
73
74%description -l pl.UTF-8
75gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych
76tablicach etykietowanych).
77
78Pakiet zawiera zestaw poleceń obrabiających GTA na różnych poziomach,
79potrafiących importować i eksportować do wielu innych formatów plików.
80
1a8c37c1
JB
81%package component-compute
82Summary: gtatool module to compute array element components
83Summary(pl.UTF-8): Moduł gtatool do obliczania składowych elementów tablicy
84Group: Applications/File
85Requires: %{name} = %{version}-%{release}
86
87%description component-compute
88gtatool module to compute array element components.
89
90%description component-compute -l pl.UTF-8
91Moduł gtatool do obliczania składowych elementów tablicy.
92
e75f31c6
JB
93%package conv-dcmtk
94Summary: gtatool module to convert from DICOM format
95Summary(pl.UTF-8): Moduł gtatool do konwersji z formatu DICOM
96Group: Applications/File
97Requires: %{name} = %{version}-%{release}
98
99%description conv-dcmtk
100gtatool module to convert from DICOM format.
101
102%description conv-dcmtk -l pl.UTF-8
103Moduł gtatool do konwersji z formatu DICOM.
104
77f1f9bf
JB
105%package conv-exr
106Summary: gtatool module to convert from/to EXR format
107Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu EXR
108Group: Applications/File
109Requires: %{name} = %{version}-%{release}
110
111%description conv-exr
112gtatool module to convert from/to EXR format.
113
114%description conv-exr -l pl.UTF-8
115Moduł gtatool do konwersji z/do formatu EXR.
116
117%package conv-ffmpeg
118Summary: gtatool module to convert from FFmpeg formats
119Summary(pl.UTF-8): Moduł gtatool do konwersji z formatów FFmpeg
120Group: Applications/File
121Requires: %{name} = %{version}-%{release}
122
123%description conv-ffmpeg
124gtatool module to convert from FFmpeg formats.
125
126%description conv-ffmpeg -l pl.UTF-8
127Moduł gtatool do konwersji z formatów FFmpeg.
128
fec333dc
JB
129%package conv-gdal
130Summary: gtatool module to convert from/to GDAL supported formats
131Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL
132Group: Applications/File
133Requires: %{name} = %{version}-%{release}
134
135%description conv-gdal
136gtatool module to convert from/to GDAL supported formats.
137
138%description conv-gdal -l pl.UTF-8
139Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL.
140
dc0d3430
JB
141%package conv-jpeg
142Summary: gtatool module to convert from/to JPEG formats
143Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu JPEG
144Group: Applications/File
145Requires: %{name} = %{version}-%{release}
146
147%description conv-jpeg
148gtatool module to convert from/to JPEG formats.
149
150%description conv-jpeg -l pl.UTF-8
151Moduł gtatool do konwersji z/do formatu JPEG.
152
77f1f9bf
JB
153%package conv-magick
154Summary: gtatool module to convert from/to ImageMagick supported formats
155Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez ImageMagick
156Group: Applications/File
157Requires: %{name} = %{version}-%{release}
158
159%description conv-magick
160gtatool module to convert from/to ImageMagick supported formats.
161
162%description conv-magick -l pl.UTF-8
163Moduł gtatool do konwersji z/do formatów obsługiwanych przez
164ImageMagick.
165
0c601f44
JB
166%package conv-mat
167Summary: gtatool module to convert from/to MAT format
168Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu MAT
169Group: Applications/File
170Requires: %{name} = %{version}-%{release}
6077409b 171Requires: matio >= 1.5.0
0c601f44
JB
172
173%description conv-mat
174gtatool module to convert from/to MAT (Matlab) format.
175
176%description conv-mat -l pl.UTF-8
177Moduł gtatool do konwersji z/do formatu MAT (z programu Matlab).
178
ce930cd4
JB
179%package conv-netcdf
180Summary: gtatool module to convert from/to NetCDF format
181Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu NetCDF
182Group: Applications/File
183Requires: %{name} = %{version}-%{release}
184
185%description conv-netcdf
186gtatool module to convert from/to NetCDF format.
187
188%description conv-netcdf -l pl.UTF-8
189Moduł gtatool do konwersji z/do formatu NetCDF.
190
77f1f9bf
JB
191%package conv-netpbm
192Summary: gtatool module to convert from/to NetPBM supported formats
193Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM
194Group: Applications/File
195Requires: %{name} = %{version}-%{release}
196
197%description conv-netpbm
198gtatool module to convert from/to NetPBM supported formats.
199
200%description conv-netpbm -l pl.UTF-8
201Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM.
202
ce930cd4
JB
203%package conv-pcd
204Summary: gtatool module to convert from/to PCD format
205Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PCD
206Group: Applications/File
207Requires: %{name} = %{version}-%{release}
208
209%description conv-pcd
210gtatool module to convert from/to PCD format.
211
212%description conv-pcd -l pl.UTF-8
213Moduł gtatool do konwersji z/do formatu PCD.
214
dcb8070a
JB
215%package conv-pfs
216Summary: gtatool module to convert from/to PFS format
217Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu PFS
218Group: Applications/File
219Requires: %{name} = %{version}-%{release}
220
221%description conv-pfs
222gtatool module to convert from/to PFS format.
223
224%description conv-pfs -l pl.UTF-8
225Moduł gtatool do konwersji z/do formatu PFS.
226
77f1f9bf
JB
227%package conv-sndfile
228Summary: gtatool module to convert from/to libsndfile supported formats
229Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez libsndfile
230Group: Applications/File
231Requires: %{name} = %{version}-%{release}
232
233%description conv-sndfile
234gtatool module to convert from/to libsndfile supported formats.
235
236%description conv-sndfile -l pl.UTF-8
237Moduł gtatool do konwersji z/do formatów obsługiwanych przez
238libsndfile.
239
53d34f41
JB
240%package conv-teem
241Summary: gtatool module to convert from/to Teem (NRRD) format
242Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu Teem (NRRD)
243Group: Applications/File
244Requires: %{name} = %{version}-%{release}
245
246%description conv-teem
247gtatool module to convert from/to Teem (NRRD) format.
248
249%description conv-teem -l pl.UTF-8
250Moduł gtatool do konwersji z/do formatu Teem (NRRD).
251
77f1f9bf
JB
252%package gui
253Summary: Qt-based GUI module for gtatool
254Summary(pl.UTF-8): Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia gtatool
255Group: X11/Applications
256Requires: %{name} = %{version}-%{release}
6077409b 257Requires: QtGui >= 4.8
77f1f9bf
JB
258
259%description gui
260Qt-based GUI module for gtatool.
261
262%description gui -l pl.UTF-8
263Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia
264gtatool.
265
d4dbb544
JB
266%package -n bash-completion-gtatool
267Summary: Bash completion for gtatool command
268Summary(pl.UTF-8): Bashowe uzupełnianie parametrów programu gtatool
269Group: Applications/Shells
270Requires: %{name} = %{version}-%{release}
6077409b 271Requires: bash-completion >= 2
9f94ea20
ER
272%if "%{_rpmversion}" >= "5"
273BuildArch: noarch
274%endif
d4dbb544
JB
275
276%description -n bash-completion-gtatool
277Bash completion for gtatool command.
278
279%description -n bash-completion-gtatool -l pl.UTF-8
280Bashowe uzupełnianie parametrów programu gtatool.
281
77f1f9bf
JB
282%prep
283%setup -q
3d11a131 284%patch0 -p1
6077409b 285%patch1 -p1
01b372b6 286%patch2 -p1
77f1f9bf
JB
287
288%build
dc73249c
JB
289%{__libtoolize}
290%{__aclocal} -I m4
291%{__autoconf}
292%{__autoheader}
293%{__automake}
77f1f9bf 294%configure \
6077409b 295 BASHCOMPLETIONDIR=%{bash_compdir} \
ce930cd4 296 --disable-silent-rules \
6077409b 297 --with-bashcompletion \
ce930cd4
JB
298 %{!?with_dcmtk:--without-dcmtk} \
299 %{!?with_ffmpeg:--without-ffmpeg} \
300 %{!?with_gdal:--without-gdal} \
301 %{!?with_jpeg:--without-jpeg} \
01b372b6 302 %{?with_magick:--with-magick-flavor=ImageMagick} \
ce930cd4
JB
303 %{!?with_magick:--without-magick} \
304 %{!?with_matio:--without-matio} \
305 %{!?with_muparser:--without-muparser} \
306 %{!?with_netcdf:--without-netcdf} \
307 %{!?with_netpbm:--without-netpbm} \
308 %{!?with_openexr:--without-openexr} \
309 %{!?with_pcl:--without-pcd} \
310 %{!?with_pfs:--without-pfs} \
311 %{!?with_qt:--without-qt} \
53d34f41
JB
312 %{!?with_sndfile:--without-sndfile} \
313 %{!?with_teem:--without-teem}
77f1f9bf
JB
314%{__make}
315
316%install
317rm -rf $RPM_BUILD_ROOT
318
319%{__make} install \
320 DESTDIR=$RPM_BUILD_ROOT
321
322%clean
323rm -rf $RPM_BUILD_ROOT
324
325%post -p /sbin/postshell
326-/usr/sbin/fix-info-dir -c %{_infodir}
327
328%postun -p /sbin/postshell
329-/usr/sbin/fix-info-dir -c %{_infodir}
330
331%files
332%defattr(644,root,root,755)
333%doc AUTHORS ChangeLog NEWS README
334%attr(755,root,root) %{_bindir}/gta
335%dir %{_libdir}/gtatool
dc0d3430
JB
336%attr(755,root,root) %{_libdir}/gtatool/conv-csv.so
337%attr(755,root,root) %{_libdir}/gtatool/conv-datraw.so
77f1f9bf 338%attr(755,root,root) %{_libdir}/gtatool/conv-ply.so
dc0d3430 339%attr(755,root,root) %{_libdir}/gtatool/conv-pvm.so
77f1f9bf
JB
340%attr(755,root,root) %{_libdir}/gtatool/conv-rat.so
341%attr(755,root,root) %{_libdir}/gtatool/conv-raw.so
342%{_mandir}/man1/gta.1*
343%{_infodir}/gta.info*
344
ce930cd4 345%if %{with muparser}
1a8c37c1
JB
346%files component-compute
347%defattr(644,root,root,755)
348%attr(755,root,root) %{_libdir}/gtatool/component-compute.so
ce930cd4 349%endif
1a8c37c1 350
ce930cd4 351%if %{with dcmtk}
e75f31c6
JB
352%files conv-dcmtk
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/gtatool/conv-dcmtk.so
ce930cd4 355%endif
e75f31c6 356
ce930cd4 357%if %{with openexr}
77f1f9bf
JB
358%files conv-exr
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/gtatool/conv-exr.so
ce930cd4 361%endif
77f1f9bf 362
ce930cd4 363%if %{with ffmpeg}
77f1f9bf
JB
364%files conv-ffmpeg
365%defattr(644,root,root,755)
366%attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so
ce930cd4 367%endif
77f1f9bf 368
ce930cd4 369%if %{with gdal}
fec333dc
JB
370%files conv-gdal
371%defattr(644,root,root,755)
372%attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so
ce930cd4 373%endif
fec333dc 374
ce930cd4 375%if %{with jpeg}
dc0d3430
JB
376%files conv-jpeg
377%defattr(644,root,root,755)
378%attr(755,root,root) %{_libdir}/gtatool/conv-jpeg.so
ce930cd4 379%endif
dc0d3430 380
ce930cd4 381%if %{with magick}
77f1f9bf
JB
382%files conv-magick
383%defattr(644,root,root,755)
384%attr(755,root,root) %{_libdir}/gtatool/conv-magick.so
ce930cd4 385%endif
77f1f9bf 386
ce930cd4 387%if %{with matio}
0c601f44
JB
388%files conv-mat
389%defattr(644,root,root,755)
390%attr(755,root,root) %{_libdir}/gtatool/conv-mat.so
ce930cd4 391%endif
0c601f44 392
ce930cd4
JB
393%if %{with netcdf}
394%files conv-netcdf
395%defattr(644,root,root,755)
396%attr(755,root,root) %{_libdir}/gtatool/conv-netcdf.so
397%endif
398
399%if %{with netpbm}
77f1f9bf
JB
400%files conv-netpbm
401%defattr(644,root,root,755)
402%attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so
ce930cd4
JB
403%endif
404
405%if %{with pcl}
406%files conv-pcd
407%defattr(644,root,root,755)
408%attr(755,root,root) %{_libdir}/gtatool/conv-pcd.so
409%endif
77f1f9bf 410
ce930cd4 411%if %{with pfs}
dcb8070a
JB
412%files conv-pfs
413%defattr(644,root,root,755)
414%attr(755,root,root) %{_libdir}/gtatool/conv-pfs.so
ce930cd4 415%endif
dcb8070a 416
ce930cd4 417%if %{with sndfile}
77f1f9bf
JB
418%files conv-sndfile
419%defattr(644,root,root,755)
420%attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so
ce930cd4 421%endif
77f1f9bf 422
53d34f41
JB
423%if %{with teem}
424%files conv-teem
425%defattr(644,root,root,755)
426%attr(755,root,root) %{_libdir}/gtatool/conv-teem.so
427%endif
428
ce930cd4 429%if %{with qt}
77f1f9bf
JB
430%files gui
431%defattr(644,root,root,755)
432%attr(755,root,root) %{_libdir}/gtatool/gui.so
01b372b6 433%attr(755,root,root) %{_libdir}/gtatool/view.so
dc0d3430
JB
434%{_desktopdir}/gta_gui.desktop
435%{_iconsdir}/hicolor/*/apps/gta.png
436%{_iconsdir}/hicolor/scalable/apps/gta.svg
ce930cd4 437%endif
d4dbb544
JB
438
439%files -n bash-completion-gtatool
440%defattr(644,root,root,755)
6077409b 441%{bash_compdir}/gta
This page took 0.155731 seconds and 4 git commands to generate.