From 86f8705fedb2fbe54a4bdbbbfbf39f83db48c57c Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 13 Mar 2007 09:15:39 +0000
Subject: [PATCH 001/541] auto-import gdal-1.4.0-10 on branch devel from
gdal-1.4.0-10.src.rpm
---
.cvsignore | 1 +
gdal-buildfix.patch | 386 ++++++++++++++++++++++++++++++++++++++++++++
gdal.spec | 303 ++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 691 insertions(+)
create mode 100644 gdal-buildfix.patch
create mode 100644 gdal.spec
diff --git a/.cvsignore b/.cvsignore
index e69de29..055116a 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+gdal-1.4.0-fedora.tar.gz
diff --git a/gdal-buildfix.patch b/gdal-buildfix.patch
new file mode 100644
index 0000000..d4ae1de
--- /dev/null
+++ b/gdal-buildfix.patch
@@ -0,0 +1,386 @@
+diff -Nru gdal-1.4.0-fedora/configure gdal-1.4.0-fedora.work/configure
+--- gdal-1.4.0-fedora/configure 2006-12-29 20:17:00.000000000 +0100
++++ gdal-1.4.0-fedora.work/configure 2007-02-27 23:12:00.000000000 +0100
+@@ -23371,6 +23371,12 @@
+
+ echo "using internal GeoTIFF code."
+
++elif test "$with_geotiff" = "disabled" ; then
++
++ GEOTIFF_SETTING=disabled
++
++ echo "disabled GeoTIFF code."
++
+ else
+
+ GEOTIFF_SETTING=external
+diff -Nru gdal-1.4.0-fedora/configure.in gdal-1.4.0-fedora.work/configure.in
+--- gdal-1.4.0-fedora/configure.in 2006-12-29 20:17:00.000000000 +0100
++++ gdal-1.4.0-fedora.work/configure.in 2007-02-27 23:12:00.000000000 +0100
+@@ -612,6 +612,12 @@
+
+ echo "using internal GeoTIFF code."
+
++elif test "$with_geotiff" = "disabled" ; then
++
++ GEOTIFF_SETTING=disabled
++
++ echo "disabled GeoTIFF code."
++
+ else
+
+ GEOTIFF_SETTING=external
+diff -Nru gdal-1.4.0-fedora/frmts/formats_list.html gdal-1.4.0-fedora.work/frmts/formats_list.html
+--- gdal-1.4.0-fedora/frmts/formats_list.html 2006-11-02 03:40:47.000000000 +0100
++++ gdal-1.4.0-fedora.work/frmts/formats_list.html 2007-02-27 23:20:18.000000000 +0100
+@@ -157,13 +157,6 @@
+ | --
+ |
+
+-| TIFF / GeoTIFF (.tif)
+- | GTiff
+- | Yes
+- | Yes
+- | 4GiB
+- |
+-
+ | Hierarchical Data Format Release 4 (HDF4)
+ | HDF4
+ | Yes
+@@ -178,13 +171,6 @@
+ | 2GiB
+ |
+
+-| Erdas Imagine (.img)
+- | HFA
+- | Yes
+- | Yes
+- | No limits2
+- |
+-
+ | Vexcel MFF2
+ | HKV
+ | Yes
+@@ -440,12 +426,6 @@
+
+
+
+-2ERDAS Imagine has different file format for
+- large files, where 32-bit pointers cannot be used. Look for details
+- here.
+-
+-
+-
+ $Id: formats_list.html,v 1.36 2006/11/02 02:40:47 fwarmerdam Exp $
+
+
+diff -Nru gdal-1.4.0-fedora/frmts/gdalallregister.cpp gdal-1.4.0-fedora.work/frmts/gdalallregister.cpp
+--- gdal-1.4.0-fedora/frmts/gdalallregister.cpp 2006-11-13 19:39:46.000000000 +0100
++++ gdal-1.4.0-fedora.work/frmts/gdalallregister.cpp 2007-02-27 23:19:51.000000000 +0100
+@@ -177,10 +177,6 @@
+ GDALRegister_NITF();
+ #endif
+
+-#ifdef FRMT_hfa
+- GDALRegister_HFA();
+-#endif
+-
+ #ifdef FRMT_ceos2
+ GDALRegister_SAR_CEOS();
+ #endif
+diff -Nru gdal-1.4.0-fedora/frmts/makefile.vc gdal-1.4.0-fedora.work/frmts/makefile.vc
+--- gdal-1.4.0-fedora/frmts/makefile.vc 2006-11-02 04:12:45.000000000 +0100
++++ gdal-1.4.0-fedora.work/frmts/makefile.vc 2007-02-27 23:19:46.000000000 +0100
+@@ -1,7 +1,7 @@
+
+ GDAL_ROOT = ..
+
+-EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas -DFRMT_hfa -DFRMT_gtiff\
++EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas \
+ -DFRMT_sdts -DFRMT_raw -DFRMT_gxf -DFRMT_ceos2 -DFRMT_png \
+ -DFRMT_dted -DFRMT_mem -DFRMT_jdem -DFRMT_gif \
+ -DFRMT_envisat -DFRMT_aaigrid -DFRMT_usgsdem -DFRMT_l1b \
+diff -Nru gdal-1.4.0-fedora/frmts/mrsid/makefile.vc gdal-1.4.0-fedora.work/frmts/mrsid/makefile.vc
+--- gdal-1.4.0-fedora/frmts/mrsid/makefile.vc 2006-09-19 20:30:38.000000000 +0200
++++ gdal-1.4.0-fedora.work/frmts/mrsid/makefile.vc 2007-02-27 23:12:00.000000000 +0100
+@@ -1,7 +1,7 @@
+
+ OBJ = mrsiddataset.obj
+
+-EXTRAFLAGS = $(MRSID_INCLUDE) -I..\gtiff\libgeotiff $(MRSID_FLAGS)
++EXTRAFLAGS = $(MRSID_INCLUDE) $(MRSID_FLAGS)
+
+ GDAL_ROOT = ..\..
+
+diff -Nru gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.0-fedora.work/gcore/gdaldefaultoverviews.cpp
+--- gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp 2006-11-28 13:57:51.000000000 +0100
++++ gdal-1.4.0-fedora.work/gcore/gdaldefaultoverviews.cpp 2007-02-27 23:56:09.000000000 +0100
+@@ -388,31 +388,6 @@
+ /* produce the imagery. */
+ /* -------------------------------------------------------------------- */
+
+-#ifndef WIN32CE
+-
+- if( bOvrIsAux )
+- {
+- eErr = HFAAuxBuildOverviews( osOvrFilename, poDS, &poODS,
+- nBands, panBandList,
+- nNewOverviews, panNewOverviewList,
+- pszResampling,
+- pfnProgress, pProgressData );
+-
+- int j;
+-
+- for( j = 0; j < nOverviews; j++ )
+- {
+- if( panOverviewList[j] > 0 )
+- panOverviewList[j] *= -1;
+- }
+- }
+-
+-/* -------------------------------------------------------------------- */
+-/* Build new overviews - TIFF. Close TIFF files while we */
+-/* operate on it. */
+-/* -------------------------------------------------------------------- */
+- else
+-#endif /* WIN32CE */
+ {
+ if( poODS != NULL )
+ {
+@@ -420,10 +395,6 @@
+ poODS = NULL;
+ }
+
+- eErr = GTIFFBuildOverviews( osOvrFilename, nBands, pahBands,
+- nNewOverviews, panNewOverviewList,
+- pszResampling, pfnProgress, pProgressData );
+-
+ if( eErr == CE_None )
+ {
+ poODS = (GDALDataset *) GDALOpen( osOvrFilename, GA_Update );
+diff -Nru gdal-1.4.0-fedora/gcore/gdal_frmts.h gdal-1.4.0-fedora.work/gcore/gdal_frmts.h
+--- gdal-1.4.0-fedora/gcore/gdal_frmts.h 2006-11-12 20:59:30.000000000 +0100
++++ gdal-1.4.0-fedora.work/gcore/gdal_frmts.h 2007-02-27 23:23:45.000000000 +0100
+@@ -108,10 +108,8 @@
+
+ CPL_C_START
+ void CPL_DLL GDALRegister_GDB(void);
+-void CPL_DLL GDALRegister_GTiff(void);
+ void CPL_DLL GDALRegister_GXF(void);
+ void CPL_DLL GDALRegister_OGDI(void);
+-void CPL_DLL GDALRegister_HFA(void);
+ void CPL_DLL GDALRegister_AAIGrid(void);
+ void CPL_DLL GDALRegister_AIGrid(void);
+ void CPL_DLL GDALRegister_AIGrid2(void);
+diff -Nru gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.0-fedora.work/gcore/gdaljp2metadata.cpp
+--- gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp 2006-07-21 17:23:01.000000000 +0200
++++ gdal-1.4.0-fedora.work/gcore/gdaljp2metadata.cpp 2007-02-27 23:12:00.000000000 +0100
+@@ -85,13 +85,13 @@
+ 0xA7,0xAE,0xD6,0x8E,0x34,0x45,0x18,0x09 };
+
+ CPL_C_START
+-CPLErr CPL_DLL GTIFMemBufFromWkt( const char *pszWKT,
++/*CPLErr CPL_DLL GTIFMemBufFromWkt( const char *pszWKT,
+ const double *padfGeoTransform,
+ int nGCPCount, const GDAL_GCP *pasGCPList,
+ int *pnSize, unsigned char **ppabyBuffer );
+ CPLErr CPL_DLL GTIFWktFromMemBuf( int nSize, unsigned char *pabyBuffer,
+ char **ppszWKT, double *padfGeoTransform,
+- int *pnGCPCount, GDAL_GCP **ppasGCPList );
++ int *pnGCPCount, GDAL_GCP **ppasGCPList );*/
+ CPL_C_END
+
+ /************************************************************************/
+@@ -336,13 +336,13 @@
+ /* -------------------------------------------------------------------- */
+ int bSuccess = TRUE;
+
+- if( GTIFWktFromMemBuf( nGeoTIFFSize, pabyGeoTIFFData,
++/* if( GTIFWktFromMemBuf( nGeoTIFFSize, pabyGeoTIFFData,
+ &pszProjection, adfGeoTransform,
+ &nGCPCount, &pasGCPList ) != CE_None )
+ {
+ bSuccess = FALSE;
+ }
+-
++*/
+ if( pszProjection == NULL || strlen(pszProjection) == 0 )
+ bSuccess = FALSE;
+
+@@ -764,9 +764,10 @@
+ int nGTBufSize = 0;
+ unsigned char *pabyGTBuf = NULL;
+
+- if( GTIFMemBufFromWkt( pszProjection, adfGeoTransform,
++/* if( GTIFMemBufFromWkt( pszProjection, adfGeoTransform,
+ nGCPCount, pasGCPList,
+ &nGTBufSize, &pabyGTBuf ) != CE_None )
++*/
+ return NULL;
+
+ if( nGTBufSize == 0 )
+diff -Nru gdal-1.4.0-fedora/gcore/gdal_priv.h gdal-1.4.0-fedora.work/gcore/gdal_priv.h
+--- gdal-1.4.0-fedora/gcore/gdal_priv.h 2006-11-28 13:56:53.000000000 +0100
++++ gdal-1.4.0-fedora.work/gcore/gdal_priv.h 2007-02-27 23:55:04.000000000 +0100
+@@ -700,26 +700,6 @@
+
+ CPL_C_START
+
+-#ifndef WIN32CE
+-
+-CPLErr CPL_DLL
+-HFAAuxBuildOverviews( const char *pszOvrFilename, GDALDataset *poParentDS,
+- GDALDataset **ppoDS,
+- int nBands, int *panBandList,
+- int nNewOverviews, int *panNewOverviewList,
+- const char *pszResampling,
+- GDALProgressFunc pfnProgress,
+- void *pProgressData );
+-
+-#endif /* WIN32CE */
+-
+-CPLErr CPL_DLL
+-GTIFFBuildOverviews( const char * pszFilename,
+- int nBands, GDALRasterBand **papoBandList,
+- int nOverviews, int * panOverviewList,
+- const char * pszResampling,
+- GDALProgressFunc pfnProgress, void * pProgressData );
+-
+ CPLErr CPL_DLL
+ GDALDefaultBuildOverviews( GDALDataset *hSrcDS, const char * pszBasename,
+ const char * pszResampling,
+diff -Nru gdal-1.4.0-fedora/GDALmake.opt.in gdal-1.4.0-fedora.work/GDALmake.opt.in
+--- gdal-1.4.0-fedora/GDALmake.opt.in 2006-12-05 03:18:11.000000000 +0100
++++ gdal-1.4.0-fedora.work/GDALmake.opt.in 2007-02-27 23:19:12.000000000 +0100
+@@ -311,7 +311,7 @@
+ # and their uppercase form should be the format portion of the
+ # format registration entry point. eg. gdb -> GDALRegister_GDB().
+ #
+-GDAL_FORMATS = gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm \
++GDAL_FORMATS = gxf aigrid aaigrid ceos ceos2 iso8211 xpm \
+ sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \
+ nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi \
+ idrisi \
+diff -Nru gdal-1.4.0-fedora/ogr/Makefile gdal-1.4.0-fedora.work/ogr/Makefile
+--- gdal-1.4.0-fedora/ogr/Makefile 2006-11-18 21:37:43.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/Makefile 2007-02-27 23:12:00.000000000 +0100
+@@ -2,7 +2,7 @@
+ LINKFLAGS = /Zi /MTd
+ EXTRAFLAGS = -I$(MSDASDK)\inc \
+ -I"$(VCDIR)\ATL\Include" -DWIN32 \
+- -I. -Iogrsf_frmts -I..\frmts\gtiff\libgeotiff \
++ -I. -Iogrsf_frmts \
+ $(PROJ_FLAGS) $(PROJ_INCLUDE) $(GEOS_CFLAGS)
+
+ GDAL_ROOT = ..
+diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/generic/ogrregisterall.cpp
+--- gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2006-11-28 16:34:41.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-02-27 23:54:17.000000000 +0100
+@@ -160,9 +160,6 @@
+ #ifdef S57_ENABLED
+ RegisterOGRS57();
+ #endif
+-#ifdef DGN_ENABLED
+- RegisterOGRDGN();
+-#endif
+ #ifdef VRT_ENABLED
+ RegisterOGRVRT();
+ #endif
+@@ -184,10 +181,6 @@
+ #ifdef KML_ENABLED
+ RegisterOGRKML();
+ #endif
+-#ifdef ILI_ENABLED
+- RegisterOGRILI1();
+- RegisterOGRILI2();
+-#endif
+ #ifdef SQLITE_ENABLED
+ RegisterOGRSQLite();
+ #endif
+diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/GNUmakefile gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/GNUmakefile
+--- gdal-1.4.0-fedora/ogr/ogrsf_frmts/GNUmakefile 2006-11-28 16:34:41.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/GNUmakefile 2007-02-27 23:46:34.000000000 +0100
+@@ -1,7 +1,7 @@
+
+ include ../../GDALmake.opt
+
+-SUBDIRS-yes := generic shape ntf sdts tiger s57 mitab dgn \
++SUBDIRS-yes := generic shape ntf sdts tiger s57 mitab \
+ gml kml avc rec mem vrt csv
+ SUBDIRS-$(HAVE_OGDI) += ogdi
+ SUBDIRS-$(HAVE_OCI) += oci
+@@ -12,7 +12,6 @@
+ SUBDIRS-$(ODBC_SETTING) += odbc pgeo
+ SUBDIRS-$(HAVE_SQLITE) += sqlite
+ SUBDIRS-$(HAVE_GRASS) += grass
+-SUBDIRS-$(HAVE_XERCES) += ili
+ SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
+ SUBDIRS-$(HAVE_SDE) += sde
+ SUBDIRS-$(HAVE_IDB) += idb
+diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/Makefile gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/Makefile
+--- gdal-1.4.0-fedora/ogr/ogrsf_frmts/Makefile 2006-11-28 17:19:47.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/Makefile 2007-02-27 23:46:48.000000000 +0100
+@@ -1,6 +1,6 @@
+ GDAL_ROOT = ..\..
+
+-DIRLIST = generic shape ntf sdts tiger s57 dgn mitab gml kml avc \
++DIRLIST = generic shape ntf sdts tiger s57 mitab gml kml avc \
+ rec mem vrt csv \
+ $(OGDIDIR) $(FMEDIR) $(OCIDIR) $(PG_DIR) $(DWGDIR) \
+ $(ODBCDIR) $(SQLITE_DIR) $(MYSQL_DIR) $(ILI_DIR) \
+@@ -53,11 +53,6 @@
+ MYSQL_OBJ = mysql\*.obj
+ !ENDIF
+
+-!IFDEF ILI_ENABLED
+-ILI_DIR = ili
+-ILI_OBJ = ili\*.obj ili\iom\*.obj
+-!ENDIF
+-
+ !IFDEF INFORMIXDIR
+ IDB_DIR = idb
+ IDB_OBJ = idb\*.obj
+@@ -71,7 +66,7 @@
+
+ lib /out:ogrsf_frmts.lib generic\*.obj shape\*.obj ntf\*.obj \
+ sdts\*.obj s57\*.obj tiger\*.obj gml\*.obj \
+- mitab\*.obj dgn\*.obj avc\*.obj mem\*.obj \
++ mitab\*.obj avc\*.obj mem\*.obj \
+ vrt\*.obj csv\*.obj rec\*.obj kml\*.obj \
+ $(OGDIOBJ) $(ODBCOBJ) $(SQLITE_OBJ) \
+ $(FMEOBJ) $(OCIOBJ) $(PG_OBJ) $(MYSQL_OBJ) \
+diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogr_formats.html gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogr_formats.html
+--- gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogr_formats.html 2006-12-19 04:40:52.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogr_formats.html 2007-02-27 23:37:55.000000000 +0100
+@@ -85,11 +85,6 @@
+ | Yes
+ |
+
+-| Microstation DGN
+- | Yes
+- | No
+- |
+-
+ | MySQL
+ | No
+ | No
+diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogrsf_frmts.h
+--- gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h 2006-12-13 19:24:45.000000000 +0100
++++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-02-27 23:54:11.000000000 +0100
+@@ -374,7 +374,6 @@
+ void CPL_DLL RegisterOGRPG();
+ void CPL_DLL RegisterOGRMySQL();
+ void CPL_DLL RegisterOGROCI();
+-void CPL_DLL RegisterOGRDGN();
+ void CPL_DLL RegisterOGRGML();
+ void CPL_DLL RegisterOGRKML();
+ void CPL_DLL RegisterOGRAVCBin();
+@@ -385,8 +384,6 @@
+ void CPL_DLL RegisterOGRDODS();
+ void CPL_DLL RegisterOGRSQLite();
+ void CPL_DLL RegisterOGRCSV();
+-void CPL_DLL RegisterOGRILI1();
+-void CPL_DLL RegisterOGRILI2();
+ void CPL_DLL RegisterOGRGRASS();
+ void CPL_DLL RegisterOGRPGeo();
+ void CPL_DLL RegisterOGRDXFDWG();
diff --git a/gdal.spec b/gdal.spec
new file mode 100644
index 0000000..7fee96b
--- /dev/null
+++ b/gdal.spec
@@ -0,0 +1,303 @@
+Name: gdal
+Version: 1.4.0
+Release: 10%{?dist}
+Summary: GIS file format library
+Group: System Environment/Libraries
+License: MIT
+URL: http://gdal.maptools.org
+Source: %{name}-%{version}-fedora.tar.gz
+Patch0: %{name}-buildfix.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libtool swig
+BuildRequires: doxygen tetex-latex ghostscript
+BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
+BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
+BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
+BuildRequires: python-devel >= 2.4 perl-devel >= 5.8 xerces-c-devel
+
+%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
+
+%description
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package devel
+Summary: Development Libraries for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package python
+Summary: Python modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description python
+The GDAL python modules provides support to handle multiple GIS file formats.
+
+%package perl
+Summary: Perl modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description perl
+The GDAL perl modules provides support to handle multiple GIS file formats.
+
+%prep
+%setup -q -n %{name}-%{version}-fedora
+%patch0 -p1 -b .buildfix
+
+# fix wrongly encoded files from tarball
+set +x
+for f in `find . -type f` ; do
+ if file $f | grep -q ISO-8859 ; then
+ set -x
+ iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
+ mv -f ${f}.tmp $f
+ set +x
+ fi
+ if file $f | grep -q CRLF ; then
+ set -x
+ sed -i -e 's|\r||g' $f
+ set +x
+ fi
+done
+set -x
+
+# remove junks
+find . -name ".cvsignore" -exec rm -rf '{}' \;
+
+# fix some exec bits
+chmod -x alg/gdal_tps.cpp
+chmod -x frmts/jpeg/gdalexif.h
+chmod -x ogr/ogrsf_frmts/ogdi/ogrogdi.h
+chmod -x ogr/ogrsf_frmts/ogdi/ogrogdilayer.cpp
+chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidatasource.cpp
+chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
+
+%build
+
+# fix hardcoded issues with cfitso and ogdi
+sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
+sed -i 's|-logdi31|-logdi|g' configure
+
+# append some path for few libs
+export CPPFLAGS="`pkg-config ogdi --cflags`"
+export CPPFLAGS=$CPPFLAGS' -I%{_includedir}/netcdf-3'
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
+export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
+
+%configure \
+ --prefix=%{_prefix} \
+ --includedir=%{_includedir}/%{name}/ \
+ --with-threads \
+ --with-dods-root=%{_libdir} \
+ --with-ogdi=`ogdi-config --libdir` \
+ --with-cfitsio=%{_prefix} \
+ --with-geotiff=disabled \
+ --with-tiff=external \
+ --with-libtiff=external \
+ --with-libz \
+ --with-netcdf \
+ --with-hdf4 \
+ --with-hdf5 \
+ --with-geos \
+ --with-jasper \
+ --with-png \
+ --with-gif \
+ --with-jpeg \
+ --with-odbc \
+ --with-sqlite \
+ --with-mysql \
+ --with-curl \
+ --with-python \
+ --with-perl \
+ --with-xerces \
+ --with-xerces-lib='-lxerces-c -L%{_libdir} -L%{_libdir}/hdf -L%{_libdir}/netcdf-3' \
+ --with-xerces-inc=%{_includedir} \
+ --without-pcraster \
+ --without-grass \
+ --without-libgrass \
+ --enable-shared \
+ --disable-static
+
+# fixup hardcoded wrong compile flags.
+cp GDALmake.opt GDALmake.opt.orig
+sed -e "s/^CFLAGS.*$/CFLAGS=$CFLAGS/" \
+-e "s/^CXXFLAGS.*$/CXXFLAGS=$CXXFLAGS/" \
+-e "s/^FFLAGS.*$/FFLAGS=$FFLAGS/" \
+-e "s/ cfitsio / /" \
+-e "s/-ldap++/-ldap -ldapclient -ldapserver \
+-L\/usr\/lib\/netcdf-3 -L\/usr\/lib\/hdf \
+-L\/usr\/lib64\/netcdf-3 -L\/usr\/lib64\/hdf/" \
+GDALmake.opt.orig > GDALmake.opt
+rm GDALmake.opt.orig
+
+# fixup non-existent lookup dir
+mkdir -p external/lib
+mkdir -p external/include
+
+# WARNING !!!
+# dont use {?_smp_mflags} it break compile
+# use external libtool to avoid hardcoded rpath in libs
+make LIBTOOL=/usr/bin/libtool
+make docs
+
+# make perl modules, disable makefile generate
+pushd swig/perl;
+ perl Makefile.PL; make;
+ echo > Makefile.PL;
+popd
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# fix some perl instalation issue
+sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
+
+make \
+ INST_PREFIX=%{buildroot} \
+ INST_BIN=%{buildroot}%{_bindir} \
+ INST_LIB=%{buildroot}%{_libdir} \
+ INST_INCLUDE=%{buildroot}%{_includedir}/%{name} \
+ INST_DATA=%{buildroot}%{_datadir}/%{name} \
+ INST_MAN=%{buildroot}%{_mandir} \
+ INST_PYMOD=%{buildroot}%{python_sitearch} \
+ PERL_INSTALL_ROOT=%{buildroot} \
+ install
+
+# move perl modules in the right path
+mkdir -p %{buildroot}%{perl_vendorarch}
+mv %{buildroot}%{_libdir}/Geo %{buildroot}%{perl_vendorarch}/
+rm -rf %{buildroot}%{perl_vendorarch}/Geo/GDAL
+mv %{buildroot}%{perl_sitearch}/auto/Geo/* %{buildroot}%{perl_vendorarch}/Geo/
+rm -rf %{buildroot}%{_libdir}/perl5/site_perl %{buildroot}/auto %{buildroot}%{perl_sitelib}
+
+# fix some exec bits
+find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
+chmod -x pymod/samples/*
+
+# build and include more docs
+mkdir -p doc/frmts; find frmts -name "*.html" -exec install -m 644 '{}' doc/frmts/ \;
+mkdir -p doc/ogrsf_frmts; find ogr/ogrsf_frmts -name "*.html" -exec install -m 644 '{}' doc/ogrsf_frmts \;
+pushd doc; doxygen index.dox; popd
+pushd rfc; doxygen *.dox; popd
+pushd rfc/latex; make refman.pdf; popd
+pushd ogr/ogrsf_frmts; doxygen *.dox; popd
+pushd ogr/ogrsf_frmts/latex; make refman.pdf; popd
+pushd swig/perl; doxygen; popd
+pushd swig/perl/latex; make refman.pdf; popd
+
+# cleanup junks
+for junk in {*.a,*.la,*.bs,.exists,.packlist,.cvsignore} ; do
+find ${RPM_BUILD_ROOT} -name "$junk" -exec rm -rf '{}' \;
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc NEWS PROVENANCE.TXT-mainstream PROVENANCE.TXT-fedora COMMITERS
+%doc doc/frmts doc/ogrsf_frmts doc/html
+%{_bindir}/gdal_contour
+%{_bindir}/gdal_rasterize
+%{_bindir}/gdal_translate
+%{_bindir}/gdaladdo
+%{_bindir}/gdalinfo
+%{_bindir}/gdaltindex
+%{_bindir}/gdalwarp
+%{_bindir}/ogr*
+%{_libdir}/*.so.*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%{_mandir}/man1/gdaladdo.1.gz
+%{_mandir}/man1/gdalinfo.1.gz
+%{_mandir}/man1/gdaltindex.1.gz
+%{_mandir}/man1/gdalwarp.1.gz
+%{_mandir}/man1/gdal_contour.1.gz
+%{_mandir}/man1/gdal_rasterize.1.gz
+%{_mandir}/man1/gdal_translate.1.gz
+%{_mandir}/man1/gdal_utilities.1.gz
+%{_mandir}/man1/ogr*.1.gz
+
+%files devel
+%defattr(-,root,root,-)
+%doc html ogr/html rfc/html rfc/latex/refman.pdf
+%doc ogr/wcts/html ogr/ogrsf_frmts/html
+%doc ogr/ogrsf_frmts/latex/refman.pdf
+%{_bindir}/%{name}-config
+%{_includedir}/%{name}/*.h
+%{_libdir}/*.so
+%{_mandir}/man1/%{name}-config*
+
+%files python
+%defattr(-,root,root,-)
+%doc pymod/samples
+%exclude %{_bindir}/*.py?
+%attr(0755,root,root) %{_bindir}/*.py
+%exclude %{python_sitearch}/*.la
+%{python_sitearch}/*
+%{_mandir}/man1/pct2rgb.1.gz
+%{_mandir}/man1/rgb2pct.1.gz
+%{_mandir}/man1/gdal_merge.1.gz
+
+%files perl
+%defattr(-,root,root,-)
+%doc swig/perl/html swig/perl/latex/refman.pdf swig/perl/README
+%{perl_vendorarch}/*
+
+%changelog
+* Thu Mar 1 2007 Balint Cristian 1.4.0-10
+- fix mock build
+- require perl-devel
+
+* Tue Feb 27 2007 Balint Cristian 1.4.0-9
+- repack tarball for fedora, explain changes in PROVENANCE-fedora,
+ license should be clean now according to PROVENANCE-* files
+- require ogdi since is aviable now
+- drop nogeotiff patch, in -fedora tarball geotiff is removed
+- man page triage over subpackages
+- exclude python byte compiled objects
+- fix some source C file exec bits
+
+* Sat Feb 24 2007 Balint Cristian 1.4.0-8
+- fix more things in spec
+- include more docs
+
+* Wed Feb 21 2007 Balint Cristian 1.4.0-7
+- libtool in requirement list for build
+
+* Wed Feb 21 2007 Balint Cristian 1.4.0-6
+- use external libtool to avoid rpath usage
+- include more docs
+
+* Mon Feb 12 2007 Balint Cristian 1.4.0-5
+- use rm -rf for removal of dirs.
+- fix require lists
+
+* Mon Feb 12 2007 Balint Cristian 1.4.0-4
+- fix doxygen buildreq
+- make sure r-path is fine.
+
+* Sat Feb 10 2007 Balint Cristian 1.4.0-3
+- disable now ogdi (pending ogdi submission).
+
+* Sat Feb 10 2007 Balint Cristian 1.4.0-2
+- more fixups for lib paths
+
+* Fri Feb 09 2007 Balint Cristian 1.4.0-1
+- first pack for fedora extras
+- disable geotiff (untill license sorted out)
+- enable all options aviable from extras
+- pack perl and python modules
+- kill r-path from libs
+- pack all docs posible
diff --git a/sources b/sources
index e69de29..c213bc8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+757ea87048931beb4d1b068e2835732c gdal-1.4.0-fedora.tar.gz
From ba23fc89ef8f699d6bfdce7609c343b750b166b3 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 14 Mar 2007 17:09:52 +0000
Subject: [PATCH 002/541] auto-import gdal-1.4.0-11 on branch devel from
gdal-1.4.0-11.src.rpm
---
gdal.spec | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 7fee96b..738ac1b 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -14,7 +14,14 @@ BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
-BuildRequires: python-devel >= 2.4 perl-devel >= 5.8 xerces-c-devel
+BuildRequires: python-devel >= 2.4 xerces-c-devel
+
+%if "%{?dist}" == "fc7"
+BuildRequires: perl-devel >= 5.8
+%elsif
+BuildRequires: perl
+%endif
+
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
@@ -256,6 +263,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Mar 14 2007 Balint Cristian 1.4.0-11
+* fix fc6 fc5 builds
+
* Thu Mar 1 2007 Balint Cristian 1.4.0-10
- fix mock build
- require perl-devel
From 9d6d97b93e0e6d6929db94cc047c3470f5a1278c Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 14 Mar 2007 17:18:37 +0000
Subject: [PATCH 003/541] auto-import gdal-1.4.0-12 on branch devel from
gdal-1.4.0-12.src.rpm
---
gdal.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 738ac1b..9f62896 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -16,13 +16,12 @@ BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
-%if "%{?dist}" == "fc7"
+%if "%{?dist}" == ".fc7"
BuildRequires: perl-devel >= 5.8
%elsif
BuildRequires: perl
%endif
-
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%description
@@ -263,8 +262,11 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Mar 14 2007 Balint Cristian 1.4.0-12
+- add missing dot from dist string in specfile
+
* Wed Mar 14 2007 Balint Cristian 1.4.0-11
-* fix fc6 fc5 builds
+- fix fc6 fc5 builds
* Thu Mar 1 2007 Balint Cristian 1.4.0-10
- fix mock build
From 23f701442994c1d8ef43b0ea4d4e495b175c853a Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 14 Mar 2007 17:25:19 +0000
Subject: [PATCH 004/541] auto-import gdal-1.4.0-13 on branch devel from
gdal-1.4.0-13.src.rpm
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 9f62896..f781190 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -18,7 +18,7 @@ BuildRequires: python-devel >= 2.4 xerces-c-devel
%if "%{?dist}" == ".fc7"
BuildRequires: perl-devel >= 5.8
-%elsif
+%elseif
BuildRequires: perl
%endif
@@ -262,6 +262,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Mar 14 2007 Balint Cristian 1.4.0-13
+- fix typo in specfile
+
* Wed Mar 14 2007 Balint Cristian 1.4.0-12
- add missing dot from dist string in specfile
From 8cc62fde4063144bb028808994469b9cccc34f01 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 15 Mar 2007 14:30:56 +0000
Subject: [PATCH 005/541] auto-import gdal-1.4.0-14 on branch devel from
gdal-1.4.0-14.src.rpm
---
gdal.pc | 10 ++++++++++
gdal.spec | 21 +++++++++++++--------
2 files changed, 23 insertions(+), 8 deletions(-)
create mode 100644 gdal.pc
diff --git a/gdal.pc b/gdal.pc
new file mode 100644
index 0000000..9046ec1
--- /dev/null
+++ b/gdal.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: GDAL
+Description: GIS file format library
+Version: 1.4.0
+Libs: -L${libdir}
+Cflags: -I%{includedir}/gdal
\ No newline at end of file
diff --git a/gdal.spec b/gdal.spec
index f781190..09d3ba5 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,11 +1,12 @@
Name: gdal
Version: 1.4.0
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://gdal.maptools.org
-Source: %{name}-%{version}-fedora.tar.gz
+Source0: %{name}-%{version}-fedora.tar.gz
+Source1: %{name}.pc
Patch0: %{name}-buildfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig
@@ -15,12 +16,7 @@ BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-dev
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
-
-%if "%{?dist}" == ".fc7"
-BuildRequires: perl-devel >= 5.8
-%elseif
-BuildRequires: perl
-%endif
+BuildRequires: perl(ExtUtils::MakeMaker)
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
@@ -184,6 +180,10 @@ rm -rf %{buildroot}%{perl_vendorarch}/Geo/GDAL
mv %{buildroot}%{perl_sitearch}/auto/Geo/* %{buildroot}%{perl_vendorarch}/Geo/
rm -rf %{buildroot}%{_libdir}/perl5/site_perl %{buildroot}/auto %{buildroot}%{perl_sitelib}
+# install pkgconfig file
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/
+
# fix some exec bits
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
chmod -x pymod/samples/*
@@ -243,6 +243,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/%{name}-config
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}-config*
%files python
@@ -262,6 +263,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Thu Mar 15 2007 Balint Cristian 1.4.0-14
+- require perl(ExtUtils::MakeMaker) instead ?dist checking
+- add pkgconfig file
+
* Wed Mar 14 2007 Balint Cristian 1.4.0-13
- fix typo in specfile
From a984b27e0083d005c9acc27b83faaa944cbddb63 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 15 Mar 2007 14:55:43 +0000
Subject: [PATCH 006/541] auto-import gdal-1.4.0-15 on branch devel from
gdal-1.4.0-15.src.rpm
---
gdal.pc | 10 ----------
gdal.spec | 27 ++++++++++++++++++++++-----
2 files changed, 22 insertions(+), 15 deletions(-)
delete mode 100644 gdal.pc
diff --git a/gdal.pc b/gdal.pc
deleted file mode 100644
index 9046ec1..0000000
--- a/gdal.pc
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=/usr
-exec_prefix=/usr
-libdir=/usr/lib
-includedir=/usr/include
-
-Name: GDAL
-Description: GIS file format library
-Version: 1.4.0
-Libs: -L${libdir}
-Cflags: -I%{includedir}/gdal
\ No newline at end of file
diff --git a/gdal.spec b/gdal.spec
index 09d3ba5..87edeaa 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,15 +1,14 @@
Name: gdal
Version: 1.4.0
-Release: 14%{?dist}
+Release: 15%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://gdal.maptools.org
-Source0: %{name}-%{version}-fedora.tar.gz
-Source1: %{name}.pc
+Source: %{name}-%{version}-fedora.tar.gz
Patch0: %{name}-buildfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libtool swig
+BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
@@ -26,6 +25,7 @@ The GDAL library provides support to handle multiple GIS file formats.
%package devel
Summary: Development Libraries for the GDAL file format library
Group: Development/Libraries
+Requires: pkgconfig
Requires: %{name} = %{version}-%{release}
%description devel
@@ -181,8 +181,21 @@ mv %{buildroot}%{perl_sitearch}/auto/Geo/* %{buildroot}%{perl_vendorarch}/Geo/
rm -rf %{buildroot}%{_libdir}/perl5/site_perl %{buildroot}/auto %{buildroot}%{perl_sitelib}
# install pkgconfig file
+cat > %{name}.pc < 1.4.0-15
+- require pkgconfig
+- generate pkgconfig from spec instead
+
* Thu Mar 15 2007 Balint Cristian 1.4.0-14
- require perl(ExtUtils::MakeMaker) instead ?dist checking
- add pkgconfig file
From efbf002f4c879603b155403977dfe65c06d24810 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 16 Mar 2007 15:40:07 +0000
Subject: [PATCH 007/541] auto-import gdal-1.4.0-16 on branch devel from
gdal-1.4.0-16.src.rpm
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 87edeaa..ce88711 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -190,7 +190,7 @@ includedir=%{_includedir}
Name: GDAL
Description: GIS file format library
Version: %{version}
-Libs: -L\${libdir}
+Libs: -L\${libdir} -lgdal
Cflags: -I\${includedir}/%{name}
EOF
@@ -276,6 +276,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Mar 16 2007 Balint Cristian 1.4.0-16
+- fix gdal flag from pkgconfig file
+
* Thu Mar 15 2007 Balint Cristian 1.4.0-15
- require pkgconfig
- generate pkgconfig from spec instead
From 879f7c0576b450af632d514efac3dd022051a826 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 20 Mar 2007 23:05:23 +0000
Subject: [PATCH 008/541] auto-import gdal-1.4.0-17 on branch devel from
gdal-1.4.0-17.src.rpm
---
gdal.spec | 29 ++++++++++++++++++-----------
1 file changed, 18 insertions(+), 11 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index ce88711..1f6330c 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -11,9 +11,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
-BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
-BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
+BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel grass-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -82,12 +82,18 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
%build
# fix hardcoded issues with cfitso and ogdi
+sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
+sed -i 's|-L\$with_netcdf -L\with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
+sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
+sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
+sed -i 's|-L\$with_grass\/lib||g' configure
sed -i 's|-logdi31|-logdi|g' configure
# append some path for few libs
export CPPFLAGS="`pkg-config ogdi --cflags`"
-export CPPFLAGS=$CPPFLAGS' -I%{_includedir}/netcdf-3'
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CFLAGS="$RPM_OPT_FLAGS"
@@ -98,6 +104,8 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
--with-threads \
+ --with-grass=%{_prefix} \
+ --with-libgrass \
--with-dods-root=%{_libdir} \
--with-ogdi=`ogdi-config --libdir` \
--with-cfitsio=%{_prefix} \
@@ -120,11 +128,9 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--with-python \
--with-perl \
--with-xerces \
- --with-xerces-lib='-lxerces-c -L%{_libdir} -L%{_libdir}/hdf -L%{_libdir}/netcdf-3' \
+ --with-xerces-lib='-lxerces-c -L%{_libdir}/hdf -L%{_libdir}/netcdf-3' \
--with-xerces-inc=%{_includedir} \
--without-pcraster \
- --without-grass \
- --without-libgrass \
--enable-shared \
--disable-static
@@ -134,14 +140,11 @@ sed -e "s/^CFLAGS.*$/CFLAGS=$CFLAGS/" \
-e "s/^CXXFLAGS.*$/CXXFLAGS=$CXXFLAGS/" \
-e "s/^FFLAGS.*$/FFLAGS=$FFLAGS/" \
-e "s/ cfitsio / /" \
--e "s/-ldap++/-ldap -ldapclient -ldapserver \
--L\/usr\/lib\/netcdf-3 -L\/usr\/lib\/hdf \
--L\/usr\/lib64\/netcdf-3 -L\/usr\/lib64\/hdf/" \
+-e "s/-ldap++/-ldap -ldapclient -ldapserver/" \
GDALmake.opt.orig > GDALmake.opt
rm GDALmake.opt.orig
# fixup non-existent lookup dir
-mkdir -p external/lib
mkdir -p external/include
# WARNING !!!
@@ -276,6 +279,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Tue Mar 20 2007 Balint Cristian 1.4.0-17
+- enable build against grass
+- fix incorrect use of 32/64 library paths lookups
+
* Fri Mar 16 2007 Balint Cristian 1.4.0-16
- fix gdal flag from pkgconfig file
From 5c3f6dd92f5e5518d650b12652949231203611e9 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 21 Mar 2007 17:38:40 +0000
Subject: [PATCH 009/541] auto-import gdal-1.4.0-18 on branch devel from
gdal-1.4.0-18.src.rpm
---
gdal.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 1f6330c..89c21a0 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -141,6 +141,7 @@ sed -e "s/^CFLAGS.*$/CFLAGS=$CFLAGS/" \
-e "s/^FFLAGS.*$/FFLAGS=$FFLAGS/" \
-e "s/ cfitsio / /" \
-e "s/-ldap++/-ldap -ldapclient -ldapserver/" \
+-e "s/-L\$(INST_LIB) -lgdal/-lgdal/" \
GDALmake.opt.orig > GDALmake.opt
rm GDALmake.opt.orig
@@ -279,6 +280,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Mar 21 2007 Balint Cristian 1.4.0-18
+- remove system lib path from gdal-config --libs, its implicit
+
* Tue Mar 20 2007 Balint Cristian 1.4.0-17
- enable build against grass
- fix incorrect use of 32/64 library paths lookups
From f9c43019f05401a907b9b957727976f13348a0d4 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Mon, 2 Apr 2007 11:06:47 +0000
Subject: [PATCH 010/541] auto-import gdal-1.4.0-19 on branch devel from
gdal-1.4.0-19.src.rpm
---
gdal.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 89c21a0..517955f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -84,7 +84,8 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
# fix hardcoded issues with cfitso and ogdi
sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
-sed -i 's|-L\$with_netcdf -L\with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$DODS_LIB -ldap++|-ldap++|g' configure
sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
@@ -258,6 +259,7 @@ rm -rf $RPM_BUILD_ROOT
%doc ogr/wcts/html ogr/ogrsf_frmts/html
%doc ogr/ogrsf_frmts/latex/refman.pdf
%{_bindir}/%{name}-config
+%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
@@ -280,6 +282,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Mon Apr 02 2007 Balint Cristian 1.4.0-19
+- own gdal includedir
+- fix one more spurious lib path
+
* Wed Mar 21 2007 Balint Cristian 1.4.0-18
- remove system lib path from gdal-config --libs, its implicit
From e40701f92cdf70b7a8afb903e94534e13cdb8207 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 20 Apr 2007 11:03:36 +0000
Subject: [PATCH 011/541] auto-import gdal-1.4.0-20.fc7 on branch devel from
gdal-1.4.0-20.fc7.src.rpm
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 517955f..cc1b623 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -282,6 +282,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Apr 20 2007 Balint Cristian 1.4.0-20
+- rebuild against latest fedora upstream tree.
+
* Mon Apr 02 2007 Balint Cristian 1.4.0-19
- own gdal includedir
- fix one more spurious lib path
From 281230dc47f3e6420ca395add40ebbae1e96ba07 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 20 Apr 2007 13:30:54 +0000
Subject: [PATCH 012/541] exclude some docs. doxygen segfault upstream with
those. Modified Files: import.log devel/gdal.spec
---
gdal.spec | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index cc1b623..3e634bd 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 20%{?dist}
+Release: 21%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -209,11 +209,13 @@ chmod -x pymod/samples/*
# build and include more docs
mkdir -p doc/frmts; find frmts -name "*.html" -exec install -m 644 '{}' doc/frmts/ \;
mkdir -p doc/ogrsf_frmts; find ogr/ogrsf_frmts -name "*.html" -exec install -m 644 '{}' doc/ogrsf_frmts \;
-pushd doc; doxygen index.dox; popd
+
+# some commented out are broken for now
+#pushd doc; doxygen index.dox; popd
pushd rfc; doxygen *.dox; popd
pushd rfc/latex; make refman.pdf; popd
-pushd ogr/ogrsf_frmts; doxygen *.dox; popd
-pushd ogr/ogrsf_frmts/latex; make refman.pdf; popd
+#pushd ogr/ogrsf_frmts; doxygen *.dox; popd
+#pushd ogr/ogrsf_frmts/latex; make refman.pdf; popd
pushd swig/perl; doxygen; popd
pushd swig/perl/latex; make refman.pdf; popd
@@ -282,6 +284,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Apr 20 2007 Balint Cristian 1.4.0-21
+- exclude some docs, doxygen segfault with those now upstream.
+
* Fri Apr 20 2007 Balint Cristian 1.4.0-20
- rebuild against latest fedora upstream tree.
From 2a604088a18c7f548238a435945d9b472a1ff6e9 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 20 Apr 2007 14:03:18 +0000
Subject: [PATCH 013/541] and olso dont attempt pack missing docs. Modified
Files: import.log devel/gdal.spec
---
gdal.spec | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 3e634bd..b316276 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.0
-Release: 21%{?dist}
+Release: 22%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -233,7 +233,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc NEWS PROVENANCE.TXT-mainstream PROVENANCE.TXT-fedora COMMITERS
-%doc doc/frmts doc/ogrsf_frmts doc/html
+%doc doc/frmts
+#%doc doc/ogrsf_frmts doc/html
%{_bindir}/gdal_contour
%{_bindir}/gdal_rasterize
%{_bindir}/gdal_translate
@@ -258,8 +259,9 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc html ogr/html rfc/html rfc/latex/refman.pdf
-%doc ogr/wcts/html ogr/ogrsf_frmts/html
-%doc ogr/ogrsf_frmts/latex/refman.pdf
+%doc ogr/wcts/html
+#%doc ogr/ogrsf_frmts/html
+#%doc ogr/ogrsf_frmts/latex/refman.pdf
%{_bindir}/%{name}-config
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
@@ -284,6 +286,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Apr 20 2007 Balint Cristian 1.4.0-22
+- and olso dont attempt pack missing docs.
+
* Fri Apr 20 2007 Balint Cristian 1.4.0-21
- exclude some docs, doxygen segfault with those now upstream.
From 60d7b554f8e729e4c6df70f9cf65c7ae119a38cc Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 9 May 2007 17:58:46 +0000
Subject: [PATCH 014/541] new upstream release. disable temporary grass-devel
requirement untill find a resonable solution for gdal-grass egg-chicken
dep problem. Modified Files: import.log devel/.cvsignore
devel/gdal-buildfix.patch devel/gdal.spec devel/sources
---
.cvsignore | 2 +-
gdal-buildfix.patch | 158 ++++++++++++++++++++++----------------------
gdal.spec | 13 ++--
sources | 2 +-
4 files changed, 90 insertions(+), 85 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 055116a..43e66a6 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-gdal-1.4.0-fedora.tar.gz
+gdal-1.4.1-fedora.tar.gz
diff --git a/gdal-buildfix.patch b/gdal-buildfix.patch
index d4ae1de..81b8e15 100644
--- a/gdal-buildfix.patch
+++ b/gdal-buildfix.patch
@@ -1,6 +1,6 @@
-diff -Nru gdal-1.4.0-fedora/configure gdal-1.4.0-fedora.work/configure
---- gdal-1.4.0-fedora/configure 2006-12-29 20:17:00.000000000 +0100
-+++ gdal-1.4.0-fedora.work/configure 2007-02-27 23:12:00.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/configure gdal-1.4.1-fedora-patched/configure
+--- gdal-1.4.1-fedora/configure 2007-04-10 17:16:54.000000000 +0200
++++ gdal-1.4.1-fedora-patched/configure 2007-05-09 19:37:21.000000000 +0200
@@ -23371,6 +23371,12 @@
echo "using internal GeoTIFF code."
@@ -14,9 +14,9 @@ diff -Nru gdal-1.4.0-fedora/configure gdal-1.4.0-fedora.work/configure
else
GEOTIFF_SETTING=external
-diff -Nru gdal-1.4.0-fedora/configure.in gdal-1.4.0-fedora.work/configure.in
---- gdal-1.4.0-fedora/configure.in 2006-12-29 20:17:00.000000000 +0100
-+++ gdal-1.4.0-fedora.work/configure.in 2007-02-27 23:12:00.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/configure.in gdal-1.4.1-fedora-patched/configure.in
+--- gdal-1.4.1-fedora/configure.in 2007-04-10 17:16:55.000000000 +0200
++++ gdal-1.4.1-fedora-patched/configure.in 2007-05-09 19:37:21.000000000 +0200
@@ -612,6 +612,12 @@
echo "using internal GeoTIFF code."
@@ -30,24 +30,10 @@ diff -Nru gdal-1.4.0-fedora/configure.in gdal-1.4.0-fedora.work/configure.in
else
GEOTIFF_SETTING=external
-diff -Nru gdal-1.4.0-fedora/frmts/formats_list.html gdal-1.4.0-fedora.work/frmts/formats_list.html
---- gdal-1.4.0-fedora/frmts/formats_list.html 2006-11-02 03:40:47.000000000 +0100
-+++ gdal-1.4.0-fedora.work/frmts/formats_list.html 2007-02-27 23:20:18.000000000 +0100
-@@ -157,13 +157,6 @@
- | --
- |
-
--| TIFF / GeoTIFF (.tif)
-- | GTiff
-- | Yes
-- | Yes
-- | 4GiB
-- |
--
- | Hierarchical Data Format Release 4 (HDF4)
- | HDF4
- | Yes
-@@ -178,13 +171,6 @@
+diff -Nru gdal-1.4.1-fedora/frmts/formats_list.html gdal-1.4.1-fedora-patched/frmts/formats_list.html
+--- gdal-1.4.1-fedora/frmts/formats_list.html 2007-04-10 17:16:26.000000000 +0200
++++ gdal-1.4.1-fedora-patched/frmts/formats_list.html 2007-05-09 19:38:52.000000000 +0200
+@@ -178,13 +178,6 @@
| 2GiB
|
@@ -61,6 +47,20 @@ diff -Nru gdal-1.4.0-fedora/frmts/formats_list.html gdal-1.4.0-fedora.work/frmts
| Vexcel MFF2
| HKV
| Yes
+@@ -262,13 +255,6 @@
+ | --
+ |
+
+-| Erdas 7.x .LAN and .GIS
+- | LAN
+- | No
+- | Yes
+- | 2GB
+- |
+-
+ | Daylon Leveller Heightfield
+ | Leveller
+ | Yes
@@ -440,12 +426,6 @@
@@ -71,13 +71,13 @@ diff -Nru gdal-1.4.0-fedora/frmts/formats_list.html gdal-1.4.0-fedora.work/frmts
-
-
-
- $Id: formats_list.html,v 1.36 2006/11/02 02:40:47 fwarmerdam Exp $
+ $Id: formats_list.html 10200 2006-11-02 02:40:47Z fwarmerdam $
-diff -Nru gdal-1.4.0-fedora/frmts/gdalallregister.cpp gdal-1.4.0-fedora.work/frmts/gdalallregister.cpp
---- gdal-1.4.0-fedora/frmts/gdalallregister.cpp 2006-11-13 19:39:46.000000000 +0100
-+++ gdal-1.4.0-fedora.work/frmts/gdalallregister.cpp 2007-02-27 23:19:51.000000000 +0100
-@@ -177,10 +177,6 @@
+diff -Nru gdal-1.4.1-fedora/frmts/gdalallregister.cpp gdal-1.4.1-fedora-patched/frmts/gdalallregister.cpp
+--- gdal-1.4.1-fedora/frmts/gdalallregister.cpp 2007-04-10 17:16:26.000000000 +0200
++++ gdal-1.4.1-fedora-patched/frmts/gdalallregister.cpp 2007-05-09 19:37:21.000000000 +0200
+@@ -88,10 +88,6 @@
GDALRegister_NITF();
#endif
@@ -88,9 +88,9 @@ diff -Nru gdal-1.4.0-fedora/frmts/gdalallregister.cpp gdal-1.4.0-fedora.work/frm
#ifdef FRMT_ceos2
GDALRegister_SAR_CEOS();
#endif
-diff -Nru gdal-1.4.0-fedora/frmts/makefile.vc gdal-1.4.0-fedora.work/frmts/makefile.vc
---- gdal-1.4.0-fedora/frmts/makefile.vc 2006-11-02 04:12:45.000000000 +0100
-+++ gdal-1.4.0-fedora.work/frmts/makefile.vc 2007-02-27 23:19:46.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/frmts/makefile.vc gdal-1.4.1-fedora-patched/frmts/makefile.vc
+--- gdal-1.4.1-fedora/frmts/makefile.vc 2007-04-10 17:16:26.000000000 +0200
++++ gdal-1.4.1-fedora-patched/frmts/makefile.vc 2007-05-09 19:37:21.000000000 +0200
@@ -1,7 +1,7 @@
GDAL_ROOT = ..
@@ -100,9 +100,9 @@ diff -Nru gdal-1.4.0-fedora/frmts/makefile.vc gdal-1.4.0-fedora.work/frmts/makef
-DFRMT_sdts -DFRMT_raw -DFRMT_gxf -DFRMT_ceos2 -DFRMT_png \
-DFRMT_dted -DFRMT_mem -DFRMT_jdem -DFRMT_gif \
-DFRMT_envisat -DFRMT_aaigrid -DFRMT_usgsdem -DFRMT_l1b \
-diff -Nru gdal-1.4.0-fedora/frmts/mrsid/makefile.vc gdal-1.4.0-fedora.work/frmts/mrsid/makefile.vc
---- gdal-1.4.0-fedora/frmts/mrsid/makefile.vc 2006-09-19 20:30:38.000000000 +0200
-+++ gdal-1.4.0-fedora.work/frmts/mrsid/makefile.vc 2007-02-27 23:12:00.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/frmts/mrsid/makefile.vc gdal-1.4.1-fedora-patched/frmts/mrsid/makefile.vc
+--- gdal-1.4.1-fedora/frmts/mrsid/makefile.vc 2007-04-10 17:16:25.000000000 +0200
++++ gdal-1.4.1-fedora-patched/frmts/mrsid/makefile.vc 2007-05-09 19:37:21.000000000 +0200
@@ -1,7 +1,7 @@
OBJ = mrsiddataset.obj
@@ -112,10 +112,10 @@ diff -Nru gdal-1.4.0-fedora/frmts/mrsid/makefile.vc gdal-1.4.0-fedora.work/frmts
GDAL_ROOT = ..\..
-diff -Nru gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.0-fedora.work/gcore/gdaldefaultoverviews.cpp
---- gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp 2006-11-28 13:57:51.000000000 +0100
-+++ gdal-1.4.0-fedora.work/gcore/gdaldefaultoverviews.cpp 2007-02-27 23:56:09.000000000 +0100
-@@ -388,31 +388,6 @@
+diff -Nru gdal-1.4.1-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.1-fedora-patched/gcore/gdaldefaultoverviews.cpp
+--- gdal-1.4.1-fedora/gcore/gdaldefaultoverviews.cpp 2007-04-10 17:16:29.000000000 +0200
++++ gdal-1.4.1-fedora-patched/gcore/gdaldefaultoverviews.cpp 2007-05-09 19:37:21.000000000 +0200
+@@ -327,31 +327,6 @@
/* produce the imagery. */
/* -------------------------------------------------------------------- */
@@ -147,7 +147,7 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.0-fedora.wor
{
if( poODS != NULL )
{
-@@ -420,10 +395,6 @@
+@@ -359,10 +334,6 @@
poODS = NULL;
}
@@ -158,10 +158,10 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.0-fedora.wor
if( eErr == CE_None )
{
poODS = (GDALDataset *) GDALOpen( osOvrFilename, GA_Update );
-diff -Nru gdal-1.4.0-fedora/gcore/gdal_frmts.h gdal-1.4.0-fedora.work/gcore/gdal_frmts.h
---- gdal-1.4.0-fedora/gcore/gdal_frmts.h 2006-11-12 20:59:30.000000000 +0100
-+++ gdal-1.4.0-fedora.work/gcore/gdal_frmts.h 2007-02-27 23:23:45.000000000 +0100
-@@ -108,10 +108,8 @@
+diff -Nru gdal-1.4.1-fedora/gcore/gdal_frmts.h gdal-1.4.1-fedora-patched/gcore/gdal_frmts.h
+--- gdal-1.4.1-fedora/gcore/gdal_frmts.h 2007-04-10 17:16:29.000000000 +0200
++++ gdal-1.4.1-fedora-patched/gcore/gdal_frmts.h 2007-05-09 19:37:21.000000000 +0200
+@@ -34,10 +34,8 @@
CPL_C_START
void CPL_DLL GDALRegister_GDB(void);
@@ -172,10 +172,10 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdal_frmts.h gdal-1.4.0-fedora.work/gcore/gdal
void CPL_DLL GDALRegister_AAIGrid(void);
void CPL_DLL GDALRegister_AIGrid(void);
void CPL_DLL GDALRegister_AIGrid2(void);
-diff -Nru gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.0-fedora.work/gcore/gdaljp2metadata.cpp
---- gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp 2006-07-21 17:23:01.000000000 +0200
-+++ gdal-1.4.0-fedora.work/gcore/gdaljp2metadata.cpp 2007-02-27 23:12:00.000000000 +0100
-@@ -85,13 +85,13 @@
+diff -Nru gdal-1.4.1-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.1-fedora-patched/gcore/gdaljp2metadata.cpp
+--- gdal-1.4.1-fedora/gcore/gdaljp2metadata.cpp 2007-04-10 17:16:29.000000000 +0200
++++ gdal-1.4.1-fedora-patched/gcore/gdaljp2metadata.cpp 2007-05-09 19:37:21.000000000 +0200
+@@ -45,13 +45,13 @@
0xA7,0xAE,0xD6,0x8E,0x34,0x45,0x18,0x09 };
CPL_C_START
@@ -191,7 +191,7 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.0-fedora.work/gco
CPL_C_END
/************************************************************************/
-@@ -336,13 +336,13 @@
+@@ -296,13 +296,13 @@
/* -------------------------------------------------------------------- */
int bSuccess = TRUE;
@@ -207,7 +207,7 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.0-fedora.work/gco
if( pszProjection == NULL || strlen(pszProjection) == 0 )
bSuccess = FALSE;
-@@ -764,9 +764,10 @@
+@@ -724,9 +724,10 @@
int nGTBufSize = 0;
unsigned char *pabyGTBuf = NULL;
@@ -219,10 +219,10 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdaljp2metadata.cpp gdal-1.4.0-fedora.work/gco
return NULL;
if( nGTBufSize == 0 )
-diff -Nru gdal-1.4.0-fedora/gcore/gdal_priv.h gdal-1.4.0-fedora.work/gcore/gdal_priv.h
---- gdal-1.4.0-fedora/gcore/gdal_priv.h 2006-11-28 13:56:53.000000000 +0100
-+++ gdal-1.4.0-fedora.work/gcore/gdal_priv.h 2007-02-27 23:55:04.000000000 +0100
-@@ -700,26 +700,6 @@
+diff -Nru gdal-1.4.1-fedora/gcore/gdal_priv.h gdal-1.4.1-fedora-patched/gcore/gdal_priv.h
+--- gdal-1.4.1-fedora/gcore/gdal_priv.h 2007-04-10 17:16:29.000000000 +0200
++++ gdal-1.4.1-fedora-patched/gcore/gdal_priv.h 2007-05-09 19:37:21.000000000 +0200
+@@ -612,26 +612,6 @@
CPL_C_START
@@ -249,9 +249,9 @@ diff -Nru gdal-1.4.0-fedora/gcore/gdal_priv.h gdal-1.4.0-fedora.work/gcore/gdal_
CPLErr CPL_DLL
GDALDefaultBuildOverviews( GDALDataset *hSrcDS, const char * pszBasename,
const char * pszResampling,
-diff -Nru gdal-1.4.0-fedora/GDALmake.opt.in gdal-1.4.0-fedora.work/GDALmake.opt.in
---- gdal-1.4.0-fedora/GDALmake.opt.in 2006-12-05 03:18:11.000000000 +0100
-+++ gdal-1.4.0-fedora.work/GDALmake.opt.in 2007-02-27 23:19:12.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/GDALmake.opt.in gdal-1.4.1-fedora-patched/GDALmake.opt.in
+--- gdal-1.4.1-fedora/GDALmake.opt.in 2007-04-10 17:16:55.000000000 +0200
++++ gdal-1.4.1-fedora-patched/GDALmake.opt.in 2007-05-09 19:37:21.000000000 +0200
@@ -311,7 +311,7 @@
# and their uppercase form should be the format portion of the
# format registration entry point. eg. gdb -> GDALRegister_GDB().
@@ -261,9 +261,9 @@ diff -Nru gdal-1.4.0-fedora/GDALmake.opt.in gdal-1.4.0-fedora.work/GDALmake.opt.
sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \
nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi \
idrisi \
-diff -Nru gdal-1.4.0-fedora/ogr/Makefile gdal-1.4.0-fedora.work/ogr/Makefile
---- gdal-1.4.0-fedora/ogr/Makefile 2006-11-18 21:37:43.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/Makefile 2007-02-27 23:12:00.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/ogr/Makefile gdal-1.4.1-fedora-patched/ogr/Makefile
+--- gdal-1.4.1-fedora/ogr/Makefile 2007-04-10 17:15:09.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/Makefile 2007-05-09 19:37:21.000000000 +0200
@@ -2,7 +2,7 @@
LINKFLAGS = /Zi /MTd
EXTRAFLAGS = -I$(MSDASDK)\inc \
@@ -273,10 +273,10 @@ diff -Nru gdal-1.4.0-fedora/ogr/Makefile gdal-1.4.0-fedora.work/ogr/Makefile
$(PROJ_FLAGS) $(PROJ_INCLUDE) $(GEOS_CFLAGS)
GDAL_ROOT = ..
-diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/generic/ogrregisterall.cpp
---- gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2006-11-28 16:34:41.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-02-27 23:54:17.000000000 +0100
-@@ -160,9 +160,6 @@
+diff -Nru gdal-1.4.1-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/generic/ogrregisterall.cpp
+--- gdal-1.4.1-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-04-10 17:14:53.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-05-09 19:37:21.000000000 +0200
+@@ -57,9 +57,6 @@
#ifdef S57_ENABLED
RegisterOGRS57();
#endif
@@ -286,7 +286,7 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.
#ifdef VRT_ENABLED
RegisterOGRVRT();
#endif
-@@ -184,10 +181,6 @@
+@@ -81,10 +78,6 @@
#ifdef KML_ENABLED
RegisterOGRKML();
#endif
@@ -297,9 +297,9 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.
#ifdef SQLITE_ENABLED
RegisterOGRSQLite();
#endif
-diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/GNUmakefile gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/GNUmakefile
---- gdal-1.4.0-fedora/ogr/ogrsf_frmts/GNUmakefile 2006-11-28 16:34:41.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/GNUmakefile 2007-02-27 23:46:34.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/ogr/ogrsf_frmts/GNUmakefile gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/GNUmakefile
+--- gdal-1.4.1-fedora/ogr/ogrsf_frmts/GNUmakefile 2007-04-10 17:15:02.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/GNUmakefile 2007-05-09 19:37:21.000000000 +0200
@@ -1,7 +1,7 @@
include ../../GDALmake.opt
@@ -317,9 +317,9 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/GNUmakefile gdal-1.4.0-fedora.work/o
SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
SUBDIRS-$(HAVE_SDE) += sde
SUBDIRS-$(HAVE_IDB) += idb
-diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/Makefile gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/Makefile
---- gdal-1.4.0-fedora/ogr/ogrsf_frmts/Makefile 2006-11-28 17:19:47.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/Makefile 2007-02-27 23:46:48.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/ogr/ogrsf_frmts/Makefile gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/Makefile
+--- gdal-1.4.1-fedora/ogr/ogrsf_frmts/Makefile 2007-04-10 17:15:02.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/Makefile 2007-05-09 19:37:21.000000000 +0200
@@ -1,6 +1,6 @@
GDAL_ROOT = ..\..
@@ -349,9 +349,9 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/Makefile gdal-1.4.0-fedora.work/ogr/
vrt\*.obj csv\*.obj rec\*.obj kml\*.obj \
$(OGDIOBJ) $(ODBCOBJ) $(SQLITE_OBJ) \
$(FMEOBJ) $(OCIOBJ) $(PG_OBJ) $(MYSQL_OBJ) \
-diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogr_formats.html gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogr_formats.html
---- gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogr_formats.html 2006-12-19 04:40:52.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogr_formats.html 2007-02-27 23:37:55.000000000 +0100
+diff -Nru gdal-1.4.1-fedora/ogr/ogrsf_frmts/ogr_formats.html gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/ogr_formats.html
+--- gdal-1.4.1-fedora/ogr/ogrsf_frmts/ogr_formats.html 2007-04-10 17:15:02.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/ogr_formats.html 2007-05-09 19:37:21.000000000 +0200
@@ -85,11 +85,6 @@
| Yes
|
@@ -364,10 +364,10 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogr_formats.html gdal-1.4.0-fedora.w
| MySQL
| No
| No
-diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogrsf_frmts.h
---- gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h 2006-12-13 19:24:45.000000000 +0100
-+++ gdal-1.4.0-fedora.work/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-02-27 23:54:11.000000000 +0100
-@@ -374,7 +374,6 @@
+diff -Nru gdal-1.4.1-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/ogrsf_frmts.h
+--- gdal-1.4.1-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-04-10 17:15:02.000000000 +0200
++++ gdal-1.4.1-fedora-patched/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-05-09 19:37:21.000000000 +0200
+@@ -310,7 +310,6 @@
void CPL_DLL RegisterOGRPG();
void CPL_DLL RegisterOGRMySQL();
void CPL_DLL RegisterOGROCI();
@@ -375,7 +375,7 @@ diff -Nru gdal-1.4.0-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h gdal-1.4.0-fedora.work
void CPL_DLL RegisterOGRGML();
void CPL_DLL RegisterOGRKML();
void CPL_DLL RegisterOGRAVCBin();
-@@ -385,8 +384,6 @@
+@@ -321,8 +320,6 @@
void CPL_DLL RegisterOGRDODS();
void CPL_DLL RegisterOGRSQLite();
void CPL_DLL RegisterOGRCSV();
diff --git a/gdal.spec b/gdal.spec
index b316276..b2d04e0 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
-Version: 1.4.0
-Release: 22%{?dist}
+Version: 1.4.1
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -13,7 +13,7 @@ BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
-BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel grass-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -105,7 +105,6 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
--with-threads \
- --with-grass=%{_prefix} \
--with-libgrass \
--with-dods-root=%{_libdir} \
--with-ogdi=`ogdi-config --libdir` \
@@ -134,6 +133,7 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--without-pcraster \
--enable-shared \
--disable-static
+# --with-grass=%{_prefix}
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
@@ -286,6 +286,11 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed May 09 2007 Balint Cristian 1.4.1-1
+- new upstream release.
+- disable temporary grass-devel requirement untill find a
+ resonable solution for gdal-grass egg-chicken dep problem.
+
* Fri Apr 20 2007 Balint Cristian 1.4.0-22
- and olso dont attempt pack missing docs.
diff --git a/sources b/sources
index c213bc8..54b4da7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-757ea87048931beb4d1b068e2835732c gdal-1.4.0-fedora.tar.gz
+0cdfc9f365371ea1dbff3b1349197084 gdal-1.4.1-fedora.tar.gz
From 622f041b98bf437edca54d140b9085433cacd93a Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 11 May 2007 21:37:35 +0000
Subject: [PATCH 015/541] fix python lookup paths for ppc64
---
gdal.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index b2d04e0..04a0465 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -92,6 +92,9 @@ sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
sed -i 's|-L\$with_grass\/lib||g' configure
sed -i 's|-logdi31|-logdi|g' configure
+# fix python path for ppc64
+sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
+
# append some path for few libs
export CPPFLAGS="`pkg-config ogdi --cflags`"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
@@ -286,6 +289,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri May 11 2007 Balint Cristian 1.4.1-2
+- fix python lookup paths for ppc64.
+
* Wed May 09 2007 Balint Cristian 1.4.1-1
- new upstream release.
- disable temporary grass-devel requirement untill find a
From d1e36987f75b47baa03b8e0cb52fcf206f5cd39d Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sat, 12 May 2007 16:12:53 +0000
Subject: [PATCH 016/541] re-build against grass
---
gdal.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 04a0465..83c5e7f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -13,7 +13,7 @@ BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
-BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel grass-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -109,6 +109,7 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--includedir=%{_includedir}/%{name}/ \
--with-threads \
--with-libgrass \
+ --with-grass=%{_prefix} \
--with-dods-root=%{_libdir} \
--with-ogdi=`ogdi-config --libdir` \
--with-cfitsio=%{_prefix} \
@@ -136,7 +137,6 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--without-pcraster \
--enable-shared \
--disable-static
-# --with-grass=%{_prefix}
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
@@ -289,6 +289,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Sat May 12 2007 Balint Cristian 1.4.1-3
+- re-build against grass.
+
* Fri May 11 2007 Balint Cristian 1.4.1-2
- fix python lookup paths for ppc64.
From 2ee1205a31f91ed967ace76975c65b2400d94537 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 5 Jun 2007 10:49:32 +0000
Subject: [PATCH 017/541] rebuild.
---
gdal.spec | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 83c5e7f..a6a5730 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.4.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -13,7 +13,7 @@ BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
-BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel grass-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel
BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -108,8 +108,6 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
--with-threads \
- --with-libgrass \
- --with-grass=%{_prefix} \
--with-dods-root=%{_libdir} \
--with-ogdi=`ogdi-config --libdir` \
--with-cfitsio=%{_prefix} \
@@ -137,6 +135,8 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--without-pcraster \
--enable-shared \
--disable-static
+# --with-libgrass \
+# --with-grass=%{_prefix} \
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
@@ -289,6 +289,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Tue Jun 05 2007 Balint Cristian 1.4.1-4
+- re-build.
+
* Sat May 12 2007 Balint Cristian 1.4.1-3
- re-build against grass.
From 5873c967d73b8c41d28d438c116497aafaa1009e Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 25 Jul 2007 11:20:08 +0000
Subject: [PATCH 018/541] - new upstream one - catch some more docs - fix ogr
python module runtime - include testcases and run tests - enable geotiff
external library we have new libgeotiff now - EPSG geodetic database is
licensed OK since v6.13 so re-enable - enable it against grass by default,
implement optional switches
---
.cvsignore | 3 +-
gdal-buildfix.patch | 430 +++++++++++++++-----------------------------
gdal-swig.patch | 12 ++
gdal.spec | 70 +++++++-
sources | 3 +-
5 files changed, 218 insertions(+), 300 deletions(-)
create mode 100644 gdal-swig.patch
diff --git a/.cvsignore b/.cvsignore
index 43e66a6..82abdd8 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1,2 @@
-gdal-1.4.1-fedora.tar.gz
+gdal-1.4.2-fedora.tar.gz
+gdalautotest-1.4.1.tar.gz
diff --git a/gdal-buildfix.patch b/gdal-buildfix.patch
index 81b8e15..7281838 100644
--- a/gdal-buildfix.patch
+++ b/gdal-buildfix.patch
@@ -1,38 +1,6 @@
-diff -Nru gdal-1.4.1-fedora/configure gdal-1.4.1-fedora-patched/configure
---- gdal-1.4.1-fedora/configure 2007-04-10 17:16:54.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/configure 2007-05-09 19:37:21.000000000 +0200
-@@ -23371,6 +23371,12 @@
-
- echo "using internal GeoTIFF code."
-
-+elif test "$with_geotiff" = "disabled" ; then
-+
-+ GEOTIFF_SETTING=disabled
-+
-+ echo "disabled GeoTIFF code."
-+
- else
-
- GEOTIFF_SETTING=external
-diff -Nru gdal-1.4.1-fedora/configure.in gdal-1.4.1-fedora-patched/configure.in
---- gdal-1.4.1-fedora/configure.in 2007-04-10 17:16:55.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/configure.in 2007-05-09 19:37:21.000000000 +0200
-@@ -612,6 +612,12 @@
-
- echo "using internal GeoTIFF code."
-
-+elif test "$with_geotiff" = "disabled" ; then
-+
-+ GEOTIFF_SETTING=disabled
-+
-+ echo "disabled GeoTIFF code."
-+
- else
-
- GEOTIFF_SETTING=external
-diff -Nru gdal-1.4.1-fedora/frmts/formats_list.html gdal-1.4.1-fedora-patched/frmts/formats_list.html
---- gdal-1.4.1-fedora/frmts/formats_list.html 2007-04-10 17:16:26.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/frmts/formats_list.html 2007-05-09 19:38:52.000000000 +0200
+diff -Nru gdal-1.4.2-fedora/frmts/formats_list.html gdal-1.4.2-fedora-patched/frmts/formats_list.html
+--- gdal-1.4.2-fedora/frmts/formats_list.html 2007-06-27 20:47:46.000000000 +0200
++++ gdal-1.4.2-fedora-patched/frmts/formats_list.html 2007-07-13 14:22:08.000000000 +0200
@@ -178,13 +178,6 @@
| 2GiB
|
@@ -74,9 +42,9 @@ diff -Nru gdal-1.4.1-fedora/frmts/formats_list.html gdal-1.4.1-fedora-patched/fr
$Id: formats_list.html 10200 2006-11-02 02:40:47Z fwarmerdam $
-diff -Nru gdal-1.4.1-fedora/frmts/gdalallregister.cpp gdal-1.4.1-fedora-patched/frmts/gdalallregister.cpp
---- gdal-1.4.1-fedora/frmts/gdalallregister.cpp 2007-04-10 17:16:26.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/frmts/gdalallregister.cpp 2007-05-09 19:37:21.000000000 +0200
+diff -Nru gdal-1.4.2-fedora/frmts/gdalallregister.cpp gdal-1.4.2-fedora-patched/frmts/gdalallregister.cpp
+--- gdal-1.4.2-fedora/frmts/gdalallregister.cpp 2007-06-27 20:47:46.000000000 +0200
++++ gdal-1.4.2-fedora-patched/frmts/gdalallregister.cpp 2007-07-13 14:22:08.000000000 +0200
@@ -88,10 +88,6 @@
GDALRegister_NITF();
#endif
@@ -88,33 +56,154 @@ diff -Nru gdal-1.4.1-fedora/frmts/gdalallregister.cpp gdal-1.4.1-fedora-patched/
#ifdef FRMT_ceos2
GDALRegister_SAR_CEOS();
#endif
-diff -Nru gdal-1.4.1-fedora/frmts/makefile.vc gdal-1.4.1-fedora-patched/frmts/makefile.vc
---- gdal-1.4.1-fedora/frmts/makefile.vc 2007-04-10 17:16:26.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/frmts/makefile.vc 2007-05-09 19:37:21.000000000 +0200
+diff -Nru gdal-1.4.2-fedora/frmts/makefile.vc gdal-1.4.2-fedora-patched/frmts/makefile.vc
+--- gdal-1.4.2-fedora/frmts/makefile.vc 2007-06-27 20:47:46.000000000 +0200
++++ gdal-1.4.2-fedora-patched/frmts/makefile.vc 2007-07-13 14:22:08.000000000 +0200
@@ -1,7 +1,7 @@
GDAL_ROOT = ..
-EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas -DFRMT_hfa -DFRMT_gtiff\
-+EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas \
++EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas -DFRMT_gtiff\
-DFRMT_sdts -DFRMT_raw -DFRMT_gxf -DFRMT_ceos2 -DFRMT_png \
-DFRMT_dted -DFRMT_mem -DFRMT_jdem -DFRMT_gif \
-DFRMT_envisat -DFRMT_aaigrid -DFRMT_usgsdem -DFRMT_l1b \
-diff -Nru gdal-1.4.1-fedora/frmts/mrsid/makefile.vc gdal-1.4.1-fedora-patched/frmts/mrsid/makefile.vc
---- gdal-1.4.1-fedora/frmts/mrsid/makefile.vc 2007-04-10 17:16:25.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/frmts/mrsid/makefile.vc 2007-05-09 19:37:21.000000000 +0200
+diff -Nru gdal-1.4.2-fedora/gcore/gdal_frmts.h gdal-1.4.2-fedora-patched/gcore/gdal_frmts.h
+--- gdal-1.4.2-fedora/gcore/gdal_frmts.h.orig 2007-07-25 09:44:18.000000000 +0200
++++ gdal-1.4.2-fedora-patched/gcore/gdal_frmts.h 2007-07-25 09:44:28.000000000 +0200
+@@ -37,7 +37,6 @@
+ void CPL_DLL GDALRegister_GTiff(void);
+ void CPL_DLL GDALRegister_GXF(void);
+ void CPL_DLL GDALRegister_OGDI(void);
+-void CPL_DLL GDALRegister_HFA(void);
+ void CPL_DLL GDALRegister_AAIGrid(void);
+ void CPL_DLL GDALRegister_AIGrid(void);
+ void CPL_DLL GDALRegister_AIGrid2(void);
+diff -Nru gdal-1.4.2-fedora/GDALmake.opt.in gdal-1.4.2-fedora-patched/GDALmake.opt.in
+--- gdal-1.4.2-fedora/GDALmake.opt.in 2007-06-27 20:48:17.000000000 +0200
++++ gdal-1.4.2-fedora-patched/GDALmake.opt.in 2007-07-13 14:22:08.000000000 +0200
+@@ -312,7 +312,7 @@
+ # and their uppercase form should be the format portion of the
+ # format registration entry point. eg. gdb -> GDALRegister_GDB().
+ #
+-GDAL_FORMATS = gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm \
++GDAL_FORMATS = gxf gtiff aigrid aaigrid ceos ceos2 iso8211 xpm \
+ sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \
+ nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi \
+ idrisi \
+diff -Nru gdal-1.4.2-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/generic/ogrregisterall.cpp
+--- gdal-1.4.2-fedora/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-06-27 20:46:10.000000000 +0200
++++ gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/generic/ogrregisterall.cpp 2007-07-13 14:22:08.000000000 +0200
+@@ -57,9 +57,6 @@
+ #ifdef S57_ENABLED
+ RegisterOGRS57();
+ #endif
+-#ifdef DGN_ENABLED
+- RegisterOGRDGN();
+-#endif
+ #ifdef VRT_ENABLED
+ RegisterOGRVRT();
+ #endif
+@@ -81,10 +78,6 @@
+ #ifdef KML_ENABLED
+ RegisterOGRKML();
+ #endif
+-#ifdef ILI_ENABLED
+- RegisterOGRILI1();
+- RegisterOGRILI2();
+-#endif
+ #ifdef SQLITE_ENABLED
+ RegisterOGRSQLite();
+ #endif
+diff -Nru gdal-1.4.2-fedora/ogr/ogrsf_frmts/GNUmakefile gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/GNUmakefile
+--- gdal-1.4.2-fedora/ogr/ogrsf_frmts/GNUmakefile 2007-06-27 20:46:19.000000000 +0200
++++ gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/GNUmakefile 2007-07-13 14:22:08.000000000 +0200
@@ -1,7 +1,7 @@
- OBJ = mrsiddataset.obj
-
--EXTRAFLAGS = $(MRSID_INCLUDE) -I..\gtiff\libgeotiff $(MRSID_FLAGS)
-+EXTRAFLAGS = $(MRSID_INCLUDE) $(MRSID_FLAGS)
+ include ../../GDALmake.opt
+-SUBDIRS-yes := generic shape ntf sdts tiger s57 mitab dgn \
++SUBDIRS-yes := generic shape ntf sdts tiger s57 mitab \
+ gml kml avc rec mem vrt csv
+ SUBDIRS-$(HAVE_OGDI) += ogdi
+ SUBDIRS-$(HAVE_OCI) += oci
+@@ -12,7 +12,6 @@
+ SUBDIRS-$(ODBC_SETTING) += odbc pgeo
+ SUBDIRS-$(HAVE_SQLITE) += sqlite
+ SUBDIRS-$(HAVE_GRASS) += grass
+-SUBDIRS-$(HAVE_XERCES) += ili
+ SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg
+ SUBDIRS-$(HAVE_SDE) += sde
+ SUBDIRS-$(HAVE_IDB) += idb
+diff -Nru gdal-1.4.2-fedora/ogr/ogrsf_frmts/Makefile gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/Makefile
+--- gdal-1.4.2-fedora/ogr/ogrsf_frmts/Makefile 2007-06-27 20:46:19.000000000 +0200
++++ gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/Makefile 2007-07-13 14:22:08.000000000 +0200
+@@ -1,6 +1,6 @@
GDAL_ROOT = ..\..
-diff -Nru gdal-1.4.1-fedora/gcore/gdaldefaultoverviews.cpp gdal-1.4.1-fedora-patched/gcore/gdaldefaultoverviews.cpp
---- gdal-1.4.1-fedora/gcore/gdaldefaultoverviews.cpp 2007-04-10 17:16:29.000000000 +0200
-+++ gdal-1.4.1-fedora-patched/gcore/gdaldefaultoverviews.cpp 2007-05-09 19:37:21.000000000 +0200
+-DIRLIST = generic shape ntf sdts tiger s57 dgn mitab gml kml avc \
++DIRLIST = generic shape ntf sdts tiger s57 mitab gml kml avc \
+ rec mem vrt csv \
+ $(OGDIDIR) $(FMEDIR) $(OCIDIR) $(PG_DIR) $(DWGDIR) \
+ $(ODBCDIR) $(SQLITE_DIR) $(MYSQL_DIR) $(ILI_DIR) \
+@@ -53,11 +53,6 @@
+ MYSQL_OBJ = mysql\*.obj
+ !ENDIF
+
+-!IFDEF ILI_ENABLED
+-ILI_DIR = ili
+-ILI_OBJ = ili\*.obj ili\iom\*.obj
+-!ENDIF
+-
+ !IFDEF INFORMIXDIR
+ IDB_DIR = idb
+ IDB_OBJ = idb\*.obj
+@@ -71,7 +66,7 @@
+
+ lib /out:ogrsf_frmts.lib generic\*.obj shape\*.obj ntf\*.obj \
+ sdts\*.obj s57\*.obj tiger\*.obj gml\*.obj \
+- mitab\*.obj dgn\*.obj avc\*.obj mem\*.obj \
++ mitab\*.obj avc\*.obj mem\*.obj \
+ vrt\*.obj csv\*.obj rec\*.obj kml\*.obj \
+ $(OGDIOBJ) $(ODBCOBJ) $(SQLITE_OBJ) \
+ $(FMEOBJ) $(OCIOBJ) $(PG_OBJ) $(MYSQL_OBJ) \
+diff -Nru gdal-1.4.2-fedora/ogr/ogrsf_frmts/ogr_formats.html gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/ogr_formats.html
+--- gdal-1.4.2-fedora/ogr/ogrsf_frmts/ogr_formats.html 2007-06-27 20:46:18.000000000 +0200
++++ gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/ogr_formats.html 2007-07-13 14:22:08.000000000 +0200
+@@ -85,11 +85,6 @@
+ | MySQL
- | No
- | No
-diff -Nru gdal-1.4.2-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/ogrsf_frmts.h
---- gdal-1.4.2-fedora/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-06-27 20:46:19.000000000 +0200
-+++ gdal-1.4.2-fedora-patched/ogr/ogrsf_frmts/ogrsf_frmts.h 2007-07-13 14:22:08.000000000 +0200
-@@ -310,7 +310,6 @@
- void CPL_DLL RegisterOGRPG();
- void CPL_DLL RegisterOGRMySQL();
- void CPL_DLL RegisterOGROCI();
--void CPL_DLL RegisterOGRDGN();
- void CPL_DLL RegisterOGRGML();
- void CPL_DLL RegisterOGRKML();
- void CPL_DLL RegisterOGRAVCBin();
-@@ -321,8 +320,6 @@
- void CPL_DLL RegisterOGRDODS();
- void CPL_DLL RegisterOGRSQLite();
- void CPL_DLL RegisterOGRCSV();
--void CPL_DLL RegisterOGRILI1();
--void CPL_DLL RegisterOGRILI2();
- void CPL_DLL RegisterOGRGRASS();
- void CPL_DLL RegisterOGRPGeo();
- void CPL_DLL RegisterOGRDXFDWG();
---- gdal-1.4.2-fedora/gcore/gdaldefaultoverviews.cpp.orig 2007-06-27 20:47:49.000000000 +0200
-+++ gdal-1.4.2-fedora-patched/gcore/gdaldefaultoverviews.cpp 2007-07-25 10:11:26.000000000 +0200
-@@ -327,31 +327,6 @@
- /* produce the imagery. */
- /* -------------------------------------------------------------------- */
-
--#ifndef WIN32CE
--
-- if( bOvrIsAux )
-- {
-- eErr = HFAAuxBuildOverviews( osOvrFilename, poDS, &poODS,
-- nBands, panBandList,
-- nNewOverviews, panNewOverviewList,
-- pszResampling,
-- pfnProgress, pProgressData );
--
-- int j;
--
-- for( j = 0; j < nOverviews; j++ )
-- {
-- if( panOverviewList[j] > 0 )
-- panOverviewList[j] *= -1;
-- }
-- }
--
--/* -------------------------------------------------------------------- */
--/* Build new overviews - TIFF. Close TIFF files while we */
--/* operate on it. */
--/* -------------------------------------------------------------------- */
-- else
--#endif /* WIN32CE */
- {
- if( poODS != NULL )
- {
diff --git a/gdal-swig.patch b/gdal-swig.patch
deleted file mode 100644
index 4a118d9..0000000
--- a/gdal-swig.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNad gdal-1.4.1~/pymod/GNUmakefile gdal-1.4.1/pymod/GNUmakefile
---- gdal-1.4.1~/pymod/GNUmakefile 2007-04-10 17:15:15.000000000 +0200
-+++ gdal-1.4.1/pymod/GNUmakefile 2007-04-30 11:58:10.000000000 +0200
-@@ -27,7 +27,7 @@
- $(RM) *.o *.$(SO_EXT) *.la
-
- gdal_wrap.c: gdal.i
-- -swig -python gdal.i
-+# -swig -python gdal.i
-
- $(GDALMODULE_SO): $(OBJ) $(EXE_DEP_LIBS)
- $(PY_LD_SHARED) $(OBJ) \
diff --git a/gdal.spec b/gdal.spec
index eae4782..b9956d2 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,14 +1,12 @@
Name: gdal
-Version: 1.4.2
-Release: 7%{?dist}
+Version: 1.5.0
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://gdal.maptools.org
Source0: %{name}-%{version}-fedora.tar.gz
-Source1: http://download.osgeo.org/gdal/gdalautotest-1.4.1.tar.gz
-Patch0: %{name}-buildfix.patch
-Patch1: %{name}-swig.patch
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
@@ -19,20 +17,17 @@ BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeoti
BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
-# build against grass by default
-%define _with_grass 1
+# enable/disable grass support, for bootstrapping
+%define grass_support 0
+# enable/disable refman generation
+%define build_refman 0
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
-#%define grass_support %{?_with_grass:1}%{!?_with_grass:%{?_without_grass:0}%{!?_without_grass:%{?_grass_support:%{_grass}}%{!?_grass:0}}}
-%define grass_support 1
%if %{grass_support}
BuildRequires: grass-devel
%endif
-# For now not building refman.pdf
-%define build_refman_pdf 0
-
%description
The GDAL library provides support to handle multiple GIS file formats.
@@ -64,8 +59,6 @@ The GDAL perl modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
-%patch0 -p1 -b .buildfix
-%patch1 -p1 -b .swig
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -92,6 +85,7 @@ find . -name ".cvsignore" -exec rm -rf '{}' \;
# fix some exec bits
chmod -x alg/gdal_tps.cpp
+chmod -x apps/nearblack.cpp
chmod -x frmts/jpeg/gdalexif.h
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdi.h
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdilayer.cpp
@@ -101,19 +95,20 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
# bug 189337 c8
# HAVE_NETCDF is not present anymore in hdf
pushd frmts/hdf4
-for f in *.cpp
- do
- sed -i \
- -e 's|MAX_NC_NAME|H4_MAX_NC_NAME|' \
- -e 's|MAX_VAR_DIMS|H4_MAX_VAR_DIMS|' \
- -e 's|MAX_NC_DIMS|H4_MAX_NC_DIMS|g' \
- $f
+for file in `find . -type f -name "*.c*"`
+do
+ sed -i \
+ -e 's|MAX_NC_NAME|H4_MAX_NC_NAME|' \
+ -e 's|MAX_VAR_DIMS|H4_MAX_VAR_DIMS|' \
+ -e 's|MAX_NC_DIMS|H4_MAX_NC_DIMS|g' \
+ $file
done
popd
%build
-# fix hardcoded issues with cfitso and ogdi
+# fix hardcoded issues
+sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in
sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
@@ -123,6 +118,8 @@ sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
sed -i 's|-L\$with_grass\/lib||g' configure
sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-lmfhdf -ldf $LIBS|-L$libdir/hdf -lmfhdf -ldf $LIBS|g' configure
sed -i 's|-logdi31|-logdi|g' configure
# fix python path for ppc64
@@ -136,11 +133,11 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
-export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
%configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
+ --datadir=%{_datadir}/%{name}/ \
--with-threads \
--with-dods-root=%{_libdir} \
--with-ogdi=`ogdi-config --libdir` \
@@ -164,7 +161,7 @@ export LDFLAGS='-L%{_libdir}/netcdf-3 -L%{_libdir}/hdf'
--with-python \
--with-perl \
--with-xerces \
- --with-xerces-lib='-lxerces-c -L%{_libdir}/hdf -L%{_libdir}/netcdf-3' \
+ --with-xerces-lib='-lxerces-c' \
--with-xerces-inc=%{_includedir} \
--without-pcraster \
--enable-shared \
@@ -190,8 +187,7 @@ mkdir -p external/include
# WARNING !!!
# dont use {?_smp_mflags} it break compile
-# use external libtool to avoid hardcoded rpath in libs
-make LIBTOOL=/usr/bin/libtool
+make
make docs
# make perl modules, disable makefile generate
@@ -205,24 +201,22 @@ rm -rf $RPM_BUILD_ROOT
# fix some perl instalation issue
sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
+# fix include header instalation issue
+cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
+ grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
+> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
-make \
- INST_PREFIX=%{buildroot} \
- INST_BIN=%{buildroot}%{_bindir} \
- INST_LIB=%{buildroot}%{_libdir} \
- INST_INCLUDE=%{buildroot}%{_includedir}/%{name} \
- INST_DATA=%{buildroot}%{_datadir}/%{name} \
- INST_MAN=%{buildroot}%{_mandir} \
- INST_PYMOD=%{buildroot}%{python_sitearch} \
- PERL_INSTALL_ROOT=%{buildroot} \
+make DESTDIR=%{buildroot} \
install
+
+make DESTDIR=%{buildroot} \
+ INST_MAN=%{_mandir} \
+ install-man
# move perl modules in the right path
mkdir -p %{buildroot}%{perl_vendorarch}
-mv %{buildroot}%{_libdir}/Geo %{buildroot}%{perl_vendorarch}/
+mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
rm -rf %{buildroot}%{perl_vendorarch}/Geo/GDAL
-mv %{buildroot}%{perl_sitearch}/auto/Geo/* %{buildroot}%{perl_vendorarch}/Geo/
-rm -rf %{buildroot}%{_libdir}/perl5/site_perl %{buildroot}/auto %{buildroot}%{perl_sitelib}
# install pkgconfig file
cat > %{name}.pc < - 1.5.0-1
+- update to new 1.5.0 upstream stable
+- dropped build patch since HFA/ILI/DGN mandatories are now present
+- dropped swig patch, its upstream now
+- enable HFA it holds Intergraph (TM) explicit public license
+- enable DGN it holds Avenza Systems (TM) explicit public license
+- enable ILI headers since now contain proper public license message
+- keep and polish up rest of doubted license
+- further fixed hdf not supporting netcdf for for bz#189337
+- kill the annoying -Lexternal/lib for -lgeotiff
+- fix configure to not export LDFLAGS anyomre, upstream
+ should really switch to real GNU automagic stuff
+- pymod samples and rfc docs now gone
+- hardcode external libtool to be used, LIBTOOL env not propagating anymore
+- use DESTDIR instead
+
* Thu Jan 03 2008 Alex Lancaster - 1.4.2-7
- Re-enable grass support now that gdal has been bootstrapped
diff --git a/sources b/sources
index 97ba442..6757d62 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-9ef2d4a6c0325569ef4e40e416760d62 gdal-1.4.2-fedora.tar.gz
-f33218127eefdc89369cf4e984f169c5 gdalautotest-1.4.1.tar.gz
+191e9c6a187150c08edc13e7a3bc0c6d gdal-1.5.0-fedora.tar.gz
+e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
From 1e4a1df7fa37f7399d9afdb2178cda61aab180fc Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Mon, 14 Jan 2008 07:59:59 +0000
Subject: [PATCH 026/541] fix perl issue
---
gdal.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index b9956d2..6237d27 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -216,7 +216,6 @@ make DESTDIR=%{buildroot} \
# move perl modules in the right path
mkdir -p %{buildroot}%{perl_vendorarch}
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
-rm -rf %{buildroot}%{perl_vendorarch}/Geo/GDAL
# install pkgconfig file
cat > %{name}.pc < - 1.5.0-2
+- fix perl dependency issue.
+
* Mon Jan 07 2008 Balint Cristian - 1.5.0-1
- update to new 1.5.0 upstream stable
- dropped build patch since HFA/ILI/DGN mandatories are now present
From a5a74dc3e07d6494de9081306f4d95266d2e330e Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 14 Feb 2008 14:15:35 +0000
Subject: [PATCH 027/541] rebuild for gcc-43 Modified Files: devel/gdal.spec
Added Files: devel/gdal-gcc43.patch
---
gdal-gcc43.patch | 68 ++++++++++++++++++++++++++++++++++++++++++++++++
gdal.spec | 23 +++++++++++++---
2 files changed, 88 insertions(+), 3 deletions(-)
create mode 100644 gdal-gcc43.patch
diff --git a/gdal-gcc43.patch b/gdal-gcc43.patch
new file mode 100644
index 0000000..1d44e8c
--- /dev/null
+++ b/gdal-gcc43.patch
@@ -0,0 +1,68 @@
+--- frmts/ilwis/ilwisdataset.cpp.orig
++++ frmts/ilwis/ilwisdataset.cpp
+@@ -407,5 +407,4 @@
+ {
+ string st = ReadElement("MapStore", "Type", pszFileName.c_str());
+- transform(st.begin(), st.end(), st.begin(), tolower);
+
+ if( EQUAL(st.c_str(),"byte"))
+@@ -482,6 +481,4 @@
+ else
+ georef = ReadElement("MapList", "GeoRef", osFileName);
+-
+- transform(georef.begin(), georef.end(), georef.begin(), tolower);
+
+ //Capture the geotransform, only if the georef is not 'none',
+@@ -789,7 +786,6 @@
+ // Fetch coordinate system
+ string csy = ReadElement("GeoRef", "CoordSystem", pszGeoRef);
+- transform(csy.begin(), csy.end(), csy.begin(), tolower);
+-
+ string pszProj;
++
+ if( (csy.length() != 0) && !EQUAL(csy.c_str(),"unknown.csy"))
+ {
+@@ -797,5 +793,5 @@
+ //Form the coordinate system file name
+ if( !(EQUALN( csy.c_str(), "latlon.csy", 10 )) &&
+- !(EQUALN( csy.c_str(), "LatlonWGS84.csy", 15 )))
++ !(EQUALN( csy.c_str(), "LatlonWGS84.csy", 15 )))
+ {
+ string pszBaseName = string(CPLGetBasename(csy.c_str()) );
+@@ -1319,5 +1315,4 @@
+ string domName = ReadElement("BaseMap", "Domain", pszFileName.c_str());
+ string pszBaseName = string(CPLGetBasename( domName.c_str() ));
+- transform(pszBaseName.begin(), pszBaseName.end(), pszBaseName.begin(), tolower);
+ string pszPath = string(CPLGetPath( pszFileName.c_str() ));
+
+@@ -1371,5 +1366,4 @@
+
+ string domType = ReadElement("Domain", "Type", pszDomainName.c_str());
+- transform(domType.begin(), domType.end(), domType.begin(), tolower);
+ if EQUAL(domType.c_str(),"domainvalue")
+ {
+--- frmts/idrisi/IdrisiDataset.cpp.orig 2008-02-13 22:21:36.000000000 +0200
++++ frmts/idrisi/IdrisiDataset.cpp 2008-02-13 22:22:27.000000000 +0200
+@@ -35,6 +35,7 @@
+ #include "gdal_pam.h"
+ #include "gdal_rat.h"
+ #include "gdal_alg.h"
++#include
+
+ CPL_CVSID( "$Id: IdrisiDataset.cpp 12896 2007-11-20 21:01:46Z rouault $" );
+
+--- ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp.orig 2008-02-14 02:43:16.000000000 +0200
++++ ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp 2008-02-14 13:21:22.000000000 +0200
+@@ -26,10 +26,11 @@
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ ****************************************************************************/
++#include // for_each, find_if
++
+ #include "ogr_geojson.h"
+ #include "ogrgeojsonwriter.h"
+ #include // JSON-C
+-#include // for_each, find_if
+
+ /************************************************************************/
+ /* STATIC MEMBERS DEFINITION */
diff --git a/gdal.spec b/gdal.spec
index 6237d27..7503564 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,12 +1,13 @@
Name: gdal
Version: 1.5.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://gdal.maptools.org
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
+Patch0: %{name}-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
@@ -59,6 +60,7 @@ The GDAL perl modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
+%patch0 -p0 -b .gcc43
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -95,12 +97,13 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
# bug 189337 c8
# HAVE_NETCDF is not present anymore in hdf
pushd frmts/hdf4
-for file in `find . -type f -name "*.c*"`
+for file in `find . -type f -name "*.*"`
do
sed -i \
-e 's|MAX_NC_NAME|H4_MAX_NC_NAME|' \
-e 's|MAX_VAR_DIMS|H4_MAX_VAR_DIMS|' \
-e 's|MAX_NC_DIMS|H4_MAX_NC_DIMS|g' \
+ -e 's|UNKNOWN|H4_UNKNOWN|g' \
$file
done
popd
@@ -134,13 +137,20 @@ export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
+# we have multilib ogdi-config
+%if "%{_lib}" == "lib"
+%define cpuarch 32
+%else
+%define cpuarch 64
+%endif
+
%configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
--datadir=%{_datadir}/%{name}/ \
--with-threads \
--with-dods-root=%{_libdir} \
- --with-ogdi=`ogdi-config --libdir` \
+ --with-ogdi=`ogdi-config-%{cpuarch} --libdir` \
--with-cfitsio=%{_prefix} \
--with-geotiff=external \
--with-tiff=external \
@@ -252,6 +262,9 @@ pushd swig/perl; doxygen; popd
pushd swig/perl/latex; make refman.pdf; popd
%endif
+# install cpl_config.h bz#430894
+install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/
+
# cleanup junks
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
for junk in {*.a,*.la,*.bs,.exists,.packlist,.cvsignore} ; do
@@ -356,6 +369,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Tue Feb 12 2008 Balint Cristian - 1.5.0-3
+- install cpl_config.h manually for bz#430894
+- fix gcc4.3 build
+
* Mon Jan 14 2008 Balint Cristian - 1.5.0-2
- fix perl dependency issue.
From a17b25d31c1e0dbc44fc990ada07940d7b2230f9 Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Fri, 29 Feb 2008 22:51:15 +0000
Subject: [PATCH 028/541] - Rebuild for hdf5-1.8.0, use compatability API
define
---
gdal.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 7503564..19c8273 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -134,6 +134,7 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
+export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
@@ -369,6 +370,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Feb 29 2008 Orion Poplawski - 1.5.0-4
+- Rebuild for hdf5-1.8.0, use compatability API define
+
* Tue Feb 12 2008 Balint Cristian - 1.5.0-3
- install cpl_config.h manually for bz#430894
- fix gcc4.3 build
From 965ccce49af169ac34e2820ce4d0dd1b3ded9d7f Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 26 Mar 2008 03:02:25 +0000
Subject: [PATCH 029/541] - new bugfix release from upstream - drop large parts
from gcc43 patch, some are upstream now - fix building with perl-5.10 swig
binding issue Modified Files: devel/.cvsignore devel/gdal-gcc43.patch
devel/gdal.spec devel/sources Added Files: devel/gdal-perl510.patch
---
.cvsignore | 2 +-
gdal-gcc43.patch | 53 ----------------------------------------------
gdal-perl510.patch | 45 +++++++++++++++++++++++++++++++++++++++
gdal.spec | 13 +++++++++---
sources | 2 +-
5 files changed, 57 insertions(+), 58 deletions(-)
create mode 100644 gdal-perl510.patch
diff --git a/.cvsignore b/.cvsignore
index c8a70dc..6aac271 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.5.0-fedora.tar.gz
gdalautotest-1.5.0.tar.gz
+gdal-1.5.1-fedora.tar.gz
diff --git a/gdal-gcc43.patch b/gdal-gcc43.patch
index 1d44e8c..2505d98 100644
--- a/gdal-gcc43.patch
+++ b/gdal-gcc43.patch
@@ -1,56 +1,3 @@
---- frmts/ilwis/ilwisdataset.cpp.orig
-+++ frmts/ilwis/ilwisdataset.cpp
-@@ -407,5 +407,4 @@
- {
- string st = ReadElement("MapStore", "Type", pszFileName.c_str());
-- transform(st.begin(), st.end(), st.begin(), tolower);
-
- if( EQUAL(st.c_str(),"byte"))
-@@ -482,6 +481,4 @@
- else
- georef = ReadElement("MapList", "GeoRef", osFileName);
--
-- transform(georef.begin(), georef.end(), georef.begin(), tolower);
-
- //Capture the geotransform, only if the georef is not 'none',
-@@ -789,7 +786,6 @@
- // Fetch coordinate system
- string csy = ReadElement("GeoRef", "CoordSystem", pszGeoRef);
-- transform(csy.begin(), csy.end(), csy.begin(), tolower);
--
- string pszProj;
-+
- if( (csy.length() != 0) && !EQUAL(csy.c_str(),"unknown.csy"))
- {
-@@ -797,5 +793,5 @@
- //Form the coordinate system file name
- if( !(EQUALN( csy.c_str(), "latlon.csy", 10 )) &&
-- !(EQUALN( csy.c_str(), "LatlonWGS84.csy", 15 )))
-+ !(EQUALN( csy.c_str(), "LatlonWGS84.csy", 15 )))
- {
- string pszBaseName = string(CPLGetBasename(csy.c_str()) );
-@@ -1319,5 +1315,4 @@
- string domName = ReadElement("BaseMap", "Domain", pszFileName.c_str());
- string pszBaseName = string(CPLGetBasename( domName.c_str() ));
-- transform(pszBaseName.begin(), pszBaseName.end(), pszBaseName.begin(), tolower);
- string pszPath = string(CPLGetPath( pszFileName.c_str() ));
-
-@@ -1371,5 +1366,4 @@
-
- string domType = ReadElement("Domain", "Type", pszDomainName.c_str());
-- transform(domType.begin(), domType.end(), domType.begin(), tolower);
- if EQUAL(domType.c_str(),"domainvalue")
- {
---- frmts/idrisi/IdrisiDataset.cpp.orig 2008-02-13 22:21:36.000000000 +0200
-+++ frmts/idrisi/IdrisiDataset.cpp 2008-02-13 22:22:27.000000000 +0200
-@@ -35,6 +35,7 @@
- #include "gdal_pam.h"
- #include "gdal_rat.h"
- #include "gdal_alg.h"
-+#include
-
- CPL_CVSID( "$Id: IdrisiDataset.cpp 12896 2007-11-20 21:01:46Z rouault $" );
-
--- ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp.orig 2008-02-14 02:43:16.000000000 +0200
+++ ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp 2008-02-14 13:21:22.000000000 +0200
@@ -26,10 +26,11 @@
diff --git a/gdal-perl510.patch b/gdal-perl510.patch
new file mode 100644
index 0000000..91df75f
--- /dev/null
+++ b/gdal-perl510.patch
@@ -0,0 +1,45 @@
+--- swig/perl/gdal_wrap.cpp.orig 2008-03-25 20:19:03.000000000 +0200
++++ swig/perl/gdal_wrap.cpp 2008-03-25 20:19:52.000000000 +0200
+@@ -1228,8 +1228,11 @@
+ /* Macros for low-level exception handling */
+ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
+
++#ifndef XSPROTO
++# define XSPROTO(name) void name(pTHX_ CV* cv)
++#endif
+
+-typedef XS(SwigPerlWrapper);
++typedef XSPROTO(SwigPerlWrapper);
+ typedef SwigPerlWrapper *SwigPerlWrapperPtr;
+
+ /* Structure for command table */
+--- swig/perl/ogr_wrap.cpp.orig 2008-03-25 20:45:42.000000000 +0200
++++ swig/perl/ogr_wrap.cpp 2008-03-25 20:48:00.000000000 +0200
+@@ -1228,8 +1228,11 @@
+ /* Macros for low-level exception handling */
+ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
+
++#ifndef XSPROTO
++# define XSPROTO(name) void name(pTHX_ CV* cv)
++#endif
+
+-typedef XS(SwigPerlWrapper);
++typedef XSPROTO(SwigPerlWrapper);
+ typedef SwigPerlWrapper *SwigPerlWrapperPtr;
+
+ /* Structure for command table */
+--- swig/perl/osr_wrap.cpp.orig 2008-03-25 20:49:16.000000000 +0200
++++ swig/perl/osr_wrap.cpp 2008-03-25 20:49:33.000000000 +0200
+@@ -1229,7 +1229,11 @@
+ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
+
+
+-typedef XS(SwigPerlWrapper);
++#ifndef XSPROTO
++# define XSPROTO(name) void name(pTHX_ CV* cv)
++#endif
++
++typedef XSPROTO(SwigPerlWrapper);
+ typedef SwigPerlWrapper *SwigPerlWrapperPtr;
+
+ /* Structure for command table */
diff --git a/gdal.spec b/gdal.spec
index 19c8273..1e67a67 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
-Version: 1.5.0
-Release: 4%{?dist}
+Version: 1.5.1
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -8,6 +8,7 @@ URL: http://gdal.maptools.org
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-gcc43.patch
+Patch1: %{name}-perl510.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
@@ -61,6 +62,7 @@ The GDAL perl modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
%patch0 -p0 -b .gcc43
+%patch1 -p0 -b .perl510
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -227,6 +229,7 @@ make DESTDIR=%{buildroot} \
# move perl modules in the right path
mkdir -p %{buildroot}%{perl_vendorarch}
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
+find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
# install pkgconfig file
cat > %{name}.pc < - 1.5.1-1
+- new bugfix release from upstream
+- drop large parts from gcc43 patch, some are upstream now
+- fix building with perl-5.10 swig binding issue
+
* Wed Feb 29 2008 Orion Poplawski - 1.5.0-4
- Rebuild for hdf5-1.8.0, use compatability API define
diff --git a/sources b/sources
index 6757d62..1e92b60 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-191e9c6a187150c08edc13e7a3bc0c6d gdal-1.5.0-fedora.tar.gz
e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
+6027a5c46da797133ecee063cacec9c3 gdal-1.5.1-fedora.tar.gz
From 97966d74dd9422a0ceb3e9b4169703da95ce4d7f Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 27 Mar 2008 22:05:15 +0000
Subject: [PATCH 030/541] - enable build against newer grass - enable build of
reference manuals
----------------------------------------------------------------------
Modified Files: devel/.cvsignore devel/gdal.spec devel/sources
----------------------------------------------------------------------
---
.cvsignore | 2 +-
gdal.spec | 10 +++++++---
sources | 2 +-
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 6aac271..700987a 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdalautotest-1.5.0.tar.gz
gdal-1.5.1-fedora.tar.gz
+gdalautotest-1.5.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 1e67a67..841a6ce 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -20,9 +20,9 @@ BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
-%define build_refman 0
+%define build_refman 1
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
@@ -372,6 +372,10 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Mar 28 2008 Balint Cristian - 1.5.1-2
+- enable build against newer grass
+- enable build of reference manuals
+
* Tue Mar 25 2008 Balint Cristian - 1.5.1-1
- new bugfix release from upstream
- drop large parts from gcc43 patch, some are upstream now
diff --git a/sources b/sources
index 1e92b60..5ed14b0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
6027a5c46da797133ecee063cacec9c3 gdal-1.5.1-fedora.tar.gz
+e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
From c29baf140420a18987284d0f6db0c2f509eb10bd Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 28 Mar 2008 11:37:12 +0000
Subject: [PATCH 031/541] - rebuild to really pick up grass63 in koji
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 841a6ce..63c6c61 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -372,6 +372,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Mar 28 2008 Balint Cristian - 1.5.1-3
+- rebuild to really pick up grass63 in koji
+
* Fri Mar 28 2008 Balint Cristian - 1.5.1-2
- enable build against newer grass
- enable build of reference manuals
From 78381b369cc84061cec439f493e4cb34abed4252 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 28 Mar 2008 12:35:06 +0000
Subject: [PATCH 032/541] - disable grass to bootstrap once again
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 63c6c61..9531c1f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -20,7 +20,7 @@ BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -372,6 +372,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Mar 28 2008 Balint Cristian - 1.5.1-4
+- disable grass to bootstrap once again
+
* Fri Mar 28 2008 Balint Cristian - 1.5.1-3
- rebuild to really pick up grass63 in koji
From 0a361ccbd3a501a8b3577d8162d5c787e2bf75a2 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 28 Mar 2008 15:54:18 +0000
Subject: [PATCH 033/541] - really eanble against grass63
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 9531c1f..4c3b53b 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -20,7 +20,7 @@ BuildRequires: python-devel >= 2.4 xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -372,6 +372,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Fri Mar 28 2008 Balint Cristian - 1.5.1-5
+- really eanble against grass63
+
* Fri Mar 28 2008 Balint Cristian - 1.5.1-4
- disable grass to bootstrap once again
From a7aa589f3bba6a89a17f4d2e8920958c6d5ba6d3 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 16 Apr 2008 21:15:08 +0000
Subject: [PATCH 034/541] - disable fortify source, it crash gdal for now.
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 4c3b53b..b9f9815 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -137,8 +137,10 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
-export CFLAGS="$RPM_OPT_FLAGS"
-export CXXFLAGS="$RPM_OPT_FLAGS"
+
+# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
+export CXXFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 //g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 //g'`
# we have multilib ogdi-config
%if "%{_lib}" == "lib"
@@ -372,6 +374,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Wed Apr 16 2008 Balint Cristian - 1.5.1-6
+- disable fortify source, it crash gdal for now.
+
* Fri Mar 28 2008 Balint Cristian - 1.5.1-5
- really eanble against grass63
From f77d1b61bddcb78bc765af50d2883ae5b929b35a Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 15 May 2008 11:47:36 +0000
Subject: [PATCH 035/541] buildrequire sed
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index b9f9815..59fbea3 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -10,7 +10,7 @@ Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-gcc43.patch
Patch1: %{name}-perl510.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libtool swig pkgconfig
+BuildRequires: libtool swig pkgconfig sed
BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
@@ -374,6 +374,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Thu May 15 2008 Balint Cristian - 1.5.1-7
+- buildrequire sed
+
* Wed Apr 16 2008 Balint Cristian - 1.5.1-6
- disable fortify source, it crash gdal for now.
From 1fa790b32ab837016be844a2b4bcc2cfeb27b561 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 15 May 2008 14:10:14 +0000
Subject: [PATCH 036/541] *** empty log message ***
---
gdal.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 59fbea3..fea4d4b 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -10,7 +10,7 @@ Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-gcc43.patch
Patch1: %{name}-perl510.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libtool swig pkgconfig sed
+BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
@@ -375,7 +375,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu May 15 2008 Balint Cristian - 1.5.1-7
-- buildrequire sed
+- fix a sed option for koji
* Wed Apr 16 2008 Balint Cristian - 1.5.1-6
- disable fortify source, it crash gdal for now.
From 2b50c1bf07727aa34854d0c43380dc87320a5417 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 23 May 2008 20:31:07 +0000
Subject: [PATCH 037/541]
----------------------------------------------------------------------
Modified Files: devel/gdal.spec Added Files: devel/gdal-sincos.patch
----------------------------------------------------------------------
---
gdal-sincos.patch | 11 +++++++++++
gdal.spec | 9 +++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
create mode 100644 gdal-sincos.patch
diff --git a/gdal-sincos.patch b/gdal-sincos.patch
new file mode 100644
index 0000000..1a6f703
--- /dev/null
+++ b/gdal-sincos.patch
@@ -0,0 +1,11 @@
+--- frmts/hdf4/hdf-eos/GDapi.c.orig 2008-05-20 15:01:09.000000000 +0300
++++ frmts/hdf4/hdf-eos/GDapi.c 2008-05-20 15:02:07.000000000 +0300
+@@ -6258,7 +6258,7 @@
+
+
+
+-#if !defined(HP9000) && !defined(DEC_ALPHA)
++#if 0
+ void
+ sincos(double val, double *sin_val, double *cos_val)
+ {
diff --git a/gdal.spec b/gdal.spec
index fea4d4b..cd778ca 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -9,6 +9,7 @@ Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-gcc43.patch
Patch1: %{name}-perl510.patch
+Patch2: %{name}-sincos.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool swig pkgconfig
BuildRequires: doxygen tetex-latex ghostscript
@@ -63,6 +64,7 @@ The GDAL perl modules provides support to handle multiple GIS file formats.
%setup -q -n %{name}-%{version}-fedora
%patch0 -p0 -b .gcc43
%patch1 -p0 -b .perl510
+%patch2 -p0 -b .x86_64
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -374,8 +376,11 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%changelog
+* Thu May 23 2008 Balint Cristian - 1.5.1-8
+- fix sincos on all arch
+
* Thu May 15 2008 Balint Cristian - 1.5.1-7
-- fix a sed option for koji
+- fix x86_64 problem
* Wed Apr 16 2008 Balint Cristian - 1.5.1-6
- disable fortify source, it crash gdal for now.
From c2e1a1c9786feeea33c02531650366a95b4127a1 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sun, 25 May 2008 11:14:15 +0000
Subject: [PATCH 038/541] *** empty log message ***
---
gdal.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index cd778ca..b538a05 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -64,7 +64,7 @@ The GDAL perl modules provides support to handle multiple GIS file formats.
%setup -q -n %{name}-%{version}-fedora
%patch0 -p0 -b .gcc43
%patch1 -p0 -b .perl510
-%patch2 -p0 -b .x86_64
+%patch2 -p0 -b .sincos
# unpack test cases olso.
tar -xzf %{SOURCE1} .
From a6b287bcd3ee4194f52f66e99783fec024846877 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sun, 25 May 2008 11:58:39 +0000
Subject: [PATCH 039/541] fix sed line in .spec for newest koji behaviour
---
gdal.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index b538a05..d9f8bc2 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -141,8 +141,8 @@ export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
-export CXXFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 //g'`
-export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 //g'`
+export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / /g'`
# we have multilib ogdi-config
%if "%{_lib}" == "lib"
From 9efbf2f7c360b04337f66d2964d0733474dba53a Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sun, 25 May 2008 12:57:55 +0000
Subject: [PATCH 040/541] try further fix sed behaviour
---
gdal.spec | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index d9f8bc2..25101bc 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -141,8 +141,8 @@ export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
-export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / /g'`
-export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / /g'`
+export CXXFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
# we have multilib ogdi-config
%if "%{_lib}" == "lib"
@@ -190,12 +190,12 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / /g'`
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
-sed -e "s/^CFLAGS.*$/CFLAGS=$CFLAGS/" \
--e "s/^CXXFLAGS.*$/CXXFLAGS=$CXXFLAGS/" \
--e "s/^FFLAGS.*$/FFLAGS=$FFLAGS/" \
--e "s/ cfitsio / /" \
--e "s/-ldap++/-ldap -ldapclient -ldapserver/" \
--e "s/-L\$(INST_LIB) -lgdal/-lgdal/" \
+sed -e 's/^CFLAGS.*\$/CFLAGS=$CFLAGS/' \
+-e 's/^CXXFLAGS.*\$/CXXFLAGS=$CXXFLAGS/' \
+-e 's/^FFLAGS.*\$/FFLAGS=$FFLAGS/' \
+-e 's/ cfitsio / /' \
+-e 's/-ldap++/-ldap -ldapclient -ldapserver/' \
+-e 's/-L\$(INST_LIB) -lgdal/-lgdal/' \
GDALmake.opt.orig > GDALmake.opt
rm GDALmake.opt.orig
From c9a0bc36cfe274a3c36e861c544f9da0ba68c43e Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sun, 25 May 2008 23:27:24 +0000
Subject: [PATCH 041/541] - enable ruby and java packages - fix spurious sed
problem - spec file cosmetics
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 72 insertions(+), 18 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 25101bc..d4b1897 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -11,9 +11,9 @@ Patch0: %{name}-gcc43.patch
Patch1: %{name}-perl510.patch
Patch2: %{name}-sincos.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libtool swig pkgconfig
-BuildRequires: doxygen tetex-latex ghostscript
+BuildRequires: libtool swig pkgconfig ruby java-devel ant
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
+BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
@@ -25,7 +25,8 @@ BuildRequires: perl(ExtUtils::MakeMaker)
# enable/disable refman generation
%define build_refman 1
-%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
%if %{grass_support}
BuildRequires: grass-devel
@@ -60,6 +61,24 @@ Requires: %{name} = %{version}-%{release}
%description perl
The GDAL perl modules provides support to handle multiple GIS file formats.
+%package ruby
+Summary: Ruby modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description ruby
+The GDAL ruby modules provides support to handle multiple GIS file formats.
+
+%package java
+Summary: Java modules for the GDAL file format library
+Group: Development/Libraries
+Requires: java
+Requires: jpackage-utils
+Requires: %{name} = %{version}-%{release}
+
+%description java
+The GDAL java modules provides support to handle multiple GIS file formats.
+
%prep
%setup -q -n %{name}-%{version}-fedora
%patch0 -p0 -b .gcc43
@@ -135,14 +154,15 @@ sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' con
# append some path for few libs
export CPPFLAGS="`pkg-config ogdi --cflags`"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
-export CXXFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
-export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
+export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
# we have multilib ogdi-config
%if "%{_lib}" == "lib"
@@ -177,6 +197,8 @@ export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
--with-curl \
--with-python \
--with-perl \
+ --with-ruby \
+ --with-java \
--with-xerces \
--with-xerces-lib='-lxerces-c' \
--with-xerces-inc=%{_includedir} \
@@ -190,10 +212,7 @@ export CFLAGS=`echo %{optflags}|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g'`
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
-sed -e 's/^CFLAGS.*\$/CFLAGS=$CFLAGS/' \
--e 's/^CXXFLAGS.*\$/CXXFLAGS=$CXXFLAGS/' \
--e 's/^FFLAGS.*\$/FFLAGS=$FFLAGS/' \
--e 's/ cfitsio / /' \
+sed -e 's/ cfitsio / /' \
-e 's/-ldap++/-ldap -ldapclient -ldapserver/' \
-e 's/-L\$(INST_LIB) -lgdal/-lgdal/' \
GDALmake.opt.orig > GDALmake.opt
@@ -208,11 +227,19 @@ make
make docs
# make perl modules, disable makefile generate
-pushd swig/perl;
- perl Makefile.PL; make;
+pushd swig/perl
+ perl Makefile.PL; make;
echo > Makefile.PL;
popd
+# make java modules
+pushd swig/java
+make generate
+# disable ColorEntry for now (Ticket: #2331)
+rm -rf org/gdal/gdal/ColorEntry.java
+make build
+popd
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -225,16 +252,26 @@ cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
make DESTDIR=%{buildroot} \
install
-
+
make DESTDIR=%{buildroot} \
INST_MAN=%{_mandir} \
- install-man
+ install-man
# move perl modules in the right path
mkdir -p %{buildroot}%{perl_vendorarch}
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+# move ruby modules in the right path
+mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
+rm -rf %{buildroot}%{ruby_sitearch}/%{name}
+
+# install java modules in the right path
+# JAR files
+mkdir -p %{buildroot}%{_javadir}
+cp -p swig/java/gdal.jar \
+ %{buildroot}%{_javadir}/%{name}-%{version}.jar
+
# install pkgconfig file
cat > %{name}.pc < - 1.5.1-9
+- enable ruby and java packages
+- fix spurious sed problem
+- spec file cosmetics
+
* Thu May 23 2008 Balint Cristian - 1.5.1-8
- fix sincos on all arch
From 25665e0385d52ee4591aa6bf8d395ebc5438cccf Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 27 May 2008 10:50:46 +0000
Subject: [PATCH 042/541] *** empty log message ***
---
gdal.spec | 162 +++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 111 insertions(+), 51 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index d4b1897..2efe619 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,10 +1,10 @@
Name: gdal
Version: 1.5.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
-URL: http://gdal.maptools.org
+URL: http://www.gdal.org/
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-gcc43.patch
@@ -25,6 +25,13 @@ BuildRequires: perl(ExtUtils::MakeMaker)
# enable/disable refman generation
%define build_refman 1
+# we have multilib triage
+%if "%{_lib}" == "lib"
+%define cpuarch 32
+%else
+%define cpuarch 64
+%endif
+
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
@@ -81,14 +88,19 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
-%patch0 -p0 -b .gcc43
-%patch1 -p0 -b .perl510
-%patch2 -p0 -b .sincos
+%patch0 -p0 -b .gcc43~
+%patch1 -p0 -b .perl510~
+%patch2 -p0 -b .sincos~
# unpack test cases olso.
tar -xzf %{SOURCE1} .
-# fix wrongly encoded files from tarball
+# fix russian docs from tarball
+for ru in `find doc/ru/ -type f -name "*.dox"`; do
+iconv -f KOI8-R -t UTF-8 < $ru > $ru.tmp
+mv -f $ru.tmp $ru
+done
+
set +x
for f in `find . -type f` ; do
if file $f | grep -q ISO-8859 ; then
@@ -116,6 +128,7 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdi.h
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdilayer.cpp
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidatasource.cpp
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
+find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
# bug 189337 c8
# HAVE_NETCDF is not present anymore in hdf
@@ -164,13 +177,6 @@ export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
-# we have multilib ogdi-config
-%if "%{_lib}" == "lib"
-%define cpuarch 32
-%else
-%define cpuarch 64
-%endif
-
%configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/%{name}/ \
@@ -218,13 +224,16 @@ sed -e 's/ cfitsio / /' \
GDALmake.opt.orig > GDALmake.opt
rm GDALmake.opt.orig
-# fixup non-existent lookup dir
-mkdir -p external/include
+# fix doxygen for multilib docs
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/sdts/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/pcraster/doxygen.cfg
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/iso8211/Doxyfile
# WARNING !!!
# dont use {?_smp_mflags} it break compile
make
-make docs
# make perl modules, disable makefile generate
pushd swig/perl
@@ -235,11 +244,37 @@ popd
# make java modules
pushd swig/java
make generate
-# disable ColorEntry for now (Ticket: #2331)
+# disable ColorEntry for now (gdal Ticket: #2331)
rm -rf org/gdal/gdal/ColorEntry.java
make build
popd
+# remake documentation for multilib issues
+# olso include many pdf documentation
+for docdir in ./ doc doc/ru doc/br ogr ogr/ogrsf_frmts ogr/ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 swig/perl; do
+cp -p doc/gdal_footer.html $docdir/footer_local.html
+pushd $docdir
+if [ ! -f Doxyfile ]; then
+doxygen -g
+fi
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
+sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
+sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
+if [ $docdir == "doc/ru" ]; then
+sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
+fi
+rm -rf latex html
+doxygen
+%if %{build_refman}
+pushd latex
+sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
+sed -i -e '/small/d' -e '/large/d' refman.tex
+sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
+make refman.pdf || true; popd
+%endif
+rm -rf footer_local.html; popd
+done
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -266,8 +301,8 @@ find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
rm -rf %{buildroot}%{ruby_sitearch}/%{name}
-# install java modules in the right path
-# JAR files
+# install multilib java modules in the right path
+touch -r VERSION swig/java/gdal.jar
mkdir -p %{buildroot}%{_javadir}
cp -p swig/java/gdal.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
@@ -293,23 +328,53 @@ install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
-# build and include more docs
-mkdir -p doc/frmts; find frmts -name "*.html" -exec install -m 644 '{}' doc/frmts/ \;
-mkdir -p doc/ogrsf_frmts; find ogr/ogrsf_frmts -name "*.html" -exec install -m 644 '{}' doc/ogrsf_frmts \;
-
-# some commented out are broken for now
-pushd doc; doxygen *.dox; popd
-pushd ogr/ogrsf_frmts; doxygen *.dox; popd
+# install and include all docs
+rm -rf docs doc/docs-perl
+mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
+mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
%if %{build_refman}
-pushd ogr/ogrsf_frmts/latex; make refman.pdf; popd
-%endif
-pushd swig/perl; doxygen; popd
-%if %{build_refman}
-pushd swig/perl/latex; make refman.pdf; popd
+mkdir -p docs/docs-%{cpuarch}/pdf
+pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
+install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
+install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
+install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
+install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
+install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
+mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
+install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
%endif
+pushd docs/docs-%{cpuarch}/; mkdir -p en/html gdal_frmts ogrsf_frmts br ru; popd
+cp -pr html/* docs/docs-%{cpuarch}/
+cp -pr doc/html/* docs/docs-%{cpuarch}/en/html
+cp -pr doc/gdal_frmts/* docs/docs-%{cpuarch}/gdal_frmts
+cp -pr doc/ogrsf_frmts/* docs/docs-%{cpuarch}/ogrsf_frmts
+cp -pr doc/br/html/* docs/docs-%{cpuarch}/br
+cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
+cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
-# install cpl_config.h bz#430894
-install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/
+# install multilib cpl_config.h bz#430894
+install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
+# create universal multilib cpl_config.h bz#341231
+cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <
+
+if __WORDSIZE == 32
+include "gdal/cpl_config-32.h"
+elif __WORDSIZE == 64
+include "gdal/cpl_config-64.h"
+else
+error "Unknown word size"
+endif
+EOF
+touch -r VERSION port/cpl_config.h
+
+# multilib gdal-config
+mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
# cleanup junks
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
@@ -335,7 +400,7 @@ rm -rf ogr/ogr_sql_test.py # crash ugly (mustfix)
rm -rf gdrivers/dted.py # crash ugly (mustfix)
# run tests but force than normal exit
-./run_all.py || exit 0
+./run_all.py || true
popd
@@ -345,10 +410,10 @@ rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files
%defattr(-,root,root,-)
%doc NEWS PROVENANCE.TXT-mainstream PROVENANCE.TXT-fedora COMMITERS
-%doc doc/frmts
+%doc docs/
%{_bindir}/gdal_contour
%{_bindir}/gdal_rasterize
%{_bindir}/gdal_translate
@@ -382,13 +447,8 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
-%doc html ogr/html
-%doc ogr/wcts/html
-%doc ogr/ogrsf_frmts/html
-%if %{build_refman}
-%doc ogr/ogrsf_frmts/latex/refman.pdf
-%endif
-%{_bindir}/%{name}-config
+%doc docs
+%{_bindir}/%{name}-config-%{cpuarch}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
@@ -397,6 +457,7 @@ rm -rf $RPM_BUILD_ROOT
%files python
%defattr(-,root,root,-)
+%doc swig/python/samples
%exclude %{_bindir}/*.py?
%attr(0755,root,root) %{_bindir}/*.py
%{python_sitearch}/*
@@ -406,10 +467,7 @@ rm -rf $RPM_BUILD_ROOT
%files perl
%defattr(-,root,root,-)
-%doc swig/perl/html
-%if %{build_refman}
-%doc swig/perl/latex/refman.pdf
-%endif
+%doc doc/docs-perl
%doc swig/perl/README
%{perl_vendorarch}/*
@@ -422,13 +480,15 @@ rm -rf $RPM_BUILD_ROOT
%files java
%defattr(-,root,root,-)
+%doc swig/java/apps
%{_javadir}/%{name}-%{version}.jar
%changelog
-* Sun May 25 2008 Balint Cristian - 1.5.1-9
-- enable ruby and java packages
-- fix spurious sed problem
-- spec file cosmetics
+* Tue May 27 2008 Balint Cristian - 1.5.1-10
+- fix for multilib packaging bz#341231
+- huge spec cleanup
+- enable russian and brazil docs
+- enable and triage more docs
* Thu May 23 2008 Balint Cristian - 1.5.1-8
- fix sincos on all arch
From 9b59b7fdb30828370065cc325ebba11266a3407a Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 27 May 2008 20:48:07 +0000
Subject: [PATCH 043/541] - fix multilib gdal-config, add wrapper around - fix
typos in cpl_config.h wrapper
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 44 +++++++++++++++++++++++++++++++++++---------
1 file changed, 35 insertions(+), 9 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 2efe619..af947d6 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -361,20 +361,36 @@ cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
# create universal multilib cpl_config.h bz#341231
cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <
+#include
-if __WORDSIZE == 32
-include "gdal/cpl_config-32.h"
-elif __WORDSIZE == 64
-include "gdal/cpl_config-64.h"
-else
-error "Unknown word size"
-endif
+#if __WORDSIZE == 32
+#include "gdal/cpl_config-32.h"
+#else
+#if __WORDSIZE == 64
+#include "gdal/cpl_config-64.h"
+#else
+#error "Unknown word size"
+#endif
+#endif
EOF
touch -r VERSION port/cpl_config.h
# multilib gdal-config
mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
+cat > %{buildroot}%{_bindir}/%{name}-config < - 1.5.1-11
+- fix multilib gdal-config, add wrapper around
+- fix typos in cpl_config.h wrapper
+
* Tue May 27 2008 Balint Cristian - 1.5.1-10
- fix for multilib packaging bz#341231
- huge spec cleanup
- enable russian and brazil docs
- enable and triage more docs
+* Sun May 25 2008 Balint Cristian - 1.5.1-9
+- enable ruby and java packages
+- fix spurious sed problem
+- spec file cosmetics
+
* Thu May 23 2008 Balint Cristian - 1.5.1-8
- fix sincos on all arch
From 05c1238ba1149a03832bf52eeb8fd85328e8e9af Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 28 May 2008 14:09:46 +0000
Subject: [PATCH 044/541] - fix once more gdal-config
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 49 +++++++++++++++++++++++++++----------------------
1 file changed, 27 insertions(+), 22 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index af947d6..1848e39 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -183,7 +183,7 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--datadir=%{_datadir}/%{name}/ \
--with-threads \
--with-dods-root=%{_libdir} \
- --with-ogdi=`ogdi-config-%{cpuarch} --libdir` \
+ --with-ogdi=`ogdi-config --libdir` \
--with-cfitsio=%{_prefix} \
--with-geotiff=external \
--with-tiff=external \
@@ -302,24 +302,11 @@ mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
rm -rf %{buildroot}%{ruby_sitearch}/%{name}
# install multilib java modules in the right path
-touch -r VERSION swig/java/gdal.jar
+touch -r NEWS swig/java/gdal.jar
mkdir -p %{buildroot}%{_javadir}
cp -p swig/java/gdal.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
-# install pkgconfig file
-cat > %{name}.pc < %{buildroot}%{_includedir}/%{name}/cpl_config.h < %{name}.pc < %{buildroot}%{_bindir}/%{name}-config < - 1.5.1-12
+- fix once more gdal-config
+
* Tue May 27 2008 Balint Cristian - 1.5.1-11
- fix multilib gdal-config, add wrapper around
- fix typos in cpl_config.h wrapper
From b6bca5341a9d5aefa53727aa3579d26ba33d5af7 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 28 May 2008 14:53:52 +0000
Subject: [PATCH 045/541] - fix pkgconfig too
----------------------------------------------------------------------
Modified Files: devel/gdal.spec
----------------------------------------------------------------------
---
gdal.spec | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 1848e39..42bf24a 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.1
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -307,10 +307,6 @@ mkdir -p %{buildroot}%{_javadir}
cp -p swig/java/gdal.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
-
-mkdir -p %{buildroot}%{_libdir}/pkgconfig/
-install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
-
# fix some exec bits
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
@@ -376,6 +372,10 @@ Libs: -L\${libdir} -lgdal
Cflags: -I\${includedir}/%{name}
EOF
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
+touch -r NEWS %{buildroot}%{_libdir}/pkgconfig/
+
# multilib gdal-config
mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
cat > %{buildroot}%{_bindir}/%{name}-config < - 1.5.1-13
+- fix pkgconfig too
+
* Wed May 27 2008 Balint Cristian - 1.5.1-12
- fix once more gdal-config
From 58ea67828f9bf0da0e639e4c5be2e055850aad27 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 12 Jun 2008 14:53:11 +0000
Subject: [PATCH 046/541]
----------------------------------------------------------------------
Modified Files: devel/gdal.spec Added Files: devel/import.log
----------------------------------------------------------------------
---
gdal.spec | 23 ++++++++++++++++++++---
import.log | 1 +
2 files changed, 21 insertions(+), 3 deletions(-)
create mode 100644 import.log
diff --git a/gdal.spec b/gdal.spec
index 42bf24a..0695e76 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -11,17 +11,21 @@ Patch0: %{name}-gcc43.patch
Patch1: %{name}-perl510.patch
Patch2: %{name}-sincos.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libtool swig pkgconfig ruby java-devel ant
+BuildRequires: libtool pkgconfig
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
-BuildRequires: python-devel >= 2.4 xerces-c-devel
+BuildRequires: python-devel xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
+%if "%{?dist}" != ".el4"
+BuildRequires: ant swig ruby java-devel
+%endif
+
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -68,6 +72,7 @@ Requires: %{name} = %{version}-%{release}
%description perl
The GDAL perl modules provides support to handle multiple GIS file formats.
+%if "%{?dist}" != ".el4"
%package ruby
Summary: Ruby modules for the GDAL file format library
Group: Development/Libraries
@@ -85,6 +90,7 @@ Requires: %{name} = %{version}-%{release}
%description java
The GDAL java modules provides support to handle multiple GIS file formats.
+%endif
%prep
%setup -q -n %{name}-%{version}-fedora
@@ -203,8 +209,10 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-curl \
--with-python \
--with-perl \
+%if "%{?dist}" != ".el4"
--with-ruby \
--with-java \
+%endif
--with-xerces \
--with-xerces-lib='-lxerces-c' \
--with-xerces-inc=%{_includedir} \
@@ -241,6 +249,7 @@ pushd swig/perl
echo > Makefile.PL;
popd
+%if "%{?dist}" != ".el4"
# make java modules
pushd swig/java
make generate
@@ -248,6 +257,7 @@ make generate
rm -rf org/gdal/gdal/ColorEntry.java
make build
popd
+%endif
# remake documentation for multilib issues
# olso include many pdf documentation
@@ -297,6 +307,7 @@ mkdir -p %{buildroot}%{perl_vendorarch}
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+%if "%{?dist}" != ".el4"
# move ruby modules in the right path
mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
rm -rf %{buildroot}%{ruby_sitearch}/%{name}
@@ -306,6 +317,7 @@ touch -r NEWS swig/java/gdal.jar
mkdir -p %{buildroot}%{_javadir}
cp -p swig/java/gdal.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
+%endif
# fix some exec bits
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
@@ -325,7 +337,10 @@ install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+%if "%{?dist}" != ".el4"
+# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+%endif
install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
@@ -490,6 +505,7 @@ rm -rf $RPM_BUILD_ROOT
%doc swig/perl/README
%{perl_vendorarch}/*
+%if "%{?dist}" != ".el4"
%files ruby
%defattr(-,root,root,-)
%{ruby_sitearch}/gdal.so
@@ -501,6 +517,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc swig/java/apps
%{_javadir}/%{name}-%{version}.jar
+%endif
%changelog
* Wed May 27 2008 Balint Cristian - 1.5.1-13
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..616c814
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+gdal-1_5_1-13_fc9:HEAD:gdal-1.5.1-13.fc9.src.rpm:1213281502
From 7d5eff66d5e057dd660be4b47e0a8ab74af376f9 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 12 Jun 2008 19:44:06 +0000
Subject: [PATCH 047/541] *** empty log message ***
---
import.log | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 import.log
diff --git a/import.log b/import.log
deleted file mode 100644
index 616c814..0000000
--- a/import.log
+++ /dev/null
@@ -1 +0,0 @@
-gdal-1_5_1-13_fc9:HEAD:gdal-1.5.1-13.fc9.src.rpm:1213281502
From 5284e25807e373036c9dc2b4823aa717a0cf1ebf Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 12 Jun 2008 19:48:03 +0000
Subject: [PATCH 048/541] - a new bugfix upstream - drop gcc43 patch - more
license cleaned
----------------------------------------------------------------------
Modified Files: devel/.cvsignore devel/gdal.spec devel/sources Added
Files: devel/import.log Removed Files: devel/gdal-gcc43.patch
----------------------------------------------------------------------
---
.cvsignore | 2 +-
gdal-gcc43.patch | 15 ---------------
gdal.spec | 21 ++++++++++++---------
import.log | 1 +
sources | 2 +-
5 files changed, 15 insertions(+), 26 deletions(-)
delete mode 100644 gdal-gcc43.patch
create mode 100644 import.log
diff --git a/.cvsignore b/.cvsignore
index 700987a..70e220f 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.5.1-fedora.tar.gz
gdalautotest-1.5.0.tar.gz
+gdal-1.5.2-fedora.tar.gz
diff --git a/gdal-gcc43.patch b/gdal-gcc43.patch
deleted file mode 100644
index 2505d98..0000000
--- a/gdal-gcc43.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp.orig 2008-02-14 02:43:16.000000000 +0200
-+++ ogr/ogrsf_frmts/geojson/ogrgeojsonlayer.cpp 2008-02-14 13:21:22.000000000 +0200
-@@ -26,10 +26,11 @@
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- ****************************************************************************/
-+#include // for_each, find_if
-+
- #include "ogr_geojson.h"
- #include "ogrgeojsonwriter.h"
- #include // JSON-C
--#include // for_each, find_if
-
- /************************************************************************/
- /* STATIC MEMBERS DEFINITION */
diff --git a/gdal.spec b/gdal.spec
index 0695e76..76ddc17 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,15 +1,14 @@
Name: gdal
-Version: 1.5.1
-Release: 13%{?dist}
+Version: 1.5.2
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
-Patch0: %{name}-gcc43.patch
-Patch1: %{name}-perl510.patch
-Patch2: %{name}-sincos.patch
+Patch0: %{name}-perl510.patch
+Patch1: %{name}-sincos.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
@@ -25,7 +24,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -94,9 +93,8 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
-%patch0 -p0 -b .gcc43~
-%patch1 -p0 -b .perl510~
-%patch2 -p0 -b .sincos~
+%patch0 -p0 -b .perl510~
+%patch1 -p0 -b .sincos~
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -520,6 +518,11 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jun 12 2008 Balint Cristian - 1.5.2-1
+- a new bugfix upstream
+- drop gcc43 patch
+- more license cleaned
+
* Wed May 27 2008 Balint Cristian - 1.5.1-13
- fix pkgconfig too
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..7657700
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
diff --git a/sources b/sources
index 5ed14b0..e6c2215 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-6027a5c46da797133ecee063cacec9c3 gdal-1.5.1-fedora.tar.gz
e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
+b032dc858b5af1246023863317230701 gdal-1.5.2-fedora.tar.gz
From 16529da853c3f55d1770375056c9a5dbcc0b6a36 Mon Sep 17 00:00:00 2001
From: pertusus
Date: Wed, 10 Sep 2008 12:59:02 +0000
Subject: [PATCH 049/541] - patch for libdap > 0.8.0, from Rob Cermak
---
gdal-libdap.patch | 24 ++++++++++++++++++++++++
gdal.spec | 7 ++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 gdal-libdap.patch
diff --git a/gdal-libdap.patch b/gdal-libdap.patch
new file mode 100644
index 0000000..80ad33e
--- /dev/null
+++ b/gdal-libdap.patch
@@ -0,0 +1,24 @@
+diff -up gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp.libdap~ gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp
+--- gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp.libdap~ 2008-09-09 16:49:39.000000000 +0200
++++ gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp 2008-09-09 16:50:05.000000000 +0200
+@@ -67,6 +67,8 @@ CPL_C_START
+ void GDALRegister_DODS(void);
+ CPL_C_END
+
++using namespace libdap ;
++
+ /** Attribute names used to encode geo-referencing information. Note that
+ these are not C++ objects to avoid problems with static global
+ constructors.
+diff -up gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
+--- gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ 2008-09-09 16:50:50.000000000 +0200
++++ gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2008-09-09 16:51:19.000000000 +0200
+@@ -68,6 +68,8 @@
+ #include
+ #include
+
++using namespace libdap ;
++
+ /************************************************************************/
+ /* OGRDODSFieldDefn */
+ /************************************************************************/
diff --git a/gdal.spec b/gdal.spec
index 76ddc17..04dc013 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -9,6 +9,7 @@ Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
Patch0: %{name}-perl510.patch
Patch1: %{name}-sincos.patch
+Patch2: %{name}-libdap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
@@ -95,6 +96,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%setup -q -n %{name}-%{version}-fedora
%patch0 -p0 -b .perl510~
%patch1 -p0 -b .sincos~
+%patch2 -p1 -b .libdap~
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -518,6 +520,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Sep 9 2008 Patrice Dumas - 1.5.2-2
+- patch for libdap > 0.8.0, from Rob Cermak
+
* Thu Jun 12 2008 Balint Cristian - 1.5.2-1
- a new bugfix upstream
- drop gcc43 patch
From 2ff93b0fe734d94e2fcbc61cdd1d34bcb13e077f Mon Sep 17 00:00:00 2001
From: pertusus
Date: Thu, 11 Sep 2008 14:14:57 +0000
Subject: [PATCH 050/541] disable grass support to avoid depending on oneself
during the build
---
gdal.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 04dc013..eb2e2e2 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.2
-Release: 2%{?dist}
+Release: 2%{?dist}.1
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -25,7 +25,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -520,7 +520,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
-* Tue Sep 9 2008 Patrice Dumas - 1.5.2-2
+* Tue Sep 9 2008 Patrice Dumas - 1.5.2-2.1
- patch for libdap > 0.8.0, from Rob Cermak
* Thu Jun 12 2008 Balint Cristian - 1.5.2-1
From fff6d2508e7c97284da372dfcbdd0b64686f622f Mon Sep 17 00:00:00 2001
From: pertusus
Date: Thu, 11 Sep 2008 15:07:22 +0000
Subject: [PATCH 051/541] reenable grass support
---
gdal.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index eb2e2e2..7b69098 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.2
-Release: 2%{?dist}.1
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -25,7 +25,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -520,7 +520,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
-* Tue Sep 9 2008 Patrice Dumas - 1.5.2-2.1
+* Tue Sep 9 2008 Patrice Dumas - 1.5.2-3
- patch for libdap > 0.8.0, from Rob Cermak
* Thu Jun 12 2008 Balint Cristian - 1.5.2-1
From 0537f41bed399d301e6ec92d3425622d99e0d48f Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Tue, 30 Sep 2008 12:32:18 +0000
Subject: [PATCH 052/541] - enable gdal_array for python subpackage - require
numpy
---
.cvsignore | 2 +-
gdal.spec | 9 +++++++--
import.log | 1 +
sources | 2 +-
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 70e220f..fbb873c 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdalautotest-1.5.0.tar.gz
gdal-1.5.2-fedora.tar.gz
+gdalautotest-1.5.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 7b69098..56cf799 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -12,12 +12,12 @@ Patch1: %{name}-sincos.patch
Patch2: %{name}-libdap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
+BuildRequires: python-devel numpy xerces-c-devel
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
-BuildRequires: python-devel xerces-c-devel
BuildRequires: perl(ExtUtils::MakeMaker)
%if "%{?dist}" != ".el4"
@@ -59,6 +59,7 @@ The GDAL library provides support to handle multiple GIS file formats.
%package python
Summary: Python modules for the GDAL file format library
Group: Development/Libraries
+Requires: numpy
Requires: %{name} = %{version}-%{release}
%description python
@@ -520,6 +521,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Sep 30 2008 Balint Cristian - 1.5.2-4
+- enable gdal_array for python subpackage
+- require numpy
+
* Tue Sep 9 2008 Patrice Dumas - 1.5.2-3
- patch for libdap > 0.8.0, from Rob Cermak
diff --git a/import.log b/import.log
index 7657700..8b5178d 100644
--- a/import.log
+++ b/import.log
@@ -1 +1,2 @@
gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
+gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
diff --git a/sources b/sources
index e6c2215..233abd2 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
b032dc858b5af1246023863317230701 gdal-1.5.2-fedora.tar.gz
+e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
From a5de51517bdb39374cfb72d0ff5dce565f19b7fb Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 24 Oct 2008 11:46:22 +0000
Subject: [PATCH 053/541] - new stable - ship static package too - fix some doc
generation - libdap patch for fc10 only
---
.cvsignore | 2 +-
gdal-perl510.patch | 45 ---------------------------------------------
gdal-sincos.patch | 11 -----------
gdal.spec | 42 ++++++++++++++++++++++++++++++------------
import.log | 1 +
sources | 2 +-
6 files changed, 33 insertions(+), 70 deletions(-)
delete mode 100644 gdal-perl510.patch
delete mode 100644 gdal-sincos.patch
diff --git a/.cvsignore b/.cvsignore
index fbb873c..9bf0d89 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.5.2-fedora.tar.gz
gdalautotest-1.5.0.tar.gz
+gdal-1.5.3-fedora.tar.gz
diff --git a/gdal-perl510.patch b/gdal-perl510.patch
deleted file mode 100644
index 91df75f..0000000
--- a/gdal-perl510.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- swig/perl/gdal_wrap.cpp.orig 2008-03-25 20:19:03.000000000 +0200
-+++ swig/perl/gdal_wrap.cpp 2008-03-25 20:19:52.000000000 +0200
-@@ -1228,8 +1228,11 @@
- /* Macros for low-level exception handling */
- #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
-
-+#ifndef XSPROTO
-+# define XSPROTO(name) void name(pTHX_ CV* cv)
-+#endif
-
--typedef XS(SwigPerlWrapper);
-+typedef XSPROTO(SwigPerlWrapper);
- typedef SwigPerlWrapper *SwigPerlWrapperPtr;
-
- /* Structure for command table */
---- swig/perl/ogr_wrap.cpp.orig 2008-03-25 20:45:42.000000000 +0200
-+++ swig/perl/ogr_wrap.cpp 2008-03-25 20:48:00.000000000 +0200
-@@ -1228,8 +1228,11 @@
- /* Macros for low-level exception handling */
- #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
-
-+#ifndef XSPROTO
-+# define XSPROTO(name) void name(pTHX_ CV* cv)
-+#endif
-
--typedef XS(SwigPerlWrapper);
-+typedef XSPROTO(SwigPerlWrapper);
- typedef SwigPerlWrapper *SwigPerlWrapperPtr;
-
- /* Structure for command table */
---- swig/perl/osr_wrap.cpp.orig 2008-03-25 20:49:16.000000000 +0200
-+++ swig/perl/osr_wrap.cpp 2008-03-25 20:49:33.000000000 +0200
-@@ -1229,7 +1229,11 @@
- #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
-
-
--typedef XS(SwigPerlWrapper);
-+#ifndef XSPROTO
-+# define XSPROTO(name) void name(pTHX_ CV* cv)
-+#endif
-+
-+typedef XSPROTO(SwigPerlWrapper);
- typedef SwigPerlWrapper *SwigPerlWrapperPtr;
-
- /* Structure for command table */
diff --git a/gdal-sincos.patch b/gdal-sincos.patch
deleted file mode 100644
index 1a6f703..0000000
--- a/gdal-sincos.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- frmts/hdf4/hdf-eos/GDapi.c.orig 2008-05-20 15:01:09.000000000 +0300
-+++ frmts/hdf4/hdf-eos/GDapi.c 2008-05-20 15:02:07.000000000 +0300
-@@ -6258,7 +6258,7 @@
-
-
-
--#if !defined(HP9000) && !defined(DEC_ALPHA)
-+#if 0
- void
- sincos(double val, double *sin_val, double *cos_val)
- {
diff --git a/gdal.spec b/gdal.spec
index 56cf799..2a10880 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,15 +1,13 @@
Name: gdal
-Version: 1.5.2
-Release: 4%{?dist}
+Version: 1.5.3
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
-Patch0: %{name}-perl510.patch
-Patch1: %{name}-sincos.patch
-Patch2: %{name}-libdap.patch
+Patch0: %{name}-libdap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -56,6 +54,13 @@ Requires: %{name} = %{version}-%{release}
%description devel
The GDAL library provides support to handle multiple GIS file formats.
+%package static
+Summary: Static Development Libraries for the GDAL file format library
+Group: Development/Libraries
+
+%description static
+The GDAL library provides support to handle multiple GIS file formats.
+
%package python
Summary: Python modules for the GDAL file format library
Group: Development/Libraries
@@ -95,9 +100,9 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%prep
%setup -q -n %{name}-%{version}-fedora
-%patch0 -p0 -b .perl510~
-%patch1 -p0 -b .sincos~
-%patch2 -p1 -b .libdap~
+%if "%{?dist}" == ".fc10"
+%patch0 -p1 -b .libdap~
+%endif
# unpack test cases olso.
tar -xzf %{SOURCE1} .
@@ -222,7 +227,6 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
%if %{grass_support}
--with-libgrass \
--with-grass=%{_prefix} \
- --disable-static
%endif
# fixup hardcoded wrong compile flags.
@@ -255,7 +259,7 @@ popd
pushd swig/java
make generate
# disable ColorEntry for now (gdal Ticket: #2331)
-rm -rf org/gdal/gdal/ColorEntry.java
+rm -rf org/gdal/gdal/ColorTable.java
make build
popd
%endif
@@ -296,6 +300,9 @@ cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
+# fix python installation path
+sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
+
make DESTDIR=%{buildroot} \
install
@@ -333,7 +340,7 @@ mkdir -p docs/docs-%{cpuarch}/pdf
pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
-install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
+#install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
@@ -412,7 +419,7 @@ touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
# cleanup junks
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
-for junk in {*.a,*.la,*.bs,.exists,.packlist,.cvsignore} ; do
+for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
done
@@ -461,6 +468,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/gdaltransform
%{_bindir}/nearblack
%{_bindir}/ogr*
+%{_bindir}/testepsg
%{_libdir}/*.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
@@ -490,6 +498,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}-config*
+%files static
+%defattr(-,root,root,-)
+%{_libdir}/*.a
+
%files python
%defattr(-,root,root,-)
%doc swig/python/samples
@@ -521,6 +533,12 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Oct 24 2008 Balint Cristian - 1.5.3-1
+- new stable
+- ship static package too
+- fix some doc generation
+- libdap patch for fc10 only
+
* Tue Sep 30 2008 Balint Cristian - 1.5.2-4
- enable gdal_array for python subpackage
- require numpy
diff --git a/import.log b/import.log
index 8b5178d..78ef956 100644
--- a/import.log
+++ b/import.log
@@ -1,2 +1,3 @@
gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
+gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
diff --git a/sources b/sources
index 233abd2..8f7f3bc 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-b032dc858b5af1246023863317230701 gdal-1.5.2-fedora.tar.gz
e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
+cbd6bb3273bdb9a86d1ec0d2a07efe5b gdal-1.5.3-fedora.tar.gz
From f25980717f48496654b3fd337828e8f97334ff18 Mon Sep 17 00:00:00 2001
From: Ignacio Vazquez-Abrams
Date: Sat, 29 Nov 2008 16:37:00 +0000
Subject: [PATCH 054/541] Rebuild for Python 2.6
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 2a10880..e893d25 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.5.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -533,6 +533,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.5.3-2
+- Rebuild for Python 2.6
+
* Fri Oct 24 2008 Balint Cristian - 1.5.3-1
- new stable
- ship static package too
From b83318a00978a8fa278b73f51ba87ff9750bd6bb Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sat, 6 Dec 2008 20:24:39 +0000
Subject: [PATCH 055/541] - new branch - disable grass - fix ruby compile
---
.cvsignore | 4 ++--
gdal.spec | 50 +++++++++++++++++++++++++-------------------------
import.log | 1 +
sources | 4 ++--
4 files changed, 30 insertions(+), 29 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 9bf0d89..74d813a 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdalautotest-1.5.0.tar.gz
-gdal-1.5.3-fedora.tar.gz
+gdal-1.6.0RC4-fedora.tar.gz
+gdalautotest-1.6.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index e893d25..84fbd5f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,12 +1,12 @@
Name: gdal
-Version: 1.5.3
-Release: 2%{?dist}
+Version: 1.6.0
+Release: 0.1.rc4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
-Source0: %{name}-%{version}-fedora.tar.gz
-Source1: http://download.osgeo.org/gdal/gdalautotest-1.5.0.tar.gz
+Source0: %{name}-%{version}RC4-fedora.tar.gz
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
Patch0: %{name}-libdap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
@@ -23,7 +23,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -105,7 +105,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%endif
# unpack test cases olso.
-tar -xzf %{SOURCE1} .
+tar -xzf %{SOURCE1}
# fix russian docs from tarball
for ru in `find doc/ru/ -type f -name "*.dox"`; do
@@ -142,20 +142,6 @@ chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidatasource.cpp
chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
-# bug 189337 c8
-# HAVE_NETCDF is not present anymore in hdf
-pushd frmts/hdf4
-for file in `find . -type f -name "*.*"`
-do
- sed -i \
- -e 's|MAX_NC_NAME|H4_MAX_NC_NAME|' \
- -e 's|MAX_VAR_DIMS|H4_MAX_VAR_DIMS|' \
- -e 's|MAX_NC_DIMS|H4_MAX_NC_DIMS|g' \
- -e 's|UNKNOWN|H4_UNKNOWN|g' \
- $file
-done
-popd
-
%build
# fix hardcoded issues
@@ -170,7 +156,7 @@ sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
sed -i 's|-L\$with_grass\/lib||g' configure
sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
-sed -i 's|-lmfhdf -ldf $LIBS|-L$libdir/hdf -lmfhdf -ldf $LIBS|g' configure
+sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
sed -i 's|-logdi31|-logdi|g' configure
# fix python path for ppc64
@@ -237,6 +223,9 @@ sed -e 's/ cfitsio / /' \
GDALmake.opt.orig > GDALmake.opt
rm GDALmake.opt.orig
+# fix ruby flags
+sed -i -e "s/\$(LD)/g++ -L..\/..\/.libs\/ $RPM_OPT_FLAGS/g" swig/ruby/RubyMakefile.mk
+
# fix doxygen for multilib docs
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
@@ -257,6 +246,11 @@ popd
%if "%{?dist}" != ".el4"
# make java modules
pushd swig/java
+# fix makefile
+sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
+sed -i -e 's|-cp|\#-cp|g' GNUmakefile
+sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
+# build java module
make generate
# disable ColorEntry for now (gdal Ticket: #2331)
rm -rf org/gdal/gdal/ColorTable.java
@@ -419,13 +413,14 @@ touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
# cleanup junks
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
+rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
done
%check
-pushd gdalautotest-1.5.0
+pushd gdalautotest-1.6.0
# export test enviroment
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
@@ -434,11 +429,12 @@ export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
# remove some testcases for now due to build failure
rm -rf ogr/ogr_pg.py # no pgsql during test (disabled)
+rm -rf ogr/ogr_mysql.py # no mysql during test (disabled)
rm -rf ogr/ogr_dods.py # no DODS during test (disabled)
rm -rf gdrivers/dods.py # no DODS during test (disabled)
rm -rf osr/osr_esri.py # ESRI datum absent (disabled)
-rm -rf ogr/ogr_sql_test.py # crash ugly (mustfix)
-rm -rf gdrivers/dted.py # crash ugly (mustfix)
+rm -rf ogr/ogr_sql_test.py # no SQl during tests
+rm -rf gcore/mask.py # crash ugly (mustfix)
# run tests but force than normal exit
./run_all.py || true
@@ -475,7 +471,6 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/gdaladdo.1.gz
%{_mandir}/man1/gdalinfo.1.gz
%{_mandir}/man1/gdaltindex.1.gz
-%{_mandir}/man1/gdalwarp.1.gz
%{_mandir}/man1/gdaltransform.1.gz
%{_mandir}/man1/gdal2tiles.1.gz
%{_mandir}/man1/nearblack.1.gz
@@ -533,6 +528,11 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Sat Dec 06 2008 Balint Cristian - 1.6.0-0.1.rc4
+- new branch
+- disable grass
+- fix ruby compile
+
* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.5.3-2
- Rebuild for Python 2.6
diff --git a/import.log b/import.log
index 78ef956..ba535d5 100644
--- a/import.log
+++ b/import.log
@@ -1,3 +1,4 @@
gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
+gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
diff --git a/sources b/sources
index 8f7f3bc..4b50d11 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-e8a9a020f086a4ed977b30921785006f gdalautotest-1.5.0.tar.gz
-cbd6bb3273bdb9a86d1ec0d2a07efe5b gdal-1.5.3-fedora.tar.gz
+7ed4b51fd8480e835981cf62745fe7d2 gdal-1.6.0RC4-fedora.tar.gz
+8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
From 1d2b4bf9bdb92b5eed61280963cc8931bd37a895 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Sat, 6 Dec 2008 22:29:40 +0000
Subject: [PATCH 056/541] - enable grass
---
gdal.spec | 9 ++++++---
import.log | 1 +
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 84fbd5f..6162c7f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 0.1.rc4%{?dist}
+Release: 0.2.rc4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -23,7 +23,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -433,7 +433,7 @@ rm -rf ogr/ogr_mysql.py # no mysql during test (disabled)
rm -rf ogr/ogr_dods.py # no DODS during test (disabled)
rm -rf gdrivers/dods.py # no DODS during test (disabled)
rm -rf osr/osr_esri.py # ESRI datum absent (disabled)
-rm -rf ogr/ogr_sql_test.py # no SQl during tests
+rm -rf ogr/ogr_sql_test.py # no SQL during tests
rm -rf gcore/mask.py # crash ugly (mustfix)
# run tests but force than normal exit
@@ -528,6 +528,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Sat Dec 06 2008 Balint Cristian - 1.6.0-0.2.rc4
+- enable grass
+
* Sat Dec 06 2008 Balint Cristian - 1.6.0-0.1.rc4
- new branch
- disable grass
diff --git a/import.log b/import.log
index ba535d5..65677c3 100644
--- a/import.log
+++ b/import.log
@@ -2,3 +2,4 @@ gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
+gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
From 9ed5e93a44eb287d50846c38624e29312c786615 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Fri, 12 Dec 2008 03:03:54 +0000
Subject: [PATCH 057/541] - final stable release
---
.cvsignore | 2 +-
gdal.spec | 7 +++++--
import.log | 1 +
sources | 2 +-
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 74d813a..f23315d 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.6.0RC4-fedora.tar.gz
gdalautotest-1.6.0.tar.gz
+gdal-1.6.0-fedora.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 6162c7f..7fdec25 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,11 +1,11 @@
Name: gdal
Version: 1.6.0
-Release: 0.2.rc4%{?dist}
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
-Source0: %{name}-%{version}RC4-fedora.tar.gz
+Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
Patch0: %{name}-libdap.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -528,6 +528,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Dec 12 2008 Balint Cristian - 1.6.0-1
+- final stable release
+
* Sat Dec 06 2008 Balint Cristian - 1.6.0-0.2.rc4
- enable grass
diff --git a/import.log b/import.log
index 65677c3..a2a1881 100644
--- a/import.log
+++ b/import.log
@@ -3,3 +3,4 @@ gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
+gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
diff --git a/sources b/sources
index 4b50d11..692395a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-7ed4b51fd8480e835981cf62745fe7d2 gdal-1.6.0RC4-fedora.tar.gz
8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
+0dab181425d963c2cdf541806a37fde9 gdal-1.6.0-fedora.tar.gz
From 41d81be5844b8c2591f798adf3a75305d392ab5f Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 29 Jan 2009 14:21:56 +0000
Subject: [PATCH 058/541] - email change - rebuild without grass
---
.cvsignore | 2 +-
gdal.spec | 8 ++++++--
import.log | 1 +
sources | 2 +-
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index f23315d..4b553f5 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdalautotest-1.6.0.tar.gz
gdal-1.6.0-fedora.tar.gz
+gdalautotest-1.6.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 7fdec25..4e4665d 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -23,7 +23,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -528,6 +528,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jan 29 2009 Balint Cristian - 1.6.0-2
+- email change
+- rebuild without grass
+
* Fri Dec 12 2008 Balint Cristian - 1.6.0-1
- final stable release
diff --git a/import.log b/import.log
index a2a1881..6ad99bb 100644
--- a/import.log
+++ b/import.log
@@ -4,3 +4,4 @@ gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
+gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
diff --git a/sources b/sources
index 692395a..b0242ec 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
0dab181425d963c2cdf541806a37fde9 gdal-1.6.0-fedora.tar.gz
+8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
From d738089a9356a5eb6092c2546b38eae0c64a91bb Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Mon, 2 Feb 2009 21:11:25 +0000
Subject: [PATCH 059/541] - rebuild against mysql 5.1.30
---
gdal-mysql.patch | 20 ++++++++++++++++++++
gdal.spec | 7 ++++++-
import.log | 1 +
3 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 gdal-mysql.patch
diff --git a/gdal-mysql.patch b/gdal-mysql.patch
new file mode 100644
index 0000000..23158d7
--- /dev/null
+++ b/gdal-mysql.patch
@@ -0,0 +1,20 @@
+--- ogr/ogrsf_frmts/mysql/ogr_mysql.h.orig 2008-10-23 03:04:33.000000000 +0300
++++ ogr/ogrsf_frmts/mysql/ogr_mysql.h 2009-02-02 22:47:05.000000000 +0200
+@@ -31,6 +31,8 @@
+ #ifndef _OGR_MYSQL_H_INCLUDED
+ #define _OGR_MYSQL_H_INCLUDED
+
++#include "ogrsf_frmts.h"
++
+ #include
+ #include
+
+@@ -38,8 +40,6 @@
+ #undef bool
+ #endif
+
+-#include "ogrsf_frmts.h"
+-
+ /************************************************************************/
+ /* OGRMySQLLayer */
+ /************************************************************************/
diff --git a/gdal.spec b/gdal.spec
index 4e4665d..1a6b5e1 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -8,6 +8,7 @@ URL: http://www.gdal.org/
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
Patch0: %{name}-libdap.patch
+Patch1: %{name}-mysql.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -103,6 +104,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%if "%{?dist}" == ".fc10"
%patch0 -p1 -b .libdap~
%endif
+%patch1 -p0 -b .mysql~
# unpack test cases olso.
tar -xzf %{SOURCE1}
@@ -528,6 +530,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jan 29 2009 Balint Cristian - 1.6.0-3
+- rebuild against mysql 5.1.30
+
* Thu Jan 29 2009 Balint Cristian - 1.6.0-2
- email change
- rebuild without grass
diff --git a/import.log b/import.log
index 6ad99bb..6aa305a 100644
--- a/import.log
+++ b/import.log
@@ -5,3 +5,4 @@ gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
+gdal-1_6_0-3_fc11:HEAD:gdal-1.6.0-3.fc11.src.rpm:1233609041
From 068491f278d074ee023df87a3bda7c98b8090683 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Wed, 4 Feb 2009 13:30:47 +0000
Subject: [PATCH 060/541] - rebuild with grass support - fix email typo
---
gdal.spec | 12 ++++++++----
import.log | 1 +
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 1a6b5e1..5f7358a 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -24,7 +24,7 @@ BuildRequires: ant swig ruby java-devel
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -530,10 +530,14 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
-* Thu Jan 29 2009 Balint Cristian - 1.6.0-3
+* Wed Feb 04 2009 Balint Cristian - 1.6.0-4
+- rebuild with grass support
+- fix email typo
+
+* Thu Jan 29 2009 Balint Cristian - 1.6.0-3
- rebuild against mysql 5.1.30
-* Thu Jan 29 2009 Balint Cristian - 1.6.0-2
+* Thu Jan 29 2009 Balint Cristian - 1.6.0-2
- email change
- rebuild without grass
diff --git a/import.log b/import.log
index 6aa305a..56c45af 100644
--- a/import.log
+++ b/import.log
@@ -6,3 +6,4 @@ gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
gdal-1_6_0-3_fc11:HEAD:gdal-1.6.0-3.fc11.src.rpm:1233609041
+gdal-1_6_0-4_fc11:HEAD:gdal-1.6.0-4.fc11.src.rpm:1233754182
From f55f50ac19a417c0debf36565fafa33824a92d0b Mon Sep 17 00:00:00 2001
From: Jesse Keating
Date: Tue, 24 Feb 2009 19:57:52 +0000
Subject: [PATCH 061/541] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 5f7358a..507179e 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -530,6 +530,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Feb 24 2009 Fedora Release Engineering - 1.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
* Wed Feb 04 2009 Balint Cristian - 1.6.0-4
- rebuild with grass support
- fix email typo
From 9bded8600fae7b2e40a5120cf948992e6e349693 Mon Sep 17 00:00:00 2001
From: Jesse Keating
Date: Mon, 23 Mar 2009 16:12:11 +0000
Subject: [PATCH 062/541] - Depend specifically on GCJ for Java (Alex
Lancaster) - Disable grass (Alex Lancaster) - Create %_bindir before copying
files there
---
gdal-bindir.patch | 15 +++++++++++++++
gdal.spec | 16 +++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
create mode 100644 gdal-bindir.patch
diff --git a/gdal-bindir.patch b/gdal-bindir.patch
new file mode 100644
index 0000000..0dea261
--- /dev/null
+++ b/gdal-bindir.patch
@@ -0,0 +1,15 @@
+Create /usr/bin before attempting to compy anything there.
+
+Lubomir Rintel
+
+diff -up gdal-1.6.0-fedora/swig/python/GNUmakefile.bindir gdal-1.6.0-fedora/swig/python/GNUmakefile
+--- gdal-1.6.0-fedora/swig/python/GNUmakefile.bindir 2009-03-22 23:25:47.582438890 +0100
++++ gdal-1.6.0-fedora/swig/python/GNUmakefile 2009-03-22 23:26:10.465436318 +0100
+@@ -60,6 +60,7 @@ else
+ $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+ endif
+
++ $(INSTALL_DIR) $(DESTDIR)$(INST_BIN)
+ for f in $(SCRIPTS) ; do $(INSTALL) ./scripts/$$f $(DESTDIR)$(INST_BIN) ; done
+
+ docs:
diff --git a/gdal.spec b/gdal.spec
index 507179e..6c501ea 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -9,6 +9,7 @@ Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
+Patch2: %{name}-bindir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -20,11 +21,11 @@ BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeoti
BuildRequires: perl(ExtUtils::MakeMaker)
%if "%{?dist}" != ".el4"
-BuildRequires: ant swig ruby java-devel
+BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -105,6 +106,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%patch0 -p1 -b .libdap~
%endif
%patch1 -p0 -b .mysql~
+%patch2 -p1 -b .bindir~
# unpack test cases olso.
tar -xzf %{SOURCE1}
@@ -502,8 +504,7 @@ rm -rf $RPM_BUILD_ROOT
%files python
%defattr(-,root,root,-)
%doc swig/python/samples
-%exclude %{_bindir}/*.py?
-%attr(0755,root,root) %{_bindir}/*.py
+%attr(0755,root,root) %{_bindir}/*
%{python_sitearch}/*
%{_mandir}/man1/pct2rgb.1.gz
%{_mandir}/man1/rgb2pct.1.gz
@@ -530,6 +531,11 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Sun Mar 22 2009 Lubomir Rintel - 1.6.0-6
+- Depend specifically on GCJ for Java (Alex Lancaster)
+- Disable grass (Alex Lancaster)
+- Create %%_bindir before copying files there
+
* Tue Feb 24 2009 Fedora Release Engineering - 1.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
From d89d027262c730bf97f07d9bea8094e2d374862e Mon Sep 17 00:00:00 2001
From: Jesse Keating
Date: Mon, 23 Mar 2009 16:20:04 +0000
Subject: [PATCH 063/541] - Depend specifically on GCJ for Java (Alex
Lancaster) - Disable grass (Alex Lancaster) - Create %_bindir before copying
files there
---
gdal.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 6c501ea..04cd4de 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -531,7 +531,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
-* Sun Mar 22 2009 Lubomir Rintel - 1.6.0-6
+* Sun Mar 22 2009 Lubomir Rintel - 1.6.0-7
- Depend specifically on GCJ for Java (Alex Lancaster)
- Disable grass (Alex Lancaster)
- Create %%_bindir before copying files there
From a880b309cfd58a63afe61d88793b7c99cf6532a4 Mon Sep 17 00:00:00 2001
From: Jesse Keating
Date: Mon, 23 Mar 2009 23:07:27 +0000
Subject: [PATCH 064/541] - re-enable grass support
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 04cd4de..b6f89ff 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -25,7 +25,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -531,6 +531,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Mon Mar 23 2009 Jesse Keating - 1.6.0-8
+- re-enable grass support
+
* Sun Mar 22 2009 Lubomir Rintel - 1.6.0-7
- Depend specifically on GCJ for Java (Alex Lancaster)
- Disable grass (Alex Lancaster)
From 7dc8e6151a9a4114ebf779b9f7e2a7f8d3696230 Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Wed, 22 Jul 2009 21:18:26 +0000
Subject: [PATCH 065/541] - Rebuild for libdap 3.9.3
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index b6f89ff..24acf7c 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -531,6 +531,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Wed Jul 22 2009 Orion Poplawski - 1.6.0-9
+- Rebuild for libdap 3.9.3
+
* Mon Mar 23 2009 Jesse Keating - 1.6.0-8
- re-enable grass support
From bf7f7048e59c2c6172645a7a4eddb50236abd9dd Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Wed, 22 Jul 2009 21:31:08 +0000
Subject: [PATCH 066/541] Bootstrap
---
gdal.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 24acf7c..a913167 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -25,7 +25,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -532,7 +532,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jul 22 2009 Orion Poplawski - 1.6.0-9
-- Rebuild for libdap 3.9.3
+- Rebuild for libdap 3.9.3, bootstrap
* Mon Mar 23 2009 Jesse Keating - 1.6.0-8
- re-enable grass support
From 8ca3480f818bbec0b49e9df217916d8925c02f10 Mon Sep 17 00:00:00 2001
From: Jesse Keating
Date: Fri, 24 Jul 2009 23:39:09 +0000
Subject: [PATCH 067/541] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index a913167..3b079e5 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -531,6 +531,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Jul 24 2009 Fedora Release Engineering - 1.6.0-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
* Wed Jul 22 2009 Orion Poplawski - 1.6.0-9
- Rebuild for libdap 3.9.3, bootstrap
From 1e08c934e618b8df4247d960d74645c475142694 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?=
Date: Thu, 30 Jul 2009 10:14:24 +0000
Subject: [PATCH 068/541] - add patch for incompatibilities caused by libdap
3.9.x (thanks goes to arekm from PLD) - update to 1.6.1 - don't install
some refman.pdf, because they don't build - don't fail on man pages with
suffix other than .gz - fix filelist for python subpackage
---
.cvsignore | 2 +-
gdal-dods.patch | 48 +++++++++++++++++++++++++++++++++++++++++
gdal.spec | 57 ++++++++++++++++++++++++++++++-------------------
sources | 2 +-
4 files changed, 85 insertions(+), 24 deletions(-)
create mode 100644 gdal-dods.patch
diff --git a/.cvsignore b/.cvsignore
index 4b553f5..616d6ef 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.6.0-fedora.tar.gz
+gdal-1.6.1-fedora.tar.gz
gdalautotest-1.6.0.tar.gz
diff --git a/gdal-dods.patch b/gdal-dods.patch
new file mode 100644
index 0000000..751b38c
--- /dev/null
+++ b/gdal-dods.patch
@@ -0,0 +1,48 @@
+--- gdal-1.6.1/frmts/dods/dodsdataset2.cpp.org 2009-07-15 12:54:31.160838902 +0200
++++ gdal-1.6.1/frmts/dods/dodsdataset2.cpp 2009-07-15 12:58:38.080454628 +0200
+@@ -693,15 +693,15 @@
+ /* -------------------------------------------------------------------- */
+ /* Try and fetch the corresponding DAS subtree if it exists. */
+ /* -------------------------------------------------------------------- */
+- AttrTable *poFileInfo = oDAS.find_container( "GLOBAL" );
++ AttrTable *poFileInfo = oDAS.container()->find_container( "GLOBAL" );
+
+ if( poFileInfo == NULL )
+ {
+- poFileInfo = oDAS.find_container( "NC_GLOBAL" );
++ poFileInfo = oDAS.container()->find_container( "NC_GLOBAL" );
+
+ if( poFileInfo == NULL )
+ {
+- poFileInfo = oDAS.find_container( "HDF_GLOBAL" );
++ poFileInfo = oDAS.container()->find_container( "HDF_GLOBAL" );
+
+ if( poFileInfo == NULL )
+ {
+@@ -1275,7 +1275,7 @@
+ /* -------------------------------------------------------------------- */
+ /* Try and fetch the corresponding DAS subtree if it exists. */
+ /* -------------------------------------------------------------------- */
+- AttrTable *poBandInfo = poDODS->GetDAS().find_container( oVarName );
++ AttrTable *poBandInfo = poDODS->GetDAS().container()->find_container( oVarName );
+
+ if( poBandInfo == NULL )
+ {
+--- gdal-1.6.0-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.dods~ 2007-01-18 03:22:39.000000000 +0100
++++ gdal-1.6.0-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp 2009-07-30 09:39:21.000000000 +0200
+@@ -193,12 +193,12 @@ int OGRDODSDataSource::Open( const char
+ /* -------------------------------------------------------------------- */
+ AttrTable::Attr_iter dv_i;
+
+- for( dv_i = oDAS.attr_begin(); dv_i != oDAS.attr_end(); dv_i++ )
++ for( dv_i = oDAS.container()->attr_begin(); dv_i != oDAS.container()->attr_end(); dv_i++ )
+ {
+ if( EQUALN(oDAS.get_name(dv_i).c_str(),"ogr_layer_info",14)
+- && oDAS.is_container( dv_i ) )
++ && oDAS.container()->is_container( dv_i ) )
+ {
+- AttrTable *poAttr = oDAS.get_attr_table( dv_i );
++ AttrTable *poAttr = oDAS.container()->get_attr_table( dv_i );
+ string target_container = poAttr->get_attr( "target_container" );
+ BaseType *poVar = poDDS->var( target_container.c_str() );
+
diff --git a/gdal.spec b/gdal.spec
index 3b079e5..8ecd3ab 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,15 +1,17 @@
Name: gdal
-Version: 1.6.0
-Release: 10%{?dist}
+Version: 1.6.1
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
+# see PROVENANCE.TXT-fedora for details
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
+Patch3: %{name}-dods.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -107,6 +109,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%endif
%patch1 -p0 -b .mysql~
%patch2 -p1 -b .bindir~
+%patch3 -p1 -b .dods~
# unpack test cases olso.
tar -xzf %{SOURCE1}
@@ -330,6 +333,7 @@ find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
# install and include all docs
+# due TeX-related issues some refman.pdf are not created
rm -rf docs doc/docs-perl
mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
@@ -339,15 +343,15 @@ pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf
install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
#install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
-install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
-install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+#install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
+#install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
%if "%{?dist}" != ".el4"
# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
%endif
-install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+#install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
@@ -460,6 +464,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/gdal_translate
%{_bindir}/gdaladdo
%{_bindir}/gdalinfo
+%{_bindir}/gdalbuildvrt
%{_bindir}/gdaltindex
%{_bindir}/gdalwarp
%{_bindir}/gdal_grid
@@ -472,19 +477,20 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
-%{_mandir}/man1/gdaladdo.1.gz
-%{_mandir}/man1/gdalinfo.1.gz
-%{_mandir}/man1/gdaltindex.1.gz
-%{_mandir}/man1/gdaltransform.1.gz
-%{_mandir}/man1/gdal2tiles.1.gz
-%{_mandir}/man1/nearblack.1.gz
-%{_mandir}/man1/gdal_contour.1.gz
-%{_mandir}/man1/gdal_rasterize.1.gz
-%{_mandir}/man1/gdal_translate.1.gz
-%{_mandir}/man1/gdal_utilities.1.gz
-%{_mandir}/man1/gdal_grid.1.gz
-%{_mandir}/man1/gdal_retile.1.gz
-%{_mandir}/man1/ogr*.1.gz
+%{_mandir}/man1/gdaladdo.1*
+%{_mandir}/man1/gdalbuildvrt.1*
+%{_mandir}/man1/gdalinfo.1*
+%{_mandir}/man1/gdaltindex.1*
+%{_mandir}/man1/gdaltransform.1*
+%{_mandir}/man1/gdal2tiles.1*
+%{_mandir}/man1/nearblack.1*
+%{_mandir}/man1/gdal_contour.1*
+%{_mandir}/man1/gdal_rasterize.1*
+%{_mandir}/man1/gdal_translate.1*
+%{_mandir}/man1/gdal_utilities.1*
+%{_mandir}/man1/gdal_grid.1*
+%{_mandir}/man1/gdal_retile.1*
+%{_mandir}/man1/ogr*.1*
%files devel
%defattr(-,root,root,-)
@@ -504,11 +510,11 @@ rm -rf $RPM_BUILD_ROOT
%files python
%defattr(-,root,root,-)
%doc swig/python/samples
-%attr(0755,root,root) %{_bindir}/*
+%attr(0755,root,root) %{_bindir}/*.py
%{python_sitearch}/*
-%{_mandir}/man1/pct2rgb.1.gz
-%{_mandir}/man1/rgb2pct.1.gz
-%{_mandir}/man1/gdal_merge.1.gz
+%{_mandir}/man1/pct2rgb.1*
+%{_mandir}/man1/rgb2pct.1*
+%{_mandir}/man1/gdal_merge.1*
%files perl
%defattr(-,root,root,-)
@@ -531,6 +537,13 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jul 30 2009 Dan Horak - 1.6.1-1
+- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
+- update to 1.6.1
+- don't install some refman.pdf, because they don't build
+- don't fail on man pages with suffix other than .gz
+- fix filelist for python subpackage
+
* Fri Jul 24 2009 Fedora Release Engineering - 1.6.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
diff --git a/sources b/sources
index b0242ec..ece4596 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-0dab181425d963c2cdf541806a37fde9 gdal-1.6.0-fedora.tar.gz
+52afc44f76ebb2d3a0e73dafa56f1c44 gdal-1.6.1-fedora.tar.gz
8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
From cf4edd81ca45ef4d2c720f104a969acbdeef6826 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Mr=C3=A1z?=
Date: Fri, 21 Aug 2009 13:28:29 +0000
Subject: [PATCH 069/541] - rebuilt with new openssl
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 8ecd3ab..34c43a9 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -537,6 +537,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Aug 21 2009 Tomas Mraz - 1.6.1-2
+- rebuilt with new openssl
+
* Thu Jul 30 2009 Dan Horak - 1.6.1-1
- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
- update to 1.6.1
From 41342dbac6c27e6fe7cb4b57643558bfa136f83b Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Tue, 17 Nov 2009 16:46:27 +0000
Subject: [PATCH 070/541] - Update to 1.6.2 - Rebuild for netcdf 4.1.0
---
.cvsignore | 3 ++-
gdal.spec | 11 ++++++++---
sources | 3 ++-
3 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 616d6ef..2b38ea8 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,3 @@
-gdal-1.6.1-fedora.tar.gz
+gdal-1.6.2.tar.gz
+gdal-1.6.2-fedora.tar.gz
gdalautotest-1.6.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 34c43a9..ee4f93c 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,10 +1,11 @@
Name: gdal
-Version: 1.6.1
-Release: 2%{?dist}
+Version: 1.6.2
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
+#Source0: http://download.osgeo.org/gdal/gdal-%{version}.tar.gz
# see PROVENANCE.TXT-fedora for details
Source0: %{name}-%{version}-fedora.tar.gz
Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
@@ -457,7 +458,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc NEWS PROVENANCE.TXT-mainstream PROVENANCE.TXT-fedora COMMITERS
+%doc NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
%doc docs/
%{_bindir}/gdal_contour
%{_bindir}/gdal_rasterize
@@ -537,6 +538,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Nov 17 2009 Orion Poplawski - 1.6.2-1
+- Update to 1.6.2
+- Rebuild for netcdf 4.1.0
+
* Fri Aug 21 2009 Tomas Mraz - 1.6.1-2
- rebuilt with new openssl
diff --git a/sources b/sources
index ece4596..bce1c15 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-52afc44f76ebb2d3a0e73dafa56f1c44 gdal-1.6.1-fedora.tar.gz
+f2dcd6aa7222d021202984523adf3b55 gdal-1.6.2.tar.gz
+a5c60f9d1bb97eabe4e681a762fb19dc gdal-1.6.2-fedora.tar.gz
8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
From 9913faa30245903e109efbf6db3c18164ae71aea Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Thu, 19 Nov 2009 17:51:11 +0000
Subject: [PATCH 071/541] - re-enable grass support
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index ee4f93c..779fb16 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -28,7 +28,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -538,6 +538,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Nov 19 2009 Orion Poplawski - 1.6.2-2
+- re-enable grass support
+
* Tue Nov 17 2009 Orion Poplawski - 1.6.2-1
- Update to 1.6.2
- Rebuild for netcdf 4.1.0
From 24009bef8690bf25f4cf3e16e5288300c0f2ab42 Mon Sep 17 00:00:00 2001
From: Bill Nottingham
Date: Wed, 25 Nov 2009 23:19:20 +0000
Subject: [PATCH 072/541] Fix typo that causes a failure to update the common
directory. (releng #2781)
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index bcaab90..641cfc9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
# Makefile for source rpm: gdal
-# $Id$
+# $Id: Makefile,v 1.1 2007/03/04 21:57:46 wtogami Exp $
NAME := gdal
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
From 71c5d5563920bfb1b137f5c9209979f18b2f764a Mon Sep 17 00:00:00 2001
From: Michael Schwendt
Date: Tue, 8 Dec 2009 21:53:05 +0000
Subject: [PATCH 073/541] - Explicitly BR hdf-static in accordance with the
Packaging Guidelines (hdf-devel is still static-only).
---
gdal.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 779fb16..fb55a8c 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -18,7 +18,8 @@ BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
-BuildRequires: jasper-devel cfitsio-devel hdf-devel libdap-devel librx-devel
+BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel
+BuildRequires: hdf-static hdf-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -538,6 +539,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Dec 8 2009 Michael Schwendt - 1.6.2-3
+- Explicitly BR hdf-static in accordance with the Packaging
+ Guidelines (hdf-devel is still static-only).
+
* Thu Nov 19 2009 Orion Poplawski - 1.6.2-2
- re-enable grass support
From 3607daa195e76e7004b35f7e6cdbd195c5623bb3 Mon Sep 17 00:00:00 2001
From: Kevin Kofler
Date: Fri, 5 Feb 2010 17:57:24 +0000
Subject: [PATCH 074/541] - temporarily disable grass support for bootstrapping
- rebuild for new libxerces-c
---
gdal.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index fb55a8c..badae01 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -29,7 +29,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -539,6 +539,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Feb 5 2010 Kevin Kofler - 1.6.2-4
+- temporarily disable grass support for bootstrapping
+- rebuild for new libxerces-c
+
* Tue Dec 8 2009 Michael Schwendt - 1.6.2-3
- Explicitly BR hdf-static in accordance with the Packaging
Guidelines (hdf-devel is still static-only).
From cb56ded291960d3adde690a6cfd7ddeb069b8067 Mon Sep 17 00:00:00 2001
From: Kevin Kofler
Date: Fri, 5 Feb 2010 19:08:57 +0000
Subject: [PATCH 075/541] - reenable grass support
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index badae01..9d679e0 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.6.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -29,7 +29,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -539,6 +539,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Feb 5 2010 Kevin Kofler - 1.6.2-5
+- reenable grass support
+
* Fri Feb 5 2010 Kevin Kofler - 1.6.2-4
- temporarily disable grass support for bootstrapping
- rebuild for new libxerces-c
From 230f7a459b9368be2f1975eedd3ca015e04a5042 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 18 Mar 2010 05:09:37 +0000
Subject: [PATCH 076/541] - new stable branch - re-enable java ColorTable -
gdal custom fedora version banner - rebuild without grass - gdal manual are
gone (upstream fault)
---
.cvsignore | 5 ++--
gdal-dods.patch | 48 --------------------------------
gdal.spec | 73 +++++++++++++++++++++++++------------------------
import.log | 1 +
sources | 5 ++--
5 files changed, 42 insertions(+), 90 deletions(-)
delete mode 100644 gdal-dods.patch
diff --git a/.cvsignore b/.cvsignore
index 2b38ea8..17fc290 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,3 +1,2 @@
-gdal-1.6.2.tar.gz
-gdal-1.6.2-fedora.tar.gz
-gdalautotest-1.6.0.tar.gz
+gdal-1.7.1-fedora.tar.gz
+gdalautotest-1.7.0.tar.gz
diff --git a/gdal-dods.patch b/gdal-dods.patch
deleted file mode 100644
index 751b38c..0000000
--- a/gdal-dods.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- gdal-1.6.1/frmts/dods/dodsdataset2.cpp.org 2009-07-15 12:54:31.160838902 +0200
-+++ gdal-1.6.1/frmts/dods/dodsdataset2.cpp 2009-07-15 12:58:38.080454628 +0200
-@@ -693,15 +693,15 @@
- /* -------------------------------------------------------------------- */
- /* Try and fetch the corresponding DAS subtree if it exists. */
- /* -------------------------------------------------------------------- */
-- AttrTable *poFileInfo = oDAS.find_container( "GLOBAL" );
-+ AttrTable *poFileInfo = oDAS.container()->find_container( "GLOBAL" );
-
- if( poFileInfo == NULL )
- {
-- poFileInfo = oDAS.find_container( "NC_GLOBAL" );
-+ poFileInfo = oDAS.container()->find_container( "NC_GLOBAL" );
-
- if( poFileInfo == NULL )
- {
-- poFileInfo = oDAS.find_container( "HDF_GLOBAL" );
-+ poFileInfo = oDAS.container()->find_container( "HDF_GLOBAL" );
-
- if( poFileInfo == NULL )
- {
-@@ -1275,7 +1275,7 @@
- /* -------------------------------------------------------------------- */
- /* Try and fetch the corresponding DAS subtree if it exists. */
- /* -------------------------------------------------------------------- */
-- AttrTable *poBandInfo = poDODS->GetDAS().find_container( oVarName );
-+ AttrTable *poBandInfo = poDODS->GetDAS().container()->find_container( oVarName );
-
- if( poBandInfo == NULL )
- {
---- gdal-1.6.0-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.dods~ 2007-01-18 03:22:39.000000000 +0100
-+++ gdal-1.6.0-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp 2009-07-30 09:39:21.000000000 +0200
-@@ -193,12 +193,12 @@ int OGRDODSDataSource::Open( const char
- /* -------------------------------------------------------------------- */
- AttrTable::Attr_iter dv_i;
-
-- for( dv_i = oDAS.attr_begin(); dv_i != oDAS.attr_end(); dv_i++ )
-+ for( dv_i = oDAS.container()->attr_begin(); dv_i != oDAS.container()->attr_end(); dv_i++ )
- {
- if( EQUALN(oDAS.get_name(dv_i).c_str(),"ogr_layer_info",14)
-- && oDAS.is_container( dv_i ) )
-+ && oDAS.container()->is_container( dv_i ) )
- {
-- AttrTable *poAttr = oDAS.get_attr_table( dv_i );
-+ AttrTable *poAttr = oDAS.container()->get_attr_table( dv_i );
- string target_container = poAttr->get_attr( "target_container" );
- BaseType *poVar = poDDS->var( target_container.c_str() );
-
diff --git a/gdal.spec b/gdal.spec
index 9d679e0..8772de9 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
-Version: 1.6.2
-Release: 5%{?dist}
+Version: 1.7.1
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -8,11 +8,10 @@ URL: http://www.gdal.org/
#Source0: http://download.osgeo.org/gdal/gdal-%{version}.tar.gz
# see PROVENANCE.TXT-fedora for details
Source0: %{name}-%{version}-fedora.tar.gz
-Source1: http://download.osgeo.org/gdal/gdalautotest-1.6.0.tar.gz
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.0.tar.gz
Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
-Patch3: %{name}-dods.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -29,7 +28,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -111,7 +110,6 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%endif
%patch1 -p0 -b .mysql~
%patch2 -p1 -b .bindir~
-%patch3 -p1 -b .dods~
# unpack test cases olso.
tar -xzf %{SOURCE1}
@@ -142,13 +140,6 @@ set -x
find . -name ".cvsignore" -exec rm -rf '{}' \;
# fix some exec bits
-chmod -x alg/gdal_tps.cpp
-chmod -x apps/nearblack.cpp
-chmod -x frmts/jpeg/gdalexif.h
-chmod -x ogr/ogrsf_frmts/ogdi/ogrogdi.h
-chmod -x ogr/ogrsf_frmts/ogdi/ogrogdilayer.cpp
-chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidatasource.cpp
-chmod -x ogr/ogrsf_frmts/ogdi/ogrogdidriver.cpp
find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
%build
@@ -190,7 +181,7 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--datadir=%{_datadir}/%{name}/ \
--with-threads \
--with-dods-root=%{_libdir} \
- --with-ogdi=`ogdi-config --libdir` \
+ --with-ogdi \
--with-cfitsio=%{_prefix} \
--with-geotiff=external \
--with-tiff=external \
@@ -218,11 +209,13 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-xerces-lib='-lxerces-c' \
--with-xerces-inc=%{_includedir} \
--without-pcraster \
+ --with-jpeg12=no \
--enable-shared \
%if %{grass_support}
--with-libgrass \
--with-grass=%{_prefix} \
%endif
+ --with-gdal-ver=%{version}-fedora
# fixup hardcoded wrong compile flags.
cp GDALmake.opt GDALmake.opt.orig
@@ -261,8 +254,6 @@ sed -i -e 's|-cp|\#-cp|g' GNUmakefile
sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
# build java module
make generate
-# disable ColorEntry for now (gdal Ticket: #2331)
-rm -rf org/gdal/gdal/ColorTable.java
make build
popd
%endif
@@ -337,6 +328,7 @@ find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
# install and include all docs
# due TeX-related issues some refman.pdf are not created
rm -rf docs doc/docs-perl
+
mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
%if %{build_refman}
@@ -424,17 +416,18 @@ touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
# cleanup junks
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
+rm -rf %{buildroot}%{_bindir}/gdal_fillnodata.dox
for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
done
%check
-pushd gdalautotest-1.6.0
+pushd gdalautotest-1.7.0
# export test enviroment
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH%{buildroot}%{_libdir}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
# remove some testcases for now due to build failure
@@ -466,6 +459,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/gdal_translate
%{_bindir}/gdaladdo
%{_bindir}/gdalinfo
+%{_bindir}/gdaldem
%{_bindir}/gdalbuildvrt
%{_bindir}/gdaltindex
%{_bindir}/gdalwarp
@@ -479,20 +473,20 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
-%{_mandir}/man1/gdaladdo.1*
-%{_mandir}/man1/gdalbuildvrt.1*
-%{_mandir}/man1/gdalinfo.1*
-%{_mandir}/man1/gdaltindex.1*
-%{_mandir}/man1/gdaltransform.1*
-%{_mandir}/man1/gdal2tiles.1*
-%{_mandir}/man1/nearblack.1*
-%{_mandir}/man1/gdal_contour.1*
-%{_mandir}/man1/gdal_rasterize.1*
-%{_mandir}/man1/gdal_translate.1*
-%{_mandir}/man1/gdal_utilities.1*
-%{_mandir}/man1/gdal_grid.1*
-%{_mandir}/man1/gdal_retile.1*
-%{_mandir}/man1/ogr*.1*
+#%{_mandir}/man1/gdaladdo.1*
+#%{_mandir}/man1/gdalbuildvrt.1*
+#%{_mandir}/man1/gdalinfo.1*
+#%{_mandir}/man1/gdaltindex.1*
+#%{_mandir}/man1/gdaltransform.1*
+#%{_mandir}/man1/gdal2tiles.1*
+#%{_mandir}/man1/nearblack.1*
+#%{_mandir}/man1/gdal_contour.1*
+#%{_mandir}/man1/gdal_rasterize.1*
+#%{_mandir}/man1/gdal_translate.1*
+#%{_mandir}/man1/gdal_utilities.1*
+#%{_mandir}/man1/gdal_grid.1*
+#%{_mandir}/man1/gdal_retile.1*
+#%{_mandir}/man1/ogr*.1*
%files devel
%defattr(-,root,root,-)
@@ -503,7 +497,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
-%{_mandir}/man1/%{name}-config*
+#%{_mandir}/man1/%{name}-config*
%files static
%defattr(-,root,root,-)
@@ -514,9 +508,9 @@ rm -rf $RPM_BUILD_ROOT
%doc swig/python/samples
%attr(0755,root,root) %{_bindir}/*.py
%{python_sitearch}/*
-%{_mandir}/man1/pct2rgb.1*
-%{_mandir}/man1/rgb2pct.1*
-%{_mandir}/man1/gdal_merge.1*
+#%{_mandir}/man1/pct2rgb.1*
+#%{_mandir}/man1/rgb2pct.1*
+#%{_mandir}/man1/gdal_merge.1*
%files perl
%defattr(-,root,root,-)
@@ -539,6 +533,13 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Mar 18 2010 Balint Cristian - 1.7.1-1
+- new stable branch
+- re-enable java ColorTable
+- gdal custom fedora version banner
+- rebuild without grass
+- gdal manual are gone (upstream fault)
+
* Fri Feb 5 2010 Kevin Kofler - 1.6.2-5
- reenable grass support
diff --git a/import.log b/import.log
index 56c45af..fcbbaf5 100644
--- a/import.log
+++ b/import.log
@@ -7,3 +7,4 @@ gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
gdal-1_6_0-3_fc11:HEAD:gdal-1.6.0-3.fc11.src.rpm:1233609041
gdal-1_6_0-4_fc11:HEAD:gdal-1.6.0-4.fc11.src.rpm:1233754182
+gdal-1_7_1-1_fc13:HEAD:gdal-1.7.1-1.fc13.src.rpm:1268888938
diff --git a/sources b/sources
index bce1c15..a1fd207 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,2 @@
-f2dcd6aa7222d021202984523adf3b55 gdal-1.6.2.tar.gz
-a5c60f9d1bb97eabe4e681a762fb19dc gdal-1.6.2-fedora.tar.gz
-8ca6f8b83e0afb7a79040ac19c5b0b76 gdalautotest-1.6.0.tar.gz
+0fff6cdb8ee5a6025ca9d7222ad44ba0 gdal-1.7.1-fedora.tar.gz
+a952e4070066c04f9b2767bd1aaeda26 gdalautotest-1.7.0.tar.gz
From dca2b8f21b22d07b28d5cfbf00d841d7780f3d25 Mon Sep 17 00:00:00 2001
From: Balint Cristian
Date: Thu, 18 Mar 2010 07:14:56 +0000
Subject: [PATCH 077/541] - fix bz#572617
---
gdal.spec | 6 +++++-
import.log | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 8772de9..6ad88a2 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -158,6 +158,7 @@ sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
sed -i 's|-logdi31|-logdi|g' configure
+sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
# fix python path for ppc64
sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
@@ -533,6 +534,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Mar 18 2010 Balint Cristian - 1.7.1-2
+- fix bz#572617
+
* Thu Mar 18 2010 Balint Cristian - 1.7.1-1
- new stable branch
- re-enable java ColorTable
diff --git a/import.log b/import.log
index fcbbaf5..1c7d3f5 100644
--- a/import.log
+++ b/import.log
@@ -8,3 +8,4 @@ gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
gdal-1_6_0-3_fc11:HEAD:gdal-1.6.0-3.fc11.src.rpm:1233609041
gdal-1_6_0-4_fc11:HEAD:gdal-1.6.0-4.fc11.src.rpm:1233754182
gdal-1_7_1-1_fc13:HEAD:gdal-1.7.1-1.fc13.src.rpm:1268888938
+gdal-1_7_1-2_fc13:HEAD:gdal-1.7.1-2.fc13.src.rpm:1268896464
From e44363524eee1c008feb1d6bddbc2d230f92dccb Mon Sep 17 00:00:00 2001
From: Robert Scheck
Date: Thu, 8 Jul 2010 22:08:46 +0000
Subject: [PATCH 078/541] Provenpackager action: upgrade to 1.7.2 (#587707,
huge thanks to Sven Lankes)
---
.cvsignore | 2 +-
gdal.spec | 15 +++++++++------
sources | 2 +-
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/.cvsignore b/.cvsignore
index 17fc290..d86d96e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1,2 @@
-gdal-1.7.1-fedora.tar.gz
+gdal-1.7.2-fedora.tar.gz
gdalautotest-1.7.0.tar.gz
diff --git a/gdal.spec b/gdal.spec
index 6ad88a2..6c9cff6 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
-Version: 1.7.1
-Release: 2%{?dist}
+Version: 1.7.2
+Release: 1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -291,9 +291,9 @@ rm -rf $RPM_BUILD_ROOT
# fix some perl instalation issue
sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
# fix include header instalation issue
-cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
- grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
-> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
+#cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
+# grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
+#> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
# fix python installation path
sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
@@ -361,7 +361,7 @@ cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
# install multilib cpl_config.h bz#430894
-install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
+install -p -D -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
# create universal multilib cpl_config.h bz#341231
cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <
@@ -534,6 +534,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Fri Jul 09 2010 Robert Scheck - 1.7.2-1
+- upgrade to 1.7.2 (#587707, huge thanks to Sven Lankes)
+
* Thu Mar 18 2010 Balint Cristian - 1.7.1-2
- fix bz#572617
diff --git a/sources b/sources
index a1fd207..d09976a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-0fff6cdb8ee5a6025ca9d7222ad44ba0 gdal-1.7.1-fedora.tar.gz
+1af25b221aeaa05c0925d3b1cc870f9a gdal-1.7.2-fedora.tar.gz
a952e4070066c04f9b2767bd1aaeda26 gdalautotest-1.7.0.tar.gz
From e7df346ed98f881b18f2f15886f8ccbf1a86ebbe Mon Sep 17 00:00:00 2001
From: Kevin Kofler
Date: Tue, 13 Jul 2010 19:23:52 +0000
Subject: [PATCH 079/541] - reenable grass support
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 6c9cff6..2f9c982 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -28,7 +28,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -534,6 +534,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Jul 13 2010 Kevin Kofler - 1.7.2-2
+- reenable grass support
+
* Fri Jul 09 2010 Robert Scheck - 1.7.2-1
- upgrade to 1.7.2 (#587707, huge thanks to Sven Lankes)
From 1e4a93f06010359265639aef0b02f5ac838c73b9 Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Thu, 15 Jul 2010 19:25:59 +0000
Subject: [PATCH 080/541] - Add patch to change AISConnect() to Connect() for
libdap 3.10 - build without grass for libdap soname bump
---
gdal-AIS.patch | 120 +++++++++++++++++++++++++++++++++++++++++++++++++
gdal.spec | 10 ++++-
2 files changed, 128 insertions(+), 2 deletions(-)
create mode 100644 gdal-AIS.patch
diff --git a/gdal-AIS.patch b/gdal-AIS.patch
new file mode 100644
index 0000000..8ba71f5
--- /dev/null
+++ b/gdal-AIS.patch
@@ -0,0 +1,120 @@
+diff -up gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp.AIS gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp
+--- gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp.AIS 2010-04-23 17:21:55.000000000 -0600
++++ gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp 2010-07-15 11:32:41.144005186 -0600
+@@ -50,7 +50,7 @@
+ #include
+ #include
+
+-#include
++#include
+ #include
+ #include
+ #include
+@@ -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)
+ {
+@@ -997,7 +997,7 @@ DODSDataset::Open(GDALOpenInfo *poOpenIn
+ }
+
+ /* -------------------------------------------------------------------- */
+-/* Get the AISConnect instance and the DAS and DDS for this */
++/* Get the Connect instance and the DAS and DDS for this */
+ /* server. */
+ /* -------------------------------------------------------------------- */
+ poDS->poConnect = poDS->connect_to_server();
+diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp
+--- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp 2010-07-15 11:31:33.814943203 -0600
+@@ -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)
+diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
+--- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2010-07-15 11:31:52.649942228 -0600
+@@ -61,7 +61,7 @@
+ #include
+ #include
+
+-#include
++#include
+ #include
+ #include
+ #include
+@@ -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;
+diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp
+--- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp 2010-07-15 11:32:06.467945352 -0600
+@@ -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() );
diff --git a/gdal.spec b/gdal.spec
index 2f9c982..c575d6f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -12,6 +12,7 @@ Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.0.tar.gz
Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
+Patch3: %{name}-AIS.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -28,7 +29,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -110,6 +111,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%endif
%patch1 -p0 -b .mysql~
%patch2 -p1 -b .bindir~
+%patch3 -p1 -b .AIS~
# unpack test cases olso.
tar -xzf %{SOURCE1}
@@ -534,6 +536,10 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jul 17 2010 Orion Poplawski - 1.7.2-3
+- Add patch to change AISConnect() to Connect() for libdap 3.10
+- build without grass for libdap soname bump
+
* Tue Jul 13 2010 Kevin Kofler - 1.7.2-2
- reenable grass support
From d0ace0a5e9019003af9024ebb62a5cb7e4c998d4 Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Tue, 20 Jul 2010 20:05:32 +0000
Subject: [PATCH 081/541] - Rebuild with grass support
---
gdal.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index c575d6f..b72609a 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -29,7 +29,7 @@ BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%define grass_support 1
# enable/disable refman generation
%define build_refman 1
@@ -536,6 +536,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Tue Jul 20 2010 Orion Poplawski - 1.7.2-4
+- Rebuild with grass support
+
* Thu Jul 17 2010 Orion Poplawski - 1.7.2-3
- Add patch to change AISConnect() to Connect() for libdap 3.10
- build without grass for libdap soname bump
From 1fad3caa95780a1291a84a041f9ea191bb7dc75d Mon Sep 17 00:00:00 2001
From: dmalcolm
Date: Thu, 22 Jul 2010 01:29:52 +0000
Subject: [PATCH 082/541] - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index b72609a..45c4f5f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -536,6 +536,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Wed Jul 21 2010 David Malcolm - 1.7.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
* Tue Jul 20 2010 Orion Poplawski - 1.7.2-4
- Rebuild with grass support
From 4cfac76ce558e3c4238b190cb9159cf3c793b400 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Wed, 28 Jul 2010 15:13:24 +0000
Subject: [PATCH 083/541] dist-git conversion
---
.cvsignore => .gitignore | 0
Makefile | 21 ---------------------
import.log | 11 -----------
3 files changed, 32 deletions(-)
rename .cvsignore => .gitignore (100%)
delete mode 100644 Makefile
delete mode 100644 import.log
diff --git a/.cvsignore b/.gitignore
similarity index 100%
rename from .cvsignore
rename to .gitignore
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 641cfc9..0000000
--- a/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# Makefile for source rpm: gdal
-# $Id: Makefile,v 1.1 2007/03/04 21:57:46 wtogami Exp $
-NAME := gdal
-SPECFILE = $(firstword $(wildcard *.spec))
-
-define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
-endef
-
-MAKEFILE_COMMON := $(shell $(find-makefile-common))
-
-ifeq ($(MAKEFILE_COMMON),)
-# attept a checkout
-define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
-endef
-
-MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
-endif
-
-include $(MAKEFILE_COMMON)
diff --git a/import.log b/import.log
deleted file mode 100644
index 1c7d3f5..0000000
--- a/import.log
+++ /dev/null
@@ -1,11 +0,0 @@
-gdal-1_5_2-1_fc9:HEAD:gdal-1.5.2-1.fc9.src.rpm:1213299145
-gdal-1_5_2-4_fc10:HEAD:gdal-1.5.2-4.fc10.src.rpm:1222777883
-gdal-1_5_3-1_fc10:HEAD:gdal-1.5.3-1.fc10.src.rpm:1224848682
-gdal-1_6_0-0_1_rc4_fc11:HEAD:gdal-1.6.0-0.1.rc4.fc11.src.rpm:1228594658
-gdal-1_6_0-0_2_rc4_fc11:HEAD:gdal-1.6.0-0.2.rc4.fc11.src.rpm:1228602531
-gdal-1_6_0-1_fc11:HEAD:gdal-1.6.0-1.fc11.src.rpm:1229050992
-gdal-1_6_0-2_fc11:HEAD:gdal-1.6.0-2.fc11.src.rpm:1233238875
-gdal-1_6_0-3_fc11:HEAD:gdal-1.6.0-3.fc11.src.rpm:1233609041
-gdal-1_6_0-4_fc11:HEAD:gdal-1.6.0-4.fc11.src.rpm:1233754182
-gdal-1_7_1-1_fc13:HEAD:gdal-1.7.1-1.fc13.src.rpm:1268888938
-gdal-1_7_1-2_fc13:HEAD:gdal-1.7.1-2.fc13.src.rpm:1268896464
From 7309fde5ac50047473197de1ca7b1e1c38073f90 Mon Sep 17 00:00:00 2001
From: Viji V Nair
Date: Mon, 22 Nov 2010 12:48:00 +0530
Subject: [PATCH 084/541] Update to version 1.7.3
---
.gitignore | 2 +
gdal-1.7.3.pom | 6 ++
gdal-AIS.patch | 24 +++---
gdal-bindir.patch | 6 +-
gdal-libdap.patch | 12 +--
gdal.spec | 197 ++++++++++++++++++++++++++++++++--------------
sources | 4 +-
7 files changed, 168 insertions(+), 83 deletions(-)
create mode 100644 gdal-1.7.3.pom
diff --git a/.gitignore b/.gitignore
index d86d96e..5093136 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
gdal-1.7.2-fedora.tar.gz
gdalautotest-1.7.0.tar.gz
+/gdal-1.7.3-fedora.tar.gz
+/gdalautotest-1.7.3.tar.gz
diff --git a/gdal-1.7.3.pom b/gdal-1.7.3.pom
new file mode 100644
index 0000000..754e07c
--- /dev/null
+++ b/gdal-1.7.3.pom
@@ -0,0 +1,6 @@
+
+ 4.0.0
+ org.gdal
+ gdal-java-bindings
+ 1.7.2
+
diff --git a/gdal-AIS.patch b/gdal-AIS.patch
index 8ba71f5..ca5e023 100644
--- a/gdal-AIS.patch
+++ b/gdal-AIS.patch
@@ -1,6 +1,6 @@
-diff -up gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp.AIS gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp
---- gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp.AIS 2010-04-23 17:21:55.000000000 -0600
-+++ gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp 2010-07-15 11:32:41.144005186 -0600
+diff -up gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp.AIS gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp
+--- gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp.AIS 2010-04-23 17:21:55.000000000 -0600
++++ gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp 2010-07-15 11:32:41.144005186 -0600
@@ -50,7 +50,7 @@
#include
#include
@@ -64,9 +64,9 @@ diff -up gdal-1.7.2-fedora/frmts/dods/dodsdataset2.cpp.AIS gdal-1.7.2-fedora/frm
/* server. */
/* -------------------------------------------------------------------- */
poDS->poConnect = poDS->connect_to_server();
-diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp
---- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
-+++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp 2010-07-15 11:31:33.814943203 -0600
+diff -up gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp
+--- gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp 2010-07-15 11:31:33.814943203 -0600
@@ -150,7 +150,7 @@ int OGRDODSDataSource::Open( const char
try
@@ -76,9 +76,9 @@ diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodsdatasource.cpp.AIS gdal-1
version = poConnection->request_version();
}
catch (Error &e)
-diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
---- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS 2010-04-23 17:21:25.000000000 -0600
-+++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2010-07-15 11:31:52.649942228 -0600
+diff -up gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
+--- gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2010-07-15 11:31:52.649942228 -0600
@@ -61,7 +61,7 @@
#include
#include
@@ -106,9 +106,9 @@ diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.AIS gdal-1.7.2-fedora
DAS oDAS;
DDS *poDDS;
-diff -up gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp
---- gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
-+++ gdal-1.7.2-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp 2010-07-15 11:32:06.467945352 -0600
+diff -up gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp
+--- gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp.AIS 2010-04-23 17:21:25.000000000 -0600
++++ gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogrdodslayer.cpp 2010-07-15 11:32:06.467945352 -0600
@@ -213,7 +213,7 @@ int OGRDODSLayer::ProvideDataDDS()
bDataLoaded = TRUE;
try
diff --git a/gdal-bindir.patch b/gdal-bindir.patch
index 0dea261..b742db1 100644
--- a/gdal-bindir.patch
+++ b/gdal-bindir.patch
@@ -2,9 +2,9 @@ Create /usr/bin before attempting to compy anything there.
Lubomir Rintel
-diff -up gdal-1.6.0-fedora/swig/python/GNUmakefile.bindir gdal-1.6.0-fedora/swig/python/GNUmakefile
---- gdal-1.6.0-fedora/swig/python/GNUmakefile.bindir 2009-03-22 23:25:47.582438890 +0100
-+++ gdal-1.6.0-fedora/swig/python/GNUmakefile 2009-03-22 23:26:10.465436318 +0100
+diff -up gdal-1.7.3-fedora/swig/python/GNUmakefile.bindir gdal-1.7.3-fedora/swig/python/GNUmakefile
+--- gdal-1.7.3-fedora/swig/python/GNUmakefile.bindir 2009-03-22 23:25:47.582438890 +0100
++++ gdal-1.7.3-fedora/swig/python/GNUmakefile 2009-03-22 23:26:10.465436318 +0100
@@ -60,6 +60,7 @@ else
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
endif
diff --git a/gdal-libdap.patch b/gdal-libdap.patch
index 80ad33e..0faf24f 100644
--- a/gdal-libdap.patch
+++ b/gdal-libdap.patch
@@ -1,6 +1,6 @@
-diff -up gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp.libdap~ gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp
---- gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp.libdap~ 2008-09-09 16:49:39.000000000 +0200
-+++ gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp 2008-09-09 16:50:05.000000000 +0200
+diff -up gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp.libdap~ gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp
+--- gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp.libdap~ 2008-09-09 16:49:39.000000000 +0200
++++ gdal-1.7.3-fedora/frmts/dods/dodsdataset2.cpp 2008-09-09 16:50:05.000000000 +0200
@@ -67,6 +67,8 @@ CPL_C_START
void GDALRegister_DODS(void);
CPL_C_END
@@ -10,9 +10,9 @@ diff -up gdal-1.5.2-fedora/frmts/dods/dodsdataset2.cpp.libdap~ gdal-1.5.2-fedora
/** Attribute names used to encode geo-referencing information. Note that
these are not C++ objects to avoid problems with static global
constructors.
-diff -up gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
---- gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ 2008-09-09 16:50:50.000000000 +0200
-+++ gdal-1.5.2-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2008-09-09 16:51:19.000000000 +0200
+diff -up gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h
+--- gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h.libdap~ 2008-09-09 16:50:50.000000000 +0200
++++ gdal-1.7.3-fedora/ogr/ogrsf_frmts/dods/ogr_dods.h 2008-09-09 16:51:19.000000000 +0200
@@ -68,6 +68,8 @@
#include
#include
diff --git a/gdal.spec b/gdal.spec
index 45c4f5f..10bb53e 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,14 +1,16 @@
Name: gdal
-Version: 1.7.2
-Release: 5%{?dist}
+Version: 1.7.3
+Release: 2%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
URL: http://www.gdal.org/
-#Source0: http://download.osgeo.org/gdal/gdal-%{version}.tar.gz
+# Source0: http://download.osgeo.org/gdal/gdal-%%{version}.tar.gz
# see PROVENANCE.TXT-fedora for details
Source0: %{name}-%{version}-fedora.tar.gz
-Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.0.tar.gz
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.3.tar.gz
+# create versionless symlink
+Source2: gdal-1.7.3.pom
Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
@@ -18,18 +20,24 @@ BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
-BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel
+BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel
BuildRequires: hdf-static hdf-devel
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
+BuildRequires: curl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: chrpath
+# no xerces-c package available for ppc in el5, so excluding the same.
+%if "%{?dist}" == ".el6"
+ExcludeArch: ppc64
+%endif
%if "%{?dist}" != ".el4"
BuildRequires: ant swig ruby java-devel-gcj
%endif
# enable/disable grass support, for bootstrapping
-%define grass_support 1
+%define grass_support 0
# enable/disable refman generation
%define build_refman 1
@@ -40,8 +48,8 @@ BuildRequires: ant swig ruby java-devel-gcj
%define cpuarch 64
%endif
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+%{!?python_lib: %define python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
+%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
%if %{grass_support}
BuildRequires: grass-devel
@@ -97,13 +105,26 @@ The GDAL ruby modules provides support to handle multiple GIS file formats.
Summary: Java modules for the GDAL file format library
Group: Development/Libraries
Requires: java
+# require maven2 for the poms and depmap frag parent dirs
+# these are provided by many JPP packages but that is wrong
+Requires: maven2
Requires: jpackage-utils
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
Requires: %{name} = %{version}-%{release}
%description java
The GDAL java modules provides support to handle multiple GIS file formats.
%endif
+%package doc
+Summary: Documentation for GDAL
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains html and pdf documentation for GDAL.
+
%prep
%setup -q -n %{name}-%{version}-fedora
%if "%{?dist}" == ".fc10"
@@ -113,7 +134,7 @@ The GDAL java modules provides support to handle multiple GIS file formats.
%patch2 -p1 -b .bindir~
%patch3 -p1 -b .AIS~
-# unpack test cases olso.
+# unpack test cases also.
tar -xzf %{SOURCE1}
# fix russian docs from tarball
@@ -204,6 +225,7 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-curl \
--with-python \
--with-perl \
+ --with-pcraster \
%if "%{?dist}" != ".el4"
--with-ruby \
--with-java \
@@ -211,7 +233,6 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-xerces \
--with-xerces-lib='-lxerces-c' \
--with-xerces-inc=%{_includedir} \
- --without-pcraster \
--with-jpeg12=no \
--enable-shared \
%if %{grass_support}
@@ -230,6 +251,7 @@ rm GDALmake.opt.orig
# fix ruby flags
sed -i -e "s/\$(LD)/g++ -L..\/..\/.libs\/ $RPM_OPT_FLAGS/g" swig/ruby/RubyMakefile.mk
+sed -i -e "s/\$(CFLAGS)/$(CFLAGS) -fPIC/g" swig/ruby/RubyMakefile.mk
# fix doxygen for multilib docs
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
@@ -253,16 +275,14 @@ popd
pushd swig/java
# fix makefile
sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
-sed -i -e 's|-cp|\#-cp|g' GNUmakefile
sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
# build java module
-make generate
-make build
+make
popd
%endif
# remake documentation for multilib issues
-# olso include many pdf documentation
+# also include many pdf documentation
for docdir in ./ doc doc/ru doc/br ogr ogr/ogrsf_frmts ogr/ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 swig/perl; do
cp -p doc/gdal_footer.html $docdir/footer_local.html
pushd $docdir
@@ -292,10 +312,6 @@ rm -rf $RPM_BUILD_ROOT
# fix some perl instalation issue
sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
-# fix include header instalation issue
-#cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
-# grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
-#> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
# fix python installation path
sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
@@ -312,21 +328,42 @@ mkdir -p %{buildroot}%{perl_vendorarch}
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+# fix some exec bits
+find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
+find %{buildroot}%{python_lib} -name "*.so" -exec chmod 755 '{}' \;
+cat /dev/null > python-sitearch.files
+for pf in $(find %{buildroot}%{python_lib}); do
+ echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
+done
+
%if "%{?dist}" != ".el4"
# move ruby modules in the right path
-mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
-rm -rf %{buildroot}%{ruby_sitearch}/%{name}
+mv %{buildroot}%{ruby_sitelib}/%{name}/*.* %{buildroot}%{ruby_sitelib}/
+rm -rf %{buildroot}%{ruby_sitelib}/%{name}
+cat /dev/null > ruby-sitearch.files
+for rf in $(find %{buildroot}%{ruby_sitelib}); do
+ echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
+done
# install multilib java modules in the right path
touch -r NEWS swig/java/gdal.jar
mkdir -p %{buildroot}%{_javadir}
cp -p swig/java/gdal.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
-%endif
-# fix some exec bits
-find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
-find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
+# create versionless symlink
+ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# add pom
+%__mkdir_p %{buildroot}%{_datadir}/maven2/poms
+%__install -m 644 %{SOURCE2} \
+ %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
+
+# copy JNI libraries and links, non versioned link needed by JNI
+cp -pvl swig/java/.libs/*.so* \
+ %{buildroot}%{_libdir}
+chrpath --delete %{buildroot}%{_libdir}/*jni.so*
+%endif
# install and include all docs
# due TeX-related issues some refman.pdf are not created
@@ -339,20 +376,24 @@ mkdir -p docs/docs-%{cpuarch}/pdf
pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
-#install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
-#install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
-#install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
+install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
+install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
%if "%{?dist}" != ".el4"
# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
%endif
-#install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
%endif
+mkdir -p docs/docs-%{cpuarch}
+mkdir -p doc/docs-perl/docs-%{cpuarch}
pushd docs/docs-%{cpuarch}/; mkdir -p en/html gdal_frmts ogrsf_frmts br ru; popd
cp -pr html/* docs/docs-%{cpuarch}/
cp -pr doc/html/* docs/docs-%{cpuarch}/en/html
@@ -424,12 +465,15 @@ for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
done
+# create depmap fragment
+%add_to_maven_depmap org.gdal gdal-java-bindings %{version} JPP %{name}
+
%check
-pushd gdalautotest-1.7.0
+pushd gdalautotest-1.7.3
# export test enviroment
-export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
+export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_lib}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
@@ -450,13 +494,25 @@ popd
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+# update maven2 depmap
+%post java
+/sbin/ldconfig
+%update_maven_depmap
+
+# update maven2 depmap
+%postun java
+/sbin/ldconfig
+%update_maven_depmap
%files
%defattr(-,root,root,-)
%doc NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
-%doc docs/
%{_bindir}/gdal_contour
%{_bindir}/gdal_rasterize
%{_bindir}/gdal_translate
@@ -473,47 +529,34 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/nearblack
%{_bindir}/ogr*
%{_bindir}/testepsg
-%{_libdir}/*.so.*
+%{_libdir}/libgdal.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
-#%{_mandir}/man1/gdaladdo.1*
-#%{_mandir}/man1/gdalbuildvrt.1*
-#%{_mandir}/man1/gdalinfo.1*
-#%{_mandir}/man1/gdaltindex.1*
-#%{_mandir}/man1/gdaltransform.1*
-#%{_mandir}/man1/gdal2tiles.1*
-#%{_mandir}/man1/nearblack.1*
-#%{_mandir}/man1/gdal_contour.1*
-#%{_mandir}/man1/gdal_rasterize.1*
-#%{_mandir}/man1/gdal_translate.1*
-#%{_mandir}/man1/gdal_utilities.1*
-#%{_mandir}/man1/gdal_grid.1*
-#%{_mandir}/man1/gdal_retile.1*
-#%{_mandir}/man1/ogr*.1*
+%{_bindir}/epsg_tr.py*
+%{_bindir}/esri2wkt.py*
+%{_bindir}/gcps*
+%{_bindir}/gdal*.py*
+%{_bindir}/pct2rgb.py*
+%{_bindir}/rgb2pct.py*
+%{_bindir}/mkgraticule.py*
%files devel
%defattr(-,root,root,-)
-%doc docs
%{_bindir}/%{name}-config
%{_bindir}/%{name}-config-%{cpuarch}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
-#%{_mandir}/man1/%{name}-config*
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
-%files python
+%files python -f python-sitearch.files
%defattr(-,root,root,-)
%doc swig/python/samples
%attr(0755,root,root) %{_bindir}/*.py
-%{python_sitearch}/*
-#%{_mandir}/man1/pct2rgb.1*
-#%{_mandir}/man1/rgb2pct.1*
-#%{_mandir}/man1/gdal_merge.1*
%files perl
%defattr(-,root,root,-)
@@ -522,20 +565,54 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%if "%{?dist}" != ".el4"
-%files ruby
+%files ruby -f ruby-sitearch.files
%defattr(-,root,root,-)
-%{ruby_sitearch}/gdal.so
-%{ruby_sitearch}/ogr.so
-%{ruby_sitearch}/osr.so
-%{ruby_sitearch}/gdalconst.so
%files java
%defattr(-,root,root,-)
%doc swig/java/apps
%{_javadir}/%{name}-%{version}.jar
+# provide versionless symlink
+%{_javadir}/%{name}.jar
+%{_libdir}/*jni.so.*
+# provide the pom
+%{_datadir}/maven2/poms/*
+# provide the depmap frag
+%{_mavendepmapfragdir}/*
%endif
+%files doc
+%defattr(-,root,root)
+%doc docs
+
%changelog
+* Sun Nov 21 2010 Viji Nair - 1.7.3-2
+- Install all the generated pdf documentation.
+- Build documentation as a separate package.
+- Spec cleanup
+
+* Fri Nov 19 2010 Viji Nair - 1.7.3-1
+- Update to latest upstream version
+- Added jnis
+- Patches updated with proper version info
+- Added suggestions from Ralph Apel
+ + Versionless symlink for gdal.jar
+ + Maven2 pom
+ + JPP-style depmap
+ + Use -f XX.files for ruby and python
+
+* Sun Oct 31 2010 Mathieu Baudier - 1.7.2-5_2
+- PCRaster support
+- cURL support
+- Disable building the reference manual (really too long...)
+
+* Sat Oct 09 2010 Mathieu Baudier - 1.7.2-5_1
+- Add Java JNI libraries
+
+* Sat Aug 14 2010 Mathieu Baudier - 1.7.2-5_0
+- Rebuild for EL GIS, based on work contributed by Nikolaos Hatzopoulos and Peter Hopfgartner
+- Use vanilla sources
+
* Wed Jul 21 2010 David Malcolm - 1.7.2-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
diff --git a/sources b/sources
index d09976a..205f22f 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-1af25b221aeaa05c0925d3b1cc870f9a gdal-1.7.2-fedora.tar.gz
-a952e4070066c04f9b2767bd1aaeda26 gdalautotest-1.7.0.tar.gz
+aeb6c9686a3c008e77ebf379724f6a61 gdal-1.7.3-fedora.tar.gz
+0b12bd95c7fb78a6f33a922c24d1b40d gdalautotest-1.7.3.tar.gz
From 886647d6926195c5ba3d14294b27470979b5efce Mon Sep 17 00:00:00 2001
From: Dennis Gilmore
Date: Tue, 8 Feb 2011 17:23:58 -0600
Subject: [PATCH 085/541] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 10bb53e..a6d5d1f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -586,6 +586,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Tue Feb 08 2011 Fedora Release Engineering - 1.7.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
* Sun Nov 21 2010 Viji Nair - 1.7.3-2
- Install all the generated pdf documentation.
- Build documentation as a separate package.
From ff39a8f88e5e382f90e5ddd2e479c959eb282767 Mon Sep 17 00:00:00 2001
From: Kalev Lember
Date: Thu, 10 Mar 2011 12:58:48 +0200
Subject: [PATCH 086/541] Rebuilt with xerces-c 3.1
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index a6d5d1f..c9c4a94 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -586,6 +586,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Thu Mar 10 2011 Kalev Lember - 1.7.3-4
+- Rebuilt with xerces-c 3.1
+
* Tue Feb 08 2011 Fedora Release Engineering - 1.7.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
From 52687d52061434e4288b8b98f6092f1fdfb50255 Mon Sep 17 00:00:00 2001
From: Karsten Hopp
Date: Wed, 16 Mar 2011 15:04:15 +0100
Subject: [PATCH 087/541] current gcc doesn't accept -Xcompiler some pdf's
don't build on ppc, ignore them atm.
---
gdal-1.7.3-xcompiler.patch | 13 +++++++++++++
gdal.spec | 12 +++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 gdal-1.7.3-xcompiler.patch
diff --git a/gdal-1.7.3-xcompiler.patch b/gdal-1.7.3-xcompiler.patch
new file mode 100644
index 0000000..e430fd4
--- /dev/null
+++ b/gdal-1.7.3-xcompiler.patch
@@ -0,0 +1,13 @@
+diff -up gdal-1.7.3-fedora/ltmain.sh.xcompiler gdal-1.7.3-fedora/ltmain.sh
+diff -up gdal-1.7.3-fedora/swig/ruby/RubyMakefile.mk.xcompiler gdal-1.7.3-fedora/swig/ruby/RubyMakefile.mk
+--- gdal-1.7.3-fedora/swig/ruby/RubyMakefile.mk.xcompiler 2011-03-15 23:55:58.000000000 +0100
++++ gdal-1.7.3-fedora/swig/ruby/RubyMakefile.mk 2011-03-15 23:56:11.000000000 +0100
+@@ -25,7 +25,7 @@ RUBY_EXTENSIONS_DIR := $(shell ruby -rrb
+ INSTALL_DIR := $(RUBY_EXTENSIONS_DIR)/gdal
+
+ RUBY_INCLUDE = -I$(RUBY_INCLUDE_DIR)
+-LDFLAGS += -Xcompiler -shared -L$(RUBY_LIB_DIR)
++LDFLAGS += -shared -L$(RUBY_LIB_DIR)
+ RUBY_LIB := -l$(RUBY_SO_NAME)
+
+ build: $(RUBY_MODULES)
diff --git a/gdal.spec b/gdal.spec
index a6d5d1f..1fea0b3 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 3%{?dist}
+Release: 3.1%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -15,6 +15,7 @@ Patch0: %{name}-libdap.patch
Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
Patch3: %{name}-AIS.patch
+Patch4: %{name}-%{version}-xcompiler.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -133,6 +134,7 @@ This package contains html and pdf documentation for GDAL.
%patch1 -p0 -b .mysql~
%patch2 -p1 -b .bindir~
%patch3 -p1 -b .AIS~
+%patch4 -p1 -b .xcompiler
# unpack test cases also.
tar -xzf %{SOURCE1}
@@ -381,13 +383,17 @@ install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
+%ifnarch ppc ppc64
install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+%endif
%if "%{?dist}" != ".el4"
# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
%endif
+%ifnarch ppc ppc64
install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+%endif
install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
@@ -586,6 +592,10 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Wed Mar 16 2011 Karsten Hopp 1.7.3-3.1
+- current gcc doesn't accept -Xcompiler
+- some pdf's don't build on ppc, ignore them atm.
+
* Tue Feb 08 2011 Fedora Release Engineering - 1.7.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
From bb2ca0c4ef958ebea2456fd5679901348f403303 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?=
Date: Mon, 21 Mar 2011 01:23:05 +0100
Subject: [PATCH 088/541] Fix build problems with Latex and correct some
glitches
---
gdal.spec | 52 +++++++++++++++++++++++++++++++++-------------------
1 file changed, 33 insertions(+), 19 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index 1fea0b3..6864130 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 3.1%{?dist}
+Release: 4%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -52,6 +52,12 @@ BuildRequires: ant swig ruby java-devel-gcj
%{!?python_lib: %define python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_lib}/.*\.so %{_libdir}/perl5/.*\.so$
+%filter_setup
+}
+
%if %{grass_support}
BuildRequires: grass-devel
%endif
@@ -139,12 +145,6 @@ This package contains html and pdf documentation for GDAL.
# unpack test cases also.
tar -xzf %{SOURCE1}
-# fix russian docs from tarball
-for ru in `find doc/ru/ -type f -name "*.dox"`; do
-iconv -f KOI8-R -t UTF-8 < $ru > $ru.tmp
-mv -f $ru.tmp $ru
-done
-
set +x
for f in `find . -type f` ; do
if file $f | grep -q ISO-8859 ; then
@@ -380,20 +380,24 @@ install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
+install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
-%ifnarch ppc ppc64
-install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
-%endif
+# Doesn't work at all. Complaints about different nesting level in \pdfendlink
+#%ifnarch ppc ppc64
+#install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+#%endif
%if "%{?dist}" != ".el4"
# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
%endif
-%ifnarch ppc ppc64
-install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
-%endif
+# Doesn't work at all. Complaints about different nesting level in \pdfendlink
+# Working in GDAL 1.8.0, funny enough!
+#%ifnarch ppc ppc64
+#install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+#%endif
install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
@@ -409,6 +413,10 @@ cp -pr doc/br/html/* docs/docs-%{cpuarch}/br
cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
+# Remove installation shell script
+rm -rf docs/docs-%{cpuarch}/ru/installdox
+rm -rf docs/docs-%{cpuarch}/en/html/installdox
+
# install multilib cpl_config.h bz#430894
install -p -D -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
# create universal multilib cpl_config.h bz#341231
@@ -500,20 +508,18 @@ popd
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
-# update maven2 depmap
%post java
/sbin/ldconfig
+# update maven2 depmap
%update_maven_depmap
-# update maven2 depmap
%postun java
/sbin/ldconfig
+# update maven2 depmap
%update_maven_depmap
%files
@@ -592,6 +598,14 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Sun Mar 20 2011 Volker Fröhlich 1.7.3-4
+- Dropped unnecessary encoding conversion for Russian refman
+- Install Russian refman
+- Don't try to install refman for sdts and dgn, as they fail to compile
+- Added -p to post and postun
+- Remove private-shared-object-provides for Python and Perl
+- Remove installdox scripts
+
* Wed Mar 16 2011 Karsten Hopp 1.7.3-3.1
- current gcc doesn't accept -Xcompiler
- some pdf's don't build on ppc, ignore them atm.
From f35d63b5bf23bb1a020963377a67f935c7970995 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?=
Date: Wed, 23 Mar 2011 19:16:35 +0100
Subject: [PATCH 089/541] rebuilt for mysql 5.5.10 (soname bump in
libmysqlclient)
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index f042f99..37e7d39 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -598,6 +598,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Wed Mar 23 2011 Dan Horák - 1.7.3-6
+- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
+
* Sun Mar 20 2011 Volker Fröhlich 1.7.3-5
- Dropped unnecessary encoding conversion for Russian refman
- Install Russian refman
From ce7d7d93890a0c931625eabfeee8cd512e21d22f Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Thu, 31 Mar 2011 13:22:37 -0600
Subject: [PATCH 090/541] Rebuild for netcdf 4.1.2
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 37e7d39..c08a1e6 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -598,6 +598,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Thu Mar 31 2011 Orion Poplawski - 1.7.3-7
+- Rebuild for netcdf 4.1.2
+
* Wed Mar 23 2011 Dan Horák - 1.7.3-6
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
From fcadc675792d27c5ed4b51d7225d48486c56bfa6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?=
Date: Mon, 11 Apr 2011 02:09:47 +0200
Subject: [PATCH 091/541] Solved Latex problems, added some refmans
---
gdal.spec | 107 +++++++++++++++++++++++++++++++-----------------------
1 file changed, 62 insertions(+), 45 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index c08a1e6..ba18119 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -167,6 +167,7 @@ find . -name ".cvsignore" -exec rm -rf '{}' \;
# fix some exec bits
find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
+
%build
# fix hardcoded issues
@@ -185,10 +186,10 @@ sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
sed -i 's|-logdi31|-logdi|g' configure
sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
-# fix python path for ppc64
+# Fix python path for ppc64
sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
-# append some path for few libs
+# Append paths for some libs
export CPPFLAGS="`pkg-config ogdi --cflags`"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf"
@@ -210,7 +211,6 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-ogdi \
--with-cfitsio=%{_prefix} \
--with-geotiff=external \
- --with-tiff=external \
--with-libtiff=external \
--with-libz \
--with-netcdf \
@@ -222,7 +222,7 @@ export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -D
--with-gif \
--with-jpeg \
--with-odbc \
- --with-sqlite \
+ --with-sqlite3 \
--with-mysql \
--with-curl \
--with-python \
@@ -268,51 +268,59 @@ make
# make perl modules, disable makefile generate
pushd swig/perl
- perl Makefile.PL; make;
- echo > Makefile.PL;
+ perl Makefile.PL; make;
+ echo > Makefile.PL;
popd
%if "%{?dist}" != ".el4"
-# make java modules
-pushd swig/java
-# fix makefile
-sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
-sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
-# build java module
-make
-popd
+ # make java modules
+ pushd swig/java
+ # fix makefile
+ sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
+ sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
+ # build java module
+ make
+ popd
%endif
-
# remake documentation for multilib issues
# also include many pdf documentation
-for docdir in ./ doc doc/ru doc/br ogr ogr/ogrsf_frmts ogr/ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 swig/perl; do
-cp -p doc/gdal_footer.html $docdir/footer_local.html
-pushd $docdir
-if [ ! -f Doxyfile ]; then
-doxygen -g
-fi
-sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
-sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
-sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
-if [ $docdir == "doc/ru" ]; then
-sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
-fi
-rm -rf latex html
-doxygen
-%if %{build_refman}
-pushd latex
-sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
-sed -i -e '/small/d' -e '/large/d' refman.tex
-sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
-make refman.pdf || true; popd
-%endif
-rm -rf footer_local.html; popd
+
+for docdir in ./ doc doc/ru doc/br ogr frmts/gxf frmts/pcidsk/sdk frmts/sdts frmts/iso8211 frmts/vrt swig/perl swig/python apps; do
+ cp -p doc/gdal_footer.html $docdir/footer_local.html
+ pushd $docdir
+ if [ ! -f Doxyfile ]; then
+ doxygen -g
+ else
+ doxygen -u
+ fi
+ if [ $docdir == "doc" ]; then
+ #TODO: Get that working
+ #sed -i -e 's|^IMAGE_PATH|IMAGE_PATH = doc\n#IMAGE_PATH|' Doxyfile
+ fi
+ sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
+ sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
+ sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
+ if [ $docdir == "doc/ru" ]; then
+ sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
+ fi
+ rm -rf latex html
+ doxygen
+ rm -rf footer_local.html
+ %if %{build_refman}
+ pushd latex
+ sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
+ sed -i -e '/small/d' -e '/large/d' refman.tex
+ sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
+ make refman.pdf || true
+ popd
+ %endif
+ popd
done
%install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
-# fix some perl instalation issue
+# fix some perl installation issue
sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
# fix python installation path
@@ -335,7 +343,7 @@ find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{python_lib} -name "*.so" -exec chmod 755 '{}' \;
cat /dev/null > python-sitearch.files
for pf in $(find %{buildroot}%{python_lib}); do
- echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
+ echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
done
%if "%{?dist}" != ".el4"
@@ -344,7 +352,7 @@ mv %{buildroot}%{ruby_sitelib}/%{name}/*.* %{buildroot}%{ruby_sitelib}/
rm -rf %{buildroot}%{ruby_sitelib}/%{name}
cat /dev/null > ruby-sitearch.files
for rf in $(find %{buildroot}%{ruby_sitelib}); do
- echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
+ echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
done
# install multilib java modules in the right path
@@ -375,15 +383,17 @@ mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}'
mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
%if %{build_refman}
mkdir -p docs/docs-%{cpuarch}/pdf
-pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
+pushd docs/docs-%{cpuarch}/pdf; mkdir -p apps br ru en ogr frmts/gxf frmts/sdts frmts/iso8211 frmts/vrt frmts/pcidsk; popd
install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+install -p -m 644 frmts/pcidsk/sdk/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/pcidsk
+install -p -m 644 frmts/vrt/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/vrt
+install -p -m 644 apps/latex/refman.pdf docs/docs-%{cpuarch}/pdf/apps
install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
-install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
# Doesn't work at all. Complaints about different nesting level in \pdfendlink
#%ifnarch ppc ppc64
#install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
@@ -391,7 +401,7 @@ install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrs
%if "%{?dist}" != ".el4"
# broken on el4
install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
-install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
%endif
# Doesn't work at all. Complaints about different nesting level in \pdfendlink
# Working in GDAL 1.8.0, funny enough!
@@ -598,6 +608,13 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Thu Apr 11 2011 Volker Fröhlich - 1.7.3-8
+- Solved image path problem with Latex
+- Removed with-tiff and updated with-sqlite to with-sqlite3
+- Add more refman documents
+- Adapted refman loop to actual directories
+- Harmonized buildroot macro use
+
* Thu Mar 31 2011 Orion Poplawski - 1.7.3-7
- Rebuild for netcdf 4.1.2
From b569885dcdbd9abd99fac9a7929281936e5a62ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?=
Date: Mon, 11 Apr 2011 02:24:34 +0200
Subject: [PATCH 092/541] Commented out empty if
---
gdal.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdal.spec b/gdal.spec
index ba18119..d51cf91 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -293,10 +293,10 @@ for docdir in ./ doc doc/ru doc/br ogr frmts/gxf frmts/pcidsk/sdk frmts/sdts frm
else
doxygen -u
fi
- if [ $docdir == "doc" ]; then
+ #if [ $docdir == "doc" ]; then
#TODO: Get that working
#sed -i -e 's|^IMAGE_PATH|IMAGE_PATH = doc\n#IMAGE_PATH|' Doxyfile
- fi
+ #fi
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
From d750ba8d46ed1fae38631a90fe80bd1417673747 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?=
Date: Fri, 22 Apr 2011 19:32:02 +0200
Subject: [PATCH 093/541] Mitab patch, Bindings clean-up, Man-Pages
---
gdal-1.8.0-mitab.patch | 81 +++++++++++++++++++++++++++
gdal.spec | 124 +++++++++++++++++++++--------------------
2 files changed, 146 insertions(+), 59 deletions(-)
create mode 100644 gdal-1.8.0-mitab.patch
diff --git a/gdal-1.8.0-mitab.patch b/gdal-1.8.0-mitab.patch
new file mode 100644
index 0000000..6ee1e4a
--- /dev/null
+++ b/gdal-1.8.0-mitab.patch
@@ -0,0 +1,81 @@
+Index: /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_middatafile.cpp
+===================================================================
+--- /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_middatafile.cpp (revision 20796)
++++ /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_middatafile.cpp (revision 20818)
+@@ -212,4 +212,8 @@
+ else
+ {
++ // skip leading spaces
++ while(pszLine && (*pszLine == ' ' || *pszLine == '\t') )
++ pszLine++;
++
+ strncpy(m_szLastRead,pszLine,MIDMAXCHAR);
+ }
+Index: /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_miffile.cpp
+===================================================================
+--- /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_miffile.cpp (revision 20797)
++++ /trunk/gdal/ogr/ogrsf_frmts/mitab/mitab_miffile.cpp (revision 20818)
+@@ -471,5 +471,5 @@
+ int MIFFile::ParseMIFHeader()
+ {
+- GBool bColumns = FALSE, bDataFound = FALSE;
++ GBool bColumns = FALSE, bAllColumnsRead = FALSE;
+ int nColumns = 0;
+ GBool bCoordSys = FALSE;
+@@ -498,15 +498,7 @@
+ * Parse header until we find the "Data" line
+ *----------------------------------------------------------------*/
+- while (((pszLine = m_poMIFFile->GetLine()) != NULL))
+- {
+- while(pszLine && (*pszLine == ' ' || *pszLine == '\t') )
+- pszLine++; // skip leading spaces
+-
+- if( EQUALN(pszLine,"Data",4) && !bColumns )
+- {
+- bDataFound = TRUE;
+- break;
+- }
+-
++ while (((pszLine = m_poMIFFile->GetLine()) != NULL) &&
++ ((bAllColumnsRead == FALSE) || !EQUALN(pszLine,"Data",4)))
++ {
+ if (bColumns == TRUE && nColumns >0)
+ {
+@@ -514,6 +506,9 @@
+ {
+ nColumns--;
+- if (nColumns == 0)
++ if (nColumns == 0)
++ {
++ bAllColumnsRead = TRUE;
+ bColumns = FALSE;
++ }
+ }
+ else
+@@ -618,4 +613,10 @@
+ nColumns = atoi(papszToken[1]);
+ m_nAttribut = nColumns;
++ if (nColumns == 0)
++ {
++ // Permit to 0 columns
++ bAllColumnsRead = TRUE;
++ bColumns = FALSE;
++ }
+ }
+ else
+@@ -638,5 +639,14 @@
+ }
+
+- if ( !bDataFound )
++ if (!bAllColumnsRead)
++ {
++ CPLError(CE_Failure, CPLE_NotSupported,
++ "COLUMNS keyword not found or invalid number of columns read in %s. File may be corrupt.",
++ m_pszFname);
++ return -1;
++ }
++
++ if ((pszLine = m_poMIFFile->GetLastLine()) == NULL ||
++ EQUALN(m_poMIFFile->GetLastLine(),"DATA",4) == FALSE)
+ {
+ CPLError(CE_Failure, CPLE_NotSupported,
diff --git a/gdal.spec b/gdal.spec
index d51cf91..0181639 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -16,6 +16,9 @@ Patch1: %{name}-mysql.patch
Patch2: %{name}-bindir.patch
Patch3: %{name}-AIS.patch
Patch4: %{name}-%{version}-xcompiler.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=693952
+# http://trac.osgeo.org/gdal/ticket/3694 -- Still present in 1.8 tarball
+Patch5: %{name}-1.8.0-mitab.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool pkgconfig
BuildRequires: python-devel numpy xerces-c-devel
@@ -36,21 +39,20 @@ ExcludeArch: ppc64
%if "%{?dist}" != ".el4"
BuildRequires: ant swig ruby java-devel-gcj
%endif
-
# enable/disable grass support, for bootstrapping
-%define grass_support 0
+%global grass_support 0
# enable/disable refman generation
-%define build_refman 1
+%global build_refman 1
# we have multilib triage
%if "%{_lib}" == "lib"
-%define cpuarch 32
+%global cpuarch 32
%else
-%define cpuarch 64
+%global cpuarch 64
%endif
-%{!?python_lib: %define python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
-%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+%{!?python_lib: %global python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
+%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
# We don't want to provide private python extension libs
%{?filter_setup:
@@ -141,6 +143,7 @@ This package contains html and pdf documentation for GDAL.
%patch2 -p1 -b .bindir~
%patch3 -p1 -b .AIS~
%patch4 -p1 -b .xcompiler
+%patch5 -p3 -b .mitab
# unpack test cases also.
tar -xzf %{SOURCE1}
@@ -167,6 +170,9 @@ find . -name ".cvsignore" -exec rm -rf '{}' \;
# fix some exec bits
find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
+# Remove man dir, as it blocks a build target.
+# It obviously slipped into the tarball and is not in Trunk (April 17th, 2011)
+rm -rf man
%build
@@ -265,6 +271,7 @@ sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER
# WARNING !!!
# dont use {?_smp_mflags} it break compile
make
+make man
# make perl modules, disable makefile generate
pushd swig/perl
@@ -341,19 +348,11 @@ find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
# fix some exec bits
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{python_lib} -name "*.so" -exec chmod 755 '{}' \;
-cat /dev/null > python-sitearch.files
-for pf in $(find %{buildroot}%{python_lib}); do
- echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
-done
%if "%{?dist}" != ".el4"
# move ruby modules in the right path
-mv %{buildroot}%{ruby_sitelib}/%{name}/*.* %{buildroot}%{ruby_sitelib}/
-rm -rf %{buildroot}%{ruby_sitelib}/%{name}
-cat /dev/null > ruby-sitearch.files
-for rf in $(find %{buildroot}%{ruby_sitelib}); do
- echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
-done
+mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}
+rm -rf %{buildroot}%{ruby_sitearch}/%{name}
# install multilib java modules in the right path
touch -r NEWS swig/java/gdal.jar
@@ -365,8 +364,8 @@ cp -p swig/java/gdal.jar \
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# add pom
-%__mkdir_p %{buildroot}%{_datadir}/maven2/poms
-%__install -m 644 %{SOURCE2} \
+mkdir -p %{buildroot}%{_datadir}/maven2/poms
+install -m 644 %{SOURCE2} \
%{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
# copy JNI libraries and links, non versioned link needed by JNI
@@ -382,35 +381,35 @@ rm -rf docs doc/docs-perl
mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
%if %{build_refman}
-mkdir -p docs/docs-%{cpuarch}/pdf
-pushd docs/docs-%{cpuarch}/pdf; mkdir -p apps br ru en ogr frmts/gxf frmts/sdts frmts/iso8211 frmts/vrt frmts/pcidsk; popd
-install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
-install -p -m 644 frmts/pcidsk/sdk/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/pcidsk
-install -p -m 644 frmts/vrt/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/vrt
-install -p -m 644 apps/latex/refman.pdf docs/docs-%{cpuarch}/pdf/apps
-install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
-install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
-install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
-install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
-install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
-install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
-# Doesn't work at all. Complaints about different nesting level in \pdfendlink
-#%ifnarch ppc ppc64
-#install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
-#%endif
-%if "%{?dist}" != ".el4"
-# broken on el4
-install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
-install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
-%endif
-# Doesn't work at all. Complaints about different nesting level in \pdfendlink
-# Working in GDAL 1.8.0, funny enough!
-#%ifnarch ppc ppc64
-#install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
-#%endif
-install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
-mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
-install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
+ mkdir -p docs/docs-%{cpuarch}/pdf
+ pushd docs/docs-%{cpuarch}/pdf; mkdir -p apps br ru en ogr frmts/gxf frmts/sdts frmts/iso8211 frmts/vrt frmts/pcidsk; popd
+ install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+ install -p -m 644 frmts/pcidsk/sdk/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/pcidsk
+ install -p -m 644 frmts/vrt/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/vrt
+ install -p -m 644 apps/latex/refman.pdf docs/docs-%{cpuarch}/pdf/apps
+ install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
+ install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
+ install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
+ install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
+ install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+ install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
+ # Doesn't work at all. Complaints about different nesting level in \pdfendlink
+ #%ifnarch ppc ppc64
+ #install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+ #%endif
+ %if "%{?dist}" != ".el4"
+ # broken on el4
+ install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+ install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+ %endif
+ # Doesn't work at all. Complaints about different nesting level in \pdfendlink
+ # Working in GDAL 1.8.0, funny enough!
+ #%ifnarch ppc ppc64
+ #install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+ #%endif
+ install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
+ mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
+ install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
%endif
mkdir -p docs/docs-%{cpuarch}
mkdir -p doc/docs-perl/docs-%{cpuarch}
@@ -554,13 +553,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgdal.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
-%{_bindir}/epsg_tr.py*
-%{_bindir}/esri2wkt.py*
-%{_bindir}/gcps*
-%{_bindir}/gdal*.py*
-%{_bindir}/pct2rgb.py*
-%{_bindir}/rgb2pct.py*
-%{_bindir}/mkgraticule.py*
+%{_mandir}/man1/*
%files devel
%defattr(-,root,root,-)
@@ -575,10 +568,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%{_libdir}/*.a
-%files python -f python-sitearch.files
+%files python
%defattr(-,root,root,-)
%doc swig/python/samples
-%attr(0755,root,root) %{_bindir}/*.py
+%{_bindir}/*.py*
+%{python_lib}/*
%files perl
%defattr(-,root,root,-)
@@ -587,8 +581,9 @@ rm -rf $RPM_BUILD_ROOT
%{perl_vendorarch}/*
%if "%{?dist}" != ".el4"
-%files ruby -f ruby-sitearch.files
+%files ruby
%defattr(-,root,root,-)
+%{ruby_sitearch}/*
%files java
%defattr(-,root,root,-)
@@ -608,6 +603,17 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Fri Apr 22 2011 Volker Fröhlich - 1.7.3-9
+- Patched spaces problem for Mapinfo files (mif)
+ (http://trac.osgeo.org/gdal/ticket/3694)
+- Replaced all define macros with global
+- Corrected ruby_sitelib to ruby_sitearch
+- Use python_lib and ruby_sitearch instead of generating lists
+- Added man-pages for binaries
+- Replaced mkdir and install macros
+- Removed Python files from main package files section, that
+ effectively already belonged to the Python sub-package
+
* Thu Apr 11 2011 Volker Fröhlich - 1.7.3-8
- Solved image path problem with Latex
- Removed with-tiff and updated with-sqlite to with-sqlite3
From 895e30a3cb5c71fb9661bb2407bb539ab2347fd8 Mon Sep 17 00:00:00 2001
From: Orion Poplawski
Date: Tue, 17 May 2011 21:38:30 -0600
Subject: [PATCH 094/541] Rebuild for hdf5 1.8.7
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 0181639..47a0d06 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -603,6 +603,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Tue May 17 2011 Orion Poplawski - 1.7.3-10
+- Rebuild for hdf5 1.8.7
+
* Fri Apr 22 2011 Volker Fröhlich - 1.7.3-9
- Patched spaces problem for Mapinfo files (mif)
(http://trac.osgeo.org/gdal/ticket/3694)
From 348342efc941abb23e638a7e1a44c6413622cd4c Mon Sep 17 00:00:00 2001
From: Adam Jackson
Date: Mon, 5 Dec 2011 23:12:59 -0500
Subject: [PATCH 095/541] Rebuild for new libpng
---
gdal.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdal.spec b/gdal.spec
index 47a0d06..33ea84b 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -1,6 +1,6 @@
Name: gdal
Version: 1.7.3
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: GIS file format library
Group: System Environment/Libraries
License: MIT
@@ -603,6 +603,9 @@ rm -rf $RPM_BUILD_ROOT
%doc docs
%changelog
+* Tue Dec 06 2011 Adam Jackson - 1.7.3-11
+- Rebuild for new libpng
+
* Tue May 17 2011 Orion Poplawski - 1.7.3-10
- Rebuild for hdf5 1.8.7
From 7c9c0c60e60c86d2abafaed7a020385db18fe3ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?= |