37acd95
%global completion_path %(pkg-config --variable=completionsdir bash-completion)
37acd95
37acd95
Name:      gtatool
5a57812
Version:   2.1.0
5a57812
Release:   1%{?dist}
37acd95
Summary:   Commandline tool to manipulate GTAs
37acd95
Group:     Applications/Engineering
37acd95
License:   GPLv3+
37acd95
URL:       http://gta.nongnu.org/gtatool.html
37acd95
Source0:   http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz
37acd95
8397015
BuildRequires: gettext-devel
37acd95
BuildRequires: bash-completion
5a57812
#BuildRequires: dcmtk-devel
5a57812
# https://bugzilla.redhat.com/show_bug.cgi?id=922937
37acd95
BuildRequires: desktop-file-utils
37acd95
BuildRequires: gdal-devel
5a57812
BuildRequires: glew-devel
37acd95
BuildRequires: ImageMagick-c++-devel
37acd95
BuildRequires: libgta-devel
37acd95
BuildRequires: libsndfile-devel
37acd95
BuildRequires: matio-devel
37acd95
BuildRequires: muParser-devel
37acd95
BuildRequires: netcdf-devel
37acd95
BuildRequires: netpbm-devel
37acd95
BuildRequires: OpenEXR-devel
37acd95
BuildRequires: openjpeg-devel
5a57812
#BuildRequires: pcl-devel
5a57812
#TODO: Remove libquadmath later!
e77e41f
%ifnarch %{arm} aarch64
5a57812
BuildRequires: libquadmath-devel
e77e41f
%endif
5a57812
# https://bugzilla.redhat.com/show_bug.cgi?id=1177244
37acd95
BuildRequires: pkgconfig
37acd95
BuildRequires: pfstools-devel
37acd95
BuildRequires: qt4-devel
37acd95
5a57812
# Optional new BRs, when available in Fedora: libgls, libequalizer, libteem
5a57812
# http://teem.sourceforge.net/
5a57812
# http://libgls.sourceforge.net/
5a57812
# https://github.com/Eyescale/Equalizer
5a57812
# https://bugzilla.redhat.com/show_bug.cgi?id=758472
5a57812
37acd95
Requires(post): info
37acd95
Requires(preun): info
37acd95
37acd95
%description
37acd95
Gtatool is a command line tool to manipulate GTAs.
37acd95
37acd95
It provides a set of commands that manipulate GTAs on various levels:
37acd95
array element components, array dimensions, whole arrays, and streams of arrays.
37acd95
For example, you can add components to array elements, merge separate arrays
37acd95
into combined arrays in different ways, apply global transformations to array
37acd95
data, reorder the array data, and much more.
37acd95
37acd95
Additionally, gtatool can import from and export to many other file formats, see
37acd95
the sub-packages!
37acd95
37acd95
37acd95
%package gui
37acd95
Summary:        Graphical interface of %{name}
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description gui
37acd95
This sub-package contains the graphical interface of %{name}.
37acd95
37acd95
5a57812
#%package dcmtk
5a57812
#Summary:        Module to import/export via dcmtk
5a57812
#Group:          Applications/Engineering
5a57812
#Requires:       %{name}%{?_isa} = %{version}-%{release}
5a57812
#
5a57812
#%description dcmtk
5a57812
#This sub-package contains the necessary module to import and export
5a57812
#medical image data in DICOM format via dcmtk.
37acd95
37acd95
37acd95
%package gdal
37acd95
Summary:        Module to import/export via gdal
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description gdal
37acd95
This sub-package contains the necessary module to import and export
37acd95
remote sensing data via the gdal library.
37acd95
37acd95
37acd95
%package hdr
37acd95
Summary:        Module to import/export high dynamic range data
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description hdr
37acd95
This sub-package contains the necessary module to import and export
37acd95
high dynamic range images or data via OpenEXR and pfstools.
37acd95
37acd95
37acd95
%package imagemagick
37acd95
Summary:        Module to import/export traditional image formats
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description imagemagick
37acd95
This sub-package contains the necessary module to import and export
37acd95
traditional image formats via imagemagick.
37acd95
37acd95
37acd95
%package matlab
37acd95
Summary:        Module to import/export matlab files
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description matlab
37acd95
This sub-package contains the necessary module to import and export
37acd95
matlab files via matio.
37acd95
37acd95
37acd95
%package netcdf
37acd95
Summary:        Module to import/export traditional netcdf files
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description netcdf
37acd95
This sub-package contains the necessary module to import and export
37acd95
netcdf files, including HDF4 and 5.
37acd95
37acd95
5a57812
#%package pcd
5a57812
#Summary:        Module to import/export point cloud data
5a57812
#Group:          Applications/Engineering
5a57812
#Requires:       %{name}%{?_isa} = %{version}-%{release}
5a57812
#
5a57812
#%description pcd
5a57812
#This sub-package contains the necessary module to import and export
5a57812
#point cloud data via pcl.
37acd95
37acd95
37acd95
%package sndfile
37acd95
Summary:        Module to import/export sound data
37acd95
Group:          Applications/Engineering
37acd95
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description sndfile
37acd95
This sub-package contains the necessary module to import and export
37acd95
sound data via libsndfile.
37acd95
37acd95
37acd95
%prep
37acd95
%setup -q
37acd95
37acd95
%build
37acd95
# Stupid way to avoid overwriting the original LDFLAGS.
37acd95
# __global_ldflags might do instead
37acd95
export CFLAGS="%{optflags} -I%{_includedir}/netpbm"
37acd95
export CXXFLAGS="%{optflags} -I%{_includedir}/netpbm"
5a57812
export BASHCOMPLETIONDIR="%{completion_path}"
37acd95
37acd95
# 1994 ply files are bundled; rply could take over, but the API is different
37acd95
# pvm uses files from vvv; No package is currently available in Fedora
5a57812
#TODO: Consider to switch to GraphicsMagick, as that's the default or even supply both
5a57812
%configure LDFLAGS="$LDFLAGS" \
5a57812
    --with-magick-flavor=ImageMagick \
37acd95
    --without-ffmpeg \
37acd95
    --without-ply \
37acd95
    --without-pvm
37acd95
37acd95
make V=1 LDFLAGS="$LDFLAGS $LDFLAGS_ADD" %{?_smp_mflags}
37acd95
37acd95
37acd95
%install
37acd95
make install DESTDIR=%{buildroot}
37acd95
37acd95
desktop-file-validate %{buildroot}/%{_datadir}/applications/gta_gui.desktop
37acd95
37acd95
# Remove info directory, created by make install
37acd95
rm -rf %{buildroot}%{_infodir}/dir
37acd95
37acd95
# Completion scripts are loaded on demand from bash-completion 1.99 on
37acd95
37acd95
37acd95
%check
37acd95
# Imagemagick test fails randomly in F16 and 17, but succeeds in F18
37acd95
# It's connected to ImageMagick only, as it succeeds with a rebuild
37acd95
# of F18's ImageMagick in F16.
37acd95
# Reported on the gta mailing list on Feb 3 2013
8397015
8397015
# On arm this check succeeds but two other fail:
8397015
# FAIL: conv-csv.sh
8397015
# FAIL: conv-datraw.sh
8397015
# E-mailed the author on Sep 15 2013
8397015
37acd95
# Make them informational for the time being
37acd95
make check || exit 0
37acd95
37acd95
37acd95
%post
37acd95
/sbin/install-info %{_infodir}/gta.info* %{_infodir}/dir || :
37acd95
37acd95
%post gui
37acd95
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
37acd95
37acd95
%preun
37acd95
if [ $1 = 0 ] ; then
37acd95
  /sbin/install-info --delete %{_infodir}/gta.info* %{_infodir}/dir || :
37acd95
fi
37acd95
37acd95
%postun gui
37acd95
if [ $1 -eq 0 ] ; then
37acd95
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
37acd95
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
37acd95
fi
37acd95
37acd95
%posttrans
37acd95
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
37acd95
37acd95
37acd95
%files 
37acd95
%doc COPYING AUTHORS README
37acd95
%{_bindir}/gta
37acd95
%dir %{_libdir}/%{name}/
37acd95
%{_libdir}/%{name}/component-compute.so
37acd95
%{_libdir}/%{name}/conv-csv.so
37acd95
%{_libdir}/%{name}/conv-datraw.so
5a57812
%{_libdir}/%{name}/conv-jpeg.so
37acd95
%{_libdir}/%{name}/conv-netpbm.so
5a57812
%{_libdir}/%{name}/conv-png.so
37acd95
%{_libdir}/%{name}/conv-rat.so
37acd95
%{_libdir}/%{name}/conv-raw.so
37acd95
%{_infodir}/gta.info*
37acd95
%{_mandir}/man1/gta.1*
37acd95
37acd95
%dir %{completion_path}
37acd95
%{completion_path}/gta
37acd95
37acd95
%files gui
37acd95
%{_libdir}/%{name}/gui.so
5a57812
%{_libdir}/%{name}/view.so
37acd95
%{_datadir}/applications/gta_gui.desktop
37acd95
%{_datadir}/icons/hicolor/*/*
37acd95
5a57812
#%files dcmtk
5a57812
#%{_libdir}/%{name}/conv-dcmtk.so
37acd95
37acd95
%files gdal
37acd95
%{_libdir}/%{name}/conv-gdal.so
37acd95
37acd95
%files hdr
37acd95
%{_libdir}/%{name}/conv-pfs.so
37acd95
%{_libdir}/%{name}/conv-exr.so
37acd95
37acd95
%files imagemagick
37acd95
%{_libdir}/%{name}/conv-magick.so
37acd95
37acd95
%files matlab
37acd95
%{_libdir}/%{name}/conv-mat.so
37acd95
37acd95
%files netcdf
37acd95
%{_libdir}/%{name}/conv-netcdf.so
37acd95
5a57812
#%files pcd
5a57812
#%{_libdir}/%{name}/conv-pcd.so
37acd95
37acd95
%files sndfile
37acd95
%{_libdir}/%{name}/conv-sndfile.so
37acd95
37acd95
37acd95
%changelog
5a57812
* Thu Dec 18 2014 Volker Fröhlich <volker27@gmx.at> - 2.1.0-1
5a57812
- New upstream release
5a57812
- Remove F17 conditionals
5a57812
- Don't require bash-completion
5a57812
- Let the build system install the BASH completion file
5a57812
- Temporarily disable the dcmtk sub-package, due to BZ #922937
5a57812
- Temporarily disable the pcd sub-package, due to BZ #1177244
5a57812
Rex Dieter e09a9e9
* Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.5.2-14
Rex Dieter e09a9e9
- rebuild (openexr)
Rex Dieter e09a9e9
0390788
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-13
0390788
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0390788
d9d23ab
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-12
d9d23ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d9d23ab
c83c6d2
* Tue Apr 01 2014 Volker Fröhlich <volker27@gmx.at> - 1.5.2-11
c83c6d2
- Rebuild for imagemagick ABI 16
c83c6d2
Rex Dieter 9468540
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.5.2-10
Rex Dieter 9468540
- rebuild (openexr)
Rex Dieter 9468540
0883deb
* Thu Oct 10 2013 Volker Fröhlich <volker27@gmx.at> - 1.5.2-9
0883deb
- Rebuild for new Imagemagick++ ABI
0883deb
8397015
* Wed Sep 11 2013 Volker Fröhlich <volker27@gmx.at> - 1.5.2-8
8397015
- Patch to allow for pcl 1.7
8397015
b81dcb4
* Wed Sep 11 2013 Volker Fröhlich <volker27@gmx.at> - 1.5.2-7
b81dcb4
- Re-enable pcd sub-package
b81dcb4
f30d96c
* Tue Sep 10 2013 Volker Fröhlich <volker27@gmx.at> - 1.5.2-6
f30d96c
- Rebuild for ilmbase 2.0.1
f30d96c
c32dda4
* Tue Aug 27 2013 Orion Poplawski <orion@cora.nwra.com> - 1.5.2-5
c32dda4
- Rebuild for gdal 1.10.0
c32dda4
f30d96c
* Fri Aug 16 2013 Volker Fröhlich <volker27@gmx.at> - 1.5.2-4
4ed8fb3
- Temporarily disable pcd sub-package, due to broken pcl in Rawhide
4ed8fb3
68681f6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
68681f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
68681f6
1ed052d
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 1.5.2-2
1ed052d
- Rebuild for hdf5 1.8.11
1ed052d
e694f4d
* Tue Apr 30 2013 Volker Fröhlich <volker27@gmx.at> 1.5.2-1
e694f4d
- New upstream release
e694f4d
37acd95
* Sat Mar 30 2013 Volker Fröhlich <volker27@gmx.at> 1.5.1-3
37acd95
- Remove gcc-c++ as BR
37acd95
- Disable pvm and ply, due to bundle issues
37acd95
- Put the bash completion script in the proper place for dynamical loading
37acd95
37acd95
* Wed Feb 13 2013 Volker Fröhlich <volker27@gmx.at> 1.5.1-2
37acd95
- pcd sub-package conditional for F17, due to version constraint in pcl
37acd95
37acd95
* Sun Feb 10 2013 Volker Fröhlich <volker27@gmx.at> 1.5.1-1
37acd95
- New upstream release
37acd95
- Remove now included tex info patch
37acd95
- Remove now included changes of pcl_config and desktop file
37acd95
- Own bash_completion.d for the newly introduced completion file
37acd95
37acd95
* Fri Feb  1 2013 Volker Fröhlich <volker27@gmx.at> 1.5.0-1
37acd95
- Initial package for Fedora