X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgdal.git;a=blobdiff_plain;f=gdal.spec;h=c1f0adc3181b744f6e7b78e45773d65b09ed2d0b;hp=d6a6e72902a69c96a9eb478ee56408326182823a;hb=2d0a5069f1174a6093a91511e0a6f4492580ef5e;hpb=75b2e515daeec56af67c751a8cb2754f412cd4b8 diff --git a/gdal.spec b/gdal.spec index d6a6e72..c1f0adc 100644 --- a/gdal.spec +++ b/gdal.spec @@ -28,6 +28,7 @@ %bcond_without mysql # MySQL DB support %bcond_without odbc # ODBC DB support %bcond_without opencl # OpenCL (GPU) support +%bcond_without openjpeg # OpenJPEG 2 (JPEG2000) support %bcond_with podofo # PDF support via podofo instead of poppler %bcond_without poppler # PDF support via poppler %bcond_without spatialite # SpatiaLite support @@ -43,7 +44,7 @@ Summary: Geospatial Data Abstraction Library Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczących powierzchni Ziemi Name: gdal Version: 1.9.2 -Release: 3 +Release: 6 License: BSD-like Group: Libraries Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz @@ -53,6 +54,8 @@ Patch1: %{name}-python_install.patch Patch2: %{name}-php.patch Patch3: %{name}-fpic.patch Patch4: %{name}-format-security.patch +Patch5: %{name}-openjpeg2.patch +Patch6: %{name}-hdf4-eos.patch URL: http://www.gdal.org/ %{?with_opencl:BuildRequires: OpenCL-devel >= 1.0} %{?with_armadillo:BuildRequires: armadillo-devel} @@ -88,6 +91,7 @@ BuildRequires: libxml2-devel %{?with_mysql:BuildRequires: mysql-devel} BuildRequires: netcdf-devel >= 4.1 BuildRequires: ogdi-devel >= 3.1 +%{?with_openjpeg:BuildRequires: openjpeg2-devel >= 2.0.0-2} #BuildRequires: pcidsk-devel > 0.3 BuildRequires: perl-devel %{?with_php:BuildRequires: php-devel} @@ -169,6 +173,7 @@ Requires: libxml2-devel %{?with_mysql:Requires: mysql-devel} Requires: netcdf-devel >= 4 Requires: ogdi-devel >= 3.1 +%{?with_openjpeg:Requires: openjpeg2-devel >= 2.0.0-2} #Requires: pcidsk-devel > 0.3 %{?with_podofo:Requires: podofo-devel} %{?with_poppler:Requires: poppler-devel} @@ -257,6 +262,8 @@ osr. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 +%patch6 -p1 # need to regenerate (old ones don't support perl 5.10) %{__rm} swig/perl/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp} @@ -302,7 +309,9 @@ osr. # regenerate where needed %{__make} -j1 -C swig/perl generate -%{?with_ruby:%{__make} -j1 -C swig/ruby generate} +%if %{with ruby} +%{__make} -j1 -C swig/ruby generate +%endif %{__make} -j1