]> git.pld-linux.org Git - packages/gdal.git/commitdiff
- added libdap patch for libdap 3.10+
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 12 Oct 2010 19:09:11 +0000 (19:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated some deps

Changed files:
    gdal-libdap.patch -> 1.1
    gdal.spec -> 1.77

gdal-libdap.patch [new file with mode: 0644]
gdal.spec

diff --git a/gdal-libdap.patch b/gdal-libdap.patch
new file mode 100644 (file)
index 0000000..1da75b7
--- /dev/null
@@ -0,0 +1,107 @@
+--- gdal-1.7.2/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.orig 2010-04-24 01:21:25.000000000 +0200
++++ gdal-1.7.2/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp      2010-10-11 07:45:03.847736015 +0200
+@@ -150,7 +150,7 @@ int OGRDODSDataSource::Open( const char
+     try 
+     {
+-        poConnection = new AISConnect( oBaseURL );
++        poConnection = new Connect( oBaseURL );
+         version = poConnection->request_version();
+     } 
+     catch (Error &e) 
+--- gdal-1.7.2/ogr/ogrsf_frmts/dods/ogr_dods.h.orig    2010-04-24 01:21:25.000000000 +0200
++++ gdal-1.7.2/ogr/ogrsf_frmts/dods/ogr_dods.h 2010-10-11 07:45:35.795741882 +0200
+@@ -61,7 +61,7 @@
+ #include <Sequence.h>
+ #include <Grid.h>
+-#include <AISConnect.h>               
++#include <Connect.h>          
+ #include <DDS.h>
+ #include <DAS.h>
+ #include <BaseTypeFactory.h>
+@@ -122,7 +122,7 @@ class OGRDODSLayer : public OGRLayer
+     virtual int         ProvideDataDDS();
+     int                 bDataLoaded;
+-    AISConnect         *poConnection;
++    Connect            *poConnection;
+     DataDDS            *poDataDDS;
+     BaseType           *poTargetVar;
+@@ -300,7 +300,7 @@ class OGRDODSDataSource : public OGRData
+     void                AddLayer( OGRDODSLayer * );
+   public: // Just intended for read access by layer classes.
+-    AISConnect         *poConnection;
++    Connect            *poConnection;
+     DAS                 oDAS;
+     DDS                 *poDDS;
+--- gdal-1.7.2/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.orig      2010-04-24 01:21:25.000000000 +0200
++++ gdal-1.7.2/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp   2010-10-11 07:45:57.947740205 +0200
+@@ -213,7 +213,7 @@ int OGRDODSLayer::ProvideDataDDS()
+     bDataLoaded = TRUE;
+     try
+     {
+-        poConnection = new AISConnect( poDS->oBaseURL );
++        poConnection = new Connect( poDS->oBaseURL );
+         CPLDebug( "DODS", "request_data(%s,%s)",
+                   poDS->oBaseURL.c_str(),
+                   (poDS->oProjection + poDS->oConstraints).c_str() );
+--- gdal-1.7.2/frmts/dods/dodsdataset2.cpp.orig        2010-04-24 01:21:55.000000000 +0200
++++ gdal-1.7.2/frmts/dods/dodsdataset2.cpp     2010-10-11 07:24:26.275734339 +0200
+@@ -50,7 +50,7 @@
+ #include <Sequence.h>
+ #include <Grid.h>
+-#include <AISConnect.h>               
++#include <Connect.h>          
+ #include <DDS.h>
+ #include <DAS.h>
+ #include <BaseTypeFactory.h>
+@@ -203,7 +203,7 @@ static int GetDimension( string oCE, con
+ class DODSDataset : public GDALDataset
+ {
+ private:
+-    AISConnect *poConnect;    //< Virtual connection to the data source
++    Connect *poConnect;       //< Virtual connection to the data source
+     string oURL;              //< data source URL
+     double adfGeoTransform[6];
+@@ -214,7 +214,7 @@ private:
+     DDS   *poDDS;
+     BaseTypeFactory *poBaseTypeFactory;
+-    AISConnect *connect_to_server() throw(Error);
++    Connect *connect_to_server() throw(Error);
+     static string      SubConstraint( string raw_constraint, 
+                                       string x_constraint, 
+@@ -242,7 +242,7 @@ public:
+     static GDALDataset *Open(GDALOpenInfo *);
+     /// Return the connection object
+-    AISConnect *GetConnect() { return poConnect; }
++    Connect *GetConnect() { return poConnect; }
+     /// Return the data source URL
+     string GetUrl() { return oURL; }
+@@ -339,7 +339,7 @@ DODSDataset::~DODSDataset()
+ /*                         connect_to_server()                          */
+ /************************************************************************/
+-AISConnect *
++Connect *
+ DODSDataset::connect_to_server() throw(Error)
+ {
+     // does the string start with 'http?'
+@@ -375,7 +375,7 @@ DODSDataset::connect_to_server() throw(E
+ /* -------------------------------------------------------------------- */
+ /*      Connect, and fetch version information.                         */
+ /* -------------------------------------------------------------------- */
+-    AISConnect *poConnection = new AISConnect(oURL);
++    Connect *poConnection = new Connect(oURL);
+     string version = poConnection->request_version();
+     /*    if (version.empty() || version.find("/3.") == string::npos)
+     {
index f95ef36d8fff78d432b70ab1860dfec0835b56b7..81a9347bb250c936fe69db4cd028d9e38169accf 100644 (file)
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,4 +1,5 @@
 # TODO: csharp, java, mysql
+#       use external pcidsk (http://home.gdal.org/projects/pcidsk/)?
 #
 # Conditional build:
 %bcond_without odbc    # disable odbc support
@@ -18,19 +19,20 @@ Patch0:             %{name}-perl.patch
 Patch1:                %{name}-ruby.patch
 Patch2:                %{name}-asneeded.patch
 Patch3:                %{name}-python_install.patch
+Patch4:                %{name}-libdap.patch
 URL:           http://www.gdal.org/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
 BuildRequires: cfitsio-devel
 BuildRequires: doxygen
 BuildRequires: expat-devel >= 1.95.0
-BuildRequires: geos-devel >= 2.0
+BuildRequires: geos-devel >= 2.2
 BuildRequires: giflib-devel >= 4.0
 BuildRequires: hdf-devel >= 4.0
 BuildRequires: hdf5-devel
 BuildRequires: jasper-devel
 BuildRequires: libcsf-devel
-BuildRequires: libdap-devel >= 3.5
+BuildRequires: libdap-devel >= 3.10
 BuildRequires: libgeotiff-devel >= 1.2.1
 BuildRequires: libjpeg-devel >= 6b
 BuildRequires: libpng-devel >= 2:1.2.8
@@ -61,7 +63,7 @@ BuildRequires:        texlive-latex
 %{?with_odbc:BuildRequires:    unixODBC-devel}
 %{?with_xerces:BuildRequires:  xerces-c-devel >= 2.2.0}
 BuildRequires: zlib-devel >= 1.1.4
-Requires:      geos >= 2.0
+Requires:      geos >= 2.2
 Requires:      libgeotiff >= 1.2.1
 Requires:      libpng >= 2:1.2.8
 Requires:      libtiff >= 3.6.0
@@ -90,13 +92,13 @@ Group:              Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      cfitsio-devel
 Requires:      expat-devel >= 1.95.0
-Requires:      geos-devel >= 2.0
+Requires:      geos-devel >= 2.2
 Requires:      giflib-devel
 Requires:      hdf-devel >= 4.0
 Requires:      hdf5-devel
 Requires:      jasper-devel
 Requires:      libcsf-devel
-Requires:      libdap-devel >= 3.5
+Requires:      libdap-devel >= 3.10
 Requires:      libgeotiff-devel >= 1.2.1
 Requires:      libjpeg-devel
 Requires:      libpng-devel >= 2:1.2.8
@@ -172,13 +174,14 @@ osr.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -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}
+%{__rm} swig/perl/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}
 # includes updated for Ruby 1.9
-rm swig/ruby/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}
+%{__rm} swig/ruby/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}
 
-rm -rf man
+%{__rm} -r man
 
 %build
 # $PYTHON_INCLUDES is set only with --with-ogpython, but we have --with-python,
@@ -256,13 +259,69 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc NEWS PROVENANCE.TXT
-%attr(755,root,root) %{_bindir}/*
-%exclude %{_bindir}/gdal-config
+%attr(755,root,root) %{_bindir}/epsg_tr.py
+%attr(755,root,root) %{_bindir}/esri2wkt.py
+%attr(755,root,root) %{_bindir}/gcps2vec.py
+%attr(755,root,root) %{_bindir}/gcps2wld.py
+%attr(755,root,root) %{_bindir}/gdal2tiles.py
+%attr(755,root,root) %{_bindir}/gdal2xyz.py
+%attr(755,root,root) %{_bindir}/gdal_contour
+%attr(755,root,root) %{_bindir}/gdal_fillnodata.py
+%attr(755,root,root) %{_bindir}/gdal_grid
+%attr(755,root,root) %{_bindir}/gdal_merge.py
+%attr(755,root,root) %{_bindir}/gdal_polygonize.py
+%attr(755,root,root) %{_bindir}/gdal_proximity.py
+%attr(755,root,root) %{_bindir}/gdal_rasterize
+%attr(755,root,root) %{_bindir}/gdal_retile.py
+%attr(755,root,root) %{_bindir}/gdal_sieve.py
+%attr(755,root,root) %{_bindir}/gdal_translate
+%attr(755,root,root) %{_bindir}/gdaladdo
+%attr(755,root,root) %{_bindir}/gdalbuildvrt
+%attr(755,root,root) %{_bindir}/gdalchksum.py
+%attr(755,root,root) %{_bindir}/gdaldem
+%attr(755,root,root) %{_bindir}/gdalenhance
+%attr(755,root,root) %{_bindir}/gdalident.py
+%attr(755,root,root) %{_bindir}/gdalimport.py
+%attr(755,root,root) %{_bindir}/gdalinfo
+%attr(755,root,root) %{_bindir}/gdalmanage
+%attr(755,root,root) %{_bindir}/gdaltindex
+%attr(755,root,root) %{_bindir}/gdaltransform
+%attr(755,root,root) %{_bindir}/gdalwarp
+%attr(755,root,root) %{_bindir}/mkgraticule.py
+%attr(755,root,root) %{_bindir}/nearblack
+%attr(755,root,root) %{_bindir}/ogr2ogr
+%attr(755,root,root) %{_bindir}/ogrinfo
+%attr(755,root,root) %{_bindir}/ogrtindex
+%attr(755,root,root) %{_bindir}/pct2rgb.py
+%attr(755,root,root) %{_bindir}/rgb2pct.py
+%attr(755,root,root) %{_bindir}/testepsg
 %attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libgdal.so.1
 %{_datadir}/gdal
-%{_mandir}/man1/*
-%exclude %{_mandir}/man1/gdal-config.1*
+%{_mandir}/man1/gdal2tiles.1*
+%{_mandir}/man1/gdal_contour.1*
+%{_mandir}/man1/gdal_fillnodata.1*
+%{_mandir}/man1/gdal_grid.1*
+%{_mandir}/man1/gdal_merge.1*
+%{_mandir}/man1/gdal_rasterize.1*
+%{_mandir}/man1/gdal_retile.1*
+%{_mandir}/man1/gdal_sieve.1*
+%{_mandir}/man1/gdal_translate.1*
+%{_mandir}/man1/gdal_utilities.1*
+%{_mandir}/man1/gdaladdo.1*
+%{_mandir}/man1/gdalbuildvrt.1*
+%{_mandir}/man1/gdaldem.1*
+%{_mandir}/man1/gdalinfo.1*
+%{_mandir}/man1/gdaltindex.1*
+%{_mandir}/man1/gdaltransform.1*
+%{_mandir}/man1/gdalwarp.1*
+%{_mandir}/man1/nearblack.1*
+%{_mandir}/man1/ogr2ogr.1*
+%{_mandir}/man1/ogr_utilities.1*
+%{_mandir}/man1/ogrinfo.1*
+%{_mandir}/man1/ogrtindex.1*
+%{_mandir}/man1/pct2rgb.1*
+%{_mandir}/man1/rgb2pct.1*
 
 %files devel
 %defattr(644,root,root,755)
@@ -270,7 +329,16 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/gdal-config
 %attr(755,root,root) %{_libdir}/libgdal.so
 %{_libdir}/libgdal.la
-%{_includedir}/*.h
+%{_includedir}/cpl_*.h
+%{_includedir}/cplkeywordparser.h
+%{_includedir}/gdal*.h
+%{_includedir}/gvgcpfit.h
+%{_includedir}/memdataset.h
+%{_includedir}/ogr_*.h
+%{_includedir}/ogrsf_frmts.h
+%{_includedir}/rawdataset.h
+%{_includedir}/thinplatespline.h
+%{_includedir}/vrtdataset.h
 %{_mandir}/man1/gdal-config.1*
 
 %files static
This page took 0.36911 seconds and 4 git commands to generate.