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