37acd95
%global completion_path %(pkg-config --variable=completionsdir bash-completion)
37acd95
37acd95
Name:      gtatool
c5e5982
Version:   2.2.1
899b5cb
Release:   2%{?dist}
37acd95
Summary:   Commandline tool to manipulate GTAs
37acd95
License:   GPLv3+
c5e5982
URL:       https://marlam.de/gta/
c5e5982
Source0:   https://marlam.de/gta/releases/%{name}-%{version}.tar.xz
bf69f21
8397015
BuildRequires: gettext-devel
37acd95
BuildRequires: bash-completion
1c30200
BuildRequires: dcmtk-devel
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
51434b1
BuildRequires: pcl-devel
37acd95
BuildRequires: pkgconfig
37acd95
BuildRequires: pfstools-devel
ead9164
BuildRequires: qt5-qtbase-devel
8b86d48
BuildRequires: libtool automake autoconf
bf69f21
# For gdal tests
bf69f21
BuildRequires: uriparser
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
Requires:       %{name}%{?_isa} = %{version}-%{release}
37acd95
37acd95
%description gui
37acd95
This sub-package contains the graphical interface of %{name}.
37acd95
37acd95
1c30200
%package dcmtk
1c30200
Summary:        Module to import/export via dcmtk
1c30200
Requires:       %{name}%{?_isa} = %{version}-%{release}
1c30200
1c30200
%description dcmtk
1c30200
This sub-package contains the necessary module to import and export
1c30200
medical image data in DICOM format via dcmtk.
37acd95
37acd95
37acd95
%package gdal
37acd95
Summary:        Module to import/export via gdal
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
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
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
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
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
51434b1
%package pcd
51434b1
Summary:        Module to import/export point cloud data
51434b1
Requires:       %{name}%{?_isa} = %{version}-%{release}
51434b1
51434b1
%description pcd
51434b1
This sub-package contains the necessary module to import and export
51434b1
point cloud data via pcl.
37acd95
37acd95
37acd95
%package sndfile
37acd95
Summary:        Module to import/export sound data
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
8b86d48
autoreconf -fi
8b86d48
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
c5e5982
export MOC=%{_libdir}/qt5/bin/moc
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
bf69f21
make check
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
37acd95
%{_datadir}/applications/gta_gui.desktop
37acd95
%{_datadir}/icons/hicolor/*/*
37acd95
1c30200
%files dcmtk
1c30200
%{_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
51434b1
%files pcd
51434b1
%{_libdir}/%{name}/conv-pcd.so
37acd95
37acd95
%files sndfile
37acd95
%{_libdir}/%{name}/conv-sndfile.so
37acd95
37acd95
37acd95
%changelog
899b5cb
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
899b5cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
899b5cb
c5e5982
* Thu Aug 30 2018 Volker Froehlich <volker27@gmx.at> - 2.2.1-1
c5e5982
- New upstream release
c5e5982
- Provide moc path in environment, as the discovery is broken
c5e5982
  and failure is not handled gracefully
c5e5982
- New URL
c5e5982
14b0f7d
* Tue Aug 28 2018 Michael Cronenworth <mike@cchtml.com> - 2.2.0-15
14b0f7d
- Rebuild for new ImageMagick 6.9.10
14b0f7d
a246d15
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-14
a246d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a246d15
1e4e140
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-13
1e4e140
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1e4e140
a980bed
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.0-12
a980bed
- Remove obsolete scriptlets
a980bed
447e2c2
* Wed Jan 03 2018 Volker Froehlich <volker27@gmx.at> - 2.2.0-11
447e2c2
- Rebuild for dcmtk
447e2c2
bf69f21
* Mon Oct 02 2017 Volker Froehlich <volker27@gmx.at> - 2.2.0-10
bf69f21
- Apply upstream patches to resolve BZ#1485423
bf69f21
- Add uriparser BR for tests
bf69f21
cd40761
* Tue Sep 05 2017 Adam Williamson <awilliam@redhat.com> - 2.2.0-9
cd40761
- Rebuild for ImageMagick 6 reversion, drop ImageMagick 7 patch
cd40761
4ad938b
* Fri Aug 25 2017 Michael Cronenworth <mike@cchtml.com> - 2.2.0-8
4ad938b
- Rebuild for new ImageMagick
4ad938b
e7a8f66
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
e7a8f66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e7a8f66
7f236ca
* Sun Jul 30 2017 Volker Froehlich <volker27@gmx.at> - 2.2.0-6
7f236ca
- Rebuild for imagemagick
7f236ca
2ae111b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
2ae111b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2ae111b
effb1ab
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
effb1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
effb1ab
c737621
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
c737621
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c737621
017998a
* Wed Jul 06 2016 Volker Froehlich <volker27@gmx.at> - 2.2.0-2
017998a
- Rebuild for libmatio
017998a
ead9164
* Tue Feb 09 2016 Volker Froehlich <volker27@gmx.at> - 2.2.0-1
ead9164
- New upstream release
ead9164
e066331
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
e066331
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e066331
78764fa
* Sun Jan 24 2016 Volker Froehlich <volker27@gmx.at> - 2.1.0-11
78764fa
- Rebuild for netcdf
78764fa
1512f0c
* Sun Jan 17 2016 Volker Froehlich <volker27@gmx.at> - 2.1.0-10
1512f0c
- Rebuild for libGLEWmx
1512f0c
0cccef1
* Sun Aug 30 2015 Volker Froehlich <volker27@gmx.at> - 2.1.0-9
0cccef1
- Version bump required for F23
0cccef1
8b86d48
* Fri Jul 24 2015 Volker Froehlich <volker27@gmx.at> - 2.1.0-8
8b86d48
- Modified to build with pfstools 2.0
8b86d48
- Apply an upstream patch that applies to 64 bit builds
8b86d48
a31c9b0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-7
a31c9b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a31c9b0
Orion Poplawski 1f74ef8
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 2.1.0-6
Orion Poplawski 1f74ef8
- Rebuild for hdf5 1.8.15
Orion Poplawski 1f74ef8
1c30200
* Sun Apr 19 2015 Volker Fröhlich <volker27@gmx.at> - 2.1.0-5
1c30200
- Re-enable the dcmtk sub-package
1c30200
0bac729
* Sat Mar 07 2015 Volker Fröhlich <volker27@gmx.at> - 2.1.0-4
0bac729
- Rebuild for imagemagick 6.9
0bac729
Orion Poplawski 6649f57
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 2.1.0-3
Orion Poplawski 6649f57
- Rebuild for hdf5 1.8.14
Orion Poplawski 6649f57
0bac729
* Sun Jan 04 2015 Volker Fröhlich <volker27@gmx.at> - 2.1.0-2
51434b1
- Re-enable the pcd sub-package
51434b1
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