Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37604754
en ru br
Репозитории ALT
S:3.6.2-alt1.1
5.1: 1.6.1-alt1
4.1: 1.5.3-alt0.M41.1
4.0: 1.4.0-alt1.M40.1
www.altlinux.org/Changes

Группа :: Науки/Наука о земле
Пакет: gdal

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with geotiff

Summary: The Geospatial Data Abstraction Library (GDAL)
Name: gdal
Version: 1.6.1
Release: alt1
Group: Sciences/Geosciences
Packager: Anton V. Boyarshinov <boyarsh at altlinux.org>

License: MIT
Source: http://download.osgeo.org/gdal/%name-%version.tar.gz

Url: http://www.gdal.org/

%define libname lib%name

# Automatically added by buildreq on Mon Oct 27 2008

BuildRequires: doxygen gcc-c++ glibc-devel-static libMySQL-devel libcfitsio-devel libcurl-devel libexpat-devel libgeos-devel libhdf5-devel libjasper-devel libjpeg-devel libpng-devel libsqlite3-devel libtiff-devel libungif-devel libunixODBC-devel postgresql-devel proj-devel python-devel python-module-numpy python-modules-email python-module-setuptools xerces-c-devel libhdf5-devel

%description
The Geospatial Data Abstraction Library (GDAL) is a unifying
C/C++ API for accessing raster geospatial data, and currently
includes formats like GeoTIFF, Erdas Imagine, Arc/Info
Binary, CEOS, DTED, GXF, and SDTS. It is intended to provide
efficient access, suitable for use in viewer applications,
and also attempts to preserve coordinate systems and metadata.
Python, C, and C++ interfaces are available.

%package -n %libname
Summary: Libraries required for the GDAL library
Group: Sciences/Geosciences

%description -n %libname
Libraries required for the GDAL library

%package -n %libname-devel
Summary: Development files for using the GDAL library
Group: Development/C
Requires: %libname = %version-%release

%description -n lib%name-devel
Development files for using the GDAL library

%package -n python-module-%name
Summary: The Python bindings for the GDAL library
Group: Development/Python
Requires: %{libname} = %{version}
Requires: %name

%description -n python-module-gdal
Python module for %name.

%prep
%setup -q

%build
%undefine __libtoolize
%configure \
--datadir="%_datadir/%name" \
--includedir=%_includedir/%{name} \
--with-libz \
--with-png \
%if_with geotiff
--with-libtiff \
--with-geotiff \
%else
--with-libtiff=internal \
--with-geotiff=internal \
%endif
--with-gif \
--with-jpeg \
--with-ogr \
--with-hdf5=/usr/lib/hdf5-seq/\
--without-perl \
--without-php \
--without-ruby \
--without-ngpython \
   --with-geos \
   --with-jasper\
   --with-odbc \
   --with-sqlite \
   --with-curl  \
   --with-mysql \
   --with-python \
   --with-xerces \
   --with-xerces-inc=%_includedir/xercesc \
   --with-xerces-lib=%_libdir\
   --without-pcraster        \
   --with-threads
#
# --with-grass=%_libdir/grass62 \
%make
%make docs

%install
mkdir -p %buildroot/%_libdir/python2.5/site-packages/
%__make DESTDIR=%buildroot PYTHONPATH=$PYTHONPATH:%buildroot/%_libdir/python2.5/site-packages/ install

%files
%doc NEWS VERSION
%_datadir/%name
%_bindir/ogr*
%_bindir/gdal*
%_bindir/testepsg
%_bindir/nearblack
%_bindir/epsg_tr.py
%_bindir/gcps2vec.py
%_bindir/gcps2wld.py
%_bindir/pct2rgb.py
%_bindir/esri2wkt.py
%_bindir/mkgraticule.py
%_bindir/rgb2pct.py
%exclude %_bindir/gdal-config
# %_man1dir/*

%files -n %libname-devel
%_bindir/gdal-config
%_libdir/*.so
%_includedir/%{name}

%files -n %libname
%_libdir/*.so.*

%files -n python-module-%{name}
%python_sitelibdir/GDAL*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin