Преглед изворни кода

rpm SPEC files: remove outdated files, add README.txt with links

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60434 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler пре 11 година
родитељ
комит
7915810e1e

+ 16 - 0
rpm/README.txt

@@ -0,0 +1,16 @@
+RPM SPEC files
+
+Enterprise Linux GIS:
+ http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS
+
+Fedora:
+ http://koji.fedoraproject.org/koji/packageinfo?packageID=1972
+ 
+Mageia:
+ http://sophie.zarb.org/distrib/Mageia/2/x86_64/by-pkgid/122fc7230d4f9c23b478971943aa43c4/files
+
+Mandriva:
+ http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/grass/current/
+
+Opensuse:
+ http://download.opensuse.org/repositories/Application:/Geo/

+ 0 - 39
rpm/fedora/INSTALL.TXT

@@ -1,39 +0,0 @@
-To install GRASS, you will likely also need to install the following
-RPMS:
-
-- fftw-2.1.5-5.i386.rpm (version >= 2.1) available at
-http://www.rpmfind.net (I believe it is also part of Fedora 3 Extras
-for i386).
-
-and the following, all available at
-http://mappinghacks.com/rpm/fedora/3/
-
-- gdal-1.2.5-mh3.i686.rpm
-- proj-4.4.9-mh2.i686.rpm
-- geos-2.1.1-mh2.i686.rpm
-- ogdi-3.1.1-mh1.i686.rpm
-
-
-The gdal package does require a number of libraries included with
-PostreSQL.  Perhaps the easiest way to satisfy these requirements is
-to add the application PostgreSQL via Add/Remove Applications under
-the Applications->System Settings menu. The GRASS RPM is compiled with
-full database support for ODBC, MYSQL and PostgreSQL; however, to use
-these databases with GRASS they will need to be installed on your
-system. MySQL can be installed using Add/Remove Applications as well.
-Note that fully installing PostgreSQL requires further setup beyond
-that done by via the automated Add/Removing Applications. See the
-PostgreSQL website for instructions. This is only necessary if you
-want to use PostgreSQL with GRASS. 
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 101
rpm/fedora/gdal-ogr-grass-plugin.spec

@@ -1,101 +0,0 @@
-# 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@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@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@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

+ 0 - 22
rpm/fedora/grass-readline.patch

@@ -1,22 +0,0 @@
-# Patch to make grass-5.7.0.tar.gz compile on Fedora2.
-# Necessary until RT bug #2526 is solved.
---- configure.orig	2004-06-17 15:26:22.000000000 +0200
-+++ configure	2004-07-01 17:02:03.119838488 +0200
-@@ -8085,7 +8085,7 @@
- ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
- 
- ac_save_LIBS="$LIBS"
--LIBS="-lreadline  $LIBS"
-+LIBS="-lreadline -lncurses  $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8091 "configure"
- #include "confdefs.h"
-@@ -8112,7 +8112,7 @@
- 
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
--  READLINELIB="$READLINELIB -lreadline "
-+  READLINELIB="$READLINELIB -lreadline -lncurses "
- else
-   echo "$ac_t""no" 1>&6
- 

+ 0 - 91
rpm/fedora/grass_FC2.spec

@@ -1,91 +0,0 @@
-# GRASS 5.7 RPM spec file for Fedora
-# This file is Free Software under GNU GPL v>=2. 
-# Date: 2005-08-10
-
-%define PACKAGE_NAME grass
-%define PACKAGE_VERSION 5.7.0
-%define PACKAGE_URL http://grass.itc.it/index.html
-%define _prefix /usr/lib
-%define _bindir /usr/bin
-
-Summary: GRASS - Geographic Resources Analysis Support System
-Name: %PACKAGE_NAME
-Version: %PACKAGE_VERSION
-Release: 1.fdr.2
-Epoch: 1
-Source: grass-5.7.0.tar.gz
-# Necessary until RT bug #2526 is solved.
-Patch0: grass-readline.patch
-# Patch1 disabled because this was fixed in GRASS CVS already.
-# See RT bug 2525, fix is in  grass: src/libes/ogsf/GS2.c rev 1.17
-#Patch1: grass-zrange.patch
-License: GPL; Copyright by the GRASS Development Team
-Group: Applications/Productivity
-
-BuildRequires:gdal-devel, tcl-devel >= 0:8, tk-devel >= 0:8, unixODBC-devel,  readline-devel, proj-devel, zlib-devel, libpng-devel, libtiff-devel, postgresql-devel
-Requires: gdal,  tcl >= 0:8, tk >= 0:8, readline, proj, unixODBC, postgresql-libs, libtiff, libpng, zlib
-BuildRoot: %{_builddir}/%{name}-root
-Prefix: %{_prefix}
-
-%description
-GRASS (Geographic Resources Analysis Support System)
-is a raster-based GIS, vector GIS,
-image processing system, graphics production
-system, data management system, and spatial
-modeling system. A graphical user interface
-for X-Windows is provided. 
-
-%prep
-%setup -n %{name}-%{version}
-%patch0 -p0 
-#%patch1 -p0
-
-CFLAGS="-O2" LDFLAGS="-s" ./configure --prefix=%{_prefix} --bindir=%{_bindir}  --with-gdal --with-readline --with-fftw=no
-
-%build
-make
-
-# compiling grass
-make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
-PREFIX=%{buildroot}%{_prefix} install-strip
-
-%install
-make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
-PREFIX=%{buildroot}%{_prefix} install-strip
-
-# changing GISBASE (deleting %{buildroot} from path)
-mv %{buildroot}%{_bindir}/grass57 %{buildroot}%{_bindir}/grass57.tmp
-cat  %{buildroot}%{_bindir}/grass57.tmp |
-	sed -e "1,\$s&^GISBASE.*&GISBASE=%{_prefix}/%{name}-%{version}&" |
-    cat - > %{buildroot}%{_bindir}/grass57
-rm %{buildroot}%{_bindir}/grass57.tmp
-chmod +x %{buildroot}%{_bindir}/grass57
-
-if  grep -q ignored error.log ; then
-	echo An error occurred and was ignored. 
-	echo I will print the error.log and stop for you.
-	cat error.log
-	exit 1
-fi
-
-%clean
-rm -rf %{_builddir}/%{name}-%{version}
-echo `pwd`
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root)
-
-%{_bindir}
-%{_prefix}
-%doc CHANGES AUTHORS INSTALL COPYING GPL.TXT README REQUIREMENTS.html TODO 
-
-%Changelog 
-* Wed Sep 01 2004 Bernhard Reiter <bernhard@intevation.de>
-- made ready to be checked into GRASS CVS: added header, disabled Patch1
-
-* Tue Aug 10 2004 Silke Reimer <silke.reimer@intevation.net>
-- small changes to fit to Fedora naming conventions
-
-* Thu Jul 01 2004 Silke Reimer <silke.reimer@intevation.net>
-- Initial build

+ 0 - 227
rpm/fedora/grass_FC3.spec

@@ -1,227 +0,0 @@
-# GRASS 6.0 RPM spec file for Fedora
-# This file is Free Software under GNU GPL v>=2. 
-# Date: 2005-08-10
-
-%define PACKAGE_NAME grass
-%define PACKAGE_VERSION 6.0.0
-%define PACKAGE_URL http://grass.itc.it/index.php
-%define _prefix /usr/local
-%define _bindir /usr/bin
-%define shortver 60
-
-## Disable the automatic running of the _find_requires macro.  
-#%define _find_requires %{nil}  
-
-## Turn off automatic generation of dependencies to 
-## avoid a problem with libgrass* dependency issues.  
-## Other dependencies listed below.  
-
-Autoreq: 0  
-
-#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 -cv 'not installed$')
-    %define RHL 1
-    %define VER1 %(rpmquery --qf '%{VERSION}' redhat-release)	
-%endif
-%if %(rpmquery redhat-release | grep -v 'not installed$' | grep -c -e '-[0-9][AEW]S')
-    %define ENT 1
-%endif
-
-%define REL 3
-
-
-
-Summary:	GRASS - Geographic Resources Analysis Support System
-Name:		%PACKAGE_NAME
-Version:	%PACKAGE_VERSION
-Epoch: 0
-%{?FCL:Release: 0.fdr.%{REL}.fc%{VER1}}
-%{?RHL:Release: 0.fdr.%{REL}.rh%{VER1}}
-Source:	        ftp://grass.itc.it/pub/grass/grass60/source/grass-%{version}.tar.gz
-Copyright:	GPL, Copyright by the GRASS Development Team
-Group:		Sciences/Geosciences
-Packager:       Craig Aumann <caumann@ualberta.ca> 
-URL:            %PACKAGE_URL
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)/%{name}-%{version}
-#BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-#BuildRoot:      %{_builddir}/%{name}-%{version}
-Prefix:         %{_prefix}
-
-Requires:       gdal >= 1.2
-Requires:	tcl >= 8.3
-Requires:	tk >= 8.3
-Requires:	proj >= 4.4.9
-Requires:       geos >= 2.1.1
-Requires:       freetype >= 2.0.0
-Requires:       bash >= 3.0
-Requires:       xorg-x11-Mesa-libGL >= 6.8
-Requires:       xorg-x11-libs >= 6.8
-Requires:       openmotif >= 2.2.3
-#Requires:       blas >= 3.0
-#Requires:       lapack >= 3.0
-Requires:       fftw >= 2.1
-Requires:       fftw < 3.0
-Requires:       glibc >= 2.0
-Requires:       libgcc >= 3.4.2
-Requires:       ncurses >= 5.4
-Requires:       libpng >= 1.2.8
-Requires:       libstdc++ >= 3.4
-Requires:       libtiff >= 3.6
-Requires:       zlib >= 1.2
-
-#Requires:	lesstif
-#Requires:	unixODBC
-#Requires:	mysql
-#Requires:	postgresql >= 7.3
-BuildRequires:	bison
-#BuildRequires:	fftw2-devel
-BuildRequires:	flex
-#BuildRequires:	freetype2-devel >= 2.0.0
-#BuildRequires:	gcc-g77
-BuildRequires:	libjpeg-devel
-BuildRequires:	libpng-devel >= 1.2.2
-BuildRequires:	man
-#BuildRequires:	lesstif-devel
-BuildRequires:	ncurses-devel >= 5.2
-BuildRequires:	mysql-devel
-BuildRequires:	postgresql-devel
-BuildRequires:	unixODBC-devel
-BuildRequires:	zlib-devel
-
-
-Vendor: GRASS 
-
-
-%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
-%setup -q   ## run quietly with minimal output. 
-%setup  -n %{name}-%{version}  ## name the directory 
-
-
-%build
-
-#configure with shared libs:
-
-CFLAGS="-O2" 
-LDFLAGS="-s"   
-
-( %configure  \
-   --prefix=%{buildroot}/%{_prefix} \
-   --bindir=%{buildroot}/%{_bindir} \
-   --with-cxx \
-   --enable-shared \
-   --with-fftw \
-   --with-includes=/usr/include \
-   --with-libs=/usr/lib \
-   --with-motif \
-   --with-freetype=yes \
-   --with-freetype-includes=/usr/include/freetype2 \
-   --with-nls \
-   --with-gdal=/usr/bin/gdal-config \
-   --with-proj \
-   --with-proj-includes=/usr/include \
-   --with-proj-libs=/usr/lib \
-   --with-glw \
-   --with-x  \
-   --with-mysql \
-   --with-mysql-includes=/usr/include/mysql \
-   --with-mysql-libs=/usr/lib/mysql \
-   --with-odbc  \
-   --with-odbc-libs=/usr/lib \ 
-   --with-odbc-includes=/usr/include \
-   --with-postgres  \
-   --with-postgres-includes=/usr/include/pgsql \ 
-   --with-postgres-libs=/usr/lib )
-  
-
-#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}
-
-%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}
-#%{_prefix}/bin/grass%{shortver}
-# %attr(1777,root,root) 
-#%{_prefix}/grass-%{version}/locks
-%{_prefix}/grass-%{version}
-
-%post
-#echo -n "Running ldconfig..."
-ldconfig
-#echo "done."
-
-echo -n "linking libgrass ..."
-cd /usr/lib/
-ln -s /usr/local/grass-%{version}/lib/libgrass_I.so .
-ln -s /usr/local/grass-%{version}/lib/libgrass_vask.so .
-ln -s /usr/local/grass-%{version}/lib/libgrass_gmath.so .
-ln -s /usr/local/grass-%{version}/lib/libgrass_gis.so
-ln -s /usr/local/grass-%{version}/lib/libgrass_datetime.so .
-echo "done."
-
-%postun
-#echo -n "Running ldconfig..."
-ldconfig
-#echo "done."
-
-# delete softlinks for libgrass
-rm -f /usr/lib/libgrass_*
-
-%Changelog
-* Thu Mar 30 2005 Craig Aumann <caumann@ualberta.ca> 
-  - First build of RPM for Fedora Core 3.
-
-* Wed Sep 01 2004 Bernhard Reiter <bernhard@intevation.de>
-  - made ready to be checked into GRASS CVS: added header, disabled Patch1
-
-* Tue Aug 10 2004 Silke Reimer <silke.reimer@intevation.net>
-  - small changes to fit to Fedora naming conventions
-
-* Thu Jul 01 2004 Silke Reimer <silke.reimer@intevation.net>
-  - Initial build
-

+ 0 - 321
rpm/fedora/grass_FC4.spec

@@ -1,321 +0,0 @@
-# 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 1
-
-%define PACKAGE_NAME grass
-
-%if "%{!?snap:1}" == "1"
-%define PACKAGE_VERSION 6.2.0RC3
-%define PACKAGE_URL http://grass.itc.it/index.php
-%define PACKAGE_RELEASE 1
-%define shortver 62
-%else
-%define cvssnapshot	2006_10_14
-%define cvsversion	6.3
-%define PACKAGE_VERSION %{cvsversion}
-%define PACKAGE_RELEASE 1
-%define shortver 63
-%endif
-%define _prefix /usr
-%define _bindir /usr/bin
-
-%define with_blas	0
-%define with_ffmpeg	0
-%define with_fftw3	0
-%define with_odbc	0
-%define with_mysql	0
-%define with_postgres	1
-%define with_largefiles	1
-
-# 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}
-
-
-
-#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:		%PACKAGE_NAME
-Version:	%PACKAGE_VERSION
-Epoch: 		%PACKAGE_RELEASE
-%{?FCL:Release: %{PACKAGE_RELEASE}.fdr.fc%{VER1}}
-%{?ENT:Release: %{PACKAGE_RELEASE}.E%{VER1}}
-%{?SLC:Release: %{PACKAGE_RELEASE}.SL%{VER1}}
-%if  "%{!?snap:1}" == "1"
-Source:	        http://grass.itc.it/grass62/source/grass-%{PACKAGE_VERSION}.tar.gz  
-%else
-Source:	        http://grass.itc.it/grass63/source/snapshot/grass-%{cvsversion}.cvs_src_snapshot_%{cvssnapshot}.tar.gz
-%endif
-License:	GPL, Copyright by the GRASS Development Team
-Group:		Sciences/Geosciences
-Packager:       Markus Neteler <neteler@itc.it>
-URL:            %PACKAGE_URL
-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.4.9
-BuildRequires:	proj-devel >= 4.4.9
-Requires:       geos >= 2.1.1
-BuildRequires:  geos-devel >= 2.1.1
-Requires:       freetype >= 2.0.0
-BuildRequires:  freetype-devel >= 2.0.0
-Requires:       bash >= 3.0
-Requires:       xorg-x11-Mesa-libGL >= 6.8
-BuildRequires:  xorg-x11-Mesa-libGL >= 6.8
-Requires:       xorg-x11-libs >= 6.8
-BuildRequires:  xorg-x11-devel >= 6.8
-Requires:       openmotif >= 2.2.3
-BuildRequires:  openmotif-devel >= 2.2.3
-Requires:       glibc >= 2.0
-BuildRequires:  glibc-devel >= 2.0
-Requires:       libgcc >= 3.4.2
-Requires:       ncurses >= 5.4
-BuildRequires:  ncurses-devel >= 5.4
-Requires:       libpng >= 1.2.8
-BuildRequires:  libpng-devel >= 1.2.8
-Requires:	libjpeg
-BuildRequires:	libjpeg-devel
-Requires:       libstdc++ >= 3.4
-BuildRequires:  libstdc++-devel >= 3.4
-Requires:       libtiff >= 3.6
-BuildRequires:  libtiff-devel >= 3.6
-Requires:       zlib >= 1.2
-BuildRequires:  zlib-devel >= 1.2
-%if "%{with_fftw3}" == "1"
-Requires:       fftw3 >= 3.1
-BuildRequires:  fftw3-devel >= 3.1
-%endif
-%if "%{with_blas}" == "1"
-Requires:       blas >= 3.0
-BuildRequires:  blas >= 3.0
-Requires:       lapack >= 3.0
-BuildRequires:  lapack >= 3.0
-%endif
-%if "%{with_ffmpeg}" == "1"
-Requires:       ffmpeg
-BuildRequires:  ffmpeg-devel
-%endif
-%if "%{with_odbc}" == "1"
-Requires:	unixODBC     
-BuildRequires:	unixODBC-devel
-%endif
-%if "%{with_mysql}" == "1"
-Requires:	mysql
-BuildRequires:	mysql-devel
-%endif
-%if "%{with_postgres}" == "1"
-Requires:	postgresql-libs >= 7.3
-BuildRequires:	postgresql-devel >= 7.3
-%endif
-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
-#%setup -q   ## run quietly with minimal output.
-%if "%{!?snap:1}" == "1"
-%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
-
-%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"
-#LDFLAGS="-s"
-
-( %configure  \
-   --enable-shared \
-%if "%{with_largefiles}" == "1"
-   --enable-largefile \
-%endif
-%if "%{with_fftw3}" == "1"
-   --with-fftw \
-%else
-   --without-fftw \
-%endif
-   --with-includes=%{_includedir} \
-   --with-libs=%{_libdir} \
-   --with-motif \
-   --with-motif-includes=/usr/X11R6/include/Xm \
-   --with-freetype=yes \
-   --with-freetype-includes=%{_includedir}/freetype2 \
-   --with-nls \
-   --with-gdal=/usr/bin/gdal-config \
-   --with-proj \
-   --with-proj-includes=%{_includedir} \
-   --with-proj-libs=%{_libdir}  \
-   --with-proj-share=/usr/share/proj \
-   --with-glw \
-   --with-sqlite \
-%if "%{with_mysql}" == "1"
-   --with-mysql \
-   --with-mysql-includes=%{_includedir}/mysql \
-   --with-mysql-libs=%{_libdir}/mysql \
-%else
-   --without-mysql \
-%endif
-%if "%{with_odbc}" == "1"
-   --with-odbc  \
-   --with-odbc-libs=%{_libdir} \
-   --with-odbc-includes=%{_includedir} \
-%else
-   --without-odbc \
-%endif
-%if "%{with_postgres}" == "1"
-   --with-postgres  \
-   --with-postgres-includes=%{_includedir}/pgsql \
-   --with-postgres-libs=%{_libdir} \
-%else
-   --without-postgres  \
-%endif
-%if "%{with_blas}" == "1"
-   --with-blas  \
-   --with-lapack  \
-%endif
-%if "%{with_ffmpeg}" == "1"
-   --with-ffmpeg \
-   --with-ffmpeg-includes=%{_includedir}/ffmpeg
-   --with-ffmpeg-libs=%{_libdir}
-%endif
-   --with-cxx
-)
-
-#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}/gem6
-%{_prefix}/grass-%{version}
-%{_libdir}/pkgconfig/grass.pc
-/etc/ld.so.conf.d/grass-%{version}.conf
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%Changelog
-* Fri Oct 20 2006 Markus Neteler <neteler@itc.it>
-  - fftw3 conditionalized (needed for FC4); less strict compiler flags
-* Tue Oct 17 2006 Roberto Flor <flor@itc.it>
-  - Moved to 6.2.0RC3, enabled ffmpeg, added snapshot/version flag
-* Tue Mar 17 2006 Roberto Flor <flor@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@itc.it>
-  - Small changes and cleanup. Requires FC4 or RH Enterprise 4.
-  - Dirty fix for provides error
-* Thu Oct 12 2005 Markus Neteler <neteler@itc.it>
-  - First build of RPM for Fedora Core 4.
-* Thu Mar 30 2005 Craig Aumann <caumann@ualberta.ca>
-  - First build of RPM for Fedora Core 3.
-* Wed Sep 01 2004 Bernhard Reiter <bernhard@intevation.de>
-  - made ready to be checked into GRASS CVS: added header, disabled Patch1
-* Tue Aug 10 2004 Silke Reimer <silke.reimer@intevation.net>
-  - small changes to fit to Fedora naming conventions
-* Thu Jul 01 2004 Silke Reimer <silke.reimer@intevation.net>
-  - Initial build

+ 0 - 342
rpm/fedora/grass_FC6.spec

@@ -1,342 +0,0 @@
-# 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 PACKAGE_NAME grass
-
-#%if "%{!?snap:1}" == "1"
-%define PACKAGE_VERSION 6.2.1
-%define PACKAGE_URL http://grass.itc.it/index.php
-%define PACKAGE_RELEASE 1
-%define shortver 62
-#%else
-#%define cvssnapshot	2006_11_03
-#%define cvsversion	6.2.0
-#%define PACKAGE_VERSION %{cvsversion}
-#%define PACKAGE_RELEASE 1
-#%define shortver 62
-#%endif
-%define _prefix /usr
-%define _bindir /usr/bin
-
-%define with_blas	0
-%define with_ffmpeg	0
-%define with_fftw3	1
-%define with_odbc	1
-%define with_mysql	0
-%define with_postgres	0
-%define with_largefiles	1
-%define with_motif      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}
-
-
-
-#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:		%PACKAGE_NAME
-Version:	%PACKAGE_VERSION
-Epoch: 		%PACKAGE_RELEASE
-%{?FCL:Release: %{PACKAGE_RELEASE}.fdr.fc%{VER1}}
-%{?ENT:Release: %{PACKAGE_RELEASE}.E%{VER1}}
-%{?SLC:Release: %{PACKAGE_RELEASE}.SL%{VER1}}
-#%if  "%{!?snap:1}" == "1"
-Source:	        http://grass.itc.it/grass62/source/grass-%{PACKAGE_VERSION}.tar.gz  
-#%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:       Markus Neteler <neteler@itc.it>
-URL:            %PACKAGE_URL
-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.4.9
-BuildRequires:	proj-devel >= 4.4.9
-Requires:       geos >= 2.1.1
-BuildRequires:  geos-devel >= 2.1.1
-Requires:       freetype >= 2.0.0
-BuildRequires:  freetype-devel >= 2.0.0
-Requires:       bash >= 3.0
-Requires:       mesa-libGL >= 6.5
-BuildRequires:  mesa-libGL >= 6.5
-Requires:       libX11 >= 1.0
-BuildRequires:  libX11-devel >= 1.0
-%if "%{with_motif}" == "1"
-Requires:       lesstif >= 0.95
-BuildRequires:  lesstif-devel >= 0.95
-%endif
-Requires:       glibc >= 2.0
-BuildRequires:  glibc-devel >= 2.0
-Requires:       libgcc >= 3.4.2
-Requires:       ncurses >= 5.4
-BuildRequires:  ncurses-devel >= 5.4
-Requires:       libpng >= 1.2.8
-BuildRequires:  libpng-devel >= 1.2.8
-Requires:	libjpeg
-BuildRequires:	libjpeg-devel
-Requires:       libstdc++ >= 3.4
-BuildRequires:  libstdc++-devel >= 3.4
-Requires:       libtiff >= 3.6
-BuildRequires:  libtiff-devel >= 3.6
-Requires:       zlib >= 1.2
-BuildRequires:  zlib-devel >= 1.2
-Requires:       readline >= 5.1
-BuildRequires:  readline-devel >= 5.1
-%if "%{with_fftw3}" == "1"
-Requires:       fftw3 >= 3.1
-BuildRequires:  fftw3-devel >= 3.1
-%endif
-%if "%{with_blas}" == "1"
-Requires:       blas >= 3.0
-BuildRequires:  blas >= 3.0
-Requires:       lapack >= 3.0
-BuildRequires:  lapack >= 3.0
-%endif
-%if "%{with_ffmpeg}" == "1"
-Requires:       ffmpeg
-BuildRequires:  ffmpeg-devel
-%endif
-%if "%{with_odbc}" == "1"
-Requires:	unixODBC     
-BuildRequires:	unixODBC-devel
-%endif
-%if "%{with_mysql}" == "1"
-Requires:	mysql
-BuildRequires:	mysql-devel
-%endif
-%if "%{with_postgres}" == "1"
-Requires:	postgresql-libs >= 7.3
-BuildRequires:	postgresql-devel >= 7.3
-%endif
-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
-#%setup -q   ## run quietly with minimal output.
-#%if "%{!?snap:1}" == "1"
-%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
-#
-sed -i 's/-lreadline/-lreadline -lcurses/g' configure
-chmod +x configure
-
-%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"
-#LDFLAGS="-s"
-
-( %configure  \
-   --enable-shared \
-%if "%{with_largefiles}" == "1"
-   --enable-largefile \
-%endif
-%if "%{with_fftw3}" == "1"
-   --with-fftw \
-%else
-   --without-fftw \
-%endif
-   --with-includes=%{_includedir} \
-   --with-libs=%{_libdir} \
-   --with-freetype=yes \
-   --with-freetype-includes=%{_includedir}/freetype2 \
-   --with-nls \
-%if "%{with_motif}" == "1"
-   --with-motif \
-%else
-   --without-motif \
-%endif
-   --with-readline \
-   --with-readline-includes=/usr/include/readline \
-   --with-readline-libs=/usr/lib \
-   --with-gdal=/usr/bin/gdal-config \
-   --with-proj \
-   --with-proj-includes=%{_includedir} \
-   --with-proj-libs=%{_libdir}  \
-   --with-proj-share=/usr/share/proj \
-   --with-glw \
-   --with-sqlite \
-%if "%{with_mysql}" == "1"
-   --with-mysql \
-   --with-mysql-includes=%{_includedir}/mysql \
-   --with-mysql-libs=%{_libdir}/mysql \
-%else
-   --without-mysql \
-%endif
-%if "%{with_odbc}" == "1"
-   --with-odbc  \
-   --with-odbc-libs=%{_libdir} \
-   --with-odbc-includes=%{_includedir} \
-%else
-   --without-odbc \
-%endif
-%if "%{with_postgres}" == "1"
-   --with-postgres  \
-   --with-postgres-includes=%{_includedir}/pgsql \
-   --with-postgres-libs=%{_libdir} \
-%else
-   --without-postgres  \
-%endif
-%if "%{with_blas}" == "1"
-   --with-blas  \
-   --with-lapack  \
-%endif
-%if "%{with_ffmpeg}" == "1"
-   --with-ffmpeg \
-   --with-ffmpeg-includes=%{_includedir}/ffmpeg
-   --with-ffmpeg-libs=%{_libdir}
-%endif
-   --with-cxx
-)
-
-#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}/gem6
-%{_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 Dec 12 2006 Brad Douglas <rez@touchofmadness.com>
-  - Conditionalized openmotif/lesstif dependency for (>=FC5)
-* Tue Nov 15 2006 Brad Douglas <rez@touchofmadness.com>
-  - sed configure to add ncurses dependency for readline (>=FC5)
-* Fri Oct 20 2006 Markus Neteler <neteler@itc.it>
-  - fftw3 conditionalized (needed for FC4); less strict compiler flags
-* Tue Oct 17 2006 Roberto Flor <flor@itc.it>
-  - Moved to 6.2.0RC3, enabled ffmpeg, added snapshot/version flag
-* Tue Mar 17 2006 Roberto Flor <flor@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@itc.it>
-  - Small changes and cleanup. Requires FC4 or RH Enterprise 4.
-  - Dirty fix for provides error
-* Thu Oct 12 2005 Markus Neteler <neteler@itc.it>
-  - First build of RPM for Fedora Core 4.
-* Thu Mar 30 2005 Craig Aumann <caumann@ualberta.ca>
-  - First build of RPM for Fedora Core 3.
-* Wed Sep 01 2004 Bernhard Reiter <bernhard@intevation.de>
-  - made ready to be checked into GRASS CVS: added header, disabled Patch1
-* Tue Aug 10 2004 Silke Reimer <silke.reimer@intevation.net>
-  - small changes to fit to Fedora naming conventions
-* Thu Jul 01 2004 Silke Reimer <silke.reimer@intevation.net>
-  - Initial build

+ 0 - 379
rpm/fedora/grass_FC7.spec

@@ -1,379 +0,0 @@
-# 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@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@touchofmadness.com>
-  - Commented out FLAGS section - use default %configure eval
-  - Reorganized configure layout and specified all options
-* Tue Jul 17 2007 Brad Douglas <rez@touchofmadness.com>
-  - Conditionalized readline dependency
-* Tue Dec 12 2006 Brad Douglas <rez@touchofmadness.com>
-  - Conditionalized openmotif/lesstif dependency for (>=FC5)
-* Tue Nov 15 2006 Brad Douglas <rez@touchofmadness.com>
-  - sed configure to add ncurses dependency for readline (>=FC5)
-* Fri Oct 20 2006 Markus Neteler <neteler@itc.it>
-  - fftw3 conditionalized (needed for FC4); less strict compiler flags
-* Tue Oct 17 2006 Roberto Flor <flor@itc.it>
-  - Moved to 6.2.0RC3, enabled ffmpeg, added snapshot/version flag
-* Tue Mar 17 2006 Roberto Flor <flor@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@itc.it>
-  - Small changes and cleanup. Requires FC4 or RH Enterprise 4.
-  - Dirty fix for provides error
-* Thu Oct 12 2005 Markus Neteler <neteler@itc.it>
-  - First build of RPM for Fedora Core 4.
-* Thu Mar 30 2005 Craig Aumann <caumann@ualberta.ca>
-  - First build of RPM for Fedora Core 3.
-* Wed Sep 01 2004 Bernhard Reiter <bernhard@intevation.de>
-  - made ready to be checked into GRASS CVS: added header, disabled Patch1
-* Tue Aug 10 2004 Silke Reimer <silke.reimer@intevation.net>
-  - small changes to fit to Fedora naming conventions
-* Thu Jul 01 2004 Silke Reimer <silke.reimer@intevation.net>
-  - Initial build

+ 0 - 2
rpm/mandriva/README.txt

@@ -1,2 +0,0 @@
-The Mandriva SPEC files and patches are available at
-http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/grass/current/

+ 0 - 128
rpm/mandriva/grass6-mdk2006.spec

@@ -1,128 +0,0 @@
-# GRASS 6 RPM spec file for Mandrake
-
-%define PACKAGE_NAME grass
-%define PACKAGE_VERSION 6.1.cvs
-%define release 1mdk2006
-%define _prefix /usr/lib
-%define shortver 61
-%define longver %{PACKAGE_VERSION}
-
-
-Summary:	GRASS - Geographic Resources Analysis Support System
-Name:		%PACKAGE_NAME
-Version:	%PACKAGE_VERSION
-Release:	%release
-License:	GPL
-Group:		Applications/GIS
-Vendor:         GDF Hannover bR <info@gdf-hannover.de>
-URL:		http://grass.itc.it
-Source:		http://grass.itc.it/grass%{shortver}/source/grass-%{PACKAGE_VERSION}.tar.gz
-
-Requires:	gdal >= 1.3
-Requires:	tcl >= 8
-Requires:	tk >= 8
-Requires:	proj >= 4.4.9
-Requires:	lesstif
-Requires:	sqlite3-tools
-Requires:	libfftw3 
-BuildRequires:	bison
-BuildRequires:  libfftw3 
-BuildRequires:	libfftw3-devel
-BuildRequires:	flex
-BuildRequires:	freetype2-devel 
-BuildRequires:	libjpeg-devel
-BuildRequires:	libpng-devel >= 1.2.2
-BuildRequires:	man
-BuildRequires:	lesstif-devel
-BuildRequires:	ncurses-devel >= 5.2
-BuildRequires:  zlib-devel
-BuildRequires:  libtiff3-devel
-BuildRequires:  libxorg-x11-devel
-BuildRequires:  libMesaGLU1-devel
-BuildRequires:  libsqlite3_0-devel
-
-BuildRoot: %{_builddir}/%{name}-root
-Prefix: %{_prefix}
-
-%description
-GRASS (Geographic Resources Analysis Support System), commonly
-referred to as GRASS, 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
-%setup -n grass-%{version}
-
-#configure with shared libs:
-CFLAGS="-O2" LDFLAGS="-s" ./configure \
-	--prefix=%{_prefix} \
-	--enable-shared \
-	--with-cxx \
-	--with-gdal=/usr/bin/gdal-config \
-	--with-postgres --with-postgres-includes=/usr/include/pgsql \
-	--with-sqlite \
-	--without-odbc \
-	--with-fftw \
-	--with-nls \
-	--with-glw \
-	--with-freetype \
-	--with-freetype-includes=/usr/include/freetype2
-
-%build
-make prefix=%{buildroot}/%{_prefix} BINDIR=%{buildroot}/%{_bindir} \
-PREFIX=%{buildroot}%{_prefix}
-
-%install
-make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
-PREFIX=%{buildroot}%{_prefix} install
-
-# changing GISBASE in startup script (deleting %{buildroot} from path)
-mv %{buildroot}%{_prefix}/bin/grass%{shortver} %{buildroot}%{_prefix}/bin/grass%{shortver}.tmp
-cat  %{buildroot}%{_prefix}/bin/grass%{shortver}.tmp |
-	sed -e "1,\$s&^GISBASE.*&GISBASE=%{_prefix}/grass-%{PACKAGE_VERSION}&" |
-    cat - > %{buildroot}%{_prefix}/bin/grass%{shortver}
-rm %{buildroot}%{_prefix}/bin/grass%{shortver}.tmp
-chmod +x %{buildroot}%{_prefix}/bin/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
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root)
-%doc AUTHORS COPYING GPL.TXT README REQUIREMENTS.html
-
-%attr(0755,root,root)
-%{_prefix}/bin/grass%{shortver}
-%{_prefix}/bin/gem6
-%{_prefix}/grass-%{PACKAGE_VERSION}
-/etc/ld.so.conf.d/grass-%{version}.conf
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%changelog
-* Thu Mar 21 2006 Markus Neteler <neteler gdf-hannover de>
-- upgraded to 6.1.cvs - fftw3 also supported now
-* Thu Nov 17 2005 Markus Neteler <neteler itc it>
-- upgraded to Mandriva 2006, 6.1.cvs
-* Fri Aug 05 2005 Otto Dassau <dassau gdf-hannover de> 6.0.1RC2
-- changed prefix 
-* Fri Aug 05 2005 Markus Neteler <neteler gdf-hannover de> 6.0.1RC1
-- updated to GRASS 6.0.1
-* Fri Mar 11 2005 Markus Neteler <neteler itc it> 6.0.0-1
-- updated to GRASS 6.0.0
-* Tue Nov 9 2004 Markus Neteler <neteler itc it> 5.7.0-2
-- GRASS 5.3 no longer required as all code moved into this repository
-* Wed Jun 17 2004 Markus Neteler <neteler itc it> 5.7.0-1
-- removed unixODBC, added mysql
-- specfile cleanup
-* Tue May 24 2004 Markus Neteler <neteler itc it> 5.7.0-1beta4
-- rewritten from 5.3 specs

+ 0 - 331
rpm/mandriva/grass6-mdk2007.spec

@@ -1,331 +0,0 @@
-%define cvs_y 2004
-%define cvs_m 05
-%define cvs_d 05
-%define cvsver exp_%{cvs_y}_%{cvs_m}_%{cvs_d}
-%define version	6.2.1
-%define rel 3
-%define release %mkrel %rel
-#define release %{?_with_cvs:%mkrel -c %{cvs_y}%{cvs_m}%{cvs_d} %rel}%{!?_with_cvs:%mkrel %rel}
-%define grassfix 62
-#if %mdkversion >= 200710
-%define name grass
-#Obsoletes: grass%{grassfix}
-#else
-#define name grass%{?grassfix:%grassfix}
-#endif
-
-%{?_with_cvs: %define build_cvs 1}
-
-Summary: 	Geographic Resources Analysis Support System
-Name: 		%{name}
-Version: 	%{version}
-Release: 	%{release}
-Group: 		Sciences/Geosciences
-License: 	GPL
-URL: 		http://grass.itc.it/
-%if %{?_with_cvs:1}%{!?_with_cvs:0}
-Source: 	http://grass.itc.it/%{name}/source/snapshot/%{name}src_cvs_snapshot_%{cvsver}.tar.gz
-Source1: 	http://grass.itc.it/grass62/source/snapshot/grass62src_cvs_snapshot_%{cvsver}.tar.gz
-%else
-Source:		http://grass.itc.it/grass%{grassfix}/source/grass-%{version}.tar.gz
-%endif
-Source2: 	grass5_48.png.bz2
-Source3: 	grass5_32.png.bz2
-Source4: 	grass5_16.png.bz2
-Patch2:		grass51-20030614-blas-lapack-libs.patch.bz2
-BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
-
-Requires:	xterm 
-Requires:       tk 
-Requires:       tcl
-
-BuildRequires: 	png-devel 
-BuildRequires:  jpeg-devel 
-BuildRequires:  tiff-devel 
-BuildRequires:  gd-devel >= 2.0 
-BuildRequires:  freetype2-devel
-BuildRequires: 	MesaGLU-devel 
-BuildRequires:  unixODBC-devel 
-BuildRequires:  fftw-devel 
-BuildRequires:  lesstif-devel
-BuildRequires: 	tk tk-devel
-BuildRequires:  ncurses-devel 
-BuildRequires:  zlib-devel 
-BuildRequires:  gdbm-devel 
-BuildRequires:  readline-devel 
-BuildRequires:  postgresql-devel
-BuildRequires:	gcc-gfortran 
-BuildRequires:  gdal-devel >= 1.2.0 
-BuildRequires:  libblas-devel 
-BuildRequires:  flex 
-BuildRequires:  bison
-BuildRequires:  proj-devel proj >= 4.4.9
-BuildRequires:  tcl tcl-devel
-BuildRequires:  fftw-devel
-BuildRequires:	cfitsio-devel
-BuildRequires:	unixODBC-devel
-BuildRequires:  mysql-devel
-BuildRequires:	termcap-devel
-BuildRequires:	ffmpeg-devel
-BuildRequires:	freetype-devel
-BuildRequires:	python-devel
-BuildRequires:	sqlite-devel
-%if %mdkversion >= 200700
-# deal with Xorg split
-BuildRequires:	mesaglw-devel
-%endif
-
-Obsoletes:	grass57
-Provides:	grass%{version}%{release} = %{version}-%{release}
-
-%description
-GRASS (Geographic Resources Analysis Support System) is an 
-open source, Free Software Geographical Information System (GIS)
-with raster, topological vector, image processing, and graphics
-production functionality that operates on various platforms 
-through a graphical user interface and shell in X-Window.
-
-%prep
-%setup -q %{?_with_cvs:-b1 -n %{name}_%{cvsver}}%{!?_with_cvs:-n grass-%{version}}
-#patch2
-autoconf
-
-%build
-export LDFLAGS="-L/usr/X11R6/%{_lib}"
-%configure \
-	--with-dbm-includes=%{_includedir}/gdbm/ \
-	--with-proj-share=%{_datadir}/proj \
-	--with-postgres-includes='%{_includedir}/pgsql %{_includedir}/pgsql/internal' \
-	--with-freetype \
-	--with-freetype-includes=%{_includedir}/freetype2 \
-	--with-motif \
-%if %mdkversion >= 200700
-	--with-opengl-libs=%{_libdir} \
-	--with-motif-libs=%{_libdir} \
-%if 0
-	--with-glw \
-	--with-glw-includes=%{_includedir} \
-	--with-glw-libs=%{_libdir} \
-%endif
-	--with-motif-libs=%{_libdir} \
-	--with-motif-includes=%{_includedir} \
-%else
-	--with-opengl-libs=%{_prefix}/X11R6/%{_lib} \
-	--with-motif-includes=%{_prefix}/X11R6/include \
-%endif
-	--with-gdal  \
-	--with-mysql --with-mysql-includes=%{_includedir}/mysql \
-	--with-odbc \
-	--enable-largefile \
-	--with-ffmpeg --with-ffmpeg-includes=%{_includedir}/ffmpeg \
-	--with-curses \
-	--with-python \
-	--with-sqlite \
-	--with-cxx \
-	--with-nls \
-	%{?_with_cvs:--with-grass50=`pwd`/../grass50_%{cvsver}}
-
-#Options that aren't really used
-#	--with-blas \
-#	--with-lapack \
-#	--with-dbm \
-
-#Fix messy grass readline misdetection:
-perl -pi -e "s/^READLINELIB .*\$/READLINELIB         =  -lreadline -ltermcap/g" include/Make/Platform.make
-perl -pi -e "s/^HISTORYLIB.*\$/HISTORYLIB          =  -lhistory/g" include/Make/Platform.make
-perl -pi -e 's,/\* #undef HAVE_READLINE_READLINE_H \*/,#define HAVE_READLINE_READLINE_H 1,g' include/config.h
-%if %{?_with_cvs:1}%{!?_with_cvs:0}
-make mix
-%endif
-#r.mapcalc not building first time around:
-make||make
-
-%install
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
-mkdir -p $RPM_BUILD_ROOT/%{_bindir}
-mkdir -p $RPM_BUILD_ROOT/%{_menudir}
-#%makeinstall_std INST_DIR=%{_libdir}/grass%{grassfix}
-# Actions in make install that don't take into account packaging in a place different to running:
-sed -e 's|^GISBASE.*|GISBASE=%{_libdir}/grass%{grassfix}|' \
- bin.%{_target_platform}/grass%{grassfix} > $RPM_BUILD_ROOT/%{_bindir}/grass%{grassfix}
-chmod a+x $RPM_BUILD_ROOT/usr/bin/grass%{grassfix}
-#cp $RPM_BUILD_PATH/bin.i586-mandrake-linux-gnu/gmake5 $RPM_BUILD_ROOT/usr/bin
-#cp $RPM_BUILD_PATH/bin.i586-mandrake-linux-gnu/gmakelinks5 $RPM_BUILD_ROOT/usr/bin
-
-mkdir -p %{buildroot}/%{_libdir}/grass%{grassfix}
-cp -a dist.%{_target_platform}/* %{buildroot}/%{_libdir}/grass%{grassfix}
-
-# Add makefiles to includes:
-cp -a include/Make %{buildroot}/%{_libdir}/grass%{grassfix}/include/
-
-# Manually bzip2 the man pages:
-bzip2 $RPM_BUILD_ROOT/%{_libdir}/grass%{grassfix}/man/man?/*
-
-mkdir $RPM_BUILD_ROOT/%{_libdir}/grass%{grassfix}/locks/
-
-#Menu support:
-cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name}
-?package(%{name}):command="%{_bindir}/grass%{grassfix}" \
-icon="%{name}.png" \
-needs="text" \
-section="More Applications/Sciences/Geosciences" \
-title="Grass%{grassfix}" \
-longtitle="Geographic Resources Analysis Support System" \
-xdg="true"
-EOF
-
-mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
-
-bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
-bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
-bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
-
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
-cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
-[Desktop Entry]
-Name=Grass%{grassfix}
-Comment=Geographic Resources Analysis Support System
-Exec=%{_bindir}/grass%{grassfix} 
-Icon=%{name}
-Terminal=true
-Type=Application
-Categories=X-MandrivaLinux-MoreApplications-Sciences-Geosciences;Science;Geology;
-EOF
-
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
-
-%post
-%update_menus
-
-%postun
-%clean_menus
-
-%files
-%defattr(-,root,root)
-%attr(0755,root,root) %{_bindir}/*
-%{_libdir}/grass%{grassfix}/
-%{_menudir}/%{name}
-%{_datadir}/applications/mandriva-grass.desktop
-%{_miconsdir}/*.png
-%{_liconsdir}/*.png
-%{_iconsdir}/*.png
-%attr(1777,root,root) %{_libdir}/grass%{grassfix}/locks
-%doc AUTHORS COPYING INSTALL README CHANGES
-
-
-%changelog
-* Tue Feb 06 2007 Buchan Milne <bgmilne@mandriva.org> 6.2.1-3mdv2007.0
-+ Revision: 116819
-- Enable a few more features
-
-* Fri Dec 15 2006 Buchan Milne <bgmilne@mandriva.org> 6.2.1-2mdv2007.1
-+ Revision: 97418
-- buildrequire termcap-devel
-- build system cant handle package name different to module name
--New version 6.2.1
--use versioned name on backports
--obsolete this versioned one in the cooker package to take care of upgrades
--drop irrelevant patches
-
-  + Nicolas Lécureuil <neoclust@mandriva.org>
-    - Add BuildRequires
-
-* Wed Aug 30 2006 Buchan Milne <bgmilne@mandriva.org> 6.0.2-1mdv2007.0
-+ Revision: 58796
-- Import grass
-
-
-
-* Tue Aug 29 2006 Buchan Milne <bgmilne@mandriva.org> 6.0.2-1mdv2007.0
-- 6.0.2
-- fix buildrequires and lib/include paths for xorg 7.0 and later
-- disable glw on 2007 and later until I can find the problem
-- xdg menu
-
-* Fri Feb 03 2006 Lenny Cartier <lenny@mandriva.com> 6.0.2-0.RC4.1mdk
-- 6.0.2RC4
-
-* Mon Jan 02 2006 Oden Eriksson <oeriksson@mandriva.com> 6.0.1-4mdk
-- rebuilt against soname aware deps (tcl/tk)
-- fix deps
-
-* Mon Oct 03 2005 Nicolas Lécureuil <neoclust@mandriva.org> 6.0.1-3mdk
-- Fix BuildRequires
-
-* Mon Oct 03 2005 Nicolas Lécureuil <neoclust@mandriva.org> 6.0.1-2mdk
- Fix BuildRequires
-
-* Sat Oct 01 2005 Lenny Cartier <lenny@mandriva.com> 6.0.1-1mdk
-- 6.0.1
-
-* Tue May 03 2005 Nicolas Lécureuil <neoclust@mandriva.org> 6.0.0-3mdk
-- Rebuild ( Fix #15790)
-
-* Wed Mar 16 2005 Buchan Milne <bgmilne@linux-mandrake.com> 6.0.0-2mdk
-- rebuild
-
-* Tue Mar 15 2005 Buchan Milne <bgmilne@linux-mandrake.com> 6.0.0-1mdk
-- 6.0.0
-- better requires
-- cleanups and merge with changes in grass57
-- use mkrel
-- obsolete grass57
-
-* Fri Jul 16 2004 Buchan Milne <bgmilne@linux-mandake.com> 5.0.3-3mdk
-- rebuild for gcc-3.4
-
-* Sat Dec 20 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 5.0.3-2mdk
-- rebuild to get correct dependencies
-
-* Sun Dec 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 5.0.3-1mdk
-- 5.0.3
-- drop P1, fixed upstream
-- don't bzip2 icons in src.rpm
-- fix buildrequires (lib64..)
-- add postgresql-devel to buildrequires
-- fix build against latest freetype (P2)
-
-* Fri Apr 11 2003 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.2-1mdk
-- 5.0.2
-- Rebuild for tcl8.4
-- Misc fixes (incl xpm->png)
-- try and fix misdetection of readline
-- Hack for tcl 8.4/nviz, may be broken, will find out on Sunday ...
-- Buildrequires flex and bison (the value of a clean install ;-))
-
-* Sat Feb 22 2003 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-3mdk
-- Require xterm
-
-* Fri Feb 21 2003 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-2mdk
-- Buildrequire libblas-devel
-- Rebuild for postgres
-
-* Wed Sep 04 2002 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-1mdk
-- 5.0.0
-- buildrequire libgd2-devel (24bit PNG driver)
-
-* Sun Aug 18 2002 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-0.pre5.3mdk
-- Add back gdal, lapack and blas support (aka I build too seldom on klama!).
-
-* Fri Aug 16 2002 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-0.pre5.2mdk
-- build with dbmi, glw and readline support
-- require gcc-g77 for lapack and blas
-- gdal,lapack,blas support optional (klama frozen :-().
-
-* Mon Aug 05 2002 Buchan Milne <bgmilne@linux-mandrake.com> 5.0.0-0.pre5.1mdk
-- Rebuild
-- Buildrequires gdbm, lapack
-
-* Tue Jun 25 2002 Buchan Milne <bgmilne@cae.co.za> 5.0.0-0.pre5.0mdk
-- pre5
-
-* Tue May 14 2002 Buchan Milne <bgmilne@cae.co.za> 5.0.0-0.pre4.0mdk
-- New prerelase
-- PostgreSQL,lapack,gdal support
-- Next stop, subpackages
-
-* Mon Apr 14 2002 Buchan Milne <bgmilne@cae.co.za>  5.0.0-0.pre3.0mdk
-- First stab at a Mandrake RPM
-- No postgres support (doesn't build against 7.2 but does against 7.1)
-- Probably need subpackages for nvis, tcltkgrass, odbc, postgres etc

+ 0 - 19
rpm/opensuse/grass-6.3.0_wx-vdigit.patch

@@ -1,19 +0,0 @@
---- grass-6.3.0/gui/wxpython/Makefile	2008-04-16 15:31:47.000000000 +0200
-+++ grass-6.3.0_new/gui/wxpython/Makefile	2008-04-19 14:06:28.000000000 +0200
-@@ -4,11 +4,11 @@
- 
- include $(MODULE_TOPDIR)/include/Make/Platform.make
- 
--ifneq ($(USE_WXWIDGETS),)
--  ifneq ($(USE_PYTHON),)
--    SUBDIRS += vdigit
--  endif
--endif
-+#ifneq ($(USE_WXWIDGETS),)
-+#  ifneq ($(USE_PYTHON),)
-+#    SUBDIRS += vdigit
-+#  endif
-+#endif
- 
- include $(MODULE_TOPDIR)/include/Make/Dir.make
- 

+ 0 - 254
rpm/opensuse/grass.spec

@@ -1,254 +0,0 @@
-%define shortver 70
-
-Summary:	GRASS - Geographic Resources Analysis Support System
-Name:		grass
-Version:	7.0.svn
-Release:	1
-License:	GPL
-Group:		Applications/GIS
-URL:		http://grass.osgeo.org/
-Source:		grass-%{version}.tar.gz
-Patch:          grass-%{version}_wx-vdigit.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Packager:       Otto Dassau <otto.dassau@gmx.de>
-Requires:       libgdal >= 1.5.0
-Requires:       tcl >= 8.4
-Requires:       tk >= 8.4
-Requires:       proj4 >= 4.5.0
-Requires:       sqlite >= 3
-Requires:       xterm
-Requires:       unixODBC
-Requires:       fftw3
-Requires:       netcdf
-Requires:       libpng
-Requires:       libtiff
-Requires:       libjpeg
-Requires:       readline
-Requires:	wxPython2.8-gtk2-unicode
-Requires:       python-numeric
-BuildRequires:  bison
-BuildRequires:  gcc-c++
-BuildRequires:  flex
-BuildRequires:  freetype2-devel
-BuildRequires:  libjpeg-devel
-BuildRequires:  libgdal-devel
-BuildRequires:  libpng-devel >= 1.2.12
-BuildRequires:  man
-BuildRequires:  readline-devel
-BuildRequires:  libpng-devel
-BuildRequires:  libtiff-devel
-%if 0%{?suse_version} >= 1030
-BuildRequires:  libnetcdf-devel
-%else
-BuildRequires:  netcdf
-%endif
-BuildRequires:  libjpeg-devel
-BuildRequires:  tcl-devel
-BuildRequires:  tk-devel
-BuildRequires:  libproj-devel proj4
-BuildRequires:  ncurses-devel >= 5.5
-BuildRequires:  zlib-devel
-BuildRequires:  libtiff-devel
-BuildRequires:  xorg-x11-Mesa-devel
-BuildRequires:  sqlite-devel
-BuildRequires:  unixODBC-devel
-BuildRequires:  postgresql-devel
-BuildRequires:  mysql mysql-devel
-BuildRequires:  fftw3 fftw3-devel
-BuildRequires:  fdupes perl
-BuildRequires:  python-devel swig
-BuildRequires:	wxPython2.8-devel-gtk2-unicode
-
-%package docs
-Summary:        Documentation for grass
-Group:          Applications/GIS
-Requires:       grass = %{version}
-
-%package devel
-Summary:        Development files for grass
-Group:          Development/Libraries
-Requires:       grass = %{version}
-
-%debug_package
-
-%description
-GRASS (Geographic Resources Analysis Support System), commonly
-referred to as GRASS, 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.
-
-%description devel
-This package contains the development files for grass
-
-%description docs
-This package contains the HTML documentation files for grass
-
-%prep
-%setup -n grass-%{version}
-%patch -p1
-%define grasver -@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@
-%define grasver2 '-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}'
-
-sed s/%{grasver}//g include/Make/Platform.make.in >_tmp
-mv _tmp include/Make/Platform.make.in
-
-sed s/%{grasver}//g grass.pc.in >_tmp
-mv _tmp grass.pc.in
-
-sed s/%{grasver2}//g configure >_tmp
-mv _tmp configure
-chmod +x configure
-
-sed s/%{grasver2}//g Makefile >_tmp
-mv _tmp Makefile
-
-%define _prefix /opt
-%define grassdir %{_prefix}/grass
-%define grasslib %{_prefix}/grass/lib
-
-#configure with shared libs:
-CFLAGS="-O2" ./configure \
-	--prefix=%{_prefix} \
-	--enable-shared \
-	--enable-largefile \
-	--with-proj-share=/usr/share/proj \
-	--with-cxx \
-	--with-gdal=/usr/bin/gdal-config \
-	--with-postgres --with-postgres-includes=/usr/include/pgsql \
-	--with-mysql --with-mysql-includes=/usr/include/mysql \
-	--with-fftw \
-	--with-readline \
-	--with-netcdf \
-	--with-curses \
-	--with-nls \
-	--with-sqlite \
-	--with-freetype \
-	--with-freetype-includes=/usr/include/freetype2 \
-	--with-odbc \
-	--with-python \
-	--with-wxwidgets=/usr/lib/wxPython-2.8.7.1-gtk2-unicode/bin/wx-config	
-
-%build
-make prefix=%{_prefix} BINDIR=%{_bindir} PREFIX=%{_prefix}
-
-%install
-make prefix=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} \
-PREFIX=%{buildroot}%{_prefix} install
-
-# changing GISBASE in startup script (deleting %{buildroot} from path)
-mkdir %{buildroot}/usr/bin -p
-cat %{buildroot}%{_prefix}/bin/grass%{shortver} |
-	sed s:%{buildroot}::g > %{buildroot}/usr/bin/grass%{shortver}
-rm %{buildroot}%{_prefix}/bin/grass%{shortver}
-chmod +x %{buildroot}/usr/bin/grass%{shortver}
-ln -s grass%{shortver} %{buildroot}/usr/bin/grass
-
-# make grass libraries available on the system
-install -d %{buildroot}/etc/ld.so.conf.d
-echo %{grasslib} >> %{buildroot}/etc/ld.so.conf.d/grass-%{version}.conf
-pushd %{buildroot}%{grassdir}/man
-  gzip */*
-popd
-
-# this is possibly dangerous
-# make sure that no changeable files are linked
-fdupes -r %{buildroot}%{grassdir} | perl -ne \
-'chomp;if(!$_){my $f=shift @a;while($_=shift @a){system "ln -f $f $_";}}else{push @a,$_;}'
-
-%clean
-rm -rf %{buildroot}
-
-%files devel
-%defattr(-,root,root)
-%{grassdir}/include
-%{grasslib}/*.a
-
-%files docs
-%defattr(-,root,root)
-%{grassdir}/docs
-%{grassdir}/man
-
-%files
-%defattr(-,root,root)
-/etc/ld.so.conf.d/grass-%{version}.conf
-%{grassdir}/bin/*
-%{grassdir}/etc/*
-%{grassdir}/scripts/*
-%{grassdir}/bwidget/*
-#%{grassdir}/locale/*
-%lang(ar) %{grassdir}/locale/ar/
-%lang(cs) %{grassdir}/locale/cs/
-%lang(de) %{grassdir}/locale/de/
-%lang(el) %{grassdir}/locale/el/
-%lang(es) %{grassdir}/locale/es/
-%lang(fr) %{grassdir}/locale/fr/
-%lang(hi) %{grassdir}/locale/hi/
-%lang(it) %{grassdir}/locale/it/
-%lang(ja) %{grassdir}/locale/ja/
-%lang(ko) %{grassdir}/locale/ko/
-%lang(lv) %{grassdir}/locale/lv/
-%lang(mr) %{grassdir}/locale/mr/
-%lang(pl) %{grassdir}/locale/pl/
-%lang(pt) %{grassdir}/locale/pt/
-%lang(pt_br) %{grassdir}/locale/pt_br/
-%lang(ru) %{grassdir}/locale/ru/
-%lang(sl) %{grassdir}/locale/sl/
-%lang(th) %{grassdir}/locale/th/
-%lang(tr) %{grassdir}/locale/tr/
-%lang(vi) %{grassdir}/locale/vi/
-%lang(zh) %{grassdir}/locale/zh/
-%{grassdir}/driver/*
-%{grassdir}/fonts/*
-%{grasslib}/*.so
-/usr/bin/grass*
-#%exclude %{grasslib}/*[a-zA-Z].so
-#%doc AUTHORS COPYING GPL.TXT README REQUIREMENTS.html
-%{grassdir}/AUTHORS
-%{grassdir}/CHANGES
-%{grassdir}/COPYING
-%{grassdir}/GPL.TXT
-%{grassdir}/REQUIREMENTS.html
-%defattr(755,root,root)
-%{_prefix}/bin/*
-
-%post
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
-
-%changelog
-* Thu Apr 23 2008 Otto Dassau <otto.dassau@gmx.de> 6.3.0.1
-- update to 6.3 with new wxpython as standard gui
-- patch to comment wxgui vdigit in Makefile
-* Thu Dec 20 2007 Otto Dassau 6.2.3
-- added support for netcdf, readline and LFS
-* Mon Aug 13 2007 Dirk Stöcker 6.2.2
-- adapted for openSUSE build service
-* Mon Jul 16 2007 Otto Dassau 6.2.2
-- first build of grass 6.2.2 bugfix release
-* Fri Jan 05 2007 Otto Dassau 6.2.1
-- split into devel and docs packages
-- removed ld.so.conf entry and added ld.so.conf.d/grass* 
-* Tue Dec 19 2006 Otto Dassau 6.2.1
-- updated to SuSE 10.2
-* Wed Jan 25 2006 Otto Dassau 6.0.2RC4
-- updated to SuSE 10.0
-* Thu Nov 17 2005 Markus Neteler 6.1.cvs
-- upgraded to Mandriva 2006, 6.1.cvs
-* Fri Aug 05 2005 Otto Dassau 6.0.1RC2
-- changed prefix 
-* Fri Aug 05 2005 Markus Neteler 6.0.1RC1
-- updated to GRASS 6.0.1
-* Fri Mar 11 2005 Markus Neteler 6.0.0-1
-- updated to GRASS 6.0.0
-* Tue Nov 9 2004 Markus Neteler 5.7.0-2
-- GRASS 5.3 no longer required as all code moved into this repository
-* Wed Jun 17 2004 Markus Neteler 5.7.0-1
-- removed unixODBC, added mysql
-- specfile cleanup
-* Tue May 24 2004 Markus Neteler 5.7.0-1beta4
-- rewritten from 5.3 specs