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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60436 15284696-431f-4ddb-bdfa-cd5b030d7da7
py3
neteler 2014-05-23 07:15:34 +00:00
parent 74362038b6
commit 3d15012685
14 changed files with 16 additions and 2256 deletions

16
rpm/README.txt Normal file
View File

@ -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/

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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/

View File

@ -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

View File

@ -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