Summary(pl.UTF-8): Narzędzia do obróbki plików GTA (ogólnych tablic etykietowanych)
Name: gtatool
Version: 2.0.1
-Release: 2
+Release: 15
License: GPL v3+
Group: Applications/File
Source0: http://download.savannah.gnu.org/releases/gta/%{name}-%{version}.tar.xz
Patch0: ffmpeg2.patch
Patch1: %{name}-getopt.patch
Patch2: %{name}-bashcomp.patch
+Patch3: pfstools2.patch
+Patch4: ffmpeg3.patch
+Patch5: imagemagick7.patch
URL: http://gta.nongnu.org/gtatool.html
%{?with_magick:BuildRequires: ImageMagick-c++-devel}
%{?with_openexr:BuildRequires: OpenEXR-devel}
%{?with_netcdf:BuildRequires: netcdf-devel}
%{?with_netpbm:BuildRequires: netpbm-devel}
%{?with_pcl:BuildRequires: pcl-devel >= 1.7}
-%{?with_pfs:BuildRequires: pfstools-devel >= 1.2}
+%{?with_pfs:BuildRequires: pfstools-devel >= 2.0}
BuildRequires: pkgconfig
%{?with_qt:BuildRequires: qt4-build >= 4.8}
BuildRequires: rpmbuild(macros) >= 1.673
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader}
%{__automake}
+%if %{with netpbm}
+export CFLAGS="%{rpmcflags} -I/usr/include/netpbm"
+export CXXFLAGS="%{rpmcxxflags} -I/usr/include/netpbm"
+%endif
%configure \
BASHCOMPLETIONDIR=%{bash_compdir} \
--disable-silent-rules \