913b20e
#TODO: Un-bundle g2clib and grib
913b20e
#TODO: Python 3 bindings possible since 1.7.0
913b20e
913b20e
Name:      gdal
913b20e
Version:   1.7.3
35d96dd
Release:   15%{?dist}
913b20e
Summary:   GIS file format library
913b20e
Group:     System Environment/Libraries
913b20e
License:   MIT
913b20e
URL:       http://www.gdal.org/
913b20e
# Source0:   http://download.osgeo.org/gdal/gdal-%%{version}.tar.gz
1e08c93
# see PROVENANCE.TXT-fedora for details
913b20e
Source0:   %{name}-%{version}-fedora.tar.gz
913b20e
Source1:   http://download.osgeo.org/gdal/gdalautotest-1.7.3.tar.gz
913b20e
# create versionless symlink
913b20e
Source2:   gdal-1.7.3.pom
913b20e
Patch1:    %{name}-mysql.patch
913b20e
Patch2:    %{name}-bindir.patch
913b20e
Patch3:    %{name}-AIS.patch
913b20e
913b20e
# https://bugzilla.redhat.com/show_bug.cgi?id=693952 
913b20e
# http://trac.osgeo.org/gdal/ticket/3694 -- Still present in 1.8 tarball
913b20e
Patch5:    %{name}-1.8.0-mitab.patch
913b20e
913b20e
# Allow to use libpng 1.5
913b20e
# http://trac.osgeo.org/gdal/changeset/21526
913b20e
# Not necessary for 1.8 and later
913b20e
Patch6:    %{name}-1.7.3-png15.patch
913b20e
913b20e
# Ruby headers are stored in a different place in 1.9
913b20e
# Don't use Xcompiler, as GCC doesn't like it anymore
913b20e
Patch7:    %{name}-1.7.3-ruby-1.9.patch
913b20e
913b20e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
913b20e
BuildRequires: libtool pkgconfig
913b20e
BuildRequires: python-devel numpy xerces-c-devel
913b20e
BuildRequires: libpng-devel libungif-devel
913b20e
913b20e
%if (0%{?fedora})
913b20e
BuildRequires: libjpeg-turbo-devel
913b20e
%else
913b20e
BuildRequires: libjpeg-devel
Balint Cristian 58ea678
%endif
Balint Cristian 58ea678
913b20e
BuildRequires: libtiff-devel
913b20e
BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
913b20e
BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel 
913b20e
BuildRequires: hdf-static hdf-devel
913b20e
BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
913b20e
BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
913b20e
BuildRequires: curl-devel
913b20e
BuildRequires: perl(ExtUtils::MakeMaker)
913b20e
BuildRequires: chrpath
913b20e
BuildRequires: ant swig ruby java-devel-gcj
913b20e
913b20e
#TODO: Grass support will be available as a plug-in
913b20e
913b20e
# Enable/disable refman generation
913b20e
%global build_refman  1
Balint Cristian 5873c96
Balint Cristian 25665e0
# we have multilib triage
Balint Cristian 25665e0
%if "%{_lib}" == "lib"
913b20e
%global cpuarch 32
Balint Cristian 25665e0
%else
913b20e
%global cpuarch 64
Balint Cristian 25665e0
%endif
Balint Cristian 25665e0
913b20e
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
913b20e
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
913b20e
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Balint Cristian 5873c96
%endif
Balint Cristian 86f8705
913b20e
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
913b20e
913b20e
# Avoid providing private Python and Perl extension libs
913b20e
%{?filter_setup:
913b20e
%filter_provides_in %{python_sitearch}/.*\.so %{_libdir}/perl5/.*\.so$ 
913b20e
%filter_setup
913b20e
}
Orion Poplawski 7b583df
Balint Cristian 86f8705
%description
Balint Cristian 86f8705
The GDAL library provides support to handle multiple GIS file formats.
Balint Cristian 86f8705
Balint Cristian 86f8705
%package devel
Balint Cristian 86f8705
Summary: Development Libraries for the GDAL file format library
Balint Cristian 86f8705
Group: Development/Libraries
Balint Cristian a984b27
Requires: pkgconfig
Balint Cristian 5873c96
Requires: libgeotiff-devel
913b20e
Requires: %{name}%{?_isa} = %{version}-%{release}
Balint Cristian 86f8705
Balint Cristian 86f8705
%description devel
Balint Cristian 86f8705
The GDAL library provides support to handle multiple GIS file formats.
Balint Cristian 86f8705
Balint Cristian a5de515
%package static
Balint Cristian a5de515
Summary: Static Development Libraries for the GDAL file format library
Balint Cristian a5de515
Group: Development/Libraries
Balint Cristian a5de515
Balint Cristian a5de515
%description static
Balint Cristian a5de515
The GDAL library provides support to handle multiple GIS file formats.
Balint Cristian a5de515
Balint Cristian 86f8705
%package python
Balint Cristian 86f8705
Summary: Python modules for the GDAL file format library
Balint Cristian 86f8705
Group: Development/Libraries
Balint Cristian 0537f41
Requires: numpy
913b20e
Requires: %{name}%{?_isa} = %{version}-%{release}
Balint Cristian 86f8705
Balint Cristian 86f8705
%description python
Balint Cristian 86f8705
The GDAL python modules provides support to handle multiple GIS file formats.
Balint Cristian 86f8705
Balint Cristian 86f8705
%package perl
Balint Cristian 86f8705
Summary: Perl modules for the GDAL file format library
Balint Cristian 86f8705
Group: Development/Libraries
913b20e
Requires: %{name}%{?_isa} = %{version}-%{release}
913b20e
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Balint Cristian 86f8705
Balint Cristian 86f8705
%description perl
Balint Cristian 86f8705
The GDAL perl modules provides support to handle multiple GIS file formats.
Balint Cristian 86f8705
Balint Cristian c9a0bc3
%package ruby
Balint Cristian c9a0bc3
Summary: Ruby modules for the GDAL file format library
Balint Cristian c9a0bc3
Group: Development/Libraries
913b20e
Requires: %{name}%{?_isa} = %{version}-%{release}
913b20e
913b20e
%if (0%{?fedora} < 17 || 0%{?rhel})
913b20e
Requires: ruby(abi) = 1.8
913b20e
%else
913b20e
Requires: ruby(abi) = 1.9
913b20e
%endif
Balint Cristian c9a0bc3
Balint Cristian c9a0bc3
%description ruby
913b20e
The GDAL Ruby modules provide support to handle multiple GIS file formats.
Balint Cristian c9a0bc3
Balint Cristian c9a0bc3
%package java
Balint Cristian c9a0bc3
Summary: Java modules for the GDAL file format library
Balint Cristian c9a0bc3
Group: Development/Libraries
Balint Cristian c9a0bc3
Requires: java
Balint Cristian c9a0bc3
Requires: jpackage-utils
913b20e
Requires(post): jpackage-utils
913b20e
Requires(postun): jpackage-utils
913b20e
Requires: %{name}%{?_isa} = %{version}-%{release}
Balint Cristian c9a0bc3
Balint Cristian c9a0bc3
%description java
Balint Cristian c9a0bc3
The GDAL java modules provides support to handle multiple GIS file formats.
913b20e
913b20e
%package doc
913b20e
Summary: Documentation for GDAL
913b20e
Group: Documentation
913b20e
Requires: %{name} = %{version}-%{release}
913b20e
913b20e
%description doc
913b20e
This package contains html and pdf documentation for GDAL.
Balint Cristian c9a0bc3
Balint Cristian 86f8705
%prep
Balint Cristian 86f8705
%setup -q -n %{name}-%{version}-fedora
913b20e
913b20e
# Delete bundled libraries
913b20e
rm -rf frmts/zlib
913b20e
rm -rf frmts/png/libpng
913b20e
rm -rf frmts/gif/giflib
913b20e
rm -rf frmts/jpeg/libjpeg \
913b20e
    frmts/jpeg/libjpeg12
913b20e
rm -rf frmts/gtiff/libgeotiff \
913b20e
    frmts/gtiff/libtiff
913b20e
Balint Cristian d738089
%patch1 -p0 -b .mysql~
9bded86
%patch2 -p1 -b .bindir~
a72e475
%patch3 -p1 -b .AIS~
913b20e
%patch5 -p3 -b .mitab~
Balint Cristian 5873c96
913b20e
# Only F17 has libpng 1.5
913b20e
%if ! (0%{?fedora} < 17 || 0%{?rhel})
913b20e
%patch6 -p1 -b .png15~
913b20e
%endif
913b20e
%patch7 -p1 -b .ruby19~
Balint Cristian 86f8705
913b20e
# Unpack test cases
913b20e
tar -xzf %{SOURCE1}
Balint Cristian 25665e0
Balint Cristian 86f8705
set +x
Balint Cristian 86f8705
for f in `find . -type f` ; do
Balint Cristian 86f8705
   if file $f | grep -q ISO-8859 ; then
Balint Cristian 86f8705
      set -x
Balint Cristian 86f8705
      iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
Balint Cristian 86f8705
         mv -f ${f}.tmp $f
Balint Cristian 86f8705
      set +x
Balint Cristian 86f8705
   fi
Balint Cristian 86f8705
   if file $f | grep -q CRLF ; then
Balint Cristian 86f8705
      set -x
Balint Cristian 86f8705
      sed -i -e 's|\r||g' $f
Balint Cristian 86f8705
      set +x
Balint Cristian 86f8705
   fi
Balint Cristian 86f8705
done
Balint Cristian 86f8705
set -x
Balint Cristian 86f8705
Balint Cristian 86f8705
# remove junks
Balint Cristian 86f8705
find . -name ".cvsignore" -exec rm -rf '{}' \;
Balint Cristian 86f8705
Balint Cristian 86f8705
# fix some exec bits
Balint Cristian 25665e0
find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
Balint Cristian 86f8705
913b20e
# Remove man dir, as it blocks a build target.
913b20e
# It obviously slipped into the tarball and is not in Trunk (April 17th, 2011)
913b20e
rm -rf man
913b20e
913b20e
# Repair check for dap and also Curl (although not obvious here!)
913b20e
#TODO: Better use dap-config --libs
913b20e
sed -i 's|-ldap++|-ldap -ldapclient -ldapserver|' configure configure.in
913b20e
913b20e
# fix doxygen for multilib docs
913b20e
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
913b20e
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
913b20e
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/sdts/Doxyfile
913b20e
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/pcraster/doxygen.cfg
913b20e
sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/iso8211/Doxyfile
913b20e
913b20e
913b20e
Balint Cristian 86f8705
%build
Balint Cristian 86f8705
Balint Cristian f1065cc
# fix hardcoded issues
Balint Cristian f1065cc
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in
Balint Cristian 879f7c0
sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
Balint Cristian 86f8705
sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
Balint Cristian f9c4301
sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
Balint Cristian f9c4301
sed -i 's|-L\$DODS_LIB -ldap++|-ldap++|g' configure
Balint Cristian 879f7c0
sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
Balint Cristian 879f7c0
sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
Balint Cristian 879f7c0
sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
Balint Cristian 879f7c0
sed -i 's|-L\$with_grass\/lib||g' configure
Balint Cristian 5873c96
sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
Balint Cristian f1065cc
sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
Balint Cristian b83318a
sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
Balint Cristian 86f8705
sed -i 's|-logdi31|-logdi|g' configure
913b20e
913b20e
# libproj is dlopened; upstream sources point to .so, which is usually not present
913b20e
# http://trac.osgeo.org/gdal/ticket/3602
a72e475
sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
Balint Cristian 86f8705
913b20e
# Fix python path for ppc64
913b20e
#TODO: Ticket? Must be corrected for 64 bit architectures other than Intel; Query Python?
913b20e
sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"$libdir"|g' configure
Balint Cristian 622f041
913b20e
# Install Ruby bindings into the proper place
913b20e
#TODO: Ticket
913b20e
sed -i -e 's|^$(INSTALL_DIR):|$(DESTDIR)$(INSTALL_DIR):|' swig/ruby/RubyMakefile.mk
913b20e
sed -i -e 's|^install: $(INSTALL_DIR)|install: $(DESTDIR)$(INSTALL_DIR)|' swig/ruby/RubyMakefile.mk
913b20e
913b20e
# Append paths for some libs
Balint Cristian 86f8705
export CPPFLAGS="`pkg-config ogdi --cflags`"
Balint Cristian 879f7c0
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
Balint Cristian c9a0bc3
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf"
Balint Cristian 86f8705
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
Balint Cristian 5873c96
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
Balint Cristian 86f8705
export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
a17b25d
export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
Balint Cristian a7aa589
Balint Cristian a7aa589
# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
Balint Cristian c9a0bc3
export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
Balint Cristian c9a0bc3
export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
Balint Cristian 86f8705
913b20e
# BSB has legal claims, see PROVENANCE.TXT-fedora
913b20e
#TODO: msg needs to have PublicDecompWT.zip from EUMETSAT, which is not free
Balint Cristian 86f8705
%configure \
Balint Cristian 86f8705
        --prefix=%{_prefix} \
Balint Cristian 86f8705
        --includedir=%{_includedir}/%{name}/ \
Balint Cristian f1065cc
        --datadir=%{_datadir}/%{name}/ \
Balint Cristian 86f8705
        --with-threads      \
913b20e
        --without-bsb       \
Balint Cristian 86f8705
        --with-dods-root=%{_libdir} \
a72e475
        --with-ogdi               \
Balint Cristian 86f8705
        --with-cfitsio=%{_prefix} \
Balint Cristian 5873c96
        --with-geotiff=external   \
Balint Cristian 86f8705
        --with-libtiff=external   \
Balint Cristian 86f8705
        --with-libz               \
Balint Cristian 86f8705
        --with-netcdf             \
Balint Cristian 86f8705
        --with-hdf4               \
Balint Cristian 86f8705
        --with-hdf5               \
Balint Cristian 86f8705
        --with-geos               \
Balint Cristian 86f8705
        --with-jasper             \
Balint Cristian 86f8705
        --with-png                \
Balint Cristian 86f8705
        --with-gif                \
Balint Cristian 86f8705
        --with-jpeg               \
Balint Cristian 86f8705
        --with-odbc               \
913b20e
        --with-sqlite3            \
Balint Cristian 86f8705
        --with-mysql              \
Balint Cristian 86f8705
        --with-curl               \
Balint Cristian 86f8705
        --with-python             \
Balint Cristian 86f8705
        --with-perl               \
913b20e
        --with-pcraster           \
Balint Cristian c9a0bc3
        --with-ruby               \
Balint Cristian c9a0bc3
        --with-java               \
Balint Cristian 86f8705
        --with-xerces             \
Balint Cristian f1065cc
        --with-xerces-lib='-lxerces-c' \
Balint Cristian 86f8705
        --with-xerces-inc=%{_includedir} \
a72e475
        --with-jpeg12=no          \
Balint Cristian 86f8705
        --enable-shared           \
913b20e
        --with-gdal-ver=%{version}
Balint Cristian 86f8705
Balint Cristian 86f8705
# fixup hardcoded wrong compile flags.
Balint Cristian 86f8705
cp GDALmake.opt GDALmake.opt.orig
Balint Cristian c9a0bc3
sed -e 's/ cfitsio / /' \
Balint Cristian 9efbf2f
-e 's/-ldap++/-ldap -ldapclient -ldapserver/' \
Balint Cristian 9efbf2f
-e 's/-L\$(INST_LIB) -lgdal/-lgdal/' \
Balint Cristian 86f8705
GDALmake.opt.orig > GDALmake.opt
Balint Cristian 86f8705
rm GDALmake.opt.orig
Balint Cristian 86f8705
913b20e
# Build with fPIC to allow Ruby bindings
913b20e
#TODO: Ticket
Balint Cristian b83318a
sed -i -e "s/\$(LD)/g++ -L..\/..\/.libs\/ $RPM_OPT_FLAGS/g" swig/ruby/RubyMakefile.mk
913b20e
sed -i -e "s/\$(CFLAGS)/$(CFLAGS) -fPIC/g" swig/ruby/RubyMakefile.mk
Balint Cristian b83318a
Balint Cristian 86f8705
Balint Cristian 86f8705
# WARNING !!!
Balint Cristian 86f8705
# dont use {?_smp_mflags} it break compile
Balint Cristian f1065cc
make
913b20e
make man
Balint Cristian 86f8705
Balint Cristian 86f8705
# make perl modules, disable makefile generate
Balint Cristian c9a0bc3
pushd swig/perl
913b20e
  perl Makefile.PL;  make;
913b20e
  echo > Makefile.PL;
Balint Cristian 86f8705
popd
Balint Cristian 86f8705
913b20e
  # make java modules
913b20e
  pushd swig/java
913b20e
    # fix makefile
913b20e
    sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
913b20e
    sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
913b20e
    # build java module
913b20e
    make
913b20e
  popd
Balint Cristian 25665e0
# remake documentation for multilib issues
913b20e
# also include many pdf documentation
913b20e
913b20e
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
913b20e
  cp -p doc/gdal_footer.html $docdir/footer_local.html
913b20e
  pushd $docdir
913b20e
    if [ ! -f Doxyfile ]; then
913b20e
      doxygen -g
913b20e
    else
913b20e
      doxygen -u
913b20e
    fi
913b20e
    #if [ $docdir == "doc" ]; then
913b20e
      #TODO: Get that working
913b20e
      #sed -i -e 's|^IMAGE_PATH|IMAGE_PATH = doc\n#IMAGE_PATH|' Doxyfile
913b20e
    #fi
913b20e
    sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
913b20e
    sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
913b20e
    sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
913b20e
    if [ $docdir == "doc/ru" ]; then
913b20e
      sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
913b20e
    fi
913b20e
    rm -rf latex html
913b20e
    doxygen
913b20e
    rm -rf footer_local.html
913b20e
    %if %{build_refman}
913b20e
      pushd latex
913b20e
        sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
913b20e
        sed -i -e '/small/d' -e '/large/d' refman.tex
913b20e
        sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
913b20e
        make refman.pdf || true
913b20e
      popd
913b20e
    %endif
913b20e
  popd
Balint Cristian 25665e0
done
Balint Cristian 25665e0
913b20e
Balint Cristian 86f8705
%install
913b20e
rm -rf %{buildroot}
Balint Cristian 86f8705
913b20e
# Fix Python installation path
913b20e
sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
913b20e
913b20e
# fix some perl installation issue
Balint Cristian 86f8705
sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
Balint Cristian 86f8705
Balint Cristian a5de515
Balint Cristian f1065cc
make    DESTDIR=%{buildroot} \
Balint Cristian 86f8705
        install
Balint Cristian c9a0bc3
Balint Cristian f1065cc
make    DESTDIR=%{buildroot} \
Balint Cristian f1065cc
        INST_MAN=%{_mandir} \
Balint Cristian c9a0bc3
        install-man
Balint Cristian 86f8705
Balint Cristian 86f8705
# move perl modules in the right path
Balint Cristian 86f8705
mkdir -p %{buildroot}%{perl_vendorarch}
Balint Cristian f1065cc
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
Balint Cristian 965ccce
find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
Balint Cristian 86f8705
913b20e
# fix some exec bits
913b20e
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
Balint Cristian c9a0bc3
Balint Cristian 25665e0
# install multilib java modules in the right path
Balint Cristian 05c1238
touch -r NEWS swig/java/gdal.jar
Balint Cristian c9a0bc3
mkdir -p %{buildroot}%{_javadir}
Balint Cristian c9a0bc3
cp -p swig/java/gdal.jar  \
Balint Cristian c9a0bc3
      %{buildroot}%{_javadir}/%{name}-%{version}.jar
Balint Cristian c9a0bc3
913b20e
# create versionless symlink
913b20e
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
913b20e
913b20e
# Install Maven pom
913b20e
mkdir -p %{buildroot}%{_mavenpomdir}
913b20e
install -pm 644 %{SOURCE2} \
913b20e
               %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
913b20e
913b20e
# Create depmap fragment
913b20e
%add_to_maven_depmap org.gdal gdal-java-bindings %{version} JPP %{name}
913b20e
913b20e
# copy JNI libraries and links, non versioned link needed by JNI
913b20e
cp -pvl swig/java/.libs/*.so*  \
913b20e
      %{buildroot}%{_libdir}
913b20e
chrpath --delete %{buildroot}%{_libdir}/*jni.so*
Balint Cristian 86f8705
Balint Cristian 25665e0
# install and include all docs
1e08c93
# due TeX-related issues some refman.pdf are not created
Balint Cristian 25665e0
rm -rf docs doc/docs-perl
a72e475
Balint Cristian 25665e0
mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
Balint Cristian 25665e0
mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
Balint Cristian f1065cc
%if %{build_refman}
913b20e
  mkdir -p docs/docs-%{cpuarch}/pdf
913b20e
  pushd docs/docs-%{cpuarch}/pdf; mkdir -p apps br ru en ogr frmts/gxf frmts/sdts frmts/iso8211 frmts/vrt frmts/pcidsk; popd
913b20e
  install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
913b20e
  install -p -m 644 frmts/pcidsk/sdk/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/pcidsk
913b20e
  install -p -m 644 frmts/vrt/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/vrt
913b20e
  install -p -m 644 apps/latex/refman.pdf docs/docs-%{cpuarch}/pdf/apps
913b20e
  install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
913b20e
  install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
913b20e
  install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
913b20e
  install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
913b20e
  install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
913b20e
  install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
913b20e
  # Doesn't work at all. Complaints about different nesting level in \pdfendlink
913b20e
  #%ifnarch ppc ppc64
913b20e
  #install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
913b20e
  #%endif
913b20e
  install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
913b20e
  install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
913b20e
  # Doesn't work at all. Complaints about different nesting level in \pdfendlink
913b20e
  # Working in GDAL 1.8.0, funny enough!
913b20e
  #%ifnarch ppc ppc64
913b20e
  #install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
913b20e
  #%endif
913b20e
  install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
913b20e
  mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
913b20e
  install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
8410418
%endif
913b20e
mkdir -p docs/docs-%{cpuarch}
913b20e
mkdir -p doc/docs-perl/docs-%{cpuarch}
Balint Cristian 25665e0
pushd docs/docs-%{cpuarch}/; mkdir -p en/html gdal_frmts ogrsf_frmts br ru; popd
Balint Cristian 25665e0
cp -pr html/* docs/docs-%{cpuarch}/
Balint Cristian 25665e0
cp -pr doc/html/* docs/docs-%{cpuarch}/en/html
Balint Cristian 25665e0
cp -pr doc/gdal_frmts/* docs/docs-%{cpuarch}/gdal_frmts
Balint Cristian 25665e0
cp -pr doc/ogrsf_frmts/* docs/docs-%{cpuarch}/ogrsf_frmts
Balint Cristian 25665e0
cp -pr doc/br/html/* docs/docs-%{cpuarch}/br
Balint Cristian 25665e0
cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
Balint Cristian 25665e0
cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
Balint Cristian 25665e0
913b20e
# Remove installation shell script
913b20e
rm -rf docs/docs-%{cpuarch}/ru/installdox
913b20e
rm -rf docs/docs-%{cpuarch}/en/html/installdox
913b20e
Balint Cristian 25665e0
# install multilib cpl_config.h bz#430894
a72e475
install -p -D -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
Balint Cristian 25665e0
# create universal multilib cpl_config.h bz#341231
Balint Cristian 25665e0
cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <
Balint Cristian 9b59b7f
#include <bits/wordsize.h>
Balint Cristian 9b59b7f
Balint Cristian 9b59b7f
#if __WORDSIZE == 32
Balint Cristian 9b59b7f
#include "gdal/cpl_config-32.h"
Balint Cristian 9b59b7f
#else
Balint Cristian 9b59b7f
#if __WORDSIZE == 64
Balint Cristian 9b59b7f
#include "gdal/cpl_config-64.h"
Balint Cristian 9b59b7f
#else
Balint Cristian 9b59b7f
#error "Unknown word size"
Balint Cristian 9b59b7f
#endif
Balint Cristian 9b59b7f
#endif
Balint Cristian 25665e0
EOF
Balint Cristian 05c1238
touch -r NEWS port/cpl_config.h
Balint Cristian 05c1238
Balint Cristian 05c1238
# install pkgconfig file
Balint Cristian 05c1238
cat > %{name}.pc <
Balint Cristian 05c1238
prefix=%{_prefix}
Balint Cristian 05c1238
exec_prefix=%{_prefix}
Balint Cristian 05c1238
libdir=%{_libdir}
Balint Cristian 05c1238
includedir=%{_includedir}
Balint Cristian 05c1238
Balint Cristian 05c1238
Name: GDAL
Balint Cristian 05c1238
Description: GIS file format library
Balint Cristian 05c1238
Version: %{version}
Balint Cristian 05c1238
Libs: -L\${libdir} -lgdal
Balint Cristian 05c1238
Cflags: -I\${includedir}/%{name}
Balint Cristian 05c1238
EOF
Balint Cristian 86f8705
Balint Cristian b6bca53
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
Balint Cristian b6bca53
install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
Balint Cristian b6bca53
touch -r NEWS %{buildroot}%{_libdir}/pkgconfig/
Balint Cristian b6bca53
Balint Cristian 25665e0
# multilib gdal-config
Balint Cristian 25665e0
mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
Balint Cristian 9b59b7f
cat > %{buildroot}%{_bindir}/%{name}-config <
Balint Cristian 9b59b7f
#!/bin/bash
Balint Cristian 9b59b7f
Balint Cristian 05c1238
ARCH=\$(uname -m)
Balint Cristian 05c1238
case \$ARCH in
Balint Cristian 9b59b7f
x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 )
Balint Cristian 05c1238
%{name}-config-64 \${*}
Balint Cristian 9b59b7f
;;
Balint Cristian 9b59b7f
*)
Balint Cristian 05c1238
%{name}-config-32 \${*}
Balint Cristian 9b59b7f
;;
Balint Cristian 9b59b7f
esac
Balint Cristian 9b59b7f
EOF
Balint Cristian 05c1238
chmod 755 %{buildroot}%{_bindir}/%{name}-config
Balint Cristian 05c1238
touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
Balint Cristian a5a74dc
Balint Cristian 86f8705
# cleanup junks
Balint Cristian f1065cc
rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
Balint Cristian b83318a
rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
a72e475
rm -rf %{buildroot}%{_bindir}/gdal_fillnodata.dox
Balint Cristian a5de515
for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
Balint Cristian 5873c96
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
Balint Cristian 86f8705
done
Balint Cristian 86f8705
913b20e
Balint Cristian 5873c96
%check
Balint Cristian 5873c96
913b20e
pushd gdalautotest-1.7.3
Balint Cristian 5873c96
Balint Cristian 5873c96
# export test enviroment
Balint Cristian 5873c96
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
a72e475
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
Balint Cristian 5873c96
export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
Balint Cristian 5873c96
Balint Cristian 5873c96
# remove some testcases for now due to build failure
Balint Cristian f1065cc
rm -rf ogr/ogr_pg.py        # no pgsql during test (disabled)
Balint Cristian b83318a
rm -rf ogr/ogr_mysql.py     # no mysql during test (disabled)
Balint Cristian f1065cc
rm -rf ogr/ogr_dods.py      # no DODS  during test (disabled)
Balint Cristian f1065cc
rm -rf gdrivers/dods.py     # no DODS  during test (disabled)
Balint Cristian f1065cc
rm -rf osr/osr_esri.py        # ESRI datum absent  (disabled)
Balint Cristian 1d2b4bf
rm -rf ogr/ogr_sql_test.py    # no SQL during tests
Balint Cristian b83318a
rm -rf gcore/mask.py       # crash ugly  (mustfix)
Balint Cristian 5873c96
Balint Cristian 5873c96
# run tests but force than normal exit
Balint Cristian 25665e0
./run_all.py || true
Balint Cristian 5873c96
Balint Cristian 5873c96
popd
Balint Cristian 5873c96
913b20e
Balint Cristian 86f8705
%clean
Balint Cristian 86f8705
rm -rf $RPM_BUILD_ROOT
Balint Cristian 86f8705
Balint Cristian 86f8705
%post -p /sbin/ldconfig
913b20e
Balint Cristian 86f8705
%postun -p /sbin/ldconfig
Balint Cristian 86f8705
913b20e
%post java
913b20e
/sbin/ldconfig
913b20e
# update maven2 depmap
913b20e
%update_maven_depmap
913b20e
913b20e
%postun java
913b20e
/sbin/ldconfig
913b20e
# update maven2 depmap
913b20e
%update_maven_depmap
913b20e
913b20e
Balint Cristian 25665e0
%files
a72e475
%doc NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
Balint Cristian 86f8705
%{_bindir}/gdal_contour
Balint Cristian 86f8705
%{_bindir}/gdal_rasterize
Balint Cristian 86f8705
%{_bindir}/gdal_translate
Balint Cristian 86f8705
%{_bindir}/gdaladdo
Balint Cristian 86f8705
%{_bindir}/gdalinfo
a72e475
%{_bindir}/gdaldem
1e08c93
%{_bindir}/gdalbuildvrt
Balint Cristian 86f8705
%{_bindir}/gdaltindex
Balint Cristian 86f8705
%{_bindir}/gdalwarp
Balint Cristian f1065cc
%{_bindir}/gdal_grid
Balint Cristian f1065cc
%{_bindir}/gdalenhance
Balint Cristian f1065cc
%{_bindir}/gdalmanage
Balint Cristian f1065cc
%{_bindir}/gdaltransform
Balint Cristian f1065cc
%{_bindir}/nearblack
Balint Cristian 86f8705
%{_bindir}/ogr*
Balint Cristian a5de515
%{_bindir}/testepsg
913b20e
%{_libdir}/libgdal.so.*
Balint Cristian 86f8705
%dir %{_datadir}/%{name}
Balint Cristian 86f8705
%{_datadir}/%{name}/*
913b20e
%{_mandir}/man1/*.1*
Balint Cristian 86f8705
Balint Cristian 86f8705
%files devel
Balint Cristian 9b59b7f
%{_bindir}/%{name}-config
Balint Cristian 25665e0
%{_bindir}/%{name}-config-%{cpuarch}
Balint Cristian f9c4301
%dir %{_includedir}/%{name}
Balint Cristian 86f8705
%{_includedir}/%{name}/*.h
Balint Cristian 86f8705
%{_libdir}/*.so
Balint Cristian 8cc62fd
%{_libdir}/pkgconfig/%{name}.pc
Balint Cristian 86f8705
Balint Cristian a5de515
%files static
Balint Cristian a5de515
%{_libdir}/*.a
Balint Cristian a5de515
Balint Cristian 86f8705
%files python
Balint Cristian 25665e0
%doc swig/python/samples
913b20e
%{_bindir}/*.py*
Balint Cristian 86f8705
%{python_sitearch}/*
Balint Cristian 86f8705
Balint Cristian 86f8705
%files perl
Balint Cristian 25665e0
%doc doc/docs-perl
8410418
%doc swig/perl/README
Balint Cristian 86f8705
%{perl_vendorarch}/*
Balint Cristian 86f8705
Balint Cristian c9a0bc3
%files ruby
913b20e
%{ruby_sitearch}/%{name}
Balint Cristian c9a0bc3
Balint Cristian c9a0bc3
%files java
Balint Cristian 25665e0
%doc swig/java/apps
Balint Cristian c9a0bc3
%{_javadir}/%{name}-%{version}.jar
913b20e
# provide versionless symlink
913b20e
%{_javadir}/%{name}.jar
913b20e
%{_libdir}/*jni.so.*
913b20e
%{_mavenpomdir}/*
913b20e
%{_mavendepmapfragdir}/*
913b20e
913b20e
%files doc
913b20e
%doc docs
Balint Cristian c9a0bc3
Balint Cristian 86f8705
%changelog
35d96dd
* Fri Jul 13 2012 Orion Poplawski <orion@nwra.com> - 1.7.3-15
35d96dd
- Don't require maven2 in java package, not needed and not
35d96dd
  available on EL6
35d96dd
913b20e
* Thu Feb 19 2012 Volker Fröhlich <volker27@gmx.at> - 1.7.3-14
913b20e
- Require Ruby abi
913b20e
- Add patch for Ruby 1.9 include dir, back-ported from GDAL 1.9
913b20e
- Change version string for gdal-config from <version>-fedora to
913b20e
  <version>
913b20e
- Revert installation path for Ruby modules, as it proved wrong
913b20e
- Use libjpeg-turbo
913b20e
913b20e
* Thu Feb  9 2012 Volker Fröhlich <volker27@gmx.at> - 1.7.3-13
913b20e
- Rebuild for Ruby 1.9
913b20e
  http://lists.fedoraproject.org/pipermail/ruby-sig/2012-January/000805.html
913b20e
913b20e
* Tue Jan 10 2012 Volker Fröhlich <volker27@gmx.at> - 1.7.3-12
913b20e
- Remove FC10 specific patch0
913b20e
- Versioned MODULE_COMPAT_ Requires for Perl (BZ 768265)
913b20e
- Add isa macro to base package Requires
913b20e
- Remove conditional for xerces_c in EL6, as EL6 has xerces_c
913b20e
  even for ppc64 via EPEL
913b20e
- Remove EL4 conditionals
913b20e
- Replace the python_lib macro definition and install Python bindings
913b20e
  to sitearch directory, where they belong
913b20e
- Use correct dap library names for linking
913b20e
- Correct Ruby installation path in the Makefile instead of moving it later
913b20e
- Use libdir variable in ppc64 Python path
913b20e
- Delete obsolete chmod for Python libraries
913b20e
- Move correction for Doxygen footer to prep section
913b20e
- Delete bundled libraries before building
913b20e
- Build without bsb and remove it from the tarball
913b20e
- Use mavenpomdir macro and be a bit more precise on manpages in
913b20e
  the files section
913b20e
- Remove elements for grass support --> Will be replaced by plug-in
913b20e
- Remove unnecessary defattr
913b20e
- Correct version number in POM
913b20e
- Allow for libpng 1.5
913b20e
913b20e
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.7.3-11
913b20e
- Rebuild for new libpng
913b20e
913b20e
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 1.7.3-10
913b20e
- Rebuild for hdf5 1.8.7
913b20e
913b20e
* Fri Apr 22 2011 Volker Fröhlich <volker27@gmx.at> - 1.7.3-9
913b20e
- Patched spaces problem for Mapinfo files (mif)
913b20e
  (http://trac.osgeo.org/gdal/ticket/3694)
913b20e
- Replaced all define macros with global
913b20e
- Corrected ruby_sitelib to ruby_sitearch
913b20e
- Use python_lib and ruby_sitearch instead of generating lists
913b20e
- Added man-pages for binaries
913b20e
- Replaced mkdir and install macros
913b20e
- Removed Python files from main package files section, that 
913b20e
  effectively already belonged to the Python sub-package
913b20e
913b20e
* Thu Apr 11 2011 Volker Fröhlich <volker27@gmx.at> - 1.7.3-8
913b20e
- Solved image path problem with Latex
913b20e
- Removed with-tiff and updated with-sqlite to with-sqlite3
913b20e
- Add more refman documents
913b20e
- Adapted refman loop to actual directories
913b20e
- Harmonized buildroot macro use
913b20e
913b20e
* Thu Mar 31 2011 Orion Poplawski <orion@cora.nwra.com> - 1.7.3-7
913b20e
- Rebuild for netcdf 4.1.2
913b20e
913b20e
* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 1.7.3-6
913b20e
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
913b20e
913b20e
* Sun Mar 20 2011 Volker Fröhlich <volker27@gmx.at> 1.7.3-5
913b20e
- Dropped unnecessary encoding conversion for Russian refman
913b20e
- Install Russian refman
913b20e
- Don't try to install refman for sdts and dgn, as they fail to compile
913b20e
- Added -p to post and postun
913b20e
- Remove private-shared-object-provides for Python and Perl
913b20e
- Remove installdox scripts
913b20e
- gcc 4.6 doesn't accept -Xcompiler 
913b20e
913b20e
* Thu Mar 10 2011 Kalev Lember <kalev@smartlink.ee> - 1.7.3-4
913b20e
- Rebuilt with xerces-c 3.1
913b20e
913b20e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3
913b20e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
913b20e
913b20e
* Sun Nov 21 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-2
913b20e
- Install all the generated pdf documentation.
913b20e
- Build documentation as a separate package.
913b20e
- Spec cleanup
913b20e
913b20e
* Fri Nov 19 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-1
913b20e
- Update to latest upstream version
913b20e
- Added jnis
913b20e
- Patches updated with proper version info
913b20e
- Added suggestions from Ralph Apel <r.apel@r-apel.de>
913b20e
        + Versionless symlink for gdal.jar
913b20e
        + Maven2 pom
913b20e
        + JPP-style depmap
913b20e
        + Use -f XX.files for ruby and python
913b20e
913b20e
* Sun Oct 31 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_2
913b20e
- PCRaster support
913b20e
- cURL support
913b20e
- Disable building the reference manual (really too long...)
913b20e
913b20e
* Sat Oct 09 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_1
913b20e
- Add Java JNI libraries
913b20e
913b20e
* Sat Aug 14 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_0
913b20e
- Rebuild for EL GIS, based on work contributed by Nikolaos Hatzopoulos and Peter Hopfgartner 
913b20e
- Use vanilla sources
913b20e
913b20e
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.2-5
913b20e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
913b20e
913b20e
* Tue Jul 20 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-4
913b20e
- Rebuild with grass support
913b20e
913b20e
* Thu Jul 17 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-3
913b20e
- Add patch to change AISConnect() to Connect() for libdap 3.10
913b20e
- build without grass for libdap soname bump
913b20e
913b20e
* Tue Jul 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.2-2
913b20e
- reenable grass support
913b20e
913b20e
* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> - 1.7.2-1
913b20e
- upgrade to 1.7.2 (#587707, huge thanks to Sven Lankes)
913b20e
913b20e
* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-2
913b20e
- fix bz#572617
913b20e
913b20e
* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-1
913b20e
- new stable branch
913b20e
- re-enable java ColorTable
913b20e
- gdal custom fedora version banner
913b20e
- rebuild without grass
913b20e
- gdal manual are gone (upstream fault)
913b20e
913b20e
* Fri Feb  5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-5
913b20e
- reenable grass support
913b20e
913b20e
* Fri Feb  5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-4
913b20e
- temporarily disable grass support for bootstrapping
913b20e
- rebuild for new libxerces-c
913b20e
913b20e
* Tue Dec  8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.6.2-3
913b20e
- Explicitly BR hdf-static in accordance with the Packaging
913b20e
  Guidelines (hdf-devel is still static-only).
913b20e
913b20e
* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-2
913b20e
- re-enable grass support
913b20e
913b20e
* Tue Nov 17 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-1
913b20e
- Update to 1.6.2
913b20e
- Rebuild for netcdf 4.1.0
913b20e
913b20e
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-2
913b20e
- rebuilt with new openssl
913b20e
913b20e
* Thu Jul 30 2009 Dan Horak <dan[at]danny.cz> - 1.6.1-1
913b20e
- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
913b20e
- update to 1.6.1
913b20e
- don't install some refman.pdf, because they don't build
913b20e
- don't fail on man pages with suffix other than .gz
913b20e
- fix filelist for python subpackage
913b20e
913b20e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-10
913b20e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
913b20e
913b20e
* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.0-9
913b20e
- Rebuild for libdap 3.9.3, bootstrap
913b20e
913b20e
* Mon Mar 23 2009 Jesse Keating <jkeating@redhat.com> - 1.6.0-8
913b20e
- re-enable grass support
913b20e
913b20e
* Sun Mar 22 2009 Lubomir Rintel <lkundrak@v3.sk> - 1.6.0-7
913b20e
- Depend specifically on GCJ for Java (Alex Lancaster)
913b20e
- Disable grass (Alex Lancaster)
913b20e
- Create %%_bindir before copying files there
913b20e
913b20e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
913b20e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
913b20e
913b20e
* Wed Feb 04 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-4
913b20e
- rebuild with grass support
913b20e
- fix email typo
913b20e
913b20e
* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-3
913b20e
- rebuild against mysql 5.1.30
913b20e
913b20e
* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-2
913b20e
- email change
913b20e
- rebuild without grass
913b20e
913b20e
* Fri Dec 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-1
913b20e
- final stable release
913b20e
913b20e
* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.2.rc4
913b20e
- enable grass
913b20e
913b20e
* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.1.rc4
913b20e
- new branch
913b20e
- disable grass
913b20e
- fix ruby compile
913b20e
913b20e
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.3-2
913b20e
- Rebuild for Python 2.6
913b20e
913b20e
* Fri Oct 24 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.3-1
913b20e
- new stable
913b20e
- ship static package too
913b20e
- fix some doc generation
913b20e
- libdap patch for fc10 only
913b20e
913b20e
* Tue Sep 30 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-4
913b20e
- enable gdal_array for python subpackage
913b20e
- require numpy
913b20e
913b20e
* Tue Sep  9 2008 Patrice Dumas <pertusus@free.fr> - 1.5.2-3
913b20e
- patch for libdap > 0.8.0, from Rob Cermak
913b20e
913b20e
* Thu Jun 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-1
913b20e
- a new bugfix upstream
913b20e
- drop gcc43 patch
913b20e
- more license cleaned
913b20e
913b20e
* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-13
913b20e
- fix pkgconfig too
913b20e
913b20e
* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-12
913b20e
- fix once more gdal-config
913b20e
913b20e
* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-11
913b20e
- fix multilib gdal-config, add wrapper around
913b20e
- fix typos in cpl_config.h wrapper
913b20e
913b20e
* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-10
913b20e
- fix for multilib packaging bz#341231
913b20e
- huge spec cleanup
913b20e
- enable russian and brazil docs
913b20e
- enable and triage more docs
913b20e
913b20e
* Sun May 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-9
913b20e
- enable ruby and java packages
913b20e
- fix spurious sed problem
913b20e
- spec file cosmetics
913b20e
913b20e
* Thu May 23 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-8
913b20e
- fix sincos on all arch
913b20e
913b20e
* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-7
913b20e
- fix x86_64 problem
913b20e
913b20e
* Wed Apr 16 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-6
913b20e
- disable fortify source, it crash gdal for now.
913b20e
913b20e
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-5
913b20e
- really eanble against grass63
913b20e
913b20e
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-4
913b20e
- disable grass to bootstrap once again
913b20e
913b20e
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-3
913b20e
- rebuild to really pick up grass63 in koji
913b20e
913b20e
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-2
913b20e
- enable build against newer grass
913b20e
- enable build of reference manuals
913b20e
913b20e
* Tue Mar 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-1
913b20e
- new bugfix release from upstream
913b20e
- drop large parts from gcc43 patch, some are upstream now
913b20e
- fix building with perl-5.10 swig binding issue
913b20e
913b20e
* Wed Feb 29 2008 Orion Poplawski <orion@cora.nwra.com> - 1.5.0-4
913b20e
- Rebuild for hdf5-1.8.0, use compatability API define
913b20e
913b20e
* Tue Feb 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-3
913b20e
- install cpl_config.h manually for bz#430894
913b20e
- fix gcc4.3 build
913b20e
913b20e
* Mon Jan 14 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-2
913b20e
- fix perl dependency issue.
913b20e
913b20e
* Mon Jan 07 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-1
913b20e
- update to new 1.5.0 upstream stable
913b20e
- dropped build patch since HFA/ILI/DGN mandatories are now present
913b20e
- dropped swig patch, its upstream now
913b20e
- enable HFA it holds Intergraph (TM) explicit public license
913b20e
- enable DGN it holds Avenza Systems (TM) explicit public license
913b20e
- enable ILI headers since now contain proper public license message
913b20e
- keep and polish up rest of doubted license
913b20e
- further fixed hdf not supporting netcdf for for bz#189337
913b20e
- kill the annoying -Lexternal/lib for -lgeotiff
913b20e
- fix configure to not export LDFLAGS anyomre, upstream 
913b20e
  should really switch to real GNU automagic stuff
913b20e
- pymod samples and rfc docs now gone
913b20e
- hardcode external libtool to be used, LIBTOOL env not propagating anymore
913b20e
- use DESTDIR instead
913b20e
913b20e
* Thu Jan 03 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 1.4.2-7
913b20e
- Re-enable grass support now that gdal has been bootstrapped
913b20e
913b20e
* Wed Jan 02 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.2-6
913b20e
- Bootstrap 1st: disabling grass support
913b20e
- Workaround for hdf not supporting netcdf (bug 189337 c8)
913b20e
- Disabling documents creation for now.
913b20e
913b20e
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-5
913b20e
- Rebuild for deps
913b20e
- Disable grass to avoid circular deps
913b20e
913b20e
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-3
913b20e
- Rebuild for selinux ppc32 issue.
913b20e
913b20e
* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-2
913b20e
- disable one more HFA test, HFA is unaviable due to license
913b20e
913b20e
* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-1
913b20e
- new upstream one
913b20e
- catch some more docs
913b20e
- fix ogr python module runtime
913b20e
- include testcases and run tests
913b20e
- enable geotiff external library we have new libgeotiff now
913b20e
- EPSG geodetic database is licensed OK since v6.13 so re-enable
913b20e
- enable it against grass by default, implement optional switches 
913b20e
913b20e
* Tue Jun 05 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-4
913b20e
- re-build.
913b20e
913b20e
* Sat May 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-3
913b20e
- re-build against grass.
913b20e
913b20e
* Fri May 11 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-2
913b20e
- fix python lookup paths for ppc64.
913b20e
913b20e
* Wed May 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-1
913b20e
- new upstream release.
913b20e
- disable temporary grass-devel requirement untill find a
913b20e
  resonable solution for gdal-grass egg-chicken dep problem.
913b20e
913b20e
* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-22
913b20e
- and olso dont attempt pack missing docs.
913b20e
913b20e
* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-21
913b20e
- exclude some docs, doxygen segfault with those now upstream.
913b20e
913b20e
* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-20
913b20e
- rebuild against latest fedora upstream tree.
913b20e
913b20e
* Mon Apr 02 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-19
913b20e
- own gdal includedir
913b20e
- fix one more spurious lib path
913b20e
913b20e
* Wed Mar 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-18
913b20e
- remove system lib path from gdal-config --libs, its implicit
913b20e
913b20e
* Tue Mar 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-17
913b20e
- enable build against grass
913b20e
- fix incorrect use of 32/64 library paths lookups
913b20e
913b20e
* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-16
913b20e
- fix gdal flag from pkgconfig file
913b20e
913b20e
* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-15
913b20e
- require pkgconfig
913b20e
- generate pkgconfig from spec instead
913b20e
913b20e
* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-14
913b20e
- require perl(ExtUtils::MakeMaker) instead ?dist checking
913b20e
- add pkgconfig file 
913b20e
913b20e
* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-13
913b20e
- fix typo in specfile
913b20e
913b20e
* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-12
913b20e
- add missing dot from dist string in specfile
913b20e
913b20e
* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-11
913b20e
- fix fc6 fc5 builds
913b20e
913b20e
* Thu Mar 1 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-10
913b20e
- fix mock build
913b20e
- require perl-devel
913b20e
913b20e
* Tue Feb 27 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-9
913b20e
- repack tarball for fedora, explain changes in PROVENANCE-fedora,
913b20e
  license should be clean now according to PROVENANCE-* files
913b20e
- require ogdi since is aviable now
913b20e
- drop nogeotiff patch, in -fedora tarball geotiff is removed
913b20e
- man page triage over subpackages
913b20e
- exclude python byte compiled objects
913b20e
- fix some source C file exec bits
913b20e
913b20e
* Sat Feb 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-8
913b20e
- fix more things in spec
913b20e
- include more docs
913b20e
913b20e
* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-7
913b20e
- libtool in requirement list for build
913b20e
913b20e
* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-6
913b20e
- use external libtool to avoid rpath usage
913b20e
- include more docs
913b20e
913b20e
* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-5
913b20e
- use rm -rf for removal of dirs.
913b20e
- fix require lists
913b20e
913b20e
* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-4
913b20e
- fix doxygen buildreq
913b20e
- make sure r-path is fine.
913b20e
913b20e
* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-3
913b20e
- disable now ogdi (pending ogdi submission).
913b20e
913b20e
* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-2
913b20e
- more fixups for lib paths
913b20e
913b20e
* Fri Feb 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-1
913b20e
- first pack for fedora extras
913b20e
- disable geotiff (untill license sorted out)
913b20e
- enable all options aviable from extras
913b20e
- pack perl and python modules
913b20e
- kill r-path from libs
913b20e
- pack all docs posible