[GRASSweb-list] markus: web/grass62/binary/linux/fedora_specs
gdal-ogr-grass-plugin.spec, NONE, 1.1 gdal-min.spec, NONE,
1.1 jasper.spec, NONE, 1.1 gdal-max.spec, NONE, 1.1 grass.spec,
NONE, 1.1 proj.spec, NONE, 1.1
grass at intevation.de
grass at intevation.de
Fri Aug 10 01:41:08 EDT 2007
Author: markus
Update of /grassrepository/web/grass62/binary/linux/fedora_specs
In directory doto:/tmp/cvs-serv19969
Added Files:
gdal-ogr-grass-plugin.spec gdal-min.spec jasper.spec
gdal-max.spec grass.spec proj.spec
Log Message:
new spec files from Brad
--- NEW FILE: gdal-ogr-grass-plugin.spec ---
# GDAL/OGR support for GRASS: plugin
# This file is Free Software under GNU GPL v>=2.
%define GRASS_VERSION 6.2.2
%define PACKAGE_NAME gdal-grass
%define PACKAGE_VERSION 1.4.1
%define PACKAGE_RELEASE 1
#Query the RPM database to find which redhat/fedora release we are running.
%if %(rpmquery fedora-release | grep -cv 'not installed$')
%define FCL 1
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
%endif
%if %(rpmquery redhat-release | grep -v 'not installed$' | grep -c -e '-[0-9][AEW]S')
%define ENT 1
%define VER1 %(rpmquery --qf '%{VERSION}' redhat-release|cut -c1)
%endif
%if %(rpmquery sl-release | grep -v 'not installed$' | grep -c -e '-[0-9]')
%define SLC 1
%define VER1 %(rpmquery --qf '%{VERSION}' sl-release|cut -c1-)
%endif
Summary: GDAL/OGR support for GRASS
Name: %PACKAGE_NAME
Version: %PACKAGE_VERSION
Epoch: %PACKAGE_RELEASE
%{?FCL:Release: %{PACKAGE_RELEASE}.fc%{VER1}}
%{?ENT:Release: %{PACKAGE_RELEASE}.E%{VER1}}
%{?SLC:Release: %{PACKAGE_RELEASE}.SL%{VER1}}
Group: Sciences/Geosciences
Source0: gdal-grass-%{version}.tar.bz2
License: MIT licence; Copyright by Frank Warmerdam
URL: http://www.gdal.org/dl/
Packager: Brad Douglas <rez at touchofmadness.com>
BuildRoot: %{_builddir}/%{name}-root
Prefix: %{_prefix}
Requires: proj >= 4.5.0
Requires: python >= 2.4
Requires: zlib >= 1.2.3
BuildRequires: proj-devel >= 4.5.0
BuildRequires: python-devel >= 2.4
BuildRequires: zlib-devel >= 1.2.3
%description
GDAL and OGR support for GRASS GIS created from gdal-%PACKAGE_VERSION
%prep
%setup -q
# Building GRASS Plugin
AUTOLOAD=%{buildroot}/%{_prefix}/lib/gdalplugins
mkdir -p ${AUTOLOAD}
%configure \
--prefix=%{_prefix} \
--enable-shared \
--with-grass=%{_prefix}/grass-%{GRASS_VERSION} \
--with-gdal=%{_prefix}/bin/gdal-config \
--with-autoload=${AUTOLOAD}
%build
make prefix=%{buildroot}/%{_prefix} BINDIR=%{buildroot}/%{_bindir} \
PREFIX=%{buildroot}%{_prefix} install
%install
make prefix=%{buildroot}/%{_prefix} BINDIR=%{buildroot}/%{_bindir} \
PREFIX=%{buildroot}%{_prefix} install
# make plugin available on system
install -d %{buildroot}/etc/ld.so.conf.d
echo "%{_prefix}/lib/gdalplugins" > %{buildroot}/etc/ld.so.conf.d/gdal-grass.conf
%clean
rm -rf %{_builddir}/%{PACKAGE_NAME}-%{version}
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}/lib/gdalplugins/gdal_GRASS.so
%{_prefix}/lib/gdalplugins/ogr_GRASS.so
/etc/ld.so.conf.d/gdal-grass.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Tue Jul 17 2007 Brad Douglas <rez at touchofmadness.com>
- updated to gdal-grass 1.4.1
- updated to GDAL 1.4.2 - GRASS 6.2.2
* Fri Oct 20 2006 Markus Neteler <neteler at itc.it>
- updated to GDAL 1.3.2 - GRASS 6.2.0; fixed /etc/ld.so.conf.d/gdal-grass.conf
* Tue Oct 11 2005 Otto Dassau 1.3.1-1
- adaptions for gdal-grass package
* Tue Aug 24 2005 Otto Dassau 1.3.0-1
- adaptions for python support
* Tue Aug 9 2005 Otto Dassau 1.2.6-1
- adapted to SuSE93
* Fri Jul 8 2005 Otto Dassau 1.2.6-1
- adapted to SuSE93
* Sun Mar 20 2005 Markus Neteler 1.2.6-1
- updated to GDAL 1.2.6, AUTOLOAD
--- NEW FILE: gdal-min.spec ---
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
Name: gdal
Summary: GIS file format library
Version: 1.4.2
Release: min.1.fc%{VER1}
License: MIT
URL: http://gdal.maptools.org
Source: %{name}-%{version}.tar.gz
Prefix: %{_bindir}
Group: System Environment/Libraries
Packager: Brad Douglas <rez at touchofmadness.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
Requires: libungif libjpeg
Requires: libpng >= 1.2.16
Requires: proj >= 4.5.0
Requires: sqlite >= 3.3.0
Requires: zlib >= 1.2.3
Requires: python >= 2.4
Requires: unixODBC >= 2.2
Requires: postgresql-libs >= 8.1
BuildRequires: libungif-devel libjpeg-devel
BuildRequires: libpng-devel >= 1.2.16
BuildRequires: proj-devel >= 4.5.0
BuildRequires: sqlite-devel >= 3.3.0
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: python-devel >= 2.4
BuildRequires: unixODBC-devel >= 2.2
BuildRequires: postgresql-devel >= 8.1
#define globally Python version:
%define pyversion python2.4
%description
The GDAL library provides support for reading and writing multiple GIS file formats.
%package devel
Summary: Development Libraries for the GDAL file format library
Group: Development/Libraries
Requires: gdal = %{version}
%description devel
The GDAL library provides support for reading and writing multiple GIS file formats.
%prep
%setup -q
%build
%configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-shared \
--with-libtiff=internal \
--with-geotiff=internal \
--with-pg=%{_bindir}/pg_config \
--without-grass \
--without-libgrass \
--without-cfitsio \
--without-pcraster \
--without-netcdf \
--without-ogdi \
--without-hdf4 \
--without-hdf5 \
--without-jasper \
--without-ecw \
--without-kakadu \
--without-mrsid \
--without-jp2mrsid \
--without-mysql \
--without-xerces \
--without-oci \
--without-sde \
--without-geos \
--without-curl \
--without-perl \
--without-php \
--without-ruby \
--with-odbc=%{_prefix} \
--with-libz \
--with-png \
--with-gif \
--with-jpeg \
--with-python \
--with-sqlite
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_datadir}/gdal
make \
INST_BIN=%{buildroot}%{_bindir}\
INST_LIB=%{buildroot}%{_libdir} \
INST_INCLUDE=%{buildroot}%{_includedir} \
INST_DATA=%{buildroot}%{_datadir}/gdal \
INST_MAN=%{buildroot}%{_mandir} \
INST_PYMOD=%{buildroot}%{_libdir}/%{pyversion}/site-packages \
install
/bin/rm -f %{buildroot}%{_libdir}/*.la
/bin/mv -f %{buildroot}%{_bindir}/*.py %{buildroot}%{_datadir}/gdal
/bin/cp -f pymod/samples/*.py %{buildroot}%{_datadir}/gdal
%clean
rm -r $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_bindir}/gdaladdo
%{_bindir}/gdalinfo
%{_bindir}/gdal_translate
%{_bindir}/gdal_rasterize
%{_bindir}/gdalwarp
%{_bindir}/gdal_contour
%{_bindir}/gdaltindex
%{_bindir}/ogr2ogr
%{_bindir}/ogrinfo
%{_bindir}/ogrtindex
%dir %{_datadir}/gdal
%{_datadir}/gdal/*
%{_libdir}/%{pyversion}/site-packages/*
%doc %{_mandir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.a
%{_bindir}/gdal-config
%changelog
* Fri Jul 20 2007 Brad Douglas <rez at touchofmadness.com>
- added library dependency version data
* Tue Jul 17 2007 Brad Douglas <rez at touchofmadness.com>
- updated to GDAL 1.4.2
--- NEW FILE: jasper.spec ---
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
Summary: JasPer
Name: jasper
Version: 1.900.1.uuid
Release: 1.fc%{VER1}
License: Modified BSD
URL: http://www.ece.uvic.ca/~mdadams/jasper/
Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.uuid.tar.bz2
Group: Development/Libraries
Packager: Brad Douglas <rez at touchofmadness.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Prereq: /sbin/ldconfig
Requires: libjpeg
Requires: freeglut >= 2.4.0
BuildRequires: libjpeg-devel
BuildRequires: freeglut-devel >= 2.4.0
%description
JasPer is a collection
of software (i.e., a library and application programs) for the coding
and manipulation of images. This software can handle image data in a
variety of formats. One such format supported by JasPer is the JPEG-2000
format defined in ISO/IEC 15444-1:2000.
%package devel
Summary: Development libraries and documentation for JasPer
Group: Development/Libraries
Requires: jasper = %{version}
%description devel
JasPer is a collection
of software (i.e., a library and application programs) for the coding
and manipulation of images. This software can handle image data in a
variety of formats. One such format supported by JasPer is the JPEG-2000
code stream format defined in ISO/IEC 15444-1:2000.
%prep
%setup -q
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-shared --enable-static \
--with-glut-include-dir=%{_includedir}/GL \
--with-glut-lib-dir=%{_libdir} \
--with-x
%build
sed 's/libdir = \/usr\/lib64/libdir \= \${prefix}\/lib64/' < src/libjasper/Makefile > src/libjasper/Makefile1
mv -f src/libjasper/Makefile1 src/libjasper/Makefile
make
%install
rm -rf $RPM_BUILD_ROOT
#make LIBDIR=$RPM_BUILD_ROOT%{_libdir} prefix=$RPM_BUILD_ROOT%{_prefix} install
make prefix=$RPM_BUILD_ROOT%{_prefix} install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/*
%{_libdir}/lib*.so.*
%doc README LICENSE ChangeLog
%doc %{_prefix}/man/man1/*
%files devel
%defattr(-, root, root)
%{_includedir}/jasper/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%attr(0644,root,root) %{_includedir}/jasper/*
%changelog
* Tue Jul 24 2007 Brad Douglas <rez at touchofmadness.com>
- specified --libdir so x86_64 picks up right path
* Fri Jul 20 2007 Brad Douglas <rez at touchofmadness.com>
- used %configure instead of ./configure
- build with freeglut
- added dependencies for freeglut
* Tue Jul 17 2007 Brad Douglas <rez at touchofmadness.com>
- adapted to fedora core 7
* Fri Oct 27 2006 Brad Douglas <rez at touchofmadness.com>
- adapted to fedora core
* Fri Oct 25 2002 Alexander D. Karaivanov <adk at medical-insight.com>
- spec file created
--- NEW FILE: gdal-max.spec ---
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
Name: gdal
Summary: GIS file format library
Version: 1.4.2
Release: max.1.fc%{VER1}
License: MIT
URL: http://gdal.maptools.org
Source: %{name}-%{version}.tar.gz
Prefix: /usr
Group: System Environment/Libraries
Packager: Brad Douglas <rez at touchofmadness.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
Requires: libungif libjpeg
Requires: jasper >= 1.900
Requires: libpng >= 1.2.16
Requires: netcdf >= 3.6.0
Requires: geos >= 2.2
Requires: proj >= 4.5.0
Requires: python >= 2.4
Requires: sqlite >= 3.3.6
Requires: cfitsio >= 3.0
Requires: hdf >= 4.2r1
Requires: hdf5 >= 1.6
Requires: zlib >= 1.2.3
Requires: curl >= 7.15
Requires: unixODBC >= 2.2
Requires: postgresql-libs >= 8.1.0
BuildRequires: libungif-devel libjpeg-devel
BuildRequires: jasper-devel >= 1.900
BuildRequires: libpng-devel >= 1.2.16
BuildRequires: netcdf-devel >= 3.6.0
BuildRequires: geos-devel >= 2.2
BuildRequires: proj-devel >= 4.5.0
BuildRequires: python-devel >= 2.4
BuildRequires: sqlite-devel >= 3.3.6
BuildRequires: cfitsio-devel >= 3.0
BuildRequires: hdf-devel >= 4.2r1
BuildRequires: hdf5-devel >= 1.6
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: curl-devel >= 7.15
BuildRequires: unixODBC-devel >= 2.2
BuildRequires: postgresql-devel >= 8.1.0
#define globally Python version:
%define pyversion python2.4
%description
The GDAL library provides support for reading and writing multiple GIS file formats.
%package devel
Summary: Development Libraries for the GDAL file format library
Group: Development/Libraries
Requires: gdal = %{version}
%description devel
The GDAL library provides support for reading and writing multiple GIS file formats.
%prep
%setup
sed 's/I\$with_cfitsio/I\$with_cfitsio\/include\/cfitsio \-I\$with_hdf\/include\/hdf \-I\$with_netcdf\/include\/netcdf\-3/' < configure > configure1
sed 's/\-lmfhdf/\-L\/usr\/lib64\/hdf \-lmfhdf/' < configure1 > configure2
sed 's/\-lnetcdf/\-L\/usr\/lib64\/netcdf\-3 \-lnetcdf/' < configure2 > configure3
rm -f configure2 configure1 configure
mv -f configure3 configure
/bin/chmod +x configure
%build
%configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-shared \
--with-libtiff=internal \
--with-geotiff=internal \
--with-cfitsio=%{_prefix} \
--with-pg=%{_bindir}/pg_config \
--with-netcdf=%{_prefix} \
--with-libz \
--with-odbc \
--with-curl \
--with-hdf4 \
--with-hdf5 \
--with-geos \
--with-jasper \
--with-png \
--with-gif \
--with-jpeg \
--with-python \
--with-sqlite \
--without-pcraster \
--without-ogdi \
--without-php \
--without-ruby \
--without-perl \
--without-xerces \
--without-grass \
--without-sde \
--without-oci \
--without-ecw \
--without-mrsid \
--without-jp2mrsid \
--without-libgrass
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_datadir}/gdal
make \
INST_BIN=%{buildroot}%{_bindir}\
INST_LIB=%{buildroot}%{_libdir} \
INST_INCLUDE=%{buildroot}%{_includedir} \
INST_DATA=%{buildroot}%{_datadir}/gdal \
INST_MAN=%{buildroot}%{_mandir} \
INST_PYMOD=%{buildroot}%{_libdir}/%{pyversion}/site-packages \
install
/bin/rm -f %{buildroot}%{_libdir}/*.la
/bin/mv -f %{buildroot}%{_bindir}/*.py %{buildroot}%{_datadir}/gdal
/bin/cp -f pymod/samples/*.py %{buildroot}%{_datadir}/gdal
%clean
rm -r $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.so.*
%{_bindir}/gdaladdo
%{_bindir}/gdalinfo
%{_bindir}/gdal_translate
%{_bindir}/gdal_rasterize
%{_bindir}/gdalwarp
%{_bindir}/gdal_contour
%{_bindir}/gdaltindex
%{_bindir}/ogr2ogr
%{_bindir}/ogrinfo
%{_bindir}/ogrtindex
%dir %{_datadir}/gdal
%{_datadir}/gdal/*
%{_libdir}/%{pyversion}/site-packages/*
%doc %{_mandir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.a
%{_bindir}/gdal-config
%changelog
* Fri Jul 20 2007 Brad Douglas <rez at touchofmadness.com>
- added library dependency version data
- modified to support fc7 netcdf include path
* Tue Jul 17 2007 Brad Douglas <rez at touchofmadness.com>
- Updated to GDAL 1.4.2
--- NEW FILE: grass.spec ---
# GRASS 6.X RPM spec file for ITC
# This file is Free Software under GNU GPL v>=2.
# Derived from grass_FC4.spec
# Define snap to use the snapshot version, change cvssnapshot and cvsversion accordingly
#
%define snap 0
%define with_blas 0
%define with_ffmpeg 0
%define with_fftw3 1
%define with_odbc 1
%define with_mysql 0
%define with_postgres 1
%define with_largefiles 1
%define with_motif 0
%define with_readline 0
#
# Turn off automatic generation of dependencies to
# avoid a problem with libgrass* dependency issues.
# Other dependencies listed below.
#
%define _use_internal_dependency_generator 0
# Filter out the library number on provides
%define __find_provides %{_tmppath}/find_provides.sh
# Disable the _find_requires macro.
%define __find_requires %{nil}
%if "%{snap:1}" == "0"
%define PACKAGE_VERSION 6.2.2
%define PACKAGE_RELEASE 1
%define shortver 62
%else
%define cvssnapshot 2006_11_03
%define cvsversion 6.2.2
%define PACKAGE_VERSION %{cvsversion}
%define PACKAGE_RELEASE 1
%define shortver 62
%endif
#Query the RPM database to find which redhat/fedora release we are running.
%if %(rpmquery fedora-release | grep -cv 'not installed$')
%define FCL 1
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
%endif
%if %(rpmquery redhat-release | grep -v 'not installed$' | grep -c -e '-[0-9][DAEW]')
%define ENT 1
%define VER1 %(rpmquery --qf '%{VERSION}' redhat-release|cut -c1)
%endif
%if %(rpmquery sl-release | grep -v 'not installed$' | grep -c -e '-[0-9]')
%define SLC 1
%define VER1 %(rpmquery --qf '%{VERSION}' sl-release|cut -c1-)
%endif
Summary: GRASS - Geographic Resources Analysis Support System
Name: grass
Version: %PACKAGE_VERSION
Epoch: %PACKAGE_RELEASE
%{?FCL:Release: %{PACKAGE_RELEASE}.fc%{VER1}}
%{?ENT:Release: %{PACKAGE_RELEASE}.E%{VER1}}
%{?SLC:Release: %{PACKAGE_RELEASE}.SL%{VER1}}
%if "%{snap:1}" == "0"
Source: http://grass.itc.it/grass62/source/grass-%{PACKAGE_VERSION}.tar.bz2
%else
Source: http://grass.itc.it/grass62/source/snapshot/grass-%{cvsversion}.cvs_src_snapshot_%{cvssnapshot}.tar.gz
%endif
License: GPL, Copyright by the GRASS Development Team
Group: Sciences/Geosciences
Packager: Brad Douglas <rez at touchofmadness.com>
URL: http://grass.itc.it/index.php
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)/%{name}-%{version}
Prefix: %{_prefix}
Requires: gdal >= 1.3
BuildRequires: gdal-devel >= 1.3
Requires: tcl >= 8.3
BuildRequires: tcl-devel >= 8.3
Requires: tk >= 8.3
BuildRequires: tk-devel >= 8.3
Requires: proj >= 4.5.0
BuildRequires: proj-devel >= 4.5.0
Requires: geos >= 2.2.3
BuildRequires: geos-devel >= 2.2.3
#Requires: freetype >= 2.3.0
#BuildRequires: freetype-devel >= 2.3.0
Requires: freetype >= 2.2.0
BuildRequires: freetype-devel >= 2.2.0
Requires: bash >= 3.0
Requires: mesa-libGL >= 6.5
BuildRequires: mesa-libGL-devel >= 6.5
Requires: libX11 >= 1.0
BuildRequires: libX11-devel >= 1.0
Requires: sqlite >= 3.3
BuildRequires: sqlite-devel >= 3.3
%if "%{with_motif}" == "1"
Requires: lesstif >= 0.95
BuildRequires: lesstif-devel >= 0.95
%endif
#Requires: glibc >= 2.6
#BuildRequires: glibc-devel >= 2.6
Requires: glibc >= 2.5
BuildRequires: glibc-devel >= 2.5
Requires: libgcc >= 4.1.0
#Requires: ncurses >= 5.6
#BuildRequires: ncurses-devel >= 5.6
Requires: ncurses >= 5.5
BuildRequires: ncurses-devel >= 5.5
Requires: libpng >= 1.2.12
BuildRequires: libpng-devel >= 1.2.12
Requires: libjpeg
BuildRequires: libjpeg-devel
Requires: libstdc++ >= 4.1
BuildRequires: libstdc++-devel >= 4.1
Requires: libtiff >= 3.8
BuildRequires: libtiff-devel >= 3.8
Requires: zlib >= 1.2
BuildRequires: zlib-devel >= 1.2
%if "%{with_readline}" == "1"
Requires: readline >= 5.1
BuildRequires: readline-devel >= 5.1
%endif
%if "%{with_fftw3}" == "1"
Requires: fftw3 >= 3.1
BuildRequires: fftw3-devel >= 3.1
%endif
%if "%{with_blas}" == "1"
Requires: blas >= 3.1
BuildRequires: blas >= 3.1
Requires: lapack >= 3.1
BuildRequires: lapack >= 3.1
%endif
%if "%{with_ffmpeg}" == "1"
Requires: ffmpeg
BuildRequires: ffmpeg-devel
%endif
%if "%{with_odbc}" == "1"
Requires: unixODBC >= 2.2
BuildRequires: unixODBC-devel >= 2.2
%endif
%if "%{with_mysql}" == "1"
Requires: mysql
BuildRequires: mysql-devel
%endif
%if "%{with_postgres}" == "1"
#Requires: postgresql-libs >= 8.2
#BuildRequires: postgresql-devel >= 8.2
Requires: postgresql-libs >= 8.1
BuildRequires: postgresql-devel >= 8.1
%endif
Requires: python >= 2.4
BuildRequires: python-devel >= 2.4
BuildRequires: bison
BuildRequires: flex
BuildRequires: man
Vendor: GRASS
#
# clean up of provides for other packages: gdal-grass, qgis etc.
#
%description
GRASS (Geographic Resources Analysis Support System) is a Geographic
Information System (GIS) used for geospatial data management and
analysis, image processing, graphics/maps production, spatial
modeling, and visualization. GRASS is currently used in academic and
commercial settings around the world, as well as by many governmental
agencies and environmental consulting companies.
%prep
%if "%{snap:1}" == "0"
%setup -n %{name}-%{version} ## name the directory
%else
%setup -n %{name}-%{version}.cvs_src_snapshot_%{cvssnapshot} ## name the directory
%endif
#
# Filter out library number
#
cat > %{_tmppath}/find_provides.sh <<EOF
#!/bin/sh
/usr/lib/rpm/redhat/find-provides | sed -e 's/%{version}\.//g' | sort -u
exit 0
EOF
chmod ugo+x %{_tmppath}/find_provides.sh
#
# Edit configure script for libraries
#
%if "%{with_readline}" == "1"
sed -i 's/-lreadline/-lreadline -lcurses/g' configure
chmod +x configure
%endif
%build
#
#configure with shared libs:
#
#%if "%{FCL}" == "1" && "%{VER1}" == "4"
#CFLAGS="-O2 -g -Wall"
#%else
#CFLAGS="-O2 -g -Wall -Werror-implicit-function-declaration -fno-common"
#%endif
CXXFLAGS="-O2 -g -Wall"
(%configure \
--enable-shared \
--with-includes=%{_includedir} \
--with-cxx \
--with-jpeg \
--with-tiff \
--with-png \
--with-tcltk \
%if "%{with_postgres}" == "1"
--with-postgres \
--with-postgres-includes=%{_includedir}/pgsql \
--with-postgres-libs=%{_libdir} \
%else
--without-postgres \
%endif
%if "%{with_mysql}" == "1"
--with-mysql \
--with-mysql-includes=%{_includedir}/mysql \
--with-mysql-libs=%{_libdir}/mysql \
%else
--without-mysql \
%endif
--with-sqlite \
%if "%{with_ffmpeg}" == "1"
--with-ffmpeg \
--with-ffmpeg-includes=%{_includedir}/ffmpeg \
--with-ffmpeg-libs=%{_libdir} \
%else
--without-ffmpeg \
%endif
--with-opengl \
%if "%{with_odbc}" == "1"
--with-odbc \
--with-odbc-libs=%{_libdir} \
--with-odbc-includes=%{_includedir} \
%else
--without-odbc \
%endif
%if "%{with_fftw3}" == "1"
--with-fftw \
%else
--without-fftw \
%endif
%if "%{with_blas}" == "1"
--with-blas \
--with-lapack \
%else
--without-blas \
--without-lapack \
%endif
%if "%{with_motif}" == "1"
--with-motif \
%else
--without-motif \
%endif
--with-freetype \
--with-freetype-includes=%{_includedir}/freetype2 \
--without-glw \
--with-nls \
%if "%{with_readline}" == "1"
--with-readline \
--with-readline-includes=%{_includedir}/readline \
--with-readline-libs=%{_libdir} \
%else
--without-readline \
%endif
--without-opendwg \
--with-curses \
--with-python \
--with-gdal=/usr/bin/gdal-config \
--with-proj \
--with-proj-includes=%{_includedir} \
--with-proj-libs=%{_libdir} \
--with-proj-share=%{_datadir}/proj \
%if "%{with_largefiles}" == "1"
--enable-largefile \
%endif
--with-x
)
#configure with shared libs:
make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
PREFIX=%{buildroot}%{_prefix}
%install
rm -rf %{buildroot}
make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
PREFIX=%{buildroot}%{_prefix} install
# changing GISBASE in startup script (deleting %{buildroot} from path)
mv %{buildroot}%{_bindir}/grass%{shortver} %{buildroot}%{_bindir}/grass%{shortver}.tmp
cat %{buildroot}%{_bindir}/grass%{shortver}.tmp | \
sed -e "1,\$s&^GISBASE.*&GISBASE=%{_prefix}/grass-%{version}&" | \
cat - > %{buildroot}%{_bindir}/grass%{shortver}
rm %{buildroot}%{_bindir}/grass%{shortver}.tmp
chmod +x %{buildroot}%{_bindir}/grass%{shortver}
# Make grass libraries available on the system
install -d %{buildroot}/etc/ld.so.conf.d
echo %{_prefix}/grass-%{version}/%{_lib} >> %{buildroot}/etc/ld.so.conf.d/grass-%{version}.conf
# Install pkg-config
if [ ! -d %{buildroot}%{_libdir}/pkgconfig ]
then
mkdir -p %{buildroot}%{_libdir}/pkgconfig
fi
install -m 644 grass.pc %{buildroot}%{_libdir}/pkgconfig/
%clean
rm -rf %{buildroot}
#cd ..
#rm -rf grass-%{version}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING GPL.TXT README REQUIREMENTS.html
%attr(0755,root,root)
%{_bindir}/grass%{shortver}
%{_bindir}/gem
%{_prefix}/grass-%{version}
%{_libdir}/pkgconfig/grass.pc
/etc/ld.so.conf.d/grass-%{version}.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%Changelog
* Tue Jul 24 2007 Brad Douglas <rez at touchofmadness.com>
- Commented out FLAGS section - use default %configure eval
- Reorganized configure layout and specified all options
* Tue Jul 17 2007 Brad Douglas <rez at touchofmadness.com>
- Conditionalized readline dependency
* Tue Dec 12 2006 Brad Douglas <rez at touchofmadness.com>
- Conditionalized openmotif/lesstif dependency for (>=FC5)
* Tue Nov 15 2006 Brad Douglas <rez at touchofmadness.com>
- sed configure to add ncurses dependency for readline (>=FC5)
* Fri Oct 20 2006 Markus Neteler <neteler at itc.it>
- fftw3 conditionalized (needed for FC4); less strict compiler flags
* Tue Oct 17 2006 Roberto Flor <flor at itc.it>
- Moved to 6.2.0RC3, enabled ffmpeg, added snapshot/version flag
* Tue Mar 17 2006 Roberto Flor <flor at itc.it>
- Added with/without option
- Added cvs snapshot option
- Fixed a lot of inconsistency on x86_64 lib
* Tue Feb 28 2006 Roberto Flor <flor at itc.it>
- Small changes and cleanup. Requires FC4 or RH Enterprise 4.
- Dirty fix for provides error
* Thu Oct 12 2005 Markus Neteler <neteler at itc.it>
- First build of RPM for Fedora Core 4.
* Thu Mar 30 2005 Craig Aumann <caumann at ualberta.ca>
- First build of RPM for Fedora Core 3.
* Wed Sep 01 2004 Bernhard Reiter <bernhard at intevation.de>
- made ready to be checked into GRASS CVS: added header, disabled Patch1
* Tue Aug 10 2004 Silke Reimer <silke.reimer at intevation.net>
- small changes to fit to Fedora naming conventions
* Thu Jul 01 2004 Silke Reimer <silke.reimer at intevation.net>
- Initial build
--- NEW FILE: proj.spec ---
%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release)
Name: proj
Summary: Cartographic reprojection library
Version: 4.5.0
Release: 1.fc%{VER1}
License: MIT
URL: http://proj.maptools.org
Source0: ftp://ftp.remotesensing.org/proj/proj-%{version}.tar.gz
Source1: ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz
Prefix: %{_prefix}
Group: Applications/GIS
Packager: Brad Douglas <rez at touchofmadness.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
%description
The proj library provides cartographic reprojection support used in GIS software for
converting shapes from one coordinate system to another. This package
includes extra datums and grids not provided in other builds of proj.
%package devel
Summary: Development Libraries for the Proj reprojection library
Group: Development/Libraries
Requires: proj = %{version}
%description devel
The proj library provides cartographic reprojection support used in GIS software for
converting shapes from one coordinate system to another.
%prep
%setup -b 0
cd nad
tar -xzvf %{SOURCE1}
%build
%configure \
--enable-static \
--enable-shared \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--enable-incode-epsg
make
%install
%makeinstall
/bin/rm -f %{buildroot}%{_libdir}/*.la
/bin/rm -f %{buildroot}%{_mandir}/*/*.gz
%clean
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%dir %{_datadir}/proj
%{_datadir}/proj/*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.a
%Changelog
* Tue Jul 24 2007 Brad Douglas <rez at touchofmadness.com>
- Used builtin paths instead of hardcoding
* Wed Oct 25 2006 Markus Neteler <neteler at itc.it>
- PROJ 4.5.0 with extra daums/grids
More information about the grass-web
mailing list