summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Fröhlich <volker27@gmx.at>2011-04-15 10:21:37 +0200
committerVolker Fröhlich <volker27@gmx.at>2011-04-15 10:21:37 +0200
commitc18304aa6f38ddb3ed14ae0c2033ff511b73c249 (patch)
tree7dcf5c34a15ee2d9a570aa68b406a2f3031e3292
downloadrepo-c18304aa6f38ddb3ed14ae0c2033ff511b73c249.tar.gz
repo-c18304aa6f38ddb3ed14ae0c2033ff511b73c249.tar.xz
repo-c18304aa6f38ddb3ed14ae0c2033ff511b73c249.zip
Initial check-inHEADmaster
-rw-r--r--esniper.spec70
-rw-r--r--gdal.spec1076
-rw-r--r--gdal_1.7.3_mod.spec934
-rw-r--r--gdal_orig.spec834
-rw-r--r--libgeotiff.spec212
-rw-r--r--libspatialite.spec99
-rw-r--r--numpy.spec422
-rw-r--r--python-shapely.spec82
-rw-r--r--qgis-1.6.0.spec492
-rw-r--r--qgis.spec533
-rw-r--r--qgis_1.6_lokal.spec518
-rw-r--r--qgis_1.7.0.spec534
-rw-r--r--qgis_1.7_si.spec529
-rw-r--r--spatialite-tools.spec60
-rw-r--r--unfinished/dispcalgui.spec76
-rw-r--r--unfinished/gdal-grass.spec92
-rw-r--r--unfinished/gdal-grass.spec.alt104
-rw-r--r--unfinished/gdal-grass.volker.spec104
-rw-r--r--unfinished/gpstk.spec113
-rw-r--r--unfinished/gpstk.spec.1.6116
-rw-r--r--unfinished/gpstk.spec.autotools106
-rw-r--r--unfinished/gpstk.spec.orig92
-rw-r--r--unfinished/libLAS.spec199
-rw-r--r--unfinished/libepsilon.spec178
-rw-r--r--unfinished/libgaiagraphics.spec95
-rw-r--r--unfinished/librasterlite.spec80
-rw-r--r--unfinished/libspatialindex.spec77
-rw-r--r--unfinished/mod_geocache.spec58
-rw-r--r--unfinished/openmodeller-desktop.spec93
-rw-r--r--unfinished/openmodeller.spec169
-rw-r--r--unfinished/opticks.spec63
-rw-r--r--unfinished/orfeo.spec78
-rw-r--r--unfinished/osg_kaputtbin0 -> 12288 bytes
-rw-r--r--unfinished/osgearth.spec123
-rw-r--r--unfinished/pgRouting.spec96
-rw-r--r--unfinished/pgtap.spec89
-rw-r--r--unfinished/pyspatialite.spec57
-rw-r--r--unfinished/python-networkx.spec62
-rw-r--r--unfinished/qextserialport.spec82
-rw-r--r--unfinished/qwtpolar.spec88
-rw-r--r--unfinished/rasdaman.spec90
-rw-r--r--unfinished/saga.spec69
-rw-r--r--unfinished/spatialite-gui.spec57
-rw-r--r--unfinished/tinyows-323svn.spec101
-rw-r--r--unfinished/tinyows.spec110
-rw-r--r--unfinished/tinyows.spec.alt92
46 files changed, 9404 insertions, 0 deletions
diff --git a/esniper.spec b/esniper.spec
new file mode 100644
index 0000000..84e21fe
--- /dev/null
+++ b/esniper.spec
@@ -0,0 +1,70 @@
+Name: esniper
+Version: 2.24.0
+Release: 6%{?dist}
+Summary: A lightweight console application for sniping eBay auctions
+
+Group: Applications/Internet
+License: BSD
+URL: http://esniper.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-2-24-0.tgz
+
+BuildRequires: curl-devel
+
+%description
+Esniper is a lightweight console application for sniping eBay auctions.
+
+
+%prep
+%setup -q -n %{name}-2-24-0
+
+# Encode manpage to utf-8
+iconv -f iso8859-1 -t utf-8 esniper.1 > esniper.1.conv \
+ && touch -r esniper.1 esniper.1.conv \
+ && mv esniper.1.conv esniper.1
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install INSTALL="install -p" DESTDIR=%{buildroot}
+
+# Install frontend script
+install -p -m 755 frontends/snipe %{buildroot}/%{_bindir}
+
+
+%files
+%defattr(-,root,root,-)
+%doc frontends/README COPYING ChangeLog AUTHORS sample_config.txt sample_auction.txt
+%{_bindir}/%{name}
+%{_bindir}/snipe
+%{_mandir}/man1/%{name}.1.*
+
+
+%changelog
+* Fri Feb 25 2011 Volker Fröhlich <volker27@gmx.at> - 2.24.0-6
+- Added the INSTALL definition, that should have been there in the last release
+
+* Fri Feb 25 2011 Volker Fröhlich <volker27@gmx.at> - 2.24.0-5
+- Preserve timestamp on man page
+- Defined INSTALL for make
+
+* Thu Feb 24 2011 Volker Fröhlich <volker27@gmx.at> - 2.24.0-4
+- Added sample aution file
+- More specific files section
+
+* Fri Dec 03 2010 Volker Fröhlich <volker27@gmx.at> - 2.24.0-3
+- Added sample configuration to docs
+- Install frontend script
+- Shortened file list syntax
+
+* Thu Dec 02 2010 Volker Fröhlich <volker27@gmx.at> - 2.24.0-2
+- Dropped clean section and rm command from install section,
+ as it's no longer necessary
+- Replaced .gz with * for man-file
+- Adapted source link
+
+* Sun Nov 28 2010 Volker Fröhlich <volker27@gmx.at> - 2.24.0-1
+- Inital packaging
diff --git a/gdal.spec b/gdal.spec
new file mode 100644
index 0000000..cf40ddc
--- /dev/null
+++ b/gdal.spec
@@ -0,0 +1,1076 @@
+#TODO: Use the sed modified pom
+Name: gdal
+Version: 1.8.0
+Release: 2%{?dist}
+Summary: GIS file format library
+Group: System Environment/Libraries
+License: MIT
+URL: http://www.gdal.org/
+# Source0: http://download.osgeo.org/gdal/gdal-%%{version}.tar.gz
+# see PROVENANCE.TXT-fedora for details
+Source0: %{name}-%{version}-fedora.tar.gz
+Source1: http://download.osgeo.org/%{name}/%{name}autotest-%{version}.tar.gz
+# TODO: create versionless symlink
+Source2: %{name}.pom
+
+# See commit message in http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/dods/ogr_dods.h
+#Patch0: %{name}-libdap.patch
+#Include is still there -- don't know yet. Patches should be unified.
+
+# GDAL 1.9 will have a different driver for MS Access, that will replace the need for the mdbtools. See http://www.gdal.org/ogr/drv_mdb.html -- The current implementation mdbtools and hardly works
+
+#Seit 1.8
+#https://trac.osgeo.org/gdal/log/branches/1.8/gdal
+
+Patch1: %{name}-mysql.patch
+
+#Could still be valid
+Patch2: %{name}-bindir.patch
+
+#Most likely solved
+#Patch3: %{name}-AIS.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#TODO: Fedora 15 has Maven3 and the package is called maven
+#What is dwgdirect?
+
+BuildRequires: ant
+BuildRequires: cfitsio-devel
+BuildRequires: CharLS-devel
+BuildRequires: chrpath
+BuildRequires: curl-devel
+BuildRequires: doxygen
+BuildRequires: expat-devel
+BuildRequires: fontconfig-devel
+BuildRequires: geos-devel
+BuildRequires: ghostscript
+BuildRequires: hdf-devel
+BuildRequires: hdf-static
+BuildRequires: hdf5-devel
+BuildRequires: jasper-devel
+BuildRequires: jpackage-utils
+BuildRequires: libgeotiff-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libspatialite-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool
+BuildRequires: libungif-devel
+BuildRequires: netcdf-devel
+BuildRequires: libdap-devel
+BuildRequires: librx-devel
+BuildRequires: mysql-devel
+BuildRequires: numpy
+BuildRequires: ogdi-devel
+BuildRequires: openjpeg-devel
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: pkgconfig
+BuildRequires: poppler-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: python-devel
+BuildRequires: ruby-devel
+BuildRequires: sqlite-devel
+BuildRequires: swig
+BuildRequires: tetex-latex
+#TODO: Remove ODBC?
+BuildRequires: unixODBC-devel
+BuildRequires: xerces-c-devel
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
+BuildRequires: java-devel-gcj
+
+# enable/disable refman generation
+%global build_refman 1
+
+# we have multilib triage
+%if "%{_lib}" == "lib"
+%global cpuarch 32
+%else
+%global cpuarch 64
+%endif
+
+%{!?python_lib: %global python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
+%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+
+# Avoid providing private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_lib}/.*\.so %{_libdir}/perl5/.*\.so$
+%filter_setup
+}
+
+#TODO: Das ist irgendwie auch nicht taufrisch!
+%description
+Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform
+C++ translator library for raster and vector geospatial data formats.
+As a library, it presents a single abstract data model to the calling
+application for all supported formats. It also comes with a variety of
+useful commandline utilities for data translation and processing.
+
+It provides the primary data access engine for many applications including
+MapServer, GRASS, QGIS, and OpenEV. It is also utilized by packages such as
+OSSIM, Cadcorp SIS, FME, Google Earth, VTP, Thuban, ILWIS, MapGuide and ArcGIS.
+GDAL/OGR is the most widely used geospatial data access library.
+
+%package devel
+Summary: Development Libraries for the GDAL file format library
+Group: Development/Libraries
+Requires: pkgconfig
+#Why?
+#Requires: libgeotiff-devel
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+Obsoletes: %{name}-static < 1.8.0
+#RPM should know!
+#Requires: %{name}-java = %{version}-%{release}
+
+%description devel
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package libs
+Summary: GDAL file format library
+Group: Development/Libraries
+
+%description libs
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package ruby
+Summary: Ruby modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description ruby
+The GDAL ruby modules provides support to handle multiple GIS file formats.
+
+%package java
+Summary: Java modules for the GDAL file format library
+Group: Development/Libraries
+Requires: java
+# require maven2 for the poms and depmap frag parent dirs
+# these are provided by many JPP packages but that is wrong
+Requires: maven2
+Requires: jpackage-utils
+BuildRequires: jpackage-utils
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+Requires: %{name} = %{version}-%{release}
+
+%description java
+The GDAL java modules provides support to handle multiple GIS file formats.
+
+%package perl
+Summary: Perl modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description perl
+The GDAL perl modules provides support to handle multiple GIS file formats.
+%package doc
+Summary: Documentation for GDAL
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%package python
+Summary: Python modules for the GDAL file format library
+Group: Development/Libraries
+Requires: numpy
+Requires: %{name} = %{version}-%{release}
+
+%description python
+The GDAL python modules provides support to handle multiple GIS file formats.
+
+%description doc
+This package contains html and pdf documentation for GDAL.
+
+%prep
+%setup -q -n %{name}-%{version}-fedora
+# None of these patches seems necessary to me
+#%patch1 -p0 -b .mysql~
+#%patch2 -p1 -b .bindir~
+#%patch3 -p1 -b .AIS~
+#TODO: Die depperten Flags stimmen auch nicht immer!
+
+#TODO: I think, that should go round here.
+#Update version and name for Maven's POM file
+#sed 's|<version>|<version>%{version}|' %{name}.pom > %{name}-%{version}.pom
+#Versionless symlink?
+
+%if %cpuarch == 64
+ #That driver is rubbish!
+ #sed -i 's|/usr/lib|/usr/lib64|' ogr/ogrsf_frmts/pgeo/ogrpgeodriver.cpp
+
+ # Check for LibDAP version
+ sed -i 's|with_dods_root/lib|with_dods_root/lib64|' configure
+%endif
+
+# Sanitize linebreaks and encoding
+set +x
+for f in `find . -type f` ; do
+ if file $f | grep -q ISO-8859 ; then
+ set -x
+ iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
+ mv -f ${f}.tmp $f
+ set +x
+ fi
+ if file $f | grep -q CRLF ; then
+ set -x
+ sed -i -e 's|\r||g' $f
+ set +x
+ fi
+done
+set -x
+
+# Unpack test cases
+tar -xzf %{SOURCE1}
+
+# Correct permissions
+find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
+# There's also a README and a scripts directory, that should go to doc
+
+# Delete bundled libraries
+rm -rf frmts/zlib
+rm -rf frmts/png/libpng
+rm -rf frmts/gif/giflib
+rm -rf frmts/jpeg/libjpeg frmts/jpeg/libjpeg12
+rm -rf frmts/gtiff/libgeotiff frmts/gtiff/libtiff
+# Is the PCIDSK SDK legal?
+
+# fix hardcoded issues
+sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in
+sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
+sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
+sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$DODS_LIB -ldap++|-ldap++|g' configure
+sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
+sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
+sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
+sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
+#Should be changed in 1.8 -- see NEWS
+#sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
+sed -i 's|-logdi31|-logdi|g' configure
+#Upstream?
+sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
+
+# fix python path for ppc64
+#Aha?
+sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
+
+# Activate support for JPEGLS
+sed -i 's|^#HAVE_CHARLS|HAVE_CHARLS|' GDALmake.opt.in
+sed -i 's|#CHARLS_INC = -I/path/to/charls_include|CHARLS_INC = -I%{_includedir}/CharLS|' GDALmake.opt.in
+sed -i 's|#CHARLS_LIB = -L/path/to/charls_lib -lCharLS|CHARLS_LIB = -L%{_libdir} -lCharLS|' GDALmake.opt.in
+
+# Repair check for Spatialite and also Curl
+sed -i 's|-ldap++|-ldap -ldapclient -ldapserver|' configure configure.in
+sed -i 's|/include/spatialite/sqlite3.h|/include/sqlite3.h|' configure configure.in
+sed -i 's|spatialite/sqlite3.h|sqlite3.h|' ogr/ogrsf_frmts/sqlite/ogr_sqlite.h
+
+# fixup hardcoded wrong compile flags.
+#TODO: Upstream?
+# Does that do anything?
+sed -i 's/-L\$(INST_LIB) -lgdal/-lgdal/' GDALmake.opt.in
+
+# fix doxygen for multilib docs
+# TODO: How about the other Doxyfiles?
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/sdts/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/pcraster/doxygen.cfg
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/iso8211/Doxyfile
+
+%build
+
+# Append some include paths
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
+export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
+
+# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
+#TODO: Upstream
+#Probably useless -- Während Libgeotiff-Problem probiert
+# There actually is a test for the version of Libdap, but it is set manually down here
+# EPEL 5 has 3.9 and not 3.10, why this is not a good idea
+export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC -DLIBDAP_310 /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+
+# For future reference:
+#--with-epsilon (https://bugzilla.redhat.com/show_bug.cgi?id=660023)
+#--with-rasdaman (not packaged yet, but experimented around (Volker Fröhlich))
+#jdk und jre?
+
+%configure \
+ --datadir=%{_datadir}/%{name}/ \
+ --includedir=%{_includedir}/%{name}/ \
+ --prefix=%{_prefix} \
+ --with-curl \
+ --with-cfitsio=%{_prefix} \
+ --with-dods-root=%{_prefix} \
+ --with-expat \
+ --with-geos \
+ --with-geotiff=external \
+ --with-gif \
+ --with-hdf4 \
+ --with-hdf5 \
+ --with-jasper \
+ --with-jpeg \
+ --with-jpeg12=no \
+ --with-liblzma \
+ --with-libtiff=external \
+ --with-libz \
+ --with-mysql \
+ --with-netcdf \
+ --with-odbc \
+ --with-ogdi \
+ --with-openjpeg \
+ --with-pcraster \
+ --with-perl \
+ --with-pg \
+ --with-png \
+ --with-poppler \
+ --with-python \
+ --with-spatialite \
+ --with-sqlite3 \
+ --with-threads \
+ --with-xerces \
+ --with-xerces-inc=%{_includedir} \
+ --with-xerces-lib='-lxerces-c' \
+ --enable-shared \
+ --with-ruby \
+ --with-gdal-ver=%{version}-fedora
+
+
+# WARNING !!!
+# {?_smp_mflags} don't work for this package
+make
+
+# make perl modules, disable makefile generate
+pushd swig/perl
+ perl Makefile.PL; make;
+ echo > Makefile.PL;
+popd
+
+# Make Java module
+pushd swig/java
+ #Why do I BR Ant then?
+ # fix makefile
+ #TODO: Upstream
+ sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
+ sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
+ make
+popd
+
+# remake documentation for multilib issues
+# also include many pdf documentation
+# make man gibt es irgendwie auch
+#Für gdal-config muss man die Man-Seite eventuell namentlich anpassen
+#Andere sind vielleicht auch sinnlos. Und ob die alle man3 sind, weiß ich auch nicht.
+
+%global docdirs ./ apps doc doc/br doc/ru ogr ogr/ogrsf_frmts frmts/gxf frmts/iso8211 frmts/pcidsk frmts/sdts frmts/vrt swig/perl swig/python
+for docdir in %{docdirs}; do
+cp -p doc/gdal_footer.html $docdir/footer_local.html
+pushd $docdir
+ if [ ! -f Doxyfile ]; then
+ doxygen -g
+ else
+ doxygen -u
+ fi
+ sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
+ sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
+ sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
+
+ if [ $docdir == "doc/ru" ]; then
+ sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
+ fi
+ if [ $docdir == "apps" ]; then
+ sed -i -e 's|^GENERATE_MAN|GENERATE_MAN = YES\n#GENERATE_MAN |' Doxyfile
+ fi
+
+ rm -rf latex html
+ doxygen
+
+ %if %{build_refman}
+ pushd latex
+ sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
+ sed -i -e '/small/d' -e '/large/d' refman.tex
+ sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
+ make refman.pdf || true
+ popd
+ %endif
+ rm -rf footer_local.html
+ popd
+done
+
+%install
+rm -rf %{buildroot}
+#Was soll die gdal-1.8.0-2.fc14.x86_64/usr/local/lib64/perl? Leer ist es und installiert wird sie eh nicht
+
+#Die brasilianische HTML-Doku ist schon mal teils tot -- /usr/share/doc/gdal-doc-1.8.0/docs/docs-64/br/warptut.html -- Da stimmt wohl der Pfad nicht
+#Auf Englisch geht die C-API nicht: /usr/share/doc/gdal-doc-1.8.0/docs/docs-64/en/html/gdal_8h.html oder /usr/share/doc/gdal-doc-1.8.0/docs/docs-64/en/html/classGDALDataset.html -- Das kugelt in /usr/share/doc/gdal-doc-1.8.0/docs/docs-64
+#Bei den Russen kommt auch nicht viel.
+
+#Eventuell kann das ans Ende von Build -- in Source ist es nicht, aber vielleicht kann man es beeinflussen
+# Fix some perl installation issue
+sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
+
+# Fix Python installation path
+sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
+
+make DESTDIR=%{buildroot} \
+ install
+
+make DESTDIR=%{buildroot} \
+ INST_MAN=%{_mandir} \
+ install-man
+#TODO: Und was tun die 2? install-docs?
+#Gehen für die apps vielleicht man-pages?
+#Was ist die bridge?
+
+# move perl modules in the right path
+mkdir -p %{buildroot}%{perl_vendorarch}
+mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
+find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+
+# fix some exec bits
+find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
+find %{buildroot}%{python_lib} -name "*.so" -exec chmod 755 '{}' \;
+cat /dev/null > python-sitearch.files
+for pf in $(find %{buildroot}%{python_lib}); do
+ echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
+done
+
+# move ruby modules in the right path
+mv %{buildroot}%{ruby_sitelib}/%{name}/*.* %{buildroot}%{ruby_sitelib}/
+rm -rf %{buildroot}%{ruby_sitelib}/%{name}
+cat /dev/null > ruby-sitearch.files
+for rf in $(find %{buildroot}%{ruby_sitelib}); do
+ echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
+done
+
+#Irgendwas stimmt mit dem Debug-Zeug nicht. Da isst der ganze /media/speicher-Baum drin.
+#Gehören die Perl-Sachen echt unter /usr/lib64? 444 ist auch komisch, 644 ist normal
+
+# Use common date (multi-lib issues)
+#Nötig?
+#touch -r NEWS swig/java/gdal.jar
+mkdir -p %{buildroot}%{_javadir}
+cp -p swig/java/gdal.jar \
+ %{buildroot}%{_javadir}/%{name}.jar
+
+# Install Maven pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 %{SOURCE2} \
+ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# Create depmap fragment
+%add_to_maven_depmap org.gdal gdal-java-bindings %{version} JPP %{name}
+
+# copy JNI libraries and links, non versioned link needed by JNI
+cp -pvl swig/java/.libs/*.so* \
+ %{buildroot}%{_libdir}
+chrpath --delete %{buildroot}%{_libdir}/*jni.so*
+
+# install and include all docs
+#TODO: Die Einteilung ist komisch. Die Refman-pdfs kommen alle in ein Verzeichnis, die API-pdfs nicht.
+# due TeX-related issues some refman.pdf are not created
+rm -rf docs doc/docs-perl
+
+#TODO: HTML und PDF oder nach Themen verschieden?
+mkdir -p gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
+mkdir -p ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
+
+%if %{build_refman}
+ mkdir -p pdf
+
+ #TODO:
+ #Docdirs-Variable?
+ #Timestamp holen
+#TODO: http://fedoraproject.org/wiki/PackagingDrafts/MultilibTricks#Timestamps
+ pushd pdf
+ mkdir -p apps br en ru ogr frmts/gxf frmts/sdts frmts/iso8211
+ popd
+
+ install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+ install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
+ install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
+ install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
+ install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
+ install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+ install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
+ install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
+ #install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+ install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+ install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+ install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+ install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
+ mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
+ install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
+%endif
+
+mkdir -p docs-perl
+
+mkdir -p en/html gdal_frmts ogrsf_frmts br ru
+popd
+
+cp -pr html/* .
+cp -pr doc/html/* en/html
+cp -pr doc/gdal_frmts/* gdal_frmts
+cp -pr doc/ogrsf_frmts/* ogrsf_frmts
+cp -pr doc/br/html/* br
+cp -pr doc/ru/html/* ru
+cp -pr swig/perl/html/* docs-perl
+
+# install multilib cpl_config.h bz#430894
+install -p -D -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
+# create universal multilib cpl_config.h bz#341231
+# Das ist leider noch immer so. Allerdings: "#undef"?
+cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <<EOF
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "gdal/cpl_config-32.h"
+#else
+#if __WORDSIZE == 64
+#include "gdal/cpl_config-64.h"
+#else
+#error "Unknown word size"
+#endif
+#endif
+EOF
+touch -r NEWS port/cpl_config.h
+
+# Nochmal genau anschauen. Die $-Sachen passen an sich
+# Install pkgconfig file
+cat > %{name}.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: GDAL
+Description: GIS file format library
+Version: %{version}
+Libs: -L\${libdir} -lgdal
+Cflags: -I\${includedir}/%{name}
+EOF
+
+#Was soll das -p?
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
+touch -r NEWS %{buildroot}%{_libdir}/pkgconfig/
+
+# multilib gdal-config
+mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
+cat > %{buildroot}%{_bindir}/%{name}-config <<EOF
+#!/bin/bash
+
+#TODO: Za wos!
+ARCH=\$(uname -m)
+case \$ARCH in
+x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 )
+%{name}-config-64 \${*}
+;;
+*)
+%{name}-config-32 \${*}
+;;
+esac
+EOF
+chmod 755 %{buildroot}%{_bindir}/%{name}-config
+touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
+
+# Cleanup junk
+rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
+rm -rf docs/docs-%{cpuarch}/ru/installdox
+rm -rf docs/docs-%{cpuarch}/en/html/installdox
+rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
+rm -rf %{buildroot}%{_bindir}/gdal_fillnodata.dox
+for junk in {*.a,*.la,*.bs,.exists,.packlist} ; do
+ find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
+done
+
+
+%check
+
+pushd %{name}autotest-%{version}
+ # export test enviroment
+ export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_lib}
+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
+ export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
+
+ # Enable on demand
+ #export GDAL_RUN_SLOW_TESTS=1
+ #export GDAL_DOWNLOAD_TEST_DATA=1
+
+ # Na ja, das könnte man aber auch installieren
+ # remove some testcases for now due to build failure
+ rm -rf ogr/ogr_ingres.py # No Ingres test
+ rm -rf ogr/ogr_grass.py # No GRASS test
+ rm -rf ogr/ogr_libkml.py # No libkml test
+ rm -rf ogr/ogr_pg.py # no pgsql during test (disabled)
+ rm -rf ogr/ogr_mysql.py # no mysql during test (disabled)
+ rm -rf ogr/ogr_dods.py # no DODS during test (disabled)
+ rm -rf gdrivers/dods.py # no DODS during test (disabled)
+ rm -rf gdrivers/ecw.py # No ECW driver
+ rm -rf gdrivers/jp2kak.py
+ rm -rf gdrivers/rasdaman.py
+ rm -rf gdrivers/grass.py
+ rm -rf gdrivers/mrsid.py
+ rm -rf gdrivers/ingr.py
+ rm -rf osr/osr_esri.py # ESRI datum absent (disabled)
+ rm -rf ogr/ogr_sql_test.py # no SQL during tests
+ #rm -rf gcore/mask.py # crash ugly (mustfix)
+
+ # run tests but force than normal exit
+ #./run_all.py
+ #./run_all.py || true
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post java
+/sbin/ldconfig
+%update_maven_depmap
+
+%postun java
+/sbin/ldconfig
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.TXT NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
+%{_bindir}/gdallocationinfo
+%{_bindir}/gdal_contour
+%{_bindir}/gdal_rasterize
+%{_bindir}/gdal_translate
+%{_bindir}/gdaladdo
+%{_bindir}/gdalinfo
+%{_bindir}/gdaldem
+%{_bindir}/gdalbuildvrt
+%{_bindir}/gdaltindex
+%{_bindir}/gdalwarp
+%{_bindir}/gdal_grid
+%{_bindir}/gdalenhance
+%{_bindir}/gdalmanage
+%{_bindir}/gdaltransform
+%{_bindir}/nearblack
+%{_bindir}/ogr*
+%{_bindir}/testepsg
+%{_bindir}/epsg_tr.py*
+%{_bindir}/esri2wkt.py*
+%{_bindir}/gcps*
+%{_bindir}/gdal*.py*
+%{_bindir}/pct2rgb.py*
+%{_bindir}/rgb2pct.py*
+%{_bindir}/mkgraticule.py*
+#Why?
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/libgdal.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_bindir}/%{name}-config
+%{_bindir}/%{name}-config-%{cpuarch}
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files ruby -f ruby-sitearch.files
+%defattr(-,root,root,-)
+
+#Devel package depending on Java is awful!
+
+%files java
+%defattr(-,root,root,-)
+%doc swig/java/apps
+%{_javadir}/%{name}.jar
+%{_libdir}/*jni.so.*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files perl
+%defattr(-,root,root,-)
+%doc doc/docs-perl
+%doc swig/perl/README
+%{perl_vendorarch}/*
+
+%files python -f python-sitearch.files
+%defattr(-,root,root,-)
+%doc swig/python/samples
+#?
+%{_bindir}/*.py
+
+%files doc
+%defattr(-,root,root)
+%doc docs
+
+%changelog
+* Mon Mar 06 2011 Volker Fröhlich <volker27@gmx.at> - 1.8.0-2
+- Dropped support for EL4
+- Dropped integrated support for Grass, in anticiaption of grass-gdal package
+
+* Mon Feb 21 2011 Volker Fröhlich <volker27@gmx.at> - 1.8.0-1
+- New upstream version
+- Dropped static sub-package as no other package uses it as BR
+- Harmonized RPM_BUILDROOT and buildroot
+- Support for:
+ PostgreSQL
+ JPEG lossless
+ WMS, WFS
+ LZMA compression
+ Spatialite
+ GeoPDF
+- Delete included libs before building
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Nov 21 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-2
+- Install all the generated pdf documentation.
+- Build documentation as a separate package.
+- Spec cleanup
+
+* Fri Nov 19 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-1
+- Update to latest upstream version
+- Added jnis
+- Patches updated with proper version info
+- Added suggestions from Ralph Apel <r.apel@r-apel.de>
+ + Versionless symlink for gdal.jar
+ + Maven2 pom
+ + JPP-style depmap
+ + Use -f XX.files for ruby and python
+
+* Sun Oct 31 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_2
+- PCRaster support
+- cURL support
+- Disable building the reference manual (really too long...)
+
+* Sat Oct 09 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_1
+- Add Java JNI libraries
+
+* Sat Aug 14 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_0
+- Rebuild for EL GIS, based on work contributed by Nikolaos Hatzopoulos and Peter Hopfgartner
+- Use vanilla sources
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Tue Jul 20 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-4
+- Rebuild with grass support
+
+* Thu Jul 17 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-3
+- Add patch to change AISConnect() to Connect() for libdap 3.10
+- build without grass for libdap soname bump
+
+* Tue Jul 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.2-2
+- reenable grass support
+
+* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> - 1.7.2-1
+- upgrade to 1.7.2 (#587707, huge thanks to Sven Lankes)
+
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-2
+- fix bz#572617
+
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-1
+- new stable branch
+- re-enable java ColorTable
+- gdal custom fedora version banner
+- rebuild without grass
+- gdal manual are gone (upstream fault)
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-5
+- reenable grass support
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-4
+- temporarily disable grass support for bootstrapping
+- rebuild for new libxerces-c
+
+* Tue Dec 8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.6.2-3
+- Explicitly BR hdf-static in accordance with the Packaging
+ Guidelines (hdf-devel is still static-only).
+
+* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-2
+- re-enable grass support
+
+* Tue Nov 17 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-1
+- Update to 1.6.2
+- Rebuild for netcdf 4.1.0
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-2
+- rebuilt with new openssl
+
+* Thu Jul 30 2009 Dan Horak <dan[at]danny.cz> - 1.6.1-1
+- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
+- update to 1.6.1
+- don't install some refman.pdf, because they don't build
+- don't fail on man pages with suffix other than .gz
+- fix filelist for python subpackage
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.0-9
+- Rebuild for libdap 3.9.3, bootstrap
+
+* Mon Mar 23 2009 Jesse Keating <jkeating@redhat.com> - 1.6.0-8
+- re-enable grass support
+
+* Sun Mar 22 2009 Lubomir Rintel <lkundrak@v3.sk> - 1.6.0-7
+- Depend specifically on GCJ for Java (Alex Lancaster)
+- Disable grass (Alex Lancaster)
+- Create %%_bindir before copying files there
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 04 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-4
+- rebuild with grass support
+- fix email typo
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-3
+- rebuild against mysql 5.1.30
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-2
+- email change
+- rebuild without grass
+
+* Fri Dec 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-1
+- final stable release
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.2.rc4
+- enable grass
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.1.rc4
+- new branch
+- disable grass
+- fix ruby compile
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.3-2
+- Rebuild for Python 2.6
+
+* Fri Oct 24 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.3-1
+- new stable
+- ship static package too
+- fix some doc generation
+- libdap patch for fc10 only
+
+* Tue Sep 30 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-4
+- enable gdal_array for python subpackage
+- require numpy
+
+* Tue Sep 9 2008 Patrice Dumas <pertusus@free.fr> - 1.5.2-3
+- patch for libdap > 0.8.0, from Rob Cermak
+
+* Thu Jun 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-1
+- a new bugfix upstream
+- drop gcc43 patch
+- more license cleaned
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-13
+- fix pkgconfig too
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-12
+- fix once more gdal-config
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-11
+- fix multilib gdal-config, add wrapper around
+- fix typos in cpl_config.h wrapper
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-10
+- fix for multilib packaging bz#341231
+- huge spec cleanup
+- enable russian and brazil docs
+- enable and triage more docs
+
+* Sun May 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-9
+- enable ruby and java packages
+- fix spurious sed problem
+- spec file cosmetics
+
+* Thu May 23 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-8
+- fix sincos on all arch
+
+* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-7
+- fix x86_64 problem
+
+* Wed Apr 16 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-6
+- disable fortify source, it crash gdal for now.
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-5
+- really eanble against grass63
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-4
+- disable grass to bootstrap once again
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-3
+- rebuild to really pick up grass63 in koji
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-2
+- enable build against newer grass
+- enable build of reference manuals
+
+* Tue Mar 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-1
+- new bugfix release from upstream
+- drop large parts from gcc43 patch, some are upstream now
+- fix building with perl-5.10 swig binding issue
+
+* Wed Feb 29 2008 Orion Poplawski <orion@cora.nwra.com> - 1.5.0-4
+- Rebuild for hdf5-1.8.0, use compatability API define
+
+* Tue Feb 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-3
+- install cpl_config.h manually for bz#430894
+- fix gcc4.3 build
+
+* Mon Jan 14 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-2
+- fix perl dependency issue.
+
+* Mon Jan 07 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-1
+- update to new 1.5.0 upstream stable
+- dropped build patch since HFA/ILI/DGN mandatories are now present
+- dropped swig patch, its upstream now
+- enable HFA it holds Intergraph (TM) explicit public license
+- enable DGN it holds Avenza Systems (TM) explicit public license
+- enable ILI headers since now contain proper public license message
+- keep and polish up rest of doubted license
+- further fixed hdf not supporting netcdf for for bz#189337
+- kill the annoying -Lexternal/lib for -lgeotiff
+- fix configure to not export LDFLAGS anyomre, upstream
+ should really switch to real GNU automagic stuff
+- pymod samples and rfc docs now gone
+- hardcode external libtool to be used, LIBTOOL env not propagating anymore
+- use DESTDIR instead
+
+* Thu Jan 03 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 1.4.2-7
+- Re-enable grass support now that gdal has been bootstrapped
+
+* Wed Jan 02 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.2-6
+- Bootstrap 1st: disabling grass support
+- Workaround for hdf not supporting netcdf (bug 189337 c8)
+- Disabling documents creation for now.
+
+* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-5
+- Rebuild for deps
+- Disable grass to avoid circular deps
+
+* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-3
+- Rebuild for selinux ppc32 issue.
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-2
+- disable one more HFA test, HFA is unaviable due to license
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-1
+- new upstream one
+- catch some more docs
+- fix ogr python module runtime
+- include testcases and run tests
+- enable geotiff external library we have new libgeotiff now
+- EPSG geodetic database is licensed OK since v6.13 so re-enable
+- enable it against grass by default, implement optional switches
+
+* Tue Jun 05 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-4
+- re-build.
+
+* Sat May 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-3
+- re-build against grass.
+
+* Fri May 11 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-2
+- fix python lookup paths for ppc64.
+
+* Wed May 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-1
+- new upstream release.
+- disable temporary grass-devel requirement untill find a
+ resonable solution for gdal-grass egg-chicken dep problem.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-22
+- and olso dont attempt pack missing docs.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-21
+- exclude some docs, doxygen segfault with those now upstream.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-20
+- rebuild against latest fedora upstream tree.
+
+* Mon Apr 02 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-19
+- own gdal includedir
+- fix one more spurious lib path
+
+* Wed Mar 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-18
+- remove system lib path from gdal-config --libs, its implicit
+
+* Tue Mar 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-17
+- enable build against grass
+- fix incorrect use of 32/64 library paths lookups
+
+* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-16
+- fix gdal flag from pkgconfig file
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-15
+- require pkgconfig
+- generate pkgconfig from spec instead
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-14
+- require perl(ExtUtils::MakeMaker) instead ?dist checking
+- add pkgconfig file
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-13
+- fix typo in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-12
+- add missing dot from dist string in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-11
+- fix fc6 fc5 builds
+
+* Thu Mar 1 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-10
+- fix mock build
+- require perl-devel
+
+* Tue Feb 27 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-9
+- repack tarball for fedora, explain changes in PROVENANCE-fedora,
+ license should be clean now according to PROVENANCE-* files
+- require ogdi since is aviable now
+- drop nogeotiff patch, in -fedora tarball geotiff is removed
+- man page triage over subpackages
+- exclude python byte compiled objects
+- fix some source C file exec bits
+
+* Sat Feb 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-8
+- fix more things in spec
+- include more docs
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-7
+- libtool in requirement list for build
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-6
+- use external libtool to avoid rpath usage
+- include more docs
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-5
+- use rm -rf for removal of dirs.
+- fix require lists
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-4
+- fix doxygen buildreq
+- make sure r-path is fine.
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-3
+- disable now ogdi (pending ogdi submission).
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-2
+- more fixups for lib paths
+
+* Fri Feb 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-1
+- first pack for fedora extras
+- disable geotiff (untill license sorted out)
+- enable all options aviable from extras
+- pack perl and python modules
+- kill r-path from libs
+- pack all docs posible
diff --git a/gdal_1.7.3_mod.spec b/gdal_1.7.3_mod.spec
new file mode 100644
index 0000000..c502210
--- /dev/null
+++ b/gdal_1.7.3_mod.spec
@@ -0,0 +1,934 @@
+Name: gdal
+Version: 1.7.3
+Release: 3%{?dist}
+Summary: GIS file format library
+Group: System Environment/Libraries
+License: MIT
+URL: http://www.gdal.org/
+# Source0: http://download.osgeo.org/gdal/gdal-%%{version}.tar.gz
+# see PROVENANCE.TXT-fedora for details
+Source0: %{name}-%{version}-fedora.tar.gz
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.3.tar.gz
+# create versionless symlink
+Source2: gdal-1.7.3.pom
+Patch0: %{name}-libdap.patch
+Patch1: %{name}-mysql.patch
+Patch2: %{name}-bindir.patch
+Patch3: %{name}-AIS.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libtool pkgconfig
+BuildRequires: python-devel numpy xerces-c-devel
+BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
+BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
+BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel
+BuildRequires: hdf-static hdf-devel
+BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
+BuildRequires: curl-devel
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: chrpath
+# no xerces-c package available for ppc in el5, so excluding the same.
+%if "%{?dist}" == ".el6"
+ExcludeArch: ppc64
+%endif
+
+%if "%{?dist}" != ".el4"
+BuildRequires: ant swig ruby java-devel-gcj
+%endif
+
+# enable/disable grass support, for bootstrapping
+%define grass_support 0
+# enable/disable refman generation
+%define build_refman 1
+
+# we have multilib triage
+%if "%{_lib}" == "lib"
+%define cpuarch 32
+%else
+%define cpuarch 64
+%endif
+
+%{!?python_lib: %define python_lib %(%{__python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)')}
+%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+
+%if %{grass_support}
+BuildRequires: grass-devel
+%endif
+
+%description
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package devel
+Summary: Development Libraries for the GDAL file format library
+Group: Development/Libraries
+Requires: pkgconfig
+Requires: libgeotiff-devel
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package static
+Summary: Static Development Libraries for the GDAL file format library
+Group: Development/Libraries
+
+%description static
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package python
+Summary: Python modules for the GDAL file format library
+Group: Development/Libraries
+Requires: numpy
+Requires: %{name} = %{version}-%{release}
+
+%description python
+The GDAL python modules provides support to handle multiple GIS file formats.
+
+%package perl
+Summary: Perl modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description perl
+The GDAL perl modules provides support to handle multiple GIS file formats.
+
+%if "%{?dist}" != ".el4"
+%package ruby
+Summary: Ruby modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description ruby
+The GDAL ruby modules provides support to handle multiple GIS file formats.
+
+%package java
+Summary: Java modules for the GDAL file format library
+Group: Development/Libraries
+Requires: java
+# require maven2 for the poms and depmap frag parent dirs
+# these are provided by many JPP packages but that is wrong
+Requires: maven2
+Requires: jpackage-utils
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+Requires: %{name} = %{version}-%{release}
+
+%description java
+The GDAL java modules provides support to handle multiple GIS file formats.
+%endif
+
+%package doc
+Summary: Documentation for GDAL
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains html and pdf documentation for GDAL.
+
+%prep
+%setup -q -n %{name}-%{version}-fedora
+%if "%{?dist}" == ".fc10"
+%patch0 -p1 -b .libdap~
+%endif
+%patch1 -p0 -b .mysql~
+%patch2 -p1 -b .bindir~
+%patch3 -p1 -b .AIS~
+
+# unpack test cases also.
+tar -xzf %{SOURCE1}
+
+# fix russian docs from tarball
+for ru in `find doc/ru/ -type f -name "*.dox"`; do
+iconv -f KOI8-R -t UTF-8 < $ru > $ru.tmp
+mv -f $ru.tmp $ru
+done
+
+set +x
+for f in `find . -type f` ; do
+ if file $f | grep -q ISO-8859 ; then
+ set -x
+ iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
+ mv -f ${f}.tmp $f
+ set +x
+ fi
+ if file $f | grep -q CRLF ; then
+ set -x
+ sed -i -e 's|\r||g' $f
+ set +x
+ fi
+done
+set -x
+
+# remove junks
+find . -name ".cvsignore" -exec rm -rf '{}' \;
+
+# fix some exec bits
+find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
+
+# fix hardcoded issues
+sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in
+sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
+sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
+sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$DODS_LIB -ldap++|-ldap++|g' configure
+sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
+sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
+sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
+sed -i 's|-L\$with_grass\/lib||g' configure
+sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
+sed -i 's|-logdi31|-logdi|g' configure
+sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
+
+# fix python path for ppc64
+sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
+
+# Append some path for few libs
+export CPPFLAGS="`pkg-config ogdi --cflags`"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
+export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
+export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
+
+# Code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
+export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+
+# Fix Ruby flags
+sed -i -e "s/\$(LD)/g++ -L..\/..\/.libs\/ $RPM_OPT_FLAGS/g" swig/ruby/RubyMakefile.mk
+sed -i -e "s/\$(CFLAGS)/$(CFLAGS) -fPIC/g" swig/ruby/RubyMakefile.mk
+
+
+# fix doxygen for multilib docs
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/sdts/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/pcraster/doxygen.cfg
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/iso8211/Doxyfile
+
+%build
+
+%configure \
+ --prefix=%{_prefix} \
+ --includedir=%{_includedir}/%{name}/ \
+ --datadir=%{_datadir}/%{name}/ \
+ --with-threads \
+ --with-dods-root=%{_libdir} \
+ --with-ogdi \
+ --with-cfitsio=%{_prefix} \
+ --with-geotiff=external \
+ --with-tiff=external \
+ --with-libtiff=external \
+ --with-libz \
+ --with-netcdf \
+ --with-hdf4 \
+ --with-hdf5 \
+ --with-geos \
+ --with-jasper \
+ --with-png \
+ --with-gif \
+ --with-jpeg \
+ --with-odbc \
+ --with-sqlite \
+ --with-mysql \
+ --with-curl \
+ --with-python \
+ --with-perl \
+ --with-pcraster \
+%if "%{?dist}" != ".el4"
+ --with-ruby \
+ --with-java \
+%endif
+ --with-xerces \
+ --with-xerces-lib='-lxerces-c' \
+ --with-xerces-inc=%{_includedir} \
+ --with-jpeg12=no \
+ --enable-shared \
+%if %{grass_support}
+ --with-libgrass \
+ --with-grass=%{_prefix} \
+%endif
+ --with-gdal-ver=%{version}-fedora
+
+# fixup hardcoded wrong compile flags.
+cp GDALmake.opt GDALmake.opt.orig
+sed -e 's/ cfitsio / /' \
+-e 's/-ldap++/-ldap -ldapclient -ldapserver/' \
+-e 's/-L\$(INST_LIB) -lgdal/-lgdal/' \
+GDALmake.opt.orig > GDALmake.opt
+rm GDALmake.opt.orig
+
+# WARNING !!!
+# dont use {?_smp_mflags} it break compile
+make
+
+# make perl modules, disable makefile generate
+pushd swig/perl
+ perl Makefile.PL; make;
+ echo > Makefile.PL;
+popd
+
+%if "%{?dist}" != ".el4"
+# make java modules
+pushd swig/java
+# fix makefile
+sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
+sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
+# build java module
+make
+popd
+%endif
+
+# remake documentation for multilib issues
+# also include many pdf documentation
+for docdir in ./ doc doc/ru doc/br ogr ogr/ogrsf_frmts ogr/ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 swig/perl; do
+cp -p doc/gdal_footer.html $docdir/footer_local.html
+pushd $docdir
+if [ ! -f Doxyfile ]; then
+doxygen -g
+fi
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
+sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
+sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
+if [ $docdir == "doc/ru" ]; then
+sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
+fi
+rm -rf latex html
+doxygen
+%if %{build_refman}
+pushd latex
+sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
+sed -i -e '/small/d' -e '/large/d' refman.tex
+sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
+make refman.pdf || true; popd
+%endif
+rm -rf footer_local.html; popd
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# fix some perl instalation issue
+sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
+
+# fix python installation path
+sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
+
+make DESTDIR=%{buildroot} \
+ install
+
+make DESTDIR=%{buildroot} \
+ INST_MAN=%{_mandir} \
+ install-man
+
+# move perl modules in the right path
+mkdir -p %{buildroot}%{perl_vendorarch}
+mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
+find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+
+# fix some exec bits
+find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
+find %{buildroot}%{python_lib} -name "*.so" -exec chmod 755 '{}' \;
+cat /dev/null > python-sitearch.files
+for pf in $(find %{buildroot}%{python_lib}); do
+ echo $pf | sed -e 's|^%{buildroot}||' >> python-sitearch.files
+done
+
+%if "%{?dist}" != ".el4"
+# move ruby modules in the right path
+mv %{buildroot}%{ruby_sitelib}/%{name}/*.* %{buildroot}%{ruby_sitelib}/
+rm -rf %{buildroot}%{ruby_sitelib}/%{name}
+cat /dev/null > ruby-sitearch.files
+for rf in $(find %{buildroot}%{ruby_sitelib}); do
+ echo $rf | sed -e 's|^%{buildroot}||' >> ruby-sitearch.files
+done
+
+# install multilib java modules in the right path
+touch -r NEWS swig/java/gdal.jar
+mkdir -p %{buildroot}%{_javadir}
+cp -p swig/java/gdal.jar \
+ %{buildroot}%{_javadir}/%{name}-%{version}.jar
+
+# create versionless symlink
+ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# add pom
+%__mkdir_p %{buildroot}%{_datadir}/maven2/poms
+%__install -m 644 %{SOURCE2} \
+ %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
+
+# copy JNI libraries and links, non versioned link needed by JNI
+cp -pvl swig/java/.libs/*.so* \
+ %{buildroot}%{_libdir}
+chrpath --delete %{buildroot}%{_libdir}/*jni.so*
+%endif
+
+# install and include all docs
+# due TeX-related issues some refman.pdf are not created
+rm -rf docs doc/docs-perl
+
+mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
+mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
+%if %{build_refman}
+mkdir -p docs/docs-%{cpuarch}/pdf
+pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
+install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
+install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/
+install -p -m 644 latex/class*.pdf docs/docs-%{cpuarch}/
+install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 ogr/latex/class*.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
+install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+%if "%{?dist}" != ".el4"
+# broken on el4
+install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+install -p -m 644 frmts/sdts/latex/class*.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+%endif
+install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
+mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
+install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
+%endif
+mkdir -p docs/docs-%{cpuarch}
+mkdir -p doc/docs-perl/docs-%{cpuarch}
+pushd docs/docs-%{cpuarch}/; mkdir -p en/html gdal_frmts ogrsf_frmts br ru; popd
+cp -pr html/* docs/docs-%{cpuarch}/
+cp -pr doc/html/* docs/docs-%{cpuarch}/en/html
+cp -pr doc/gdal_frmts/* docs/docs-%{cpuarch}/gdal_frmts
+cp -pr doc/ogrsf_frmts/* docs/docs-%{cpuarch}/ogrsf_frmts
+cp -pr doc/br/html/* docs/docs-%{cpuarch}/br
+cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
+cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
+
+# install multilib cpl_config.h bz#430894
+install -p -D -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
+# create universal multilib cpl_config.h bz#341231
+cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <<EOF
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "gdal/cpl_config-32.h"
+#else
+#if __WORDSIZE == 64
+#include "gdal/cpl_config-64.h"
+#else
+#error "Unknown word size"
+#endif
+#endif
+EOF
+touch -r NEWS port/cpl_config.h
+
+# install pkgconfig file
+cat > %{name}.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: GDAL
+Description: GIS file format library
+Version: %{version}
+Libs: -L\${libdir} -lgdal
+Cflags: -I\${includedir}/%{name}
+EOF
+
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
+touch -r NEWS %{buildroot}%{_libdir}/pkgconfig/
+
+# multilib gdal-config
+mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
+cat > %{buildroot}%{_bindir}/%{name}-config <<EOF
+#!/bin/bash
+
+ARCH=\$(uname -m)
+case \$ARCH in
+x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 )
+%{name}-config-64 \${*}
+;;
+*)
+%{name}-config-32 \${*}
+;;
+esac
+EOF
+chmod 755 %{buildroot}%{_bindir}/%{name}-config
+touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
+
+# cleanup junks
+rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
+rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
+rm -rf %{buildroot}%{_bindir}/gdal_fillnodata.dox
+for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
+find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
+done
+
+# create depmap fragment
+%add_to_maven_depmap org.gdal gdal-java-bindings %{version} JPP %{name}
+
+%check
+
+pushd gdalautotest-1.7.3
+
+# export test enviroment
+export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_lib}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
+export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
+
+# remove some testcases for now due to build failure
+rm -rf ogr/ogr_pg.py # no pgsql during test (disabled)
+rm -rf ogr/ogr_mysql.py # no mysql during test (disabled)
+rm -rf ogr/ogr_dods.py # no DODS during test (disabled)
+rm -rf gdrivers/dods.py # no DODS during test (disabled)
+rm -rf osr/osr_esri.py # ESRI datum absent (disabled)
+rm -rf ogr/ogr_sql_test.py # no SQL during tests
+rm -rf gcore/mask.py # crash ugly (mustfix)
+
+# run tests but force than normal exit
+./run_all.py
+#./run_all.py || true
+
+popd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+# update maven2 depmap
+%post java
+/sbin/ldconfig
+%update_maven_depmap
+
+# update maven2 depmap
+%postun java
+/sbin/ldconfig
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%doc NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
+%{_bindir}/gdal_contour
+%{_bindir}/gdal_rasterize
+%{_bindir}/gdal_translate
+%{_bindir}/gdaladdo
+%{_bindir}/gdalinfo
+%{_bindir}/gdaldem
+%{_bindir}/gdalbuildvrt
+%{_bindir}/gdaltindex
+%{_bindir}/gdalwarp
+%{_bindir}/gdal_grid
+%{_bindir}/gdalenhance
+%{_bindir}/gdalmanage
+%{_bindir}/gdaltransform
+%{_bindir}/nearblack
+%{_bindir}/ogr*
+%{_bindir}/testepsg
+%{_libdir}/libgdal.so.*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%{_bindir}/epsg_tr.py*
+%{_bindir}/esri2wkt.py*
+%{_bindir}/gcps*
+%{_bindir}/gdal*.py*
+%{_bindir}/pct2rgb.py*
+%{_bindir}/rgb2pct.py*
+%{_bindir}/mkgraticule.py*
+
+%files devel
+%defattr(-,root,root,-)
+%{_bindir}/%{name}-config
+%{_bindir}/%{name}-config-%{cpuarch}
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files static
+%defattr(-,root,root,-)
+%{_libdir}/*.a
+
+%files python -f python-sitearch.files
+%defattr(-,root,root,-)
+%doc swig/python/samples
+%attr(0755,root,root) %{_bindir}/*.py
+
+%files perl
+%defattr(-,root,root,-)
+%doc doc/docs-perl
+%doc swig/perl/README
+%{perl_vendorarch}/*
+
+%if "%{?dist}" != ".el4"
+%files ruby -f ruby-sitearch.files
+%defattr(-,root,root,-)
+
+%files java
+%defattr(-,root,root,-)
+%doc swig/java/apps
+%{_javadir}/%{name}-%{version}.jar
+# provide versionless symlink
+%{_javadir}/%{name}.jar
+%{_libdir}/*jni.so.*
+# provide the pom
+%{_datadir}/maven2/poms/*
+# provide the depmap frag
+%{_mavendepmapfragdir}/*
+%endif
+
+%files doc
+%defattr(-,root,root)
+%doc docs
+
+%changelog
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Nov 21 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-2
+- Install all the generated pdf documentation.
+- Build documentation as a separate package.
+- Spec cleanup
+
+* Fri Nov 19 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.7.3-1
+- Update to latest upstream version
+- Added jnis
+- Patches updated with proper version info
+- Added suggestions from Ralph Apel <r.apel@r-apel.de>
+ + Versionless symlink for gdal.jar
+ + Maven2 pom
+ + JPP-style depmap
+ + Use -f XX.files for ruby and python
+
+* Sun Oct 31 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_2
+- PCRaster support
+- cURL support
+- Disable building the reference manual (really too long...)
+
+* Sat Oct 09 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_1
+- Add Java JNI libraries
+
+* Sat Aug 14 2010 Mathieu Baudier <mbaudier@argeo.org> - 1.7.2-5_0
+- Rebuild for EL GIS, based on work contributed by Nikolaos Hatzopoulos and Peter Hopfgartner
+- Use vanilla sources
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Tue Jul 20 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-4
+- Rebuild with grass support
+
+* Thu Jul 17 2010 Orion Poplawski <orion@cora.nwra.com> - 1.7.2-3
+- Add patch to change AISConnect() to Connect() for libdap 3.10
+- build without grass for libdap soname bump
+
+* Tue Jul 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.2-2
+- reenable grass support
+
+* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> - 1.7.2-1
+- upgrade to 1.7.2 (#587707, huge thanks to Sven Lankes)
+
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-2
+- fix bz#572617
+
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-1
+- new stable branch
+- re-enable java ColorTable
+- gdal custom fedora version banner
+- rebuild without grass
+- gdal manual are gone (upstream fault)
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-5
+- reenable grass support
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-4
+- temporarily disable grass support for bootstrapping
+- rebuild for new libxerces-c
+
+* Tue Dec 8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.6.2-3
+- Explicitly BR hdf-static in accordance with the Packaging
+ Guidelines (hdf-devel is still static-only).
+
+* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-2
+- re-enable grass support
+
+* Tue Nov 17 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-1
+- Update to 1.6.2
+- Rebuild for netcdf 4.1.0
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-2
+- rebuilt with new openssl
+
+* Thu Jul 30 2009 Dan Horak <dan[at]danny.cz> - 1.6.1-1
+- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
+- update to 1.6.1
+- don't install some refman.pdf, because they don't build
+- don't fail on man pages with suffix other than .gz
+- fix filelist for python subpackage
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.0-9
+- Rebuild for libdap 3.9.3, bootstrap
+
+* Mon Mar 23 2009 Jesse Keating <jkeating@redhat.com> - 1.6.0-8
+- re-enable grass support
+
+* Sun Mar 22 2009 Lubomir Rintel <lkundrak@v3.sk> - 1.6.0-7
+- Depend specifically on GCJ for Java (Alex Lancaster)
+- Disable grass (Alex Lancaster)
+- Create %%_bindir before copying files there
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 04 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-4
+- rebuild with grass support
+- fix email typo
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-3
+- rebuild against mysql 5.1.30
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-2
+- email change
+- rebuild without grass
+
+* Fri Dec 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-1
+- final stable release
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.2.rc4
+- enable grass
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.1.rc4
+- new branch
+- disable grass
+- fix ruby compile
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.3-2
+- Rebuild for Python 2.6
+
+* Fri Oct 24 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.3-1
+- new stable
+- ship static package too
+- fix some doc generation
+- libdap patch for fc10 only
+
+* Tue Sep 30 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-4
+- enable gdal_array for python subpackage
+- require numpy
+
+* Tue Sep 9 2008 Patrice Dumas <pertusus@free.fr> - 1.5.2-3
+- patch for libdap > 0.8.0, from Rob Cermak
+
+* Thu Jun 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-1
+- a new bugfix upstream
+- drop gcc43 patch
+- more license cleaned
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-13
+- fix pkgconfig too
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-12
+- fix once more gdal-config
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-11
+- fix multilib gdal-config, add wrapper around
+- fix typos in cpl_config.h wrapper
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-10
+- fix for multilib packaging bz#341231
+- huge spec cleanup
+- enable russian and brazil docs
+- enable and triage more docs
+
+* Sun May 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-9
+- enable ruby and java packages
+- fix spurious sed problem
+- spec file cosmetics
+
+* Thu May 23 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-8
+- fix sincos on all arch
+
+* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-7
+- fix x86_64 problem
+
+* Wed Apr 16 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-6
+- disable fortify source, it crash gdal for now.
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-5
+- really eanble against grass63
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-4
+- disable grass to bootstrap once again
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-3
+- rebuild to really pick up grass63 in koji
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-2
+- enable build against newer grass
+- enable build of reference manuals
+
+* Tue Mar 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-1
+- new bugfix release from upstream
+- drop large parts from gcc43 patch, some are upstream now
+- fix building with perl-5.10 swig binding issue
+
+* Wed Feb 29 2008 Orion Poplawski <orion@cora.nwra.com> - 1.5.0-4
+- Rebuild for hdf5-1.8.0, use compatability API define
+
+* Tue Feb 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-3
+- install cpl_config.h manually for bz#430894
+- fix gcc4.3 build
+
+* Mon Jan 14 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-2
+- fix perl dependency issue.
+
+* Mon Jan 07 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-1
+- update to new 1.5.0 upstream stable
+- dropped build patch since HFA/ILI/DGN mandatories are now present
+- dropped swig patch, its upstream now
+- enable HFA it holds Intergraph (TM) explicit public license
+- enable DGN it holds Avenza Systems (TM) explicit public license
+- enable ILI headers since now contain proper public license message
+- keep and polish up rest of doubted license
+- further fixed hdf not supporting netcdf for for bz#189337
+- kill the annoying -Lexternal/lib for -lgeotiff
+- fix configure to not export LDFLAGS anyomre, upstream
+ should really switch to real GNU automagic stuff
+- pymod samples and rfc docs now gone
+- hardcode external libtool to be used, LIBTOOL env not propagating anymore
+- use DESTDIR instead
+
+* Thu Jan 03 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 1.4.2-7
+- Re-enable grass support now that gdal has been bootstrapped
+
+* Wed Jan 02 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.2-6
+- Bootstrap 1st: disabling grass support
+- Workaround for hdf not supporting netcdf (bug 189337 c8)
+- Disabling documents creation for now.
+
+* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-5
+- Rebuild for deps
+- Disable grass to avoid circular deps
+
+* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-3
+- Rebuild for selinux ppc32 issue.
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-2
+- disable one more HFA test, HFA is unaviable due to license
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-1
+- new upstream one
+- catch some more docs
+- fix ogr python module runtime
+- include testcases and run tests
+- enable geotiff external library we have new libgeotiff now
+- EPSG geodetic database is licensed OK since v6.13 so re-enable
+- enable it against grass by default, implement optional switches
+
+* Tue Jun 05 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-4
+- re-build.
+
+* Sat May 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-3
+- re-build against grass.
+
+* Fri May 11 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-2
+- fix python lookup paths for ppc64.
+
+* Wed May 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-1
+- new upstream release.
+- disable temporary grass-devel requirement untill find a
+ resonable solution for gdal-grass egg-chicken dep problem.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-22
+- and olso dont attempt pack missing docs.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-21
+- exclude some docs, doxygen segfault with those now upstream.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-20
+- rebuild against latest fedora upstream tree.
+
+* Mon Apr 02 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-19
+- own gdal includedir
+- fix one more spurious lib path
+
+* Wed Mar 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-18
+- remove system lib path from gdal-config --libs, its implicit
+
+* Tue Mar 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-17
+- enable build against grass
+- fix incorrect use of 32/64 library paths lookups
+
+* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-16
+- fix gdal flag from pkgconfig file
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-15
+- require pkgconfig
+- generate pkgconfig from spec instead
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-14
+- require perl(ExtUtils::MakeMaker) instead ?dist checking
+- add pkgconfig file
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-13
+- fix typo in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-12
+- add missing dot from dist string in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-11
+- fix fc6 fc5 builds
+
+* Thu Mar 1 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-10
+- fix mock build
+- require perl-devel
+
+* Tue Feb 27 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-9
+- repack tarball for fedora, explain changes in PROVENANCE-fedora,
+ license should be clean now according to PROVENANCE-* files
+- require ogdi since is aviable now
+- drop nogeotiff patch, in -fedora tarball geotiff is removed
+- man page triage over subpackages
+- exclude python byte compiled objects
+- fix some source C file exec bits
+
+* Sat Feb 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-8
+- fix more things in spec
+- include more docs
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-7
+- libtool in requirement list for build
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-6
+- use external libtool to avoid rpath usage
+- include more docs
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-5
+- use rm -rf for removal of dirs.
+- fix require lists
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-4
+- fix doxygen buildreq
+- make sure r-path is fine.
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-3
+- disable now ogdi (pending ogdi submission).
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-2
+- more fixups for lib paths
+
+* Fri Feb 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-1
+- first pack for fedora extras
+- disable geotiff (untill license sorted out)
+- enable all options aviable from extras
+- pack perl and python modules
+- kill r-path from libs
+- pack all docs posible
diff --git a/gdal_orig.spec b/gdal_orig.spec
new file mode 100644
index 0000000..6ad88a2
--- /dev/null
+++ b/gdal_orig.spec
@@ -0,0 +1,834 @@
+Name: gdal
+Version: 1.7.1
+Release: 2%{?dist}
+Summary: GIS file format library
+Group: System Environment/Libraries
+License: MIT
+URL: http://www.gdal.org/
+#Source0: http://download.osgeo.org/gdal/gdal-%{version}.tar.gz
+# see PROVENANCE.TXT-fedora for details
+Source0: %{name}-%{version}-fedora.tar.gz
+Source1: http://download.osgeo.org/gdal/gdalautotest-1.7.0.tar.gz
+Patch0: %{name}-libdap.patch
+Patch1: %{name}-mysql.patch
+Patch2: %{name}-bindir.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libtool pkgconfig
+BuildRequires: python-devel numpy xerces-c-devel
+BuildRequires: libpng-devel libungif-devel libjpeg-devel libtiff-devel
+BuildRequires: doxygen tetex-latex ghostscript ruby-devel jpackage-utils
+BuildRequires: jasper-devel cfitsio-devel libdap-devel librx-devel
+BuildRequires: hdf-static hdf-devel
+BuildRequires: unixODBC-devel mysql-devel sqlite-devel postgresql-devel zlib-devel
+BuildRequires: proj-devel geos-devel netcdf-devel hdf5-devel ogdi-devel libgeotiff-devel
+BuildRequires: perl(ExtUtils::MakeMaker)
+
+%if "%{?dist}" != ".el4"
+BuildRequires: ant swig ruby java-devel-gcj
+%endif
+
+# enable/disable grass support, for bootstrapping
+%define grass_support 0
+# enable/disable refman generation
+%define build_refman 1
+
+# we have multilib triage
+%if "%{_lib}" == "lib"
+%define cpuarch 32
+%else
+%define cpuarch 64
+%endif
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+
+%if %{grass_support}
+BuildRequires: grass-devel
+%endif
+
+%description
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package devel
+Summary: Development Libraries for the GDAL file format library
+Group: Development/Libraries
+Requires: pkgconfig
+Requires: libgeotiff-devel
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package static
+Summary: Static Development Libraries for the GDAL file format library
+Group: Development/Libraries
+
+%description static
+The GDAL library provides support to handle multiple GIS file formats.
+
+%package python
+Summary: Python modules for the GDAL file format library
+Group: Development/Libraries
+Requires: numpy
+Requires: %{name} = %{version}-%{release}
+
+%description python
+The GDAL python modules provides support to handle multiple GIS file formats.
+
+%package perl
+Summary: Perl modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description perl
+The GDAL perl modules provides support to handle multiple GIS file formats.
+
+%if "%{?dist}" != ".el4"
+%package ruby
+Summary: Ruby modules for the GDAL file format library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description ruby
+The GDAL ruby modules provides support to handle multiple GIS file formats.
+
+%package java
+Summary: Java modules for the GDAL file format library
+Group: Development/Libraries
+Requires: java
+Requires: jpackage-utils
+Requires: %{name} = %{version}-%{release}
+
+%description java
+The GDAL java modules provides support to handle multiple GIS file formats.
+%endif
+
+%prep
+%setup -q -n %{name}-%{version}-fedora
+%if "%{?dist}" == ".fc10"
+%patch0 -p1 -b .libdap~
+%endif
+%patch1 -p0 -b .mysql~
+%patch2 -p1 -b .bindir~
+
+# unpack test cases olso.
+tar -xzf %{SOURCE1}
+
+# fix russian docs from tarball
+for ru in `find doc/ru/ -type f -name "*.dox"`; do
+iconv -f KOI8-R -t UTF-8 < $ru > $ru.tmp
+mv -f $ru.tmp $ru
+done
+
+set +x
+for f in `find . -type f` ; do
+ if file $f | grep -q ISO-8859 ; then
+ set -x
+ iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
+ mv -f ${f}.tmp $f
+ set +x
+ fi
+ if file $f | grep -q CRLF ; then
+ set -x
+ sed -i -e 's|\r||g' $f
+ set +x
+ fi
+done
+set -x
+
+# remove junks
+find . -name ".cvsignore" -exec rm -rf '{}' \;
+
+# fix some exec bits
+find swig/python/samples -name "*.py" -exec chmod -x '{}' \;
+
+%build
+
+# fix hardcoded issues
+sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in
+sed -i 's|-L\$with_cfitsio -L\$with_cfitsio\/lib -lcfitsio|-lcfitsio|g' configure
+sed -i 's|-I\$with_cfitsio|-I\$with_cfitsio\/include\/cfitsio|g' configure
+sed -i 's|-L\$with_netcdf -L\$with_netcdf\/lib -lnetcdf|-lnetcdf|g' configure
+sed -i 's|-L\$DODS_LIB -ldap++|-ldap++|g' configure
+sed -i 's|-L\$with_ogdi -L\$with_ogdi\/lib -logdi|-logdi|g' configure
+sed -i 's|-L\$with_jpeg -L\$with_jpeg\/lib -ljpeg|-ljpeg|g' configure
+sed -i 's|-L\$with_libtiff\/lib -ltiff|-ltiff|g' configure
+sed -i 's|-L\$with_grass\/lib||g' configure
+sed -i 's|-lgeotiff -L$with_geotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-L\$with_geotiff\/lib -lgeotiff $LIBS|-lgeotiff $LIBS|g' configure
+sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure
+sed -i 's|-logdi31|-logdi|g' configure
+sed -i 's|libproj.so|libproj.so.0|g' ogr/ogrct.cpp
+
+# fix python path for ppc64
+sed -i 's|test \"$ARCH\" = \"x86_64\"|test \"$libdir\" = \"\/usr\/lib64\"|g' configure
+
+# append some path for few libs
+export CPPFLAGS="`pkg-config ogdi --cflags`"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf-3"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netcdf"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/hdf"
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
+export CPPFLAGS="$CPPFLAGS `dap-config --cflags`"
+export CPPFLAGS="$CPPFLAGS -DH5_USE_16_API"
+
+# code may contain sensible buffer overflows triggered by gcc ssp flag (mustfixupstream).
+export CXXFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+export CFLAGS=`echo %{optflags}|sed -e 's/\-Wp\,\-D_FORTIFY_SOURCE\=2 / -fPIC -DPIC /g'`
+
+%configure \
+ --prefix=%{_prefix} \
+ --includedir=%{_includedir}/%{name}/ \
+ --datadir=%{_datadir}/%{name}/ \
+ --with-threads \
+ --with-dods-root=%{_libdir} \
+ --with-ogdi \
+ --with-cfitsio=%{_prefix} \
+ --with-geotiff=external \
+ --with-tiff=external \
+ --with-libtiff=external \
+ --with-libz \
+ --with-netcdf \
+ --with-hdf4 \
+ --with-hdf5 \
+ --with-geos \
+ --with-jasper \
+ --with-png \
+ --with-gif \
+ --with-jpeg \
+ --with-odbc \
+ --with-sqlite \
+ --with-mysql \
+ --with-curl \
+ --with-python \
+ --with-perl \
+%if "%{?dist}" != ".el4"
+ --with-ruby \
+ --with-java \
+%endif
+ --with-xerces \
+ --with-xerces-lib='-lxerces-c' \
+ --with-xerces-inc=%{_includedir} \
+ --without-pcraster \
+ --with-jpeg12=no \
+ --enable-shared \
+%if %{grass_support}
+ --with-libgrass \
+ --with-grass=%{_prefix} \
+%endif
+ --with-gdal-ver=%{version}-fedora
+
+# fixup hardcoded wrong compile flags.
+cp GDALmake.opt GDALmake.opt.orig
+sed -e 's/ cfitsio / /' \
+-e 's/-ldap++/-ldap -ldapclient -ldapserver/' \
+-e 's/-L\$(INST_LIB) -lgdal/-lgdal/' \
+GDALmake.opt.orig > GDALmake.opt
+rm GDALmake.opt.orig
+
+# fix ruby flags
+sed -i -e "s/\$(LD)/g++ -L..\/..\/.libs\/ $RPM_OPT_FLAGS/g" swig/ruby/RubyMakefile.mk
+
+# fix doxygen for multilib docs
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' swig/perl/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/gxf/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/sdts/Doxyfile
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/pcraster/doxygen.cfg
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = ../../doc/gdal_footer.html\n#HTML_FOOTER = |' frmts/iso8211/Doxyfile
+
+# WARNING !!!
+# dont use {?_smp_mflags} it break compile
+make
+
+# make perl modules, disable makefile generate
+pushd swig/perl
+ perl Makefile.PL; make;
+ echo > Makefile.PL;
+popd
+
+%if "%{?dist}" != ".el4"
+# make java modules
+pushd swig/java
+# fix makefile
+sed -i -e 's|include java.opt|\#include java.opt|' GNUmakefile
+sed -i -e 's|-cp|\#-cp|g' GNUmakefile
+sed -i -e 's|\$(LD) -shared \$(LDFLAGS) \$(CONFIG_LIBS)|g++ -shared -lgdal -L..\/..\/.libs|g' GNUmakefile
+# build java module
+make generate
+make build
+popd
+%endif
+
+# remake documentation for multilib issues
+# olso include many pdf documentation
+for docdir in ./ doc doc/ru doc/br ogr ogr/ogrsf_frmts ogr/ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 swig/perl; do
+cp -p doc/gdal_footer.html $docdir/footer_local.html
+pushd $docdir
+if [ ! -f Doxyfile ]; then
+doxygen -g
+fi
+sed -i -e 's|^HTML_FOOTER|HTML_FOOTER = footer_local.html\n#HTML_FOOTER |' Doxyfile
+sed -i -e 's|^GENERATE_LATEX|GENERATE_LATEX = YES\n#GENERATE_LATEX |' Doxyfile
+sed -i -e 's|^USE_PDFLATEX|USE_PDFLATEX = YES\n#USE_PDFLATEX |' Doxyfile
+if [ $docdir == "doc/ru" ]; then
+sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
+fi
+rm -rf latex html
+doxygen
+%if %{build_refman}
+pushd latex
+sed -i -e '/rfoot\[/d' -e '/lfoot\[/d' doxygen.sty
+sed -i -e '/small/d' -e '/large/d' refman.tex
+sed -i -e 's|pdflatex|pdflatex -interaction nonstopmode |g' Makefile
+make refman.pdf || true; popd
+%endif
+rm -rf footer_local.html; popd
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# fix some perl instalation issue
+sed -i 's|>> $(DESTINSTALLARCHLIB)\/perllocal.pod|> \/dev\/null|g' swig/perl/Makefile_*
+# fix include header instalation issue
+cat GNUmakefile | grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_INCLUDE)" | \
+ grep -v "\$(INSTALL_DIR) \$(DESTDIR)\$(INST_DATA)" \
+> GNUmakefile.tmp; mv -f GNUmakefile.tmp GNUmakefile
+
+# fix python installation path
+sed -i 's|setup.py install|setup.py install --root=%{buildroot}|' swig/python/GNUmakefile
+
+make DESTDIR=%{buildroot} \
+ install
+
+make DESTDIR=%{buildroot} \
+ INST_MAN=%{_mandir} \
+ install-man
+
+# move perl modules in the right path
+mkdir -p %{buildroot}%{perl_vendorarch}
+mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}/
+find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
+
+%if "%{?dist}" != ".el4"
+# move ruby modules in the right path
+mv %{buildroot}%{ruby_sitearch}/%{name}/*.* %{buildroot}%{ruby_sitearch}/
+rm -rf %{buildroot}%{ruby_sitearch}/%{name}
+
+# install multilib java modules in the right path
+touch -r NEWS swig/java/gdal.jar
+mkdir -p %{buildroot}%{_javadir}
+cp -p swig/java/gdal.jar \
+ %{buildroot}%{_javadir}/%{name}-%{version}.jar
+%endif
+
+# fix some exec bits
+find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
+find %{buildroot}%{python_sitearch} -name "*.so" -exec chmod 755 '{}' \;
+
+# install and include all docs
+# due TeX-related issues some refman.pdf are not created
+rm -rf docs doc/docs-perl
+
+mkdir -p doc/gdal_frmts; find frmts -name "*.html" -exec install -p -m 644 '{}' doc/gdal_frmts/ \;
+mkdir -p doc/ogrsf_frmts; find ogr -name "*.html" -exec install -p -m 644 '{}' doc/ogrsf_frmts/ \;
+%if %{build_refman}
+mkdir -p docs/docs-%{cpuarch}/pdf
+pushd docs/docs-%{cpuarch}/pdf; mkdir -p br ru en ogr ogrsf_frmts/dgn frmts/gxf frmts/sdts frmts/iso8211 ; popd
+install -p -m 644 doc/latex/refman.pdf docs/docs-%{cpuarch}/pdf/en
+install -p -m 644 doc/br/latex/refman.pdf docs/docs-%{cpuarch}/pdf/br/
+#install -p -m 644 doc/ru/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ru/
+#install -p -m 644 latex/refman.pdf docs/docs-%{cpuarch}/refman.pdf
+#install -p -m 644 ogr/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogr/
+install -p -m 644 ogr/ogrsf_frmts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/
+install -p -m 644 ogr/ogrsf_frmts/dgn/latex/refman.pdf docs/docs-%{cpuarch}/pdf/ogrsf_frmts/dgn/
+%if "%{?dist}" != ".el4"
+# broken on el4
+install -p -m 644 frmts/gxf/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/gxf/
+%endif
+#install -p -m 644 frmts/sdts/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/sdts/
+install -p -m 644 frmts/iso8211/latex/refman.pdf docs/docs-%{cpuarch}/pdf/frmts/iso8211/
+mkdir -p doc/docs-perl/docs-%{cpuarch}/pdf
+install -p -m 644 swig/perl/latex/refman.pdf doc/docs-perl/docs-%{cpuarch}/pdf
+%endif
+pushd docs/docs-%{cpuarch}/; mkdir -p en/html gdal_frmts ogrsf_frmts br ru; popd
+cp -pr html/* docs/docs-%{cpuarch}/
+cp -pr doc/html/* docs/docs-%{cpuarch}/en/html
+cp -pr doc/gdal_frmts/* docs/docs-%{cpuarch}/gdal_frmts
+cp -pr doc/ogrsf_frmts/* docs/docs-%{cpuarch}/ogrsf_frmts
+cp -pr doc/br/html/* docs/docs-%{cpuarch}/br
+cp -pr doc/ru/html/* docs/docs-%{cpuarch}/ru
+cp -pr swig/perl/html/* doc/docs-perl/docs-%{cpuarch}/
+
+# install multilib cpl_config.h bz#430894
+install -p -m 644 port/cpl_config.h %{buildroot}%{_includedir}/%{name}/cpl_config-%{cpuarch}.h
+# create universal multilib cpl_config.h bz#341231
+cat > %{buildroot}%{_includedir}/%{name}/cpl_config.h <<EOF
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "gdal/cpl_config-32.h"
+#else
+#if __WORDSIZE == 64
+#include "gdal/cpl_config-64.h"
+#else
+#error "Unknown word size"
+#endif
+#endif
+EOF
+touch -r NEWS port/cpl_config.h
+
+# install pkgconfig file
+cat > %{name}.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: GDAL
+Description: GIS file format library
+Version: %{version}
+Libs: -L\${libdir} -lgdal
+Cflags: -I\${includedir}/%{name}
+EOF
+
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
+touch -r NEWS %{buildroot}%{_libdir}/pkgconfig/
+
+# multilib gdal-config
+mv %{buildroot}%{_bindir}/%{name}-config %{buildroot}%{_bindir}/%{name}-config-%{cpuarch}
+cat > %{buildroot}%{_bindir}/%{name}-config <<EOF
+#!/bin/bash
+
+ARCH=\$(uname -m)
+case \$ARCH in
+x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 )
+%{name}-config-64 \${*}
+;;
+*)
+%{name}-config-32 \${*}
+;;
+esac
+EOF
+chmod 755 %{buildroot}%{_bindir}/%{name}-config
+touch -r NEWS %{buildroot}%{_bindir}/%{name}-config
+
+# cleanup junks
+rm -rf %{buildroot}%{_includedir}/%{name}/%{name}
+rm -rf %{buildroot}%{_bindir}/gdal_sieve.dox
+rm -rf %{buildroot}%{_bindir}/gdal_fillnodata.dox
+for junk in {*.la,*.bs,.exists,.packlist,.cvsignore} ; do
+find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
+done
+
+%check
+
+pushd gdalautotest-1.7.0
+
+# export test enviroment
+export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
+export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
+
+# remove some testcases for now due to build failure
+rm -rf ogr/ogr_pg.py # no pgsql during test (disabled)
+rm -rf ogr/ogr_mysql.py # no mysql during test (disabled)
+rm -rf ogr/ogr_dods.py # no DODS during test (disabled)
+rm -rf gdrivers/dods.py # no DODS during test (disabled)
+rm -rf osr/osr_esri.py # ESRI datum absent (disabled)
+rm -rf ogr/ogr_sql_test.py # no SQL during tests
+rm -rf gcore/mask.py # crash ugly (mustfix)
+
+# run tests but force than normal exit
+./run_all.py || true
+
+popd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc NEWS PROVENANCE.TXT PROVENANCE.TXT-fedora COMMITERS
+%doc docs/
+%{_bindir}/gdal_contour
+%{_bindir}/gdal_rasterize
+%{_bindir}/gdal_translate
+%{_bindir}/gdaladdo
+%{_bindir}/gdalinfo
+%{_bindir}/gdaldem
+%{_bindir}/gdalbuildvrt
+%{_bindir}/gdaltindex
+%{_bindir}/gdalwarp
+%{_bindir}/gdal_grid
+%{_bindir}/gdalenhance
+%{_bindir}/gdalmanage
+%{_bindir}/gdaltransform
+%{_bindir}/nearblack
+%{_bindir}/ogr*
+%{_bindir}/testepsg
+%{_libdir}/*.so.*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+#%{_mandir}/man1/gdaladdo.1*
+#%{_mandir}/man1/gdalbuildvrt.1*
+#%{_mandir}/man1/gdalinfo.1*
+#%{_mandir}/man1/gdaltindex.1*
+#%{_mandir}/man1/gdaltransform.1*
+#%{_mandir}/man1/gdal2tiles.1*
+#%{_mandir}/man1/nearblack.1*
+#%{_mandir}/man1/gdal_contour.1*
+#%{_mandir}/man1/gdal_rasterize.1*
+#%{_mandir}/man1/gdal_translate.1*
+#%{_mandir}/man1/gdal_utilities.1*
+#%{_mandir}/man1/gdal_grid.1*
+#%{_mandir}/man1/gdal_retile.1*
+#%{_mandir}/man1/ogr*.1*
+
+%files devel
+%defattr(-,root,root,-)
+%doc docs
+%{_bindir}/%{name}-config
+%{_bindir}/%{name}-config-%{cpuarch}
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+#%{_mandir}/man1/%{name}-config*
+
+%files static
+%defattr(-,root,root,-)
+%{_libdir}/*.a
+
+%files python
+%defattr(-,root,root,-)
+%doc swig/python/samples
+%attr(0755,root,root) %{_bindir}/*.py
+%{python_sitearch}/*
+#%{_mandir}/man1/pct2rgb.1*
+#%{_mandir}/man1/rgb2pct.1*
+#%{_mandir}/man1/gdal_merge.1*
+
+%files perl
+%defattr(-,root,root,-)
+%doc doc/docs-perl
+%doc swig/perl/README
+%{perl_vendorarch}/*
+
+%if "%{?dist}" != ".el4"
+%files ruby
+%defattr(-,root,root,-)
+%{ruby_sitearch}/gdal.so
+%{ruby_sitearch}/ogr.so
+%{ruby_sitearch}/osr.so
+%{ruby_sitearch}/gdalconst.so
+
+%files java
+%defattr(-,root,root,-)
+%doc swig/java/apps
+%{_javadir}/%{name}-%{version}.jar
+%endif
+
+%changelog
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-2
+- fix bz#572617
+
+* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 1.7.1-1
+- new stable branch
+- re-enable java ColorTable
+- gdal custom fedora version banner
+- rebuild without grass
+- gdal manual are gone (upstream fault)
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-5
+- reenable grass support
+
+* Fri Feb 5 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.2-4
+- temporarily disable grass support for bootstrapping
+- rebuild for new libxerces-c
+
+* Tue Dec 8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.6.2-3
+- Explicitly BR hdf-static in accordance with the Packaging
+ Guidelines (hdf-devel is still static-only).
+
+* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-2
+- re-enable grass support
+
+* Tue Nov 17 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.2-1
+- Update to 1.6.2
+- Rebuild for netcdf 4.1.0
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-2
+- rebuilt with new openssl
+
+* Thu Jul 30 2009 Dan Horak <dan[at]danny.cz> - 1.6.1-1
+- add patch for incompatibilities caused by libdap 3.9.x (thanks goes to arekm from PLD)
+- update to 1.6.1
+- don't install some refman.pdf, because they don't build
+- don't fail on man pages with suffix other than .gz
+- fix filelist for python subpackage
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 1.6.0-9
+- Rebuild for libdap 3.9.3, bootstrap
+
+* Mon Mar 23 2009 Jesse Keating <jkeating@redhat.com> - 1.6.0-8
+- re-enable grass support
+
+* Sun Mar 22 2009 Lubomir Rintel <lkundrak@v3.sk> - 1.6.0-7
+- Depend specifically on GCJ for Java (Alex Lancaster)
+- Disable grass (Alex Lancaster)
+- Create %%_bindir before copying files there
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 04 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-4
+- rebuild with grass support
+- fix email typo
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-3
+- rebuild against mysql 5.1.30
+
+* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 1.6.0-2
+- email change
+- rebuild without grass
+
+* Fri Dec 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-1
+- final stable release
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.2.rc4
+- enable grass
+
+* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.6.0-0.1.rc4
+- new branch
+- disable grass
+- fix ruby compile
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.3-2
+- Rebuild for Python 2.6
+
+* Fri Oct 24 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.3-1
+- new stable
+- ship static package too
+- fix some doc generation
+- libdap patch for fc10 only
+
+* Tue Sep 30 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-4
+- enable gdal_array for python subpackage
+- require numpy
+
+* Tue Sep 9 2008 Patrice Dumas <pertusus@free.fr> - 1.5.2-3
+- patch for libdap > 0.8.0, from Rob Cermak
+
+* Thu Jun 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.2-1
+- a new bugfix upstream
+- drop gcc43 patch
+- more license cleaned
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-13
+- fix pkgconfig too
+
+* Wed May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-12
+- fix once more gdal-config
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-11
+- fix multilib gdal-config, add wrapper around
+- fix typos in cpl_config.h wrapper
+
+* Tue May 27 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-10
+- fix for multilib packaging bz#341231
+- huge spec cleanup
+- enable russian and brazil docs
+- enable and triage more docs
+
+* Sun May 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-9
+- enable ruby and java packages
+- fix spurious sed problem
+- spec file cosmetics
+
+* Thu May 23 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-8
+- fix sincos on all arch
+
+* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-7
+- fix x86_64 problem
+
+* Wed Apr 16 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-6
+- disable fortify source, it crash gdal for now.
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-5
+- really eanble against grass63
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-4
+- disable grass to bootstrap once again
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-3
+- rebuild to really pick up grass63 in koji
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-2
+- enable build against newer grass
+- enable build of reference manuals
+
+* Tue Mar 25 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.1-1
+- new bugfix release from upstream
+- drop large parts from gcc43 patch, some are upstream now
+- fix building with perl-5.10 swig binding issue
+
+* Wed Feb 29 2008 Orion Poplawski <orion@cora.nwra.com> - 1.5.0-4
+- Rebuild for hdf5-1.8.0, use compatability API define
+
+* Tue Feb 12 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-3
+- install cpl_config.h manually for bz#430894
+- fix gcc4.3 build
+
+* Mon Jan 14 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-2
+- fix perl dependency issue.
+
+* Mon Jan 07 2008 Balint Cristian <rezso@rdsor.ro> - 1.5.0-1
+- update to new 1.5.0 upstream stable
+- dropped build patch since HFA/ILI/DGN mandatories are now present
+- dropped swig patch, its upstream now
+- enable HFA it holds Intergraph (TM) explicit public license
+- enable DGN it holds Avenza Systems (TM) explicit public license
+- enable ILI headers since now contain proper public license message
+- keep and polish up rest of doubted license
+- further fixed hdf not supporting netcdf for for bz#189337
+- kill the annoying -Lexternal/lib for -lgeotiff
+- fix configure to not export LDFLAGS anyomre, upstream
+ should really switch to real GNU automagic stuff
+- pymod samples and rfc docs now gone
+- hardcode external libtool to be used, LIBTOOL env not propagating anymore
+- use DESTDIR instead
+
+* Thu Jan 03 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 1.4.2-7
+- Re-enable grass support now that gdal has been bootstrapped
+
+* Wed Jan 02 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.4.2-6
+- Bootstrap 1st: disabling grass support
+- Workaround for hdf not supporting netcdf (bug 189337 c8)
+- Disabling documents creation for now.
+
+* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-5
+- Rebuild for deps
+- Disable grass to avoid circular deps
+
+* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.4.2-3
+- Rebuild for selinux ppc32 issue.
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-2
+- disable one more HFA test, HFA is unaviable due to license
+
+* Wed Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.2-1
+- new upstream one
+- catch some more docs
+- fix ogr python module runtime
+- include testcases and run tests
+- enable geotiff external library we have new libgeotiff now
+- EPSG geodetic database is licensed OK since v6.13 so re-enable
+- enable it against grass by default, implement optional switches
+
+* Tue Jun 05 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-4
+- re-build.
+
+* Sat May 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-3
+- re-build against grass.
+
+* Fri May 11 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-2
+- fix python lookup paths for ppc64.
+
+* Wed May 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.1-1
+- new upstream release.
+- disable temporary grass-devel requirement untill find a
+ resonable solution for gdal-grass egg-chicken dep problem.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-22
+- and olso dont attempt pack missing docs.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-21
+- exclude some docs, doxygen segfault with those now upstream.
+
+* Fri Apr 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-20
+- rebuild against latest fedora upstream tree.
+
+* Mon Apr 02 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-19
+- own gdal includedir
+- fix one more spurious lib path
+
+* Wed Mar 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-18
+- remove system lib path from gdal-config --libs, its implicit
+
+* Tue Mar 20 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-17
+- enable build against grass
+- fix incorrect use of 32/64 library paths lookups
+
+* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-16
+- fix gdal flag from pkgconfig file
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-15
+- require pkgconfig
+- generate pkgconfig from spec instead
+
+* Thu Mar 15 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-14
+- require perl(ExtUtils::MakeMaker) instead ?dist checking
+- add pkgconfig file
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-13
+- fix typo in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-12
+- add missing dot from dist string in specfile
+
+* Wed Mar 14 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-11
+- fix fc6 fc5 builds
+
+* Thu Mar 1 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-10
+- fix mock build
+- require perl-devel
+
+* Tue Feb 27 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-9
+- repack tarball for fedora, explain changes in PROVENANCE-fedora,
+ license should be clean now according to PROVENANCE-* files
+- require ogdi since is aviable now
+- drop nogeotiff patch, in -fedora tarball geotiff is removed
+- man page triage over subpackages
+- exclude python byte compiled objects
+- fix some source C file exec bits
+
+* Sat Feb 24 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-8
+- fix more things in spec
+- include more docs
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-7
+- libtool in requirement list for build
+
+* Wed Feb 21 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-6
+- use external libtool to avoid rpath usage
+- include more docs
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-5
+- use rm -rf for removal of dirs.
+- fix require lists
+
+* Mon Feb 12 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-4
+- fix doxygen buildreq
+- make sure r-path is fine.
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-3
+- disable now ogdi (pending ogdi submission).
+
+* Sat Feb 10 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-2
+- more fixups for lib paths
+
+* Fri Feb 09 2007 Balint Cristian <cbalint@redhat.com> 1.4.0-1
+- first pack for fedora extras
+- disable geotiff (untill license sorted out)
+- enable all options aviable from extras
+- pack perl and python modules
+- kill r-path from libs
+- pack all docs posible
diff --git a/libgeotiff.spec b/libgeotiff.spec
new file mode 100644
index 0000000..d0a973d
--- /dev/null
+++ b/libgeotiff.spec
@@ -0,0 +1,212 @@
+Name: libgeotiff
+Version: 1.3.0
+Release: 4%{?dist}
+Summary: GeoTIFF format library
+Group: System Environment/Libraries
+License: MIT
+# The license for the EPSG-files changed, but was forgotten to change in the LICENSE file.
+# See http://www.epsg-registry.org/help/xml/Terms_Of_Use.html
+URL: http://trac.osgeo.org/geotiff/
+Source0: http://download.osgeo.org/geotiff/%{name}/%{name}-%{version}.tar.gz
+Source1: %{name}-docs.tar.gz
+# The files for doxygen were pulled from upstream's vcs, since they were not included.
+# Use the following commands to generate the tarball:
+# svn export -r 1731 https://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/Doxyfile
+# svn export -r 1731 https://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/docs
+# tar cvfz libgeotiff-docs.tar.gz docs Doxyfile
+BuildRequires: doxygen graphviz
+BuildRequires: chrpath
+BuildRequires: libtiff-devel libjpeg-devel proj-devel zlib-devel
+
+%description
+GeoTIFF represents an effort by over 160 different remote sensing,
+GIS, cartographic, and surveying related companies and organizations
+to establish a TIFF based interchange format for georeferenced
+raster imagery.
+
+%package devel
+Summary: Development Libraries for the GeoTIFF file format library
+Group: Development/Libraries
+Requires: pkgconfig libtiff-devel
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The GeoTIFF library provides support for development of geotiff image format.
+
+%prep
+%setup -q
+
+# Extract missing files for doxygen
+tar xvfz %{SOURCE1}
+
+# Change encoding for some csv-files
+for f in `find csv -type f | grep -q ISO-8859-1` ; do
+ iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp
+ touch -r $f $f.tmp
+ mv -f ${f}.tmp $f
+done
+
+# Correct permissions
+chmod 644 csv/ellipsoid.csv
+
+# Remove custom compiler option
+sed -i 's/ -O3 / /' configure
+
+%build
+
+%configure \
+ --prefix=%{_prefix} \
+ --includedir=%{_includedir}/%{name}/ \
+ --with-proj=%{_prefix} \
+ --with-jpeg \
+ --with-zip \
+ --disable-static \
+ --enable-doxygen-man=NO
+
+## WARNING
+## disable %{?_smp_mflags}
+## it breaks compile
+
+# Can't prove that true.
+make %{?_smp_mflags}
+make docs
+
+%install
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+# Install pkgconfig file
+cat > %{name}.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}/%{name}
+
+Name: %{name}
+Description: GeoTIFF file format library
+Version: %{version}
+Libs: -L\${libdir} -lgeotiff
+Cflags: -I\${includedir}
+EOF
+
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
+
+# Remove unnecessary empty file -- already removed from Makefile and physically for next release
+rm -f %{buildroot}%{_datadir}/epsg_csv/codes.csv
+
+# Remove libtool archive
+rm -f %{buildroot}/%{_libdir}/%{name}.la
+
+# Remove rpath from files
+chrpath --delete \
+ %{buildroot}%{_bindir}/csv2html \
+ %{buildroot}%{_bindir}/listgeo \
+ %{buildroot}%{_bindir}/applygeo \
+ %{buildroot}%{_bindir}/makegeo \
+ %{buildroot}%{_bindir}/geotifcp
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog LICENSE README
+%doc docs/*.txt docs/*.html
+%{_bindir}/geotifcp
+%{_bindir}/applygeo
+%{_bindir}/csv2html
+%{_bindir}/listgeo
+%{_bindir}/makegeo
+%{_libdir}/%{name}.so.*
+%{_datadir}/epsg_csv
+
+%files devel
+%defattr(-,root,root,-)
+%doc docs/output/html
+%{_includedir}/%{name}
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog
+* Sat Aug 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.3.0-4
+- Removed custom compiler option
+
+* Fri Aug 13 2010 Volker Fröhlich <volker27@gmx.at> - 1.3.0-3
+- Removed -r option from rm, where not needed
+- Turned off creation of manpages for API, since HTML is produced
+- Dropped obsolete sed manipulation for Makefile.in and configure
+
+* Wed Aug 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.3.0-2
+- Changed license back to MIT
+- Altered the commands to change permissions and encoding for csv-files
+- Unified the use of RPM_BUILD_ROOT and buildroot
+- Removed name parameters from setup-macro
+- Corrected SVN revision number for docs tarball
+- Delete the libtool archive and disable creation of static library
+- Added -rf to the csv-file remove command
+
+* Thu Aug 05 2010 Volker Fröhlich <volker27@gmx.at> - 1.3.0-1
+- Updated for version 1.3.0
+- Dropped obsolete patches
+- Added docs tarball and create documentation with make
+- Removed unnecessary carriage return correction
+- Dropped obsolete rm command for .cvsignore
+- Delete unnecessary empty file codes.csv (Confirmed by Frank Warmerdam)
+- Re-enabled smp_flags
+- Removed configure parameter with-tiff, since it's default
+- Simplified make install call and dropped BuildRoot definition
+- Shifted permission handling away from files-section
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Apr 22 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 1.2.5-4
+- Fix FTBFS: use gcc -shared instead of ld -shared to compile with -fstack-protector
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Sep 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.5-2
+- disable smp build for koji
+
+* Mon Sep 15 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.5-1
+- new bugfix release
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.4-3
+- Autorebuild for GCC 4.3
+
+* Sun Jan 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.4-2
+- Fix multilib issue by removal of datetime in doxygen footers
+
+* Sun Jan 06 2008 Balint Cristian <rezso@rdsor.ro> - 1.2.4-1
+- Rebuild for final release.
+
+* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.2.4-0.5.rc1
+- Rebuild for selinux ppc32 issue.
+
+* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 1.2.4-0.4.rc1
+- Rebuild for RH #249435
+
+* Tue Jul 24 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.3.rc1
+- codes are under MIT
+- pkg-config cflags return fix
+- epsg_csv ownership
+
+* Mon Jul 23 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.2.rc1
+- fix debuginfo usability
+- move header files to the subdirectory
+- specify the full URL of the source
+- leave *.inc headers included
+- libgeotiff-devel should require libtiff-devel
+- works to keep timestamps on the header files installed
+- docs proper triage
+
+* Mon Jul 23 2007 Balint Cristian <cbalint@redhat.com> 1.2.4-0.1.rc1
+- initial pack for fedora
+- add pkgconfig file
+- add soname versioning patch
diff --git a/libspatialite.spec b/libspatialite.spec
new file mode 100644
index 0000000..7af3b2a
--- /dev/null
+++ b/libspatialite.spec
@@ -0,0 +1,99 @@
+Name: libspatialite
+Version: 2.4.0
+Release: 0.6.RC4%{?dist}
+Summary: Enables SQLite to support spatial data
+Group: System Environment/Libraries
+License: MPLv1.1
+URL: http://www.gaia-gis.it/spatialite
+Source0: http://www.gaia-gis.it/spatialite-2.4.0-4/%{name}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: proj-devel geos-devel sqlite-devel
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=663938
+ExcludeArch: ppc64
+
+%description
+SpatiaLite extension enables SQLite to support spatial data, in
+a way conformant to OpenGIS specifications. It implements
+spatial indices, spatial functions and supports metadata.
+
+%package devel
+Summary: Development Libraries for the SpatiaLite extension
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+# Geocallbacks work with SQLite 3.7.3, available in F15, but not in RHEL yet.
+%if (0%{?fedora} < 15 || 0%{?rhel})
+%configure \
+ --disable-static \
+ --disable-geocallbacks
+%else
+%configure --disable-static
+%endif
+
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+# Delete undesired libtool archives
+rm -f %{buildroot}/%{_libdir}/%{name}.la
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS
+%{_libdir}/%{name}.so.*
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/spatialite.h
+%{_includedir}/spatialite/*
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/spatialite.pc
+
+
+%changelog
+* Wed Dec 8 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.6.RC4
+- Exclude ppc64
+
+* Tue Dec 7 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.5.RC4
+- Corrected wrong Fedora version number in if-statement
+
+* Sun Dec 5 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.4.RC4
+- Refined configure condition to support RHEL
+
+* Fri Dec 3 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.3.RC4
+- Added buildroot
+- Added doc files
+
+* Wed Dec 1 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.2.RC4
+- Added description of devel package
+- Switched to disable-static flag
+
+* Sun Nov 28 2010 Volker Fröhlich <volker27@gmx.at> 2.4.0-0.1.RC4
+- Initial packaging for Fedora
diff --git a/numpy.spec b/numpy.spec
new file mode 100644
index 0000000..019477b
--- /dev/null
+++ b/numpy.spec
@@ -0,0 +1,422 @@
+%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%global with_python3 1
+%else
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%endif
+
+#uncomment next line for a release candidate or a beta
+%global relc b1
+
+Name: numpy
+Version: 1.6.0
+Release: 0.1.b1%{?dist}
+Epoch: 1
+Summary: A fast multidimensional array facility for Python
+
+Group: Development/Languages
+License: BSD
+URL: http://numeric.scipy.org/
+Source0: http://downloads.sourceforge.net/numpy/%{name}-%{version}%{?relc}.tar.gz
+# Patch https://github.com/rgommers/numpy/commit/a9fb1be2 to fix import errors
+Patch0: numpy-1.6.0b1-import.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: python2-devel lapack-devel python-setuptools gcc-gfortran atlas-devel python-nose
+Requires: python-nose
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+#BuildRequires: python3-nose
+%endif
+
+%description
+NumPy is a general-purpose array-processing package designed to
+efficiently manipulate large multi-dimensional arrays of arbitrary
+records without sacrificing too much speed for small multi-dimensional
+arrays. NumPy is built on the Numeric code base and adds features
+introduced by numarray as well as an extended C-API and the ability to
+create arrays of arbitrary type.
+
+There are also basic facilities for discrete fourier transform,
+basic linear algebra and random number generation. Also included in
+this package is a version of f2py that works properly with NumPy.
+
+%package f2py
+Summary: f2py for numpy
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: python-devel
+Provides: f2py
+Obsoletes: f2py <= 2.45.241_1927
+
+%description f2py
+This package includes a version of f2py that works properly with NumPy.
+
+%if 0%{?with_python3}
+%package -n python3-numpy
+Summary: A fast multidimensional array facility for Python
+
+Group: Development/Languages
+License: BSD
+%description -n python3-numpy
+NumPy is a general-purpose array-processing package designed to
+efficiently manipulate large multi-dimensional arrays of arbitrary
+records without sacrificing too much speed for small multi-dimensional
+arrays. NumPy is built on the Numeric code base and adds features
+introduced by numarray as well as an extended C-API and the ability to
+create arrays of arbitrary type.
+
+There are also basic facilities for discrete fourier transform,
+basic linear algebra and random number generation. Also included in
+this package is a version of f2py that works properly with NumPy.
+
+%package -n python3-numpy-f2py
+Summary: f2py for numpy
+Group: Development/Libraries
+Requires: python3-numpy = %{epoch}:%{version}-%{release}
+Requires: python3-devel
+Provides: python3-f2py
+Obsoletes: python3-f2py <= 2.45.241_1927
+
+%description -n python3-numpy-f2py
+This package includes a version of f2py that works properly with NumPy.
+%endif # with_python3
+
+%prep
+%setup -q -n %{name}-%{version}%{?relc}
+%patch0 -p1 -b .import
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%if 0%{?with_python3}
+pushd %{py3dir}
+env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
+ LAPACK=%{_libdir} CFLAGS="%{optflags}" \
+ %{__python3} setup.py build
+popd
+%endif # with _python3
+
+env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
+ LAPACK=%{_libdir} CFLAGS="%{optflags}" \
+ %{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+# first install python3 so the binaries are overwritten by the python2 ones
+%if 0%{?with_python3}
+pushd %{py3dir}
+#%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+# skip-build currently broken, this works around it for now
+env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
+ LAPACK=%{_libdir} CFLAGS="%{optflags}" \
+ %{__python3} setup.py install --root %{buildroot}
+rm -rf docs-f2py ; mv %{buildroot}%{python3_sitearch}/%{name}/f2py/docs docs-f2py
+mv -f %{buildroot}%{python3_sitearch}/%{name}/f2py/f2py.1 f2py.1
+rm -rf doc ; mv -f %{buildroot}%{python3_sitearch}/%{name}/doc .
+install -D -p -m 0644 f2py.1 %{buildroot}%{_mandir}/man1/f2py.1
+pushd %{buildroot}%{_bindir} &> /dev/null
+popd &> /dev/null
+
+# Remove doc files. They should in in %doc
+rm -f %{buildroot}%{python3_sitearch}/%{name}/COMPATIBILITY
+rm -f %{buildroot}%{python3_sitearch}/%{name}/DEV_README.txt
+rm -f %{buildroot}%{python3_sitearch}/%{name}/INSTALL.txt
+rm -f %{buildroot}%{python3_sitearch}/%{name}/LICENSE.txt
+rm -f %{buildroot}%{python3_sitearch}/%{name}/README.txt
+rm -f %{buildroot}%{python3_sitearch}/%{name}/THANKS.txt
+rm -f %{buildroot}%{python3_sitearch}/%{name}/site.cfg.example
+
+popd
+%endif # with_python3
+
+#%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+# skip-build currently broken, this works around it for now
+env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
+ LAPACK=%{_libdir} CFLAGS="%{optflags}" \
+ %{__python} setup.py install --root %{buildroot}
+rm -rf docs-f2py ; mv %{buildroot}%{python_sitearch}/%{name}/f2py/docs docs-f2py
+mv -f %{buildroot}%{python_sitearch}/%{name}/f2py/f2py.1 f2py.1
+rm -rf doc ; mv -f %{buildroot}%{python_sitearch}/%{name}/doc .
+install -D -p -m 0644 f2py.1 %{buildroot}%{_mandir}/man1/f2py.1
+pushd %{buildroot}%{_bindir} &> /dev/null
+# symlink for anyone who was using f2py.numpy
+ln -s f2py f2py.numpy
+popd &> /dev/null
+
+#symlink for includes, BZ 185079
+mkdir -p %{buildroot}/usr/include
+ln -s %{python_sitearch}/%{name}/core/include/numpy/ %{buildroot}/usr/include/numpy
+
+# Remove doc files. They should in in %doc
+rm -f %{buildroot}%{python_sitearch}/%{name}/COMPATIBILITY
+rm -f %{buildroot}%{python_sitearch}/%{name}/DEV_README.txt
+rm -f %{buildroot}%{python_sitearch}/%{name}/INSTALL.txt
+rm -f %{buildroot}%{python_sitearch}/%{name}/LICENSE.txt
+rm -f %{buildroot}%{python_sitearch}/%{name}/README.txt
+rm -f %{buildroot}%{python_sitearch}/%{name}/THANKS.txt
+rm -f %{buildroot}%{python_sitearch}/%{name}/site.cfg.example
+
+# Incorrectly installs some docs here
+rm -r %{buildroot}%{python_sitearch}/doc
+
+%check
+# doc/io.py conflicts with the regular io module causing
+# AttributeError: 'module' object has no attribute 'BufferedIOBase' in tests
+rm doc/io.py*
+
+pushd doc &> /dev/null
+PYTHONPATH="%{buildroot}%{python_sitearch}" %{__python} -c "import pkg_resources, numpy ; numpy.test()" \
+%ifarch s390 s390x
+|| :
+%endif
+# don't remove this comment
+popd &> /dev/null
+
+%if 0%{?with_python3}
+pushd doc &> /dev/null
+# there is no python3-nose yet
+#PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} -c "import pkg_resources, numpy ; numpy.test()" \
+%ifarch s390 s390x
+#|| :
+%endif
+# don't remove this comment
+popd &> /dev/null
+
+%endif # with_python3
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc docs-f2py doc/* LICENSE.txt README.txt THANKS.txt DEV_README.txt COMPATIBILITY site.cfg.example
+%dir %{python_sitearch}/%{name}
+%{python_sitearch}/%{name}/*.py*
+%{python_sitearch}/%{name}/core
+%{python_sitearch}/%{name}/distutils
+%{python_sitearch}/%{name}/fft
+%{python_sitearch}/%{name}/lib
+%{python_sitearch}/%{name}/linalg
+%{python_sitearch}/%{name}/ma
+%{python_sitearch}/%{name}/numarray
+%{python_sitearch}/%{name}/oldnumeric
+%{python_sitearch}/%{name}/random
+%{python_sitearch}/%{name}/testing
+%{python_sitearch}/%{name}/tests
+%{python_sitearch}/%{name}/compat
+%{python_sitearch}/%{name}/matrixlib
+%{python_sitearch}/%{name}/polynomial
+%{python_sitearch}/%{name}-*.egg-info
+%{_includedir}/numpy
+
+%files f2py
+%defattr(-,root,root,-)
+%{_mandir}/man*/*
+%{_bindir}/f2py
+%{_bindir}/f2py.numpy
+%{python_sitearch}/%{name}/f2py
+
+%if 0%{?with_python3}
+%files -n python3-numpy
+%defattr(-,root,root,-)
+%doc docs-f2py doc/* LICENSE.txt README.txt THANKS.txt DEV_README.txt COMPATIBILITY site.cfg.example
+%{python3_sitearch}/%{name}/__pycache__/*
+%dir %{python3_sitearch}/%{name}
+%{python3_sitearch}/%{name}/*.py*
+%{python3_sitearch}/%{name}/core
+%{python3_sitearch}/%{name}/distutils
+%{python3_sitearch}/%{name}/fft
+%{python3_sitearch}/%{name}/lib
+%{python3_sitearch}/%{name}/linalg
+%{python3_sitearch}/%{name}/ma
+%{python3_sitearch}/%{name}/numarray
+%{python3_sitearch}/%{name}/oldnumeric
+%{python3_sitearch}/%{name}/random
+%{python3_sitearch}/%{name}/testing
+%{python3_sitearch}/%{name}/tests
+%{python3_sitearch}/%{name}/compat
+%{python3_sitearch}/%{name}/matrixlib
+%{python3_sitearch}/%{name}/polynomial
+%{python3_sitearch}/%{name}-*.egg-info
+#%{_includedir}/numpy
+
+%files -n python3-numpy-f2py
+%defattr(-,root,root,-)
+#%{_mandir}/man*/*
+%{_bindir}/f2py3
+%{python3_sitearch}/%{name}/f2py
+%endif # with_python3
+
+
+%changelog
+* Thu Mar 31 2011 Orion Poplawski <orion@cora.nwra.com> - 1:1.6.0-0.1.b1
+- Update to 1.6.0b1
+- Build python3 module with python3
+- Add patch from upstream to fix build time import error
+
+* Wed Mar 30 2011 Orion Poplawski <orion@cora.nwra.com> - 1:1.5.1-1
+- Update to 1.5.1 final
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5.1-0.4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Jan 13 2011 Dan Horák <dan[at]danny.cz> - 1:1.5.1-0.3
+- fix the AttributeError during tests
+- fix build on s390(x)
+
+* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.5.1-0.2
+- rebuild for newer python3
+
+* Wed Oct 27 2010 Thomas Spura <tomspur@fedoraproject.org> - 1:1.5.1-0.1
+- update to 1.5.1rc1
+- add python3 subpackage
+- some spec-cleanups
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-6
+- actually add the patch this time
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-5
+- fix segfault within %check on 2.7 (patch 2)
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sun Jul 18 2010 Dan Horák <dan[at]danny.cz> 1.4.1-3
+- ignore the "Ticket #1299 second test" failure on s390(x)
+
+* Thu Jun 24 2010 Jef Spaleta <jspaleta@fedoraprject.org> 1.4.1-2
+- source commit fix
+
+* Thu Jun 24 2010 Jef Spaleta <jspaleta@fedoraprject.org> 1.4.1-1
+- New upstream release. Include backported doublefree patch
+
+* Mon Apr 26 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-8
+- Moved distutils back to the main package, BZ 572820.
+
+* Thu Apr 08 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-7
+- Reverted to 1.3.0 after upstream pulled 1.4.0, BZ 579065.
+
+* Tue Mar 02 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-5
+- Linking /usr/include/numpy to .h files, BZ 185079.
+
+* Tue Feb 16 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-4
+- Re-enabling atlas BR, dropping lapack Requires.
+
+* Wed Feb 10 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-3
+- Since the previous didn't work, Requiring lapack.
+
+* Tue Feb 09 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-2
+- Temporarily dropping atlas BR to work around 562577.
+
+* Fri Jan 22 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-1
+- 1.4.0.
+- Dropped ARM patch, ARM support added upstream.
+
+* Tue Nov 17 2009 Jitesh Shah <jiteshs@marvell.com> - 1.3.0-6.fa1
+- Add ARM support
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Jun 11 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-5
+- Fixed atlas BR, BZ 505376.
+
+* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-4
+- EVR bump for pygame chainbuild.
+
+* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-3
+- Moved linalg, fft back to main package.
+
+* Tue Apr 14 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-2
+- Split out f2py into subpackage, thanks Peter Robinson pbrobinson@gmail.com.
+
+* Tue Apr 07 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-1
+- Update to latest upstream.
+- Fixed Source0 URL.
+
+* Thu Apr 02 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-0.rc1
+- Update to latest upstream.
+
+* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 1.2.1-3
+- Require python-devel, BZ 488464.
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Dec 19 2008 Jon Ciesla <limb@jcomserv.net> 1.2.1-1
+- Update to 1.2.1.
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-2
+- Rebuild for Python 2.6
+
+* Tue Oct 07 2008 Jon Ciesla <limb@jcomserv.net> 1.2.0-1
+- New upstream release, added python-nose BR. BZ 465999.
+- Using atlas blas, not blas-devel. BZ 461472.
+
+* Wed Aug 06 2008 Jon Ciesla <limb@jcomserv.net> 1.1.1-1
+- New upstream release
+
+* Thu May 29 2008 Jarod Wilson <jwilson@redhat.com> 1.1.0-1
+- New upstream release
+
+* Tue May 06 2008 Jarod Wilson <jwilson@redhat.com> 1.0.4-1
+- New upstream release
+
+* Mon Feb 11 2008 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-2
+- Add python egg to %%files on f9+
+
+* Wed Aug 22 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-1
+- New upstream release
+
+* Wed Jun 06 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3-1
+- New upstream release
+
+* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-2
+- Drop BR: atlas-devel, since it just provides binary-compat
+ blas and lapack libs. Atlas can still be optionally used
+ at runtime. (Note: this is all per the atlas maintainer).
+
+* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-1
+- New upstream release
+
+* Tue Apr 17 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-4
+- Update gfortran patch to recognize latest gfortran f95 support
+- Resolves rhbz#236444
+
+* Fri Feb 23 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-3
+- Fix up cpuinfo bug (#229753). Upstream bug/change:
+ http://projects.scipy.org/scipy/scipy/ticket/349
+
+* Thu Jan 04 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-2
+- Per discussion w/Jose Matos, Obsolete/Provide f2py, as the
+ stand-alone one is no longer supported/maintained upstream
+
+* Wed Dec 13 2006 Jarod Wilson <jwilson@redhat.com> 1.0.1-1
+- New upstream release
+
+* Tue Dec 12 2006 Jarod Wilson <jwilson@redhat.com> 1.0-2
+- Rebuild for python 2.5
+
+* Wed Oct 25 2006 Jarod Wilson <jwilson@redhat.com> 1.0-1
+- New upstream release
+
+* Tue Sep 06 2006 Jarod Wilson <jwilson@redhat.com> 0.9.8-1
+- New upstream release
+
+* Wed Apr 26 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.6-1
+- Upstream update
+
+* Thu Feb 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.5-1
+- Upstream update
+
+* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-2
+- Rebuild for Fedora Extras 5
+
+* Thu Feb 2 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-1
+- Initial RPM release
+- Added gfortran patch from Neal Becker
diff --git a/python-shapely.spec b/python-shapely.spec
new file mode 100644
index 0000000..89df9a2
--- /dev/null
+++ b/python-shapely.spec
@@ -0,0 +1,82 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+# Can be removed after EOL of F12
+
+Name: python-shapely
+Version: 1.2.8
+Release: 1%{?dist}
+Summary: Geometric objects, predicates, and operations
+
+Group: Development/Libraries
+License: BSD
+URL: http://trac.gispython.org/lab/wiki/Shapely
+Source0: http://gispython.org/dist/Shapely-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-devel
+BuildRequires: python-setuptools-devel
+
+#Tests use numpy, but tests are broken for the time being
+#BuildRequires: numpy
+
+Requires: geos
+
+%description
+Shapely is a package for creation, manipulation, and analysis
+of planar geometry objects – designed especially for developers
+of cutting edge geographic information systems. In a nutshell:
+Shapely lets you do PostGIS-ish stuff outside the context of a
+database using idiomatic Python.
+
+
+%prep
+%setup -q -n Shapely-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%check
+# Tests fail
+# Sean Gillies, one of the authors, said, it was safe to ship either way
+# http://trac.gispython.org/lab/ticket/244
+#%{__python} setup.py test
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES.txt CREDITS.txt README.txt LICENSE.txt
+%doc PKG-INFO examples docs
+%{python_sitelib}/shapely
+%{python_sitelib}/Shapely-%{version}-py*.egg-info
+# These two scripts are also in the examples directory, have no shebang
+# and seem to serve no purpose otherwise.
+%exclude %{_bindir}/intersect.py
+%exclude %{_bindir}/dissolve.py
+
+
+%changelog
+* Sat Feb 25 2011 Volker Fröhlich <volker27@gmx.at> - 1.2.8-1
+- Updated for 1.2.8
+- Disable tests
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Nov 27 2010 Volker Fröhlich <volker27@gmx.at> - 1.2.7-2
+- Explained excluded files; added check section
+
+* Wed Nov 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.2.7-1
+- Initial package for Fedora
diff --git a/qgis-1.6.0.spec b/qgis-1.6.0.spec
new file mode 100644
index 0000000..9b82b51
--- /dev/null
+++ b/qgis-1.6.0.spec
@@ -0,0 +1,492 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: qgis
+Version: 1.6.0
+Release: 1%{?dist}
+Summary: A user friendly Open Source Geographic Information System
+
+Group: Applications/Engineering
+License: GPLv2+ with exceptions
+URL: http://www.qgis.org/
+# The source for this package was pulled from upstream's vcs. Use the
+# following commands to generate the tarball:
+# svn export -r head https://svn.osgeo.org/qgis/trunk/qgis qgis-1.6.0
+# tar czvf qgis-1.6.0.tar.gz qgis-1.6.0
+#Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
+Source0: %{name}_%{version}.tar.gz
+Source1: %{name}.desktop
+
+# Fix detection problem for GRASS libraries
+# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
+Patch0: qgis-1.5.0-grass.patch
+#Patch1: qgis-1.5.0-qwt.patch
+
+BuildRequires: cmake
+BuildRequires: flex bison
+
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: gsl-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: sqlite-devel
+BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: qt-devel
+BuildRequires: qwt-devel
+BuildRequires: PyQwt-devel
+BuildRequires: sip-devel > 4.7
+BuildRequires: python-devel
+BuildRequires: PyQt4-devel
+BuildRequires: qt4-webkit-devel
+BuildRequires: fcgi-devel
+# Auch als Req.?
+
+# grass package contains definitions needed for configure script
+BuildRequires: grass, grass-devel
+
+Requires: gpsbabel
+
+# Obsoletes can be dropped after F15's EOL
+Obsoletes: qgis-theme-classic < 1.1
+Obsoletes: qgis-theme-gis < 1.1
+Obsoletes: qgis-theme-nkids < 1.1
+
+%description
+Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
+System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
+QGIS supports vector, raster, and database formats. QGIS lets you browse
+and create map data on your computer. It supports many common spatial data
+formats (e.g. ESRI ShapeFile, geotiff). QGIS supports plugins to do things
+like display tracks from your GPS.
+
+%package devel
+Summary: Development Libraries for the Quantum GIS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for Quantum GIS including the C header files.
+
+%package grass
+Summary: GRASS Support Libraries for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: grass
+
+%description grass
+GRASS plugin for Quantum GIS required to interface with the GRASS system.
+
+%package python
+Summary: Python integration and plugins for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: gdal-python
+Requires: PyQt4
+%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
+
+%description python
+Python integration and plugins for QGIS.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .grass
+
+# Encode man-file to utf-8
+iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.conv qgis_help.1
+
+# Remove obsolete translations
+#/usr/bin/lupdate-qt4 -noobsolete -ts i18n/qgis_*.ts
+
+%build
+
+# Detection doesn't work on it's own
+GRASS_PREFIX=%{_libdir}
+
+%cmake \
+ -D QGIS_LIB_SUBDIR=%{_lib} \
+ -D QGIS_MANUAL_SUBDIR=/share/man \
+ -D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
+ -D QGIS_CGIBIN_SUBDIR=%{_var}/www/cgi-bin \
+ -D WITH_BINDINGS:BOOL=TRUE \
+ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
+ -D GRASS_PREFIX=$GRASS_PREFIX \
+ -D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
+ -D GDAL_LIBRARY=%{_libdir}/libgdal.so \
+ -D CMAKE_BUILD_TYPE=Debug \
+ .
+
+# Parallel make leads to race conditions with PYQT4_WRAP_UI
+make %{?_smp_mflags}
+# Vorsicht -- Fehler noch nicht behoben!
+#make %{?_smp_mflags} CFLAGS=-DQGISDEBUG=1 VERBOSE=1
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%find_lang %{name} --with-qt
+
+# Remove rpath from files
+chrpath --delete \
+ %{buildroot}%{python_sitearch}/%{name}/*.so \
+ %{buildroot}%{_bindir}/%{name} \
+ %{buildroot}%{_bindir}/%{name}_help
+
+# Add executable perms to python libs so they get stripped
+chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
+
+# Remove files packaged by doc or undesired
+rm -f %{buildroot}%{_datadir}/%{name}/doc/BUGS \
+ %{buildroot}%{_datadir}/%{name}/doc/ChangeLog \
+ %{buildroot}%{_datadir}/%{name}/doc/CODING \
+ %{buildroot}%{_datadir}/%{name}/doc/COPYING \
+ %{buildroot}%{_datadir}/%{name}/doc/INSTALL \
+ %{buildroot}%{_datadir}/%{name}/doc/PROVENANCE \
+ %{buildroot}%{_datadir}/%{name}/doc/README
+
+# Install desktop file
+install -pd %{buildroot}%{_datadir}/pixmaps
+install -pm0644 \
+ %{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
+ %{buildroot}%{_datadir}/pixmaps/%{name}.png
+desktop-file-install --vendor="fedora" \
+--dir=%{buildroot}/%{_datadir}/applications \
+%{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post grass -p /sbin/ldconfig
+
+%postun grass -p /sbin/ldconfig
+
+%post python -p /sbin/ldconfig
+
+%postun python -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
+# Can be viewed in the About-Box:
+# CONTRIBUTORS AUTHORS
+%{_libdir}/lib%{name}_*.so.*
+%{_libdir}/%{name}/
+%{_bindir}/qgis*
+%{_var}/www/cgi-bin/admin.sld
+%{_var}/www/cgi-bin/wms_metadata.xml
+%{_var}/www/cgi-bin/qgis_mapserv.fcgi
+%{_mandir}/man1/%{name}*
+%dir %{_datadir}/%{name}/
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/fedora-%{name}.desktop
+%dir %{_datadir}/%{name}/i18n/
+%{_datadir}/%{name}/doc
+%{_datadir}/%{name}/images
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/svg
+%{_datadir}/%{name}/themes
+%exclude %{_libdir}/libqgisgrass.so.%{version}
+%exclude %{_libdir}/%{name}/libgrassprovider.so
+%exclude %{_libdir}/%{name}/libgrassrasterprovider.so
+%exclude %{_libdir}/%{name}/libgrassplugin.so
+%exclude %{_datadir}/%{name}/themes/default/grass
+%exclude %{_datadir}/%{name}/themes/gis/grass
+%exclude %{_datadir}/%{name}/themes/classic/grass
+%exclude %{_libdir}/%{name}/grass
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}_*.so
+%{_libdir}/lib%{name}python.so
+%{_libdir}/lib%{name}grass.so
+
+%files grass
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}grass.so.%{version}
+%{_libdir}/%{name}/libgrassprovider.so
+%{_libdir}/%{name}/libgrassrasterprovider.so
+%{_libdir}/%{name}/libgrassplugin.so
+%{_libdir}/%{name}/grass
+%{_datadir}/%{name}/grass
+%{_datadir}/%{name}/themes/default/grass
+%{_datadir}/%{name}/themes/gis/grass
+%{_datadir}/%{name}/themes/classic/grass
+
+%files python
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}python.so.*
+%{_datadir}/%{name}/python
+%{python_sitearch}/%{name}
+
+%changelog
+* Sun Aug 08 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
+- Updated for 1.6
+
+* Fri Jul 30 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-3
+- Added dependency for gdal-python to fulfill standard plugin's requirements
+
+* Tue Jul 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.5.0-2.py27
+- one more time for python27, with feeling
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-1
+- Updated for 1.5.0
+- Added support for qwt
+
+* Wed Jul 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-9
+- Re-added missing dependency of PyQt4 and sip for python sub-package
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
+- Added patch to remove redundant ::QVariant in function-style cast
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
+- Removed smp_mflags because of race conditions
+- Simplified member initializer syntax in qt47 patch
+
+* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
+- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
+- Put version variable in filelist for GRASS
+- Added qt-webkit as build require, removed gettext
+- Corrected erroneous dependency on GRASS subpackage
+
+* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
+- Changed license to reflect exception for Qt; packaged exception file
+- Added find_lang and excluded qt-translations
+- Added ownership for directory in share
+- Dropped docdir statement
+- Changed description for the subpackages python and grass
+
+* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
+- Grouped corresponding entries for %description and %package
+- Corrected swapped summaries for python- and grass-subpackage
+- Set theme subpackages as obsolete
+- Removed nonsensical build-requires statements from subpackages
+- Dropped redundant definition of GRASS_PREFIX
+- Removed verbose-option from make
+- Removed unnecessary chmod-command
+- Removed nonsensical ldconfig for devel-subpackage
+- Made the file list more elegant
+- Removed unnecessary call for chrpath
+
+* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
+- Updated for 1.4.0
+- Dropped theme packages
+
+* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
+- rebuild for sip 4.10
+- fix sip version check so it works with sip 4.10 (#553713)
+
+* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
+- Rebuild against new GEOS.
+
+* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
+- qgis rebuild for sip-4.9.x (#538119)
+
+* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
+- Rebuild for new Geos.
+
+* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
+- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
+
+* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
+- Rebuilt to fix python problem (#518121)
+
+* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
+- updating for 1.0.2
+- moving libqgispython.so to python subpackage for bug#507381
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
+- updating for 1.0.1
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
+- updating for 1.0.0
+- added gis theme and quick print plugin
+- added requirement for gpsbabel
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
+- cleaning up patch
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
+- bump to add patch
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
+- adding patch to fix typedef problems in python build
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
+- Rebuild for Python 2.6
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
+- Rebuild for Python 2.6
+
+* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
+- Rebuild for new geos, fixes broken deps
+
+* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
+- building against blas and lapack instead of atlas and blas to fix missing
+ library calls
+
+* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
+- update to metis 0.11.0
+- remove python patch
+- enabling python subpackage
+- fixed executable perms on new headers/source
+- stripping rpath with chrpath
+- making python libs executable to get files stripped
+
+* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
+- added patch to support cmake 2.6
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
+- upgraded to 0.10.0 release candidate
+- removed gcc 4.3 patches
+- adding devel package since libraries are now versioned
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
+- fix build by adding more gcc43 patches
+- rebuild against grass63
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
+- Autorebuild for GCC 4.3
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
+- adding gcc43-INT_MAX-qgis-0.9.1.patch
+- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
+- adding gcc43-memcpy-qgis-0.9.1.patch
+- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
+- adding Requires sip, PyQt4 for python bindings support
+
+* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
+- defining lib path in build
+- installing python bindings globally
+- adding patch to determine python site packages dir correctly
+
+* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
+- update to 0.9.1
+- removing lib64 and man instal path patches (included upstream)
+- enabling python integration
+
+* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
+- enabling build for PPC64 (bug#247152)
+
+* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
+- update to 0.9.0
+- remove settings-include-workdir.patch
+- updated man-install-share.patch to man-install-share-0.9.0.patch
+- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
+- enabled python to support msexport tool
+- added Requires: grass to grass subpackage
+
+* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
+- bump for expat 2.0 rebuild bug#195888
+
+* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
+- updated License from GPL to GPLv2+
+
+* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
+- allowing docs to be installed by qgis so they can be referenced by internal
+ help system (bug#241403)
+- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
+- updated lib64 patch for core and grass libraries
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
+- updated lib64 patch
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
+- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
+- adding patch for lib64 support through lib_suffix
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
+- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
+ Thu Jun 28 2007
+- linking icon to included png instead of packaging it again
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
+- adding comment on why grass is required in addition to grass-devel for BR
+- fixing typo
+
+* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
+- adding contributors to doc
+- adding desktop file and icon
+
+* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
+- updating detection of grass libraries to not use RPM call
+- disabling building of -devel package due to shared libraries not being
+ versioned and having no other packages that compile against qgis
+ (see bug #241403)
+- removing chmod of test_export.py due to lack of python requirement
+- removing msexport and share/python directory due to removal of python
+
+* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
+- added BuildRequires: cmake
+- updated build to use cmake macro and make verbose
+
+* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
+- updating version
+- removed BuildRequires: python-devel due to lack of PyQt4 bindings
+- updated build for use of cmake instead of autotools
+- added patch for setting WORKDIR in settings.pro file
+- added patch for fixing install path of man pages
+- updated library names
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
+- adding BuildRequires bison, flex
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
+- fixing more directory owernship (themes, themes-default)
+- fixing qt4 hardcoded lib path
+- removing Requires ldconfig
+- adding BuildRequires sqlite-devel
+- adding patch for supporting python 2.5 in configure script
+
+* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
+- moving all BuildRequires to main section
+- dropping use of makeinstall macro
+- making sure directories are owned by this package
+- removing *.a and *.la files
+- disabled stripping of libraries and binaries to allow debuginfo package
+ to be built
+- fixing macros in changelog
+- removing executable bits on source files
+
+* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
+- fixing Requires statements for sub-packages
+
+* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
+- added devel dependancy on qgis
+- moved qgis-config to devel package
+- moving doc directory
+- removed zero-length NEWS doc
+- added postin/postun ldconfig calls
+- split packages up to reduce package size and split out dependancies
+ grass, theme-nkids
+
+* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
+- Initial RPM release.
+
diff --git a/qgis.spec b/qgis.spec
new file mode 100644
index 0000000..3213431
--- /dev/null
+++ b/qgis.spec
@@ -0,0 +1,533 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: qgis
+Version: 1.6.0
+Release: 7%{?dist}
+Summary: A user friendly Open Source Geographic Information System
+
+Group: Applications/Engineering
+License: GPLv2+ with exceptions
+URL: http://www.qgis.org/
+Source0: http://qgis.org/~timlinux/src/%{name}_%{version}.tar.gz
+Source1: %{name}.desktop
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+#TODO
+# Fix detection problem for GRASS libraries
+# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
+Patch0: qgis-1.5.0-grass.patch
+# Fix problem with SIP 4.12, see https://trac.osgeo.org/qgis/changeset/14988
+Patch1: qgis-1.6.0-sip.patch
+
+BuildRequires: cmake
+BuildRequires: flex bison
+
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: gsl-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: sqlite-devel
+BuildRequires: libspatialite-devel
+BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+BuildRequires: qwt-devel
+
+#Note for future EPEL version:
+#grass is not in EPEL, qt4-webkit does not exist
+
+BuildRequires: PyQwt-devel
+BuildRequires: sip-devel > 4.7
+BuildRequires: python-devel
+BuildRequires: PyQt4-devel
+BuildRequires: qt4-webkit-devel
+BuildRequires: fcgi-devel
+
+# Grass package contains definitions needed for configure script
+BuildRequires: grass, grass-devel
+
+Requires: gpsbabel
+
+# Obsoletes can be dropped after F15's EOL
+Obsoletes: qgis-theme-classic < 1.1
+Obsoletes: qgis-theme-gis < 1.1
+Obsoletes: qgis-theme-nkids < 1.1
+
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%description
+Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
+System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
+QGIS supports vector, raster, and database formats. QGIS lets you browse
+and create map data on your computer. It supports many common spatial data
+formats (e.g. ESRI ShapeFile, geotiff). QGIS supports plugins to do things
+like display tracks from your GPS.
+
+%package devel
+Summary: Development Libraries for the Quantum GIS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for Quantum GIS including the C header files.
+
+%package grass
+Summary: GRASS Support Libraries for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: grass
+
+%description grass
+GRASS plugin for Quantum GIS required to interface with the GRASS system.
+
+%package python
+Summary: Python integration and plugins for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: gdal-python
+Requires: PyQt4
+%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
+
+%description python
+Python integration and plugins for QGIS.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .grass
+%patch1 -p1 -b .sip
+
+# Encode man-file to utf-8 -- Solved in 1.7.
+iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.conv qgis_help.1
+
+# Correct version string in title bar
+sed -i 's|Trunk|Copiapo|' CMakeLists.txt
+
+# Remove obsolete translations -- They will be there again in 1.7!
+#/usr/bin/lupdate-qt4 -noobsolete -ts i18n/qgis_*.ts
+
+%build
+
+#GDAL script doesn't work properly
+
+# Detection doesn't work on it's own
+GRASS_PREFIX=%{_libdir}
+
+%cmake \
+ %{_cmake_skip_rpath} \
+ -D QGIS_LIB_SUBDIR=%{_lib} \
+ -D QGIS_MANUAL_SUBDIR=/share/man \
+ -D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
+ -D QGIS_CGIBIN_SUBDIR=%{_libexecdir}/%{name} \
+ -D WITH_BINDINGS:BOOL=TRUE \
+ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
+ -D GRASS_PREFIX=$GRASS_PREFIX \
+ -D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
+ -D GDAL_LIBRARY=%{_libdir}/libgdal.so \
+ .
+# QGIS Mapserver will be off by default in 1.7
+
+# Parallel make leads to race conditions with PYQT4_WRAP_UI
+# https://trac.osgeo.org/qgis/ticket/2880
+#make %{?_smp_mflags}
+make
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%find_lang %{name} --with-qt
+
+
+# Add executable perms to python libs so they get stripped
+chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
+
+# Remove files packaged by doc or undesired
+rm -f %{buildroot}%{_datadir}/%{name}/doc/BUGS \
+ %{buildroot}%{_datadir}/%{name}/doc/ChangeLog \
+ %{buildroot}%{_datadir}/%{name}/doc/CODING \
+ %{buildroot}%{_datadir}/%{name}/doc/COPYING \
+ %{buildroot}%{_datadir}/%{name}/doc/INSTALL \
+ %{buildroot}%{_datadir}/%{name}/doc/PROVENANCE \
+ %{buildroot}%{_datadir}/%{name}/doc/README
+
+# Install desktop file
+install -pd %{buildroot}%{_datadir}/pixmaps
+install -pm0644 \
+ %{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
+ %{buildroot}%{_datadir}/pixmaps/%{name}.png
+desktop-file-install --vendor="fedora" \
+--dir=%{buildroot}/%{_datadir}/applications \
+%{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post grass -p /sbin/ldconfig
+
+%postun grass -p /sbin/ldconfig
+
+%post python -p /sbin/ldconfig
+
+%postun python -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
+# Can be viewed in the About-Box:
+# CONTRIBUTORS AUTHORS
+%{_libdir}/lib%{name}_*.so.*
+%{_libdir}/%{name}/
+%{_bindir}/qgis*
+%{_mandir}/man1/%{name}*
+%{_libexecdir}/%{name}
+%dir %{_datadir}/%{name}/
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/fedora-%{name}.desktop
+%dir %{_datadir}/%{name}/i18n/
+%{_datadir}/%{name}/doc
+%{_datadir}/%{name}/images
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/svg
+%{_datadir}/%{name}/themes
+%exclude %{_libdir}/%{name}/*grass*
+%exclude %{_datadir}/%{name}/themes/default/grass
+%exclude %{_datadir}/%{name}/themes/gis/grass
+%exclude %{_datadir}/%{name}/themes/classic/grass
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}_*.so
+%{_libdir}/lib%{name}python.so
+%{_libdir}/lib%{name}grass.so
+
+%files grass
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}grass.so.%{version}
+%{_libdir}/%{name}/libgrass*.so
+%{_libdir}/%{name}/grass
+%{_datadir}/%{name}/grass
+%{_datadir}/%{name}/themes/default/grass
+%{_datadir}/%{name}/themes/gis/grass
+%{_datadir}/%{name}/themes/classic/grass
+
+%files python
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}python.so.*
+%{_datadir}/%{name}/python
+%{python_sitearch}/%{name}
+
+%changelog
+* Sat Feb 25 2011 Volker Fröhlich <volker27@gmx.at> - 1.6.0-7
+- Added buildroot
+- Corrected window title
+- Removed encoding key from desktop file and corrected categories
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Feb 02 2011 Volker Fröhlich <volker27@gmx.at> - 1.6.0-5
+- Remove libspatialite BR
+- Forgot to turn off smp-flags
+
+* Wed Feb 02 2011 Volker Fröhlich <volker27@gmx.at> - 1.6.0-4
+- Patch for SIP 4.12
+- Changed path for QGIS mapserver
+- Simplified files section
+
+* Wed Nov 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-3
+- Rebuild for GRASS 6.4
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-2
+- Disabled smp-flags again
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
+- Avoid rpaths in the first place
+- Dropped superfluid QWT and SIP patches
+- Dropped test section
+- Added dependency for fcgi-devel
+- Abbreviated syntax for setup macro
+- Qt translations are no longer shipped
+
+* Wed Sep 29 2010 jkeating - 1.5.0-6
+- Rebuilt for gcc bug 634757
+
+* Mon Sep 13 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.05
+- Added workaround patch for SIP 4.11, see http://trac.osgeo.org/qgis/ticket/2985
+
+* Thu Sep 09 2010 Rex Dieter <rdieter@fedoraproject.org> 1.5.0-4
+- rebuild (sip)
+- BR: qt4-devel
+
+* Fri Jul 30 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.03
+- Added dependency for gdal-python to fulfill standard plugins' requirements
+
+* Tue Jul 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.5.0-2.py27
+- one more time for python27, with feeling
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-1
+- Updated for 1.5.0
+- Added support for qwt
+
+* Wed Jul 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-9
+- Re-added missing dependency of PyQt4 and sip for python sub-package
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
+- Added patch to remove redundant ::QVariant in function-style cast
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
+- Removed smp_mflags because of race conditions
+- Simplified member initializer syntax in qt47 patch
+
+* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
+- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
+- Put version variable in filelist for GRASS
+- Added qt-webkit as build require, removed gettext
+- Corrected erroneous dependency on GRASS subpackage
+
+* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
+- Changed license to reflect exception for Qt; packaged exception file
+- Added find_lang and excluded qt-translations
+- Added ownership for directory in share
+- Dropped docdir statement
+- Changed description for the subpackages python and grass
+
+* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
+- Grouped corresponding entries for description and package macro
+- Corrected swapped summaries for python- and grass-subpackage
+- Set theme subpackages as obsolete
+- Removed nonsensical build-requires statements from subpackages
+- Dropped redundant definition of GRASS_PREFIX
+- Removed verbose-option from make
+- Removed unnecessary chmod-command
+- Removed nonsensical ldconfig for devel-subpackage
+- Made the file list more elegant
+- Removed unnecessary call for chrpath
+
+* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
+- Updated for 1.4.0
+- Dropped theme packages
+
+* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
+- rebuild for sip 4.10
+- fix sip version check so it works with sip 4.10 (#553713)
+
+* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
+- Rebuild against new GEOS.
+
+* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
+- qgis rebuild for sip-4.9.x (#538119)
+
+* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
+- Rebuild for new Geos.
+
+* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
+- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
+
+* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
+- Rebuilt to fix python problem (#518121)
+
+* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
+- updating for 1.0.2
+- moving libqgispython.so to python subpackage for bug#507381
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
+- updating for 1.0.1
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
+- updating for 1.0.0
+- added gis theme and quick print plugin
+- added requirement for gpsbabel
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
+- cleaning up patch
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
+- bump to add patch
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
+- adding patch to fix typedef problems in python build
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
+- Rebuild for Python 2.6
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
+- Rebuild for Python 2.6
+
+* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
+- Rebuild for new geos, fixes broken deps
+
+* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
+- building against blas and lapack instead of atlas and blas to fix missing
+ library calls
+
+* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
+- update to metis 0.11.0
+- remove python patch
+- enabling python subpackage
+- fixed executable perms on new headers/source
+- stripping rpath with chrpath
+- making python libs executable to get files stripped
+
+* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
+- added patch to support cmake 2.6
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
+- upgraded to 0.10.0 release candidate
+- removed gcc 4.3 patches
+- adding devel package since libraries are now versioned
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
+- fix build by adding more gcc43 patches
+- rebuild against grass63
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
+- Autorebuild for GCC 4.3
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
+- adding gcc43-INT_MAX-qgis-0.9.1.patch
+- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
+- adding gcc43-memcpy-qgis-0.9.1.patch
+- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
+- adding Requires sip, PyQt4 for python bindings support
+
+* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
+- defining lib path in build
+- installing python bindings globally
+- adding patch to determine python site packages dir correctly
+
+* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
+- update to 0.9.1
+- removing lib64 and man instal path patches (included upstream)
+- enabling python integration
+
+* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
+- enabling build for PPC64 (bug#247152)
+
+* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
+- update to 0.9.0
+- remove settings-include-workdir.patch
+- updated man-install-share.patch to man-install-share-0.9.0.patch
+- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
+- enabled python to support msexport tool
+- added Requires: grass to grass subpackage
+
+* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
+- bump for expat 2.0 rebuild bug#195888
+
+* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
+- updated License from GPL to GPLv2+
+
+* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
+- allowing docs to be installed by qgis so they can be referenced by internal
+ help system (bug#241403)
+- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
+- updated lib64 patch for core and grass libraries
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
+- updated lib64 patch
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
+- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
+- adding patch for lib64 support through lib_suffix
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
+- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
+ Thu Jun 28 2007
+- linking icon to included png instead of packaging it again
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
+- adding comment on why grass is required in addition to grass-devel for BR
+- fixing typo
+
+* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
+- adding contributors to doc
+- adding desktop file and icon
+
+* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
+- updating detection of grass libraries to not use RPM call
+- disabling building of -devel package due to shared libraries not being
+ versioned and having no other packages that compile against qgis
+ (see bug #241403)
+- removing chmod of test_export.py due to lack of python requirement
+- removing msexport and share/python directory due to removal of python
+
+* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
+- added BuildRequires: cmake
+- updated build to use cmake macro and make verbose
+
+* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
+- updating version
+- removed BuildRequires: python-devel due to lack of PyQt4 bindings
+- updated build for use of cmake instead of autotools
+- added patch for setting WORKDIR in settings.pro file
+- added patch for fixing install path of man pages
+- updated library names
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
+- adding BuildRequires bison, flex
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
+- fixing more directory owernship (themes, themes-default)
+- fixing qt4 hardcoded lib path
+- removing Requires ldconfig
+- adding BuildRequires sqlite-devel
+- adding patch for supporting python 2.5 in configure script
+
+* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
+- moving all BuildRequires to main section
+- dropping use of makeinstall macro
+- making sure directories are owned by this package
+- removing *.a and *.la files
+- disabled stripping of libraries and binaries to allow debuginfo package
+ to be built
+- fixing macros in changelog
+- removing executable bits on source files
+
+* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
+- fixing Requires statements for sub-packages
+
+* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
+- added devel dependancy on qgis
+- moved qgis-config to devel package
+- moving doc directory
+- removed zero-length NEWS doc
+- added postin/postun ldconfig calls
+- split packages up to reduce package size and split out dependancies
+ grass, theme-nkids
+
+* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
+- Initial RPM release.
+
diff --git a/qgis_1.6_lokal.spec b/qgis_1.6_lokal.spec
new file mode 100644
index 0000000..2a9c6a2
--- /dev/null
+++ b/qgis_1.6_lokal.spec
@@ -0,0 +1,518 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: qgis
+Version: 1.6.0
+Release: 4%{?dist}
+Summary: A user friendly Open Source Geographic Information System
+
+Group: Applications/Engineering
+License: GPLv2+ with exceptions
+URL: http://www.qgis.org/
+Source0: http://qgis.org/~timlinux/src/%{name}_%{version}.tar.gz
+Source1: %{name}.desktop
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+# Fix detection problem for GRASS libraries
+# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
+Patch0: qgis-1.5.0-grass.patch
+
+BuildRequires: cmake
+BuildRequires: flex bison
+
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: gsl-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: sqlite-devel
+BuildRequires: libspatialite-devel
+BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+BuildRequires: qwt-devel
+#grass, qt4-webkit, PyQwt gibt es nicht in EL
+#qt4-webkit scheinbar überhaupt nimmer
+BuildRequires: PyQwt-devel
+BuildRequires: sip-devel > 4.7
+BuildRequires: python-devel
+BuildRequires: PyQt4-devel
+BuildRequires: qt4-webkit-devel
+BuildRequires: fcgi-devel
+
+# grass package contains definitions needed for configure script
+BuildRequires: grass, grass-devel
+
+Requires: gpsbabel
+
+# Obsoletes can be dropped after F15's EOL
+Obsoletes: qgis-theme-classic < 1.1
+Obsoletes: qgis-theme-gis < 1.1
+Obsoletes: qgis-theme-nkids < 1.1
+
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%description
+Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
+System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
+QGIS supports vector, raster, and database formats. QGIS lets you browse
+and create map data on your computer. It supports many common spatial data
+formats (e.g. ESRI ShapeFile, geotiff). QGIS supports plugins to do things
+like display tracks from your GPS.
+
+%package devel
+Summary: Development Libraries for the Quantum GIS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for Quantum GIS including the C header files.
+
+%package grass
+Summary: GRASS Support Libraries for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: grass
+
+%description grass
+GRASS plugin for Quantum GIS required to interface with the GRASS system.
+
+%package python
+Summary: Python integration and plugins for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: gdal-python
+Requires: PyQt4
+%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
+
+%description python
+Python integration and plugins for QGIS.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .grass
+
+# Encode man-file to utf-8 -- Solved in 1.7.
+iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.conv qgis_help.1
+
+# Remove obsolete translations -- They will be there again for 1.7!
+#/usr/bin/lupdate-qt4 -noobsolete -ts i18n/qgis_*.ts
+
+%build
+
+#GDAL script doesn't work properly
+
+# Detection doesn't work on it's own
+#GRASS_PREFIX=%{_libdir}
+
+%cmake \
+ %{_cmake_skip_rpath} \
+ -D QGIS_LIB_SUBDIR=%{_lib} \
+ -D QGIS_MANUAL_SUBDIR=/share/man \
+ -D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
+ -D QGIS_CGIBIN_SUBDIR=%{_var}/www/cgi-bin \
+ -D WITH_BINDINGS:BOOL=TRUE \
+ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
+ -D GRASS_PREFIX=$GRASS_PREFIX \
+ -D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
+ -D GDAL_LIBRARY=%{_libdir}/libgdal.so \
+ -D WITH_SPATIALITE:BOOL=TRUE \
+ -D WITH_INTERNAL_SPATIALITE:BOOL=FALSE \
+ .
+
+# Parallel make leads to race conditions with PYQT4_WRAP_UI
+make %{?_smp_mflags}
+#make
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%find_lang %{name} --with-qt
+
+
+# Add executable perms to python libs so they get stripped
+chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
+
+# Remove files packaged by doc or undesired
+rm -f %{buildroot}%{_datadir}/%{name}/doc/BUGS \
+ %{buildroot}%{_datadir}/%{name}/doc/ChangeLog \
+ %{buildroot}%{_datadir}/%{name}/doc/CODING \
+ %{buildroot}%{_datadir}/%{name}/doc/COPYING \
+ %{buildroot}%{_datadir}/%{name}/doc/INSTALL \
+ %{buildroot}%{_datadir}/%{name}/doc/PROVENANCE \
+ %{buildroot}%{_datadir}/%{name}/doc/README
+
+# Install desktop file
+install -pd %{buildroot}%{_datadir}/pixmaps
+install -pm0644 \
+ %{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
+ %{buildroot}%{_datadir}/pixmaps/%{name}.png
+desktop-file-install --vendor="fedora" \
+--dir=%{buildroot}/%{_datadir}/applications \
+%{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post grass -p /sbin/ldconfig
+
+%postun grass -p /sbin/ldconfig
+
+%post python -p /sbin/ldconfig
+
+%postun python -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
+# Can be viewed in the About-Box:
+# CONTRIBUTORS AUTHORS
+%{_libdir}/lib%{name}_*.so.*
+%{_libdir}/%{name}/
+%{_bindir}/qgis*
+%{_var}/www/cgi-bin/admin.sld
+%{_var}/www/cgi-bin/wms_metadata.xml
+%{_var}/www/cgi-bin/qgis_mapserv.fcgi
+%{_mandir}/man1/%{name}*
+%dir %{_datadir}/%{name}/
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/fedora-%{name}.desktop
+%dir %{_datadir}/%{name}/i18n/
+%{_datadir}/%{name}/doc
+%{_datadir}/%{name}/images
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/svg
+%{_datadir}/%{name}/themes
+%exclude %{_libdir}/libqgisgrass.so.%{version}
+%exclude %{_libdir}/%{name}/libgrassprovider.so
+%exclude %{_libdir}/%{name}/libgrassrasterprovider.so
+%exclude %{_libdir}/%{name}/libgrassplugin.so
+%exclude %{_datadir}/%{name}/themes/default/grass
+%exclude %{_datadir}/%{name}/themes/gis/grass
+%exclude %{_datadir}/%{name}/themes/classic/grass
+%exclude %{_libdir}/%{name}/grass
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}_*.so
+%{_libdir}/lib%{name}python.so
+%{_libdir}/lib%{name}grass.so
+
+%files grass
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}grass.so.%{version}
+%{_libdir}/%{name}/libgrassprovider.so
+%{_libdir}/%{name}/libgrassrasterprovider.so
+%{_libdir}/%{name}/libgrassplugin.so
+%{_libdir}/%{name}/grass
+%{_datadir}/%{name}/grass
+%{_datadir}/%{name}/themes/default/grass
+%{_datadir}/%{name}/themes/gis/grass
+%{_datadir}/%{name}/themes/classic/grass
+
+%files python
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}python.so.*
+%{_datadir}/%{name}/python
+%{python_sitearch}/%{name}
+
+%changelog
+* Mon Dec 20 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-4
+- Added buildroot
+
+* Thu Nov 25 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-3
+- Disabled internal spatialite, as library is now available
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-2
+- Disabled smp-flags again
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
+- Avoid rpaths in the first place
+- Dropped superfluid QWT and SIP patches
+- Dropped test section
+- Added dependency for fcgi-devel
+- Abbreviated syntax for setup macro
+- Qt translations are no longer shipped
+
+* Wed Sep 29 2010 jkeating - 1.5.0-6
+- Rebuilt for gcc bug 634757
+
+* Mon Sep 13 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.05
+- Added workaround patch for SIP 4.11, see http://trac.osgeo.org/qgis/ticket/2985
+
+* Thu Sep 09 2010 Rex Dieter <rdieter@fedoraproject.org> 1.5.0-4
+- rebuild (sip)
+- BR: qt4-devel
+
+* Fri Jul 30 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.03
+- Added dependency for gdal-python to fulfill standard plugins' requirements
+
+* Tue Jul 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.5.0-2.py27
+- one more time for python27, with feeling
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-1
+- Updated for 1.5.0
+- Added support for qwt
+
+* Wed Jul 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-9
+- Re-added missing dependency of PyQt4 and sip for python sub-package
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
+- Added patch to remove redundant ::QVariant in function-style cast
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
+- Removed smp_mflags because of race conditions
+- Simplified member initializer syntax in qt47 patch
+
+* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
+- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
+- Put version variable in filelist for GRASS
+- Added qt-webkit as build require, removed gettext
+- Corrected erroneous dependency on GRASS subpackage
+
+* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
+- Changed license to reflect exception for Qt; packaged exception file
+- Added find_lang and excluded qt-translations
+- Added ownership for directory in share
+- Dropped docdir statement
+- Changed description for the subpackages python and grass
+
+* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
+- Grouped corresponding entries for description and package macro
+- Corrected swapped summaries for python- and grass-subpackage
+- Set theme subpackages as obsolete
+- Removed nonsensical build-requires statements from subpackages
+- Dropped redundant definition of GRASS_PREFIX
+- Removed verbose-option from make
+- Removed unnecessary chmod-command
+- Removed nonsensical ldconfig for devel-subpackage
+- Made the file list more elegant
+- Removed unnecessary call for chrpath
+
+* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
+- Updated for 1.4.0
+- Dropped theme packages
+
+* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
+- rebuild for sip 4.10
+- fix sip version check so it works with sip 4.10 (#553713)
+
+* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
+- Rebuild against new GEOS.
+
+* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
+- qgis rebuild for sip-4.9.x (#538119)
+
+* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
+- Rebuild for new Geos.
+
+* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
+- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
+
+* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
+- Rebuilt to fix python problem (#518121)
+
+* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
+- updating for 1.0.2
+- moving libqgispython.so to python subpackage for bug#507381
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
+- updating for 1.0.1
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
+- updating for 1.0.0
+- added gis theme and quick print plugin
+- added requirement for gpsbabel
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
+- cleaning up patch
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
+- bump to add patch
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
+- adding patch to fix typedef problems in python build
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
+- Rebuild for Python 2.6
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
+- Rebuild for Python 2.6
+
+* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
+- Rebuild for new geos, fixes broken deps
+
+* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
+- building against blas and lapack instead of atlas and blas to fix missing
+ library calls
+
+* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
+- update to metis 0.11.0
+- remove python patch
+- enabling python subpackage
+- fixed executable perms on new headers/source
+- stripping rpath with chrpath
+- making python libs executable to get files stripped
+
+* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
+- added patch to support cmake 2.6
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
+- upgraded to 0.10.0 release candidate
+- removed gcc 4.3 patches
+- adding devel package since libraries are now versioned
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
+- fix build by adding more gcc43 patches
+- rebuild against grass63
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
+- Autorebuild for GCC 4.3
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
+- adding gcc43-INT_MAX-qgis-0.9.1.patch
+- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
+- adding gcc43-memcpy-qgis-0.9.1.patch
+- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
+- adding Requires sip, PyQt4 for python bindings support
+
+* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
+- defining lib path in build
+- installing python bindings globally
+- adding patch to determine python site packages dir correctly
+
+* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
+- update to 0.9.1
+- removing lib64 and man instal path patches (included upstream)
+- enabling python integration
+
+* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
+- enabling build for PPC64 (bug#247152)
+
+* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
+- update to 0.9.0
+- remove settings-include-workdir.patch
+- updated man-install-share.patch to man-install-share-0.9.0.patch
+- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
+- enabled python to support msexport tool
+- added Requires: grass to grass subpackage
+
+* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
+- bump for expat 2.0 rebuild bug#195888
+
+* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
+- updated License from GPL to GPLv2+
+
+* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
+- allowing docs to be installed by qgis so they can be referenced by internal
+ help system (bug#241403)
+- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
+- updated lib64 patch for core and grass libraries
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
+- updated lib64 patch
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
+- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
+- adding patch for lib64 support through lib_suffix
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
+- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
+ Thu Jun 28 2007
+- linking icon to included png instead of packaging it again
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
+- adding comment on why grass is required in addition to grass-devel for BR
+- fixing typo
+
+* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
+- adding contributors to doc
+- adding desktop file and icon
+
+* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
+- updating detection of grass libraries to not use RPM call
+- disabling building of -devel package due to shared libraries not being
+ versioned and having no other packages that compile against qgis
+ (see bug #241403)
+- removing chmod of test_export.py due to lack of python requirement
+- removing msexport and share/python directory due to removal of python
+
+* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
+- added BuildRequires: cmake
+- updated build to use cmake macro and make verbose
+
+* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
+- updating version
+- removed BuildRequires: python-devel due to lack of PyQt4 bindings
+- updated build for use of cmake instead of autotools
+- added patch for setting WORKDIR in settings.pro file
+- added patch for fixing install path of man pages
+- updated library names
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
+- adding BuildRequires bison, flex
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
+- fixing more directory owernship (themes, themes-default)
+- fixing qt4 hardcoded lib path
+- removing Requires ldconfig
+- adding BuildRequires sqlite-devel
+- adding patch for supporting python 2.5 in configure script
+
+* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
+- moving all BuildRequires to main section
+- dropping use of makeinstall macro
+- making sure directories are owned by this package
+- removing *.a and *.la files
+- disabled stripping of libraries and binaries to allow debuginfo package
+ to be built
+- fixing macros in changelog
+- removing executable bits on source files
+
+* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
+- fixing Requires statements for sub-packages
+
+* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
+- added devel dependancy on qgis
+- moved qgis-config to devel package
+- moving doc directory
+- removed zero-length NEWS doc
+- added postin/postun ldconfig calls
+- split packages up to reduce package size and split out dependancies
+ grass, theme-nkids
+
+* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
+- Initial RPM release.
+
diff --git a/qgis_1.7.0.spec b/qgis_1.7.0.spec
new file mode 100644
index 0000000..372d7b7
--- /dev/null
+++ b/qgis_1.7.0.spec
@@ -0,0 +1,534 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: qgis
+Version: 1.7.0
+Release: 2%{?dist}
+Summary: A user friendly Open Source Geographic Information System
+
+Group: Applications/Engineering
+License: GPLv2+ with exceptions
+URL: http://www.qgis.org/
+#Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
+Source0: http://qgis.org/~timlinux/src/%{name}_%{version}.tar.gz
+Source1: %{name}.desktop
+
+# Fix detection problem for GRASS libraries
+# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
+Patch0: qgis-1.5.0-grass.patch
+#Globe
+Patch1: qgis_qvariant.patch
+
+BuildRequires: cmake
+BuildRequires: flex bison
+
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: gsl-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: libspatialite-devel
+BuildRequires: sqlite-devel
+BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+BuildRequires: qwt-devel
+#BuildRequires: qwtpolar-devel
+BuildRequires: PyQwt-devel
+BuildRequires: sip-devel > 4.7
+BuildRequires: python-devel
+BuildRequires: PyQt4-devel
+BuildRequires: qt4-webkit-devel
+BuildRequires: fcgi-devel
+
+# grass package contains definitions needed for configure script
+BuildRequires: grass, grass-devel
+
+Requires: gpsbabel
+
+# Obsoletes can be dropped after F15's EOL
+Obsoletes: qgis-theme-classic < 1.1
+Obsoletes: qgis-theme-gis < 1.1
+Obsoletes: qgis-theme-nkids < 1.1
+
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%description
+Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
+System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
+QGIS supports vector, raster, and database formats. QGIS lets you browse
+and create map data on your computer. It supports many common spatial data
+formats (e.g. ESRI ShapeFile, geotiff). QGIS supports plugins to do things
+like display tracks from your GPS.
+
+%package devel
+Summary: Development Libraries for the Quantum GIS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for Quantum GIS including the C header files.
+
+%package grass
+Summary: GRASS Support Libraries for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: grass
+
+%description grass
+GRASS plugin for Quantum GIS required to interface with the GRASS system.
+
+%package python
+Summary: Python integration and plugins for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: gdal-python
+Requires: PyQt4
+%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
+
+%description python
+Python integration and plugins for Quantum GIS.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .grass
+#Only for Globe
+%patch1 -p1 -b .qvariant
+
+#Globe
+sed -i '/define TESTLIB/d' src/app/qgspluginmanager.cpp
+
+
+#TODO: GRASS-Kram reparieren
+#Delete bundled libspatialite
+rm -rf src/core/spatialite
+#find src/core/spatialindex -type d -exec rm -rf {} \;
+#rm -rf src/core/spatialindex/rtree
+#rm -rf src/core/pal
+#rm -rf src/core/gps/qwtpolar
+#rm -rf Python-Skript
+
+%build
+
+# Detection doesn't work on its own
+#GRASS_PREFIX=%{_libdir}
+
+%cmake \
+ %{_cmake_skip_rpath} \
+ -D QGIS_LIB_SUBDIR=%{_lib} \
+ -D QGIS_MANUAL_SUBDIR=/share/man \
+ -D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
+ -D QGIS_CGIBIN_SUBDIR=%{_libexecdir}/%{name} \
+ -D WITH_BINDINGS:BOOL=TRUE \
+ -D WITH_MAPSERVER:BOOL=TRUE \
+ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
+ -D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
+ -D GDAL_LIBRARY=%{_libdir}/libgdal.so \
+ -D WITH_SPATIALITE:BOOL=TRUE \
+ -D ENABLE_TESTS:BOOL=TRUE \
+ -D WITH_INTERNAL_SPATIALITE:BOOL=FALSE \
+ .
+
+ #-D WITH_INTERNAL_QWTPOLAR:BOOL=FALSE \
+# -D GRASS_PREFIX=$GRASS_PREFIX \
+# Parallel make leads to race conditions with PYQT4_WRAP_UI
+#make %{?_smp_mflags}
+make
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%find_lang %{name} --with-qt
+#Just temporary
+rm -f %{buildroot}/usr/share/qgis/i18n/qgis_sr_CS-Latn.qm
+
+# Add executable perms to python libs so they get stripped
+chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
+
+# Remove files packaged by doc or undesired
+pushd %{buildroot}%{_datadir}/%{name}/doc
+rm -f BUGS \
+ ChangeLog \
+ CODING \
+ COPYING \
+ INSTALL \
+ PROVENANCE \
+ README
+popd
+
+# Install desktop file
+install -pd %{buildroot}%{_datadir}/pixmaps
+install -pm0644 \
+ %{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
+ %{buildroot}%{_datadir}/pixmaps/%{name}.png
+desktop-file-install --vendor="fedora" \
+--dir=%{buildroot}/%{_datadir}/applications \
+%{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post grass -p /sbin/ldconfig
+
+%postun grass -p /sbin/ldconfig
+
+%post python -p /sbin/ldconfig
+
+%postun python -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
+# Can be viewed in the About-Box:
+# CONTRIBUTORS AUTHORS
+%{_libdir}/lib%{name}*.so.*
+%{_libdir}/%{name}/
+%{_bindir}/%{name}*
+%{_libexecdir}/%{name}
+%{_mandir}/man1/%{name}*
+%dir %{_datadir}/%{name}/
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/fedora-%{name}.desktop
+%dir %{_datadir}/%{name}/i18n/
+#Ob das stimmt?
+%{_datadir}/%{name}/doc
+%{_datadir}/%{name}/images
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/svg
+%{_datadir}/%{name}/themes
+#Useful?
+%{_datadir}/%{name}/FindQGIS.cmake
+%exclude %{_libdir}/libqgisgrass.so.%{version}
+#%exclude %{_libdir}/%{name}/libgrassprovider.so
+#%exclude %{_libdir}/%{name}/libgrassrasterprovider.so
+%exclude %{_libdir}/%{name}/*grass*
+#%exclude %{_libdir}/%{name}/libgrassplugin.so
+%exclude %{_datadir}/%{name}/themes/default/grass
+%exclude %{_datadir}/%{name}/themes/gis/grass
+%exclude %{_datadir}/%{name}/themes/classic/grass
+#%exclude %{_libdir}/%{name}/grass
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}*.so
+#%{_libdir}/lib%{name}python.so
+#%{_libdir}/lib%{name}grass.so
+
+%files grass
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}grass.so.%{version}
+#%{_libdir}/%{name}/libgrassprovider.so
+#%{_libdir}/%{name}/libgrassrasterprovider.so
+#%{_libdir}/%{name}/libgrassplugin.so
+%{_libdir}/%{name}/grass
+%{_datadir}/%{name}/grass
+%{_datadir}/%{name}/themes/default/grass
+%{_datadir}/%{name}/themes/gis/grass
+%{_datadir}/%{name}/themes/classic/grass
+
+%files python
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}python.so.*
+%{_datadir}/%{name}/python
+%{python_sitearch}/%{name}
+
+%changelog
+* Tue Nov 23 2010 Volker Fröhlich <volker27@gmx.at> - 1.7.0-2
+- Rebuild for GDAL 1.7.3 and GRASS 6.4
+
+* Fri Nov 12 2010 Volker Fröhlich <volker27@gmx.at> - 1.7.0-1
+- Updated for 1.7
+- Dropped superfluid iconv
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-2
+- Disabled smp-flags again
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
+- Avoid rpaths in the first place
+- Dropped superfluid QWT and SIP patches
+- Dropped test section
+- Added dependency for fcgi-devel
+- Abbreviated syntax for setup macro
+- Qt translations are no longer shipped
+
+* Wed Sep 29 2010 jkeating - 1.5.0-6
+- Rebuilt for gcc bug 634757
+
+* Mon Sep 13 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.05
+- Added workaround patch for SIP 4.11, see http://trac.osgeo.org/qgis/ticket/2985
+
+* Thu Sep 09 2010 Rex Dieter <rdieter@fedoraproject.org> 1.5.0-4
+- rebuild (sip)
+- BR: qt4-devel
+
+* Fri Jul 30 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.03
+- Added dependency for gdal-python to fulfill standard plugins' requirements
+
+* Tue Jul 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.5.0-2.py27
+- one more time for python27, with feeling
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-1
+- Updated for 1.5.0
+- Added support for qwt
+
+* Wed Jul 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-9
+- Re-added missing dependency of PyQt4 and sip for python sub-package
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
+- Added patch to remove redundant ::QVariant in function-style cast
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
+- Removed smp_mflags because of race conditions
+- Simplified member initializer syntax in qt47 patch
+
+* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
+- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
+- Put version variable in filelist for GRASS
+- Added qt-webkit as build require, removed gettext
+- Corrected erroneous dependency on GRASS subpackage
+
+* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
+- Changed license to reflect exception for Qt; packaged exception file
+- Added find_lang and excluded qt-translations
+- Added ownership for directory in share
+- Dropped docdir statement
+- Changed description for the subpackages python and grass
+
+* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
+- Grouped corresponding entries for description and package macro
+- Corrected swapped summaries for python- and grass-subpackage
+- Set theme subpackages as obsolete
+- Removed nonsensical build-requires statements from subpackages
+- Dropped redundant definition of GRASS_PREFIX
+- Removed verbose-option from make
+- Removed unnecessary chmod-command
+- Removed nonsensical ldconfig for devel-subpackage
+- Made the file list more elegant
+- Removed unnecessary call for chrpath
+
+* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
+- Updated for 1.4.0
+- Dropped theme packages
+
+* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
+- rebuild for sip 4.10
+- fix sip version check so it works with sip 4.10 (#553713)
+
+* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
+- Rebuild against new GEOS.
+
+* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
+- qgis rebuild for sip-4.9.x (#538119)
+
+* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
+- Rebuild for new Geos.
+
+* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
+- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
+
+* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
+- Rebuilt to fix python problem (#518121)
+
+* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
+- updating for 1.0.2
+- moving libqgispython.so to python subpackage for bug#507381
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
+- updating for 1.0.1
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
+- updating for 1.0.0
+- added gis theme and quick print plugin
+- added requirement for gpsbabel
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
+- cleaning up patch
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
+- bump to add patch
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
+- adding patch to fix typedef problems in python build
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
+- Rebuild for Python 2.6
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
+- Rebuild for Python 2.6
+
+* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
+- Rebuild for new geos, fixes broken deps
+
+* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
+- building against blas and lapack instead of atlas and blas to fix missing
+ library calls
+
+* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
+- update to metis 0.11.0
+- remove python patch
+- enabling python subpackage
+- fixed executable perms on new headers/source
+- stripping rpath with chrpath
+- making python libs executable to get files stripped
+
+* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
+- added patch to support cmake 2.6
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
+- upgraded to 0.10.0 release candidate
+- removed gcc 4.3 patches
+- adding devel package since libraries are now versioned
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
+- fix build by adding more gcc43 patches
+- rebuild against grass63
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
+- Autorebuild for GCC 4.3
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
+- adding gcc43-INT_MAX-qgis-0.9.1.patch
+- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
+- adding gcc43-memcpy-qgis-0.9.1.patch
+- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
+- adding Requires sip, PyQt4 for python bindings support
+
+* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
+- defining lib path in build
+- installing python bindings globally
+- adding patch to determine python site packages dir correctly
+
+* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
+- update to 0.9.1
+- removing lib64 and man instal path patches (included upstream)
+- enabling python integration
+
+* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
+- enabling build for PPC64 (bug#247152)
+
+* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
+- update to 0.9.0
+- remove settings-include-workdir.patch
+- updated man-install-share.patch to man-install-share-0.9.0.patch
+- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
+- enabled python to support msexport tool
+- added Requires: grass to grass subpackage
+
+* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
+- bump for expat 2.0 rebuild bug#195888
+
+* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
+- updated License from GPL to GPLv2+
+
+* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
+- allowing docs to be installed by qgis so they can be referenced by internal
+ help system (bug#241403)
+- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
+- updated lib64 patch for core and grass libraries
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
+- updated lib64 patch
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
+- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
+- adding patch for lib64 support through lib_suffix
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
+- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
+ Thu Jun 28 2007
+- linking icon to included png instead of packaging it again
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
+- adding comment on why grass is required in addition to grass-devel for BR
+- fixing typo
+
+* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
+- adding contributors to doc
+- adding desktop file and icon
+
+* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
+- updating detection of grass libraries to not use RPM call
+- disabling building of -devel package due to shared libraries not being
+ versioned and having no other packages that compile against qgis
+ (see bug #241403)
+- removing chmod of test_export.py due to lack of python requirement
+- removing msexport and share/python directory due to removal of python
+
+* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
+- added BuildRequires: cmake
+- updated build to use cmake macro and make verbose
+
+* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
+- updating version
+- removed BuildRequires: python-devel due to lack of PyQt4 bindings
+- updated build for use of cmake instead of autotools
+- added patch for setting WORKDIR in settings.pro file
+- added patch for fixing install path of man pages
+- updated library names
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
+- adding BuildRequires bison, flex
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
+- fixing more directory owernship (themes, themes-default)
+- fixing qt4 hardcoded lib path
+- removing Requires ldconfig
+- adding BuildRequires sqlite-devel
+- adding patch for supporting python 2.5 in configure script
+
+* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
+- moving all BuildRequires to main section
+- dropping use of makeinstall macro
+- making sure directories are owned by this package
+- removing *.a and *.la files
+- disabled stripping of libraries and binaries to allow debuginfo package
+ to be built
+- fixing macros in changelog
+- removing executable bits on source files
+
+* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
+- fixing Requires statements for sub-packages
+
+* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
+- added devel dependancy on qgis
+- moved qgis-config to devel package
+- moving doc directory
+- removed zero-length NEWS doc
+- added postin/postun ldconfig calls
+- split packages up to reduce package size and split out dependancies
+ grass, theme-nkids
+
+* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
+- Initial RPM release.
+
diff --git a/qgis_1.7_si.spec b/qgis_1.7_si.spec
new file mode 100644
index 0000000..5a91500
--- /dev/null
+++ b/qgis_1.7_si.spec
@@ -0,0 +1,529 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: qgis
+Version: 1.7.0
+Release: 3%{?dist}
+Summary: A user friendly Open Source Geographic Information System
+
+Group: Applications/Engineering
+License: GPLv2+ with exceptions
+URL: http://www.qgis.org/
+#Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
+Source0: http://qgis.org/~timlinux/src/%{name}_%{version}.tar.gz
+Source1: %{name}.desktop
+
+# Fix detection problem for GRASS libraries
+# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
+Patch0: qgis-1.5.0-grass.patch
+Patch1: qgis-libqwtpolar.patch
+
+BuildRequires: cmake
+BuildRequires: flex bison
+
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: gsl-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+BuildRequires: libspatialite-devel
+BuildRequires: sqlite-devel
+BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+BuildRequires: qwt-devel
+BuildRequires: qwtpolar-devel
+BuildRequires: PyQwt-devel
+BuildRequires: sip-devel > 4.7
+BuildRequires: python-devel
+BuildRequires: PyQt4-devel
+BuildRequires: qt4-webkit-devel
+BuildRequires: fcgi-devel
+
+# grass package contains definitions needed for configure script
+BuildRequires: grass, grass-devel
+
+Requires: gpsbabel
+
+# Obsoletes can be dropped after F15's EOL
+Obsoletes: qgis-theme-classic < 1.1
+Obsoletes: qgis-theme-gis < 1.1
+Obsoletes: qgis-theme-nkids < 1.1
+
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%description
+Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
+System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
+QGIS supports vector, raster, and database formats. QGIS lets you browse
+and create map data on your computer. It supports many common spatial data
+formats (e.g. ESRI ShapeFile, geotiff). QGIS supports plugins to do things
+like display tracks from your GPS.
+
+%package devel
+Summary: Development Libraries for the Quantum GIS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for Quantum GIS including the C header files.
+
+%package grass
+Summary: GRASS Support Libraries for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: grass
+
+%description grass
+GRASS plugin for Quantum GIS required to interface with the GRASS system.
+
+%package python
+Summary: Python integration and plugins for Quantum GIS
+Group: Applications/Engineering
+Requires: %{name} = %{version}-%{release}
+Requires: gdal-python
+Requires: PyQt4
+%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
+
+%description python
+Python integration and plugins for Quantum GIS.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .grass
+#%patch1 -p0 -b .qwtpolar
+
+rm -f CMakeCache.txt
+
+#TODO: GRASS-Kram reparieren
+#Delete bundled libspatialite
+rm -rf src/core/spatialite
+find src/core/spatialindex -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
+#maxdepth nur weil ich .svn hab
+#rm -rf src/core/pal
+rm -rf src/core/gps/qwtpolar
+#rm -rf Python-Skript
+
+%build
+
+# Detection doesn't work on its own
+#GRASS_PREFIX=%{_libdir}
+
+%cmake \
+ %{_cmake_skip_rpath} \
+ -D QGIS_LIB_SUBDIR=%{_lib} \
+ -D QGIS_MANUAL_SUBDIR=/share/man \
+ -D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
+ -D QGIS_CGIBIN_SUBDIR=%{_libexecdir}/%{name} \
+ -D WITH_BINDINGS:BOOL=TRUE \
+ -D WITH_MAPSERVER:BOOL=TRUE \
+ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
+ -D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
+ -D GDAL_LIBRARY=%{_libdir}/libgdal.so \
+ -D WITH_SPATIALITE:BOOL=TRUE \
+ -D WITH_INTERNAL_QWTPOLAR:BOOL=FALSE \
+ -D WITH_INTERNAL_LIBSPATIALINDEX:BOOL=FALSE \
+ -D ENABLE_TESTS:BOOL=TRUE \
+ -D WITH_INTERNAL_SPATIALITE:BOOL=FALSE \
+ .
+
+# -D GRASS_PREFIX=$GRASS_PREFIX \
+# Parallel make leads to race conditions with PYQT4_WRAP_UI
+make %{?_smp_mflags}
+#make
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%find_lang %{name} --with-qt
+
+
+# Add executable perms to python libs so they get stripped
+chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
+
+# Remove files packaged by doc or undesired
+pushd %{buildroot}%{_datadir}/%{name}/doc
+rm -f BUGS \
+ ChangeLog \
+ CODING \
+ COPYING \
+ INSTALL \
+ PROVENANCE \
+ README
+popd
+
+# Install desktop file
+install -pd %{buildroot}%{_datadir}/pixmaps
+install -pm0644 \
+ %{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
+ %{buildroot}%{_datadir}/pixmaps/%{name}.png
+desktop-file-install --vendor="fedora" \
+--dir=%{buildroot}/%{_datadir}/applications \
+%{SOURCE1}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post grass -p /sbin/ldconfig
+
+%postun grass -p /sbin/ldconfig
+
+%post python -p /sbin/ldconfig
+
+%postun python -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
+# Can be viewed in the About-Box:
+# CONTRIBUTORS AUTHORS
+%{_libdir}/lib%{name}*.so.*
+%{_libdir}/%{name}/
+%{_bindir}/%{name}*
+%{_libexecdir}/%{name}
+%{_mandir}/man1/%{name}*
+%dir %{_datadir}/%{name}/
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/fedora-%{name}.desktop
+%dir %{_datadir}/%{name}/i18n/
+#Ob das stimmt?
+%{_datadir}/%{name}/doc
+%{_datadir}/%{name}/images
+%{_datadir}/%{name}/resources
+%{_datadir}/%{name}/svg
+%{_datadir}/%{name}/themes
+%exclude %{_libdir}/libqgisgrass.so.%{version}
+#%exclude %{_libdir}/%{name}/libgrassprovider.so
+#%exclude %{_libdir}/%{name}/libgrassrasterprovider.so
+%exclude %{_libdir}/%{name}/*grass*
+#%exclude %{_libdir}/%{name}/libgrassplugin.so
+%exclude %{_datadir}/%{name}/themes/default/grass
+%exclude %{_datadir}/%{name}/themes/gis/grass
+%exclude %{_datadir}/%{name}/themes/classic/grass
+#%exclude %{_libdir}/%{name}/grass
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}*.so
+%{_libdir}/lib%{name}python.so
+%{_libdir}/lib%{name}grass.so
+
+%files grass
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}grass.so.%{version}
+#%{_libdir}/%{name}/libgrassprovider.so
+#%{_libdir}/%{name}/libgrassrasterprovider.so
+#%{_libdir}/%{name}/libgrassplugin.so
+%{_libdir}/%{name}/libgrass*.so
+%{_libdir}/%{name}/grass
+%{_datadir}/%{name}/grass
+%{_datadir}/%{name}/themes/default/grass
+%{_datadir}/%{name}/themes/gis/grass
+%{_datadir}/%{name}/themes/classic/grass
+
+%files python
+%defattr(-,root,root,-)
+%{_libdir}/lib%{name}python.so.*
+%{_datadir}/%{name}/python
+%{python_sitearch}/%{name}
+
+%changelog
+* Tue Nov 23 2010 Volker Fröhlich <volker27@gmx.at> - 1.7.0-3
+- Rebuild for GDAL 1.7.3 and GRASS 6.4
+
+* Fri Nov 12 2010 Volker Fröhlich <volker27@gmx.at> - 1.7.0-1
+- Updated for 1.7
+- Dropped superfluid iconv
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-2
+- Disabled smp-flags again
+
+* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
+- Avoid rpaths in the first place
+- Dropped superfluid QWT and SIP patches
+- Dropped test section
+- Added dependency for fcgi-devel
+- Abbreviated syntax for setup macro
+- Qt translations are no longer shipped
+
+* Wed Sep 29 2010 jkeating - 1.5.0-6
+- Rebuilt for gcc bug 634757
+
+* Mon Sep 13 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.05
+- Added workaround patch for SIP 4.11, see http://trac.osgeo.org/qgis/ticket/2985
+
+* Thu Sep 09 2010 Rex Dieter <rdieter@fedoraproject.org> 1.5.0-4
+- rebuild (sip)
+- BR: qt4-devel
+
+* Fri Jul 30 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.03
+- Added dependency for gdal-python to fulfill standard plugins' requirements
+
+* Tue Jul 27 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.5.0-2.py27
+- one more time for python27, with feeling
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.5.0-1
+- Updated for 1.5.0
+- Added support for qwt
+
+* Wed Jul 14 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-9
+- Re-added missing dependency of PyQt4 and sip for python sub-package
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
+- Further completed qt47 patch
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
+- Added patch to remove redundant ::QVariant in function-style cast
+
+* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
+- Removed smp_mflags because of race conditions
+- Simplified member initializer syntax in qt47 patch
+
+* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
+- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
+- Put version variable in filelist for GRASS
+- Added qt-webkit as build require, removed gettext
+- Corrected erroneous dependency on GRASS subpackage
+
+* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
+- Changed license to reflect exception for Qt; packaged exception file
+- Added find_lang and excluded qt-translations
+- Added ownership for directory in share
+- Dropped docdir statement
+- Changed description for the subpackages python and grass
+
+* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
+- Grouped corresponding entries for description and package macro
+- Corrected swapped summaries for python- and grass-subpackage
+- Set theme subpackages as obsolete
+- Removed nonsensical build-requires statements from subpackages
+- Dropped redundant definition of GRASS_PREFIX
+- Removed verbose-option from make
+- Removed unnecessary chmod-command
+- Removed nonsensical ldconfig for devel-subpackage
+- Made the file list more elegant
+- Removed unnecessary call for chrpath
+
+* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
+- Updated for 1.4.0
+- Dropped theme packages
+
+* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
+- rebuild for sip 4.10
+- fix sip version check so it works with sip 4.10 (#553713)
+
+* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
+- Rebuild against new GEOS.
+
+* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
+- qgis rebuild for sip-4.9.x (#538119)
+
+* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
+- Rebuild for new Geos.
+
+* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
+- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
+
+* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
+- Rebuilt to fix python problem (#518121)
+
+* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
+- updating for 1.0.2
+- moving libqgispython.so to python subpackage for bug#507381
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
+- updating for 1.0.1
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
+- updating for 1.0.0
+- added gis theme and quick print plugin
+- added requirement for gpsbabel
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
+- cleaning up patch
+
+* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
+- bump to add patch
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
+- adding patch to fix typedef problems in python build
+
+* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
+- Rebuild for Python 2.6
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
+- Rebuild for Python 2.6
+
+* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
+- Rebuild for new geos, fixes broken deps
+
+* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
+- building against blas and lapack instead of atlas and blas to fix missing
+ library calls
+
+* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
+- update to metis 0.11.0
+- remove python patch
+- enabling python subpackage
+- fixed executable perms on new headers/source
+- stripping rpath with chrpath
+- making python libs executable to get files stripped
+
+* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
+- added patch to support cmake 2.6
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
+- upgraded to 0.10.0 release candidate
+- removed gcc 4.3 patches
+- adding devel package since libraries are now versioned
+
+* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
+- fix build by adding more gcc43 patches
+- rebuild against grass63
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
+- Autorebuild for GCC 4.3
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
+- adding gcc43-INT_MAX-qgis-0.9.1.patch
+- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
+- adding gcc43-memcpy-qgis-0.9.1.patch
+- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
+
+* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
+- adding Requires sip, PyQt4 for python bindings support
+
+* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
+- defining lib path in build
+- installing python bindings globally
+- adding patch to determine python site packages dir correctly
+
+* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
+- update to 0.9.1
+- removing lib64 and man instal path patches (included upstream)
+- enabling python integration
+
+* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
+- enabling build for PPC64 (bug#247152)
+
+* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
+- update to 0.9.0
+- remove settings-include-workdir.patch
+- updated man-install-share.patch to man-install-share-0.9.0.patch
+- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
+- enabled python to support msexport tool
+- added Requires: grass to grass subpackage
+
+* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
+- bump for expat 2.0 rebuild bug#195888
+
+* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
+- updated License from GPL to GPLv2+
+
+* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
+- allowing docs to be installed by qgis so they can be referenced by internal
+ help system (bug#241403)
+- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
+- updated lib64 patch for core and grass libraries
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
+- updated lib64 patch
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
+- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
+
+* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
+- adding patch for lib64 support through lib_suffix
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
+- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
+ Thu Jun 28 2007
+- linking icon to included png instead of packaging it again
+
+* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
+- adding comment on why grass is required in addition to grass-devel for BR
+- fixing typo
+
+* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
+- adding contributors to doc
+- adding desktop file and icon
+
+* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
+- updating detection of grass libraries to not use RPM call
+- disabling building of -devel package due to shared libraries not being
+ versioned and having no other packages that compile against qgis
+ (see bug #241403)
+- removing chmod of test_export.py due to lack of python requirement
+- removing msexport and share/python directory due to removal of python
+
+* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
+- added BuildRequires: cmake
+- updated build to use cmake macro and make verbose
+
+* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
+- updating version
+- removed BuildRequires: python-devel due to lack of PyQt4 bindings
+- updated build for use of cmake instead of autotools
+- added patch for setting WORKDIR in settings.pro file
+- added patch for fixing install path of man pages
+- updated library names
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
+- adding BuildRequires bison, flex
+
+* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
+- fixing more directory owernship (themes, themes-default)
+- fixing qt4 hardcoded lib path
+- removing Requires ldconfig
+- adding BuildRequires sqlite-devel
+- adding patch for supporting python 2.5 in configure script
+
+* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
+- moving all BuildRequires to main section
+- dropping use of makeinstall macro
+- making sure directories are owned by this package
+- removing *.a and *.la files
+- disabled stripping of libraries and binaries to allow debuginfo package
+ to be built
+- fixing macros in changelog
+- removing executable bits on source files
+
+* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
+- fixing Requires statements for sub-packages
+
+* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
+- added devel dependancy on qgis
+- moved qgis-config to devel package
+- moving doc directory
+- removed zero-length NEWS doc
+- added postin/postun ldconfig calls
+- split packages up to reduce package size and split out dependancies
+ grass, theme-nkids
+
+* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
+- Initial RPM release.
+
diff --git a/spatialite-tools.spec b/spatialite-tools.spec
new file mode 100644
index 0000000..8ca2f1c
--- /dev/null
+++ b/spatialite-tools.spec
@@ -0,0 +1,60 @@
+Name: spatialite-tools
+Version: 2.4.0
+Release: 0.3.RC4%{?dist}
+Summary: A set of useful CLI tools for SpatiaLite
+
+Group: Development/Tools
+License: GPLv3+
+Source0: http://www.gaia-gis.it/spatialite-%{version}-4/%{name}-%{version}.tar.gz
+URL: http://www.gaia-gis.it/spatialite/index.html
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: expat-devel
+BuildRequires: libspatialite-devel sqlite-devel proj-devel geos-devel
+
+# No libspatialite for ppc64 -- see #663938
+ExcludeArch: ppc64
+
+%description
+A set of useful CLI tools for SpatiaLite.
+
+
+%prep
+%setup -q
+
+# Remove unused Makefiles
+rm -f Makefile-static*
+
+
+%build
+# Add libm (floor); Reported upstream via e-mail 15 Jan 2011
+%configure LDFLAGS="-lm"
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{_bindir}/*
+
+
+%changelog
+* Fri Feb 25 2011 Volker Fröhlich <volker27@gmx.at> - 2.4.0-0.3.RC4
+- Exclude ppc64
+
+* Fri Jan 14 2011 Volker Fröhlich <volker27@gmx.at> - 2.4.0-0.2.RC4
+- Dropped prefix from configure macro
+- Corrected license
+- Use macros in source URL
+
+* Mon Dec 20 2010 Volker Fröhlich <volker27@gmx.at> - 2.4.0-0.1.RC4
+- Inital packaging
diff --git a/unfinished/dispcalgui.spec b/unfinished/dispcalgui.spec
new file mode 100644
index 0000000..3af0601
--- /dev/null
+++ b/unfinished/dispcalgui.spec
@@ -0,0 +1,76 @@
+%global capname dispcalGUI
+
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: dispcalgui
+Version: 0.6.6.7
+Release: 1%{?dist}
+Summary: Graphical frontend for Argyll CMS
+
+Group: Applications/Desktop
+License: GPLv3
+URL: http://dispcalgui.hoech.net/
+#Source falsch
+Source0: http://dispcalgui.hoech.net/%{capname}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+#BuildArch: noarch
+BuildRequires: python
+
+%description
+DispcalGUI is a graphical frontend for several utilities from the open source
+color management system Argyll CMS by Graeme W. Gill, specifically dispcal,
+dispread, colprof and dispwin, which when used together allow you to calibrate
+and profile your display using a measurement device
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development package for %{name}
+
+%prep
+%setup -q -n %{capname}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --root %{buildroot}
+pushd %{buildroot}
+rm -rf home
+popd
+
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.html
+%{_bindir}/*
+%{_mandir}/man1/*
+%{_datadir}/%{capname}
+%{_datadir}/icons/*
+%{_defaultdocdir}/%{capname}-%{version}
+%{python_sitearch}/*
+%{_sysconfdir}/*
+%{_desktopdir}/*
+
+%files devel
+%defattr(-,root,root,-)
+
+%changelog
+
+* Thu Dec 23 2010 Volker Fröhlich <volker27@gmx.at> - 0.6.6.7-1
+- Initial packaging
diff --git a/unfinished/gdal-grass.spec b/unfinished/gdal-grass.spec
new file mode 100644
index 0000000..eae5fa6
--- /dev/null
+++ b/unfinished/gdal-grass.spec
@@ -0,0 +1,92 @@
+%define grasspath %{_libdir}/grass-6.3.0
+
+Name: gdal-grass
+Version: 1.4.3
+Release: 3%{?dist}
+Summary: Standalone GRASS 6 Drivers for GDAL and OGR
+
+Group: Applications/Engineering
+License: MIT
+URL: http://www.gdal.org/
+Source0: http://download.osgeo.org/gdal/%{name}-%{version}.tar.gz
+#Patch0: gdal-grass-1.4.3-ldflags.patch
+#Patch1: gdal-grass-1.4.3-prefix.patch
+Patch2: gdal-grass-1.4.3-ln.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: grass
+BuildRequires: grass-devel
+BuildRequires: proj-devel
+BuildRequires: zlib-devel
+BuildRequires: gdal-devel
+
+%description
+This package contains standalone drivers for GRASS raster and vector
+files that can be built after GDAL has been built and installed as an
+"autoload" driver.
+
+This is particularly useful in resolving problems with GRASS depending
+on GDAL, but GDAL with GRASS support depending on GRASS. With this
+package you can configure and install GDAL normally (--without-grass), then
+build and install GRASS normally and finally build and install this driver.
+
+%prep
+%setup -q
+#%patch0 -p0 -b .ldflags
+#%patch1 -p0 -b .prefix
+%patch2 -p1 -b .ln
+
+%build
+%configure \
+ --enable-shared \
+ --with-grass=%{grasspath} \
+ --with-autoload=%{_libdir}/%{name}/plugins \
+ --with-gdal=%{_bindir}/gdal-config-64
+ #TODO: Achtung 64
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# make plugin available on system
+install -d %{buildroot}/etc/ld.so.conf.d
+install -d %{buildroot}/etc/profile.d
+echo "%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+echo "export GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/profile.d/gdal-grass.sh
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/sbin/ldconfig
+echo -e "\e[0;34mPlease \e[0;31mlogout and login \e[0;34magain or \
+run \e[0;31mexport GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins \
+\e[0;34mto set the plugin path. To verify the installation run \
+\e[0;31mgdal_translate --formats | grep -i grass. \e[0;34mThis should \
+return something similar to \e[0;31mGRASS (ro): GRASS Database Rasters \
+(5.7+)\e[0m"
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/%{name}
+%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+%{_sysconfdir}/profile.d/gdal-grass.sh
+
+%changelog
+* Thu Mar 31 2011 Volker Fröhlich <volker27@gmx.at> - 1.4.3-3
+- Removed implicit BRs and Rs
+- Use symlinks instead of copying files from GRASS
+
+* Sat Dec 04 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.4.3-2
+- Updated the description
+- Dropped unwanted BRs
+- Removed %%doc, no specific documentation available
+- Used macros instead of some static paths
+- Used Wiledcard syntax to avoid version conflicts
+
+* Wed Nov 24 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.4.3-1
+-Initial Build
diff --git a/unfinished/gdal-grass.spec.alt b/unfinished/gdal-grass.spec.alt
new file mode 100644
index 0000000..ed62db5
--- /dev/null
+++ b/unfinished/gdal-grass.spec.alt
@@ -0,0 +1,104 @@
+%define grasspath %{_libdir}/grass-6.4.0
+
+Name: gdal-grass
+Version: 1.4.3
+Release: 1%{?dist}
+Summary: Standalone GRASS 6 Drivers for GDAL and OGR
+
+Group: Applications/Engineering
+License: MIT
+URL: http://www.gdal.org/
+Source0: http://download.osgeo.org/gdal/%{name}-%{version}.tar.gz
+Patch0: gdal-grass-1.4.3-ldflags.patch
+Patch1: gdal-grass-1.7.3-prefix.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: grass >= 6.3.0
+Requires: grass-libs >= 6.3.0
+Requires: proj >= 4.5.0
+Requires: zlib >= 1.2.3
+Requires: gdal >= 1.6.0
+BuildRequires: grass >= 6.3
+BuildRequires: grass-libs >= 6.3
+BuildRequires: grass-devel >= 6.3
+BuildRequires: proj-devel >= 4.5.0
+BuildRequires: zlib-devel >= 1.2.3
+BuildRequires: gdal-devel >= 1.6.0
+
+%description
+This package contains standalone drivers for GRASS raster and vector
+files that can be built after GDAL has been built and installed as an
+"autoload" driver.
+
+This is particularly useful in resolving problems with GRASS depending
+on GDAL, but GDAL with GRASS support depending on GRASS. With this
+package you can configure and install GDAL normally (--without-grass), then
+build and install GRASS normally and finally build and install this driver.
+
+To build this driver it is necessary for it to find GDAL and GRASS support
+files.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p0 -b .ldflags
+%patch1 -p0 -b .prefix
+
+%build
+%configure \
+ --enable-shared \
+ --with-grass=%{grasspath} \
+ --with-autoload=%{_libdir}/gdal-grass/plugins \
+ --with-gdal=/usr/bin/gdal-config
+
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# make plugin available on system
+install -d %{buildroot}/etc/ld.so.conf.d
+install -d %{buildroot}/etc/profile.d
+echo "%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+echo "export GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/profile.d/gdal-grass.sh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+if [ -d %{_libdir}/grass-*/driver/db ] ; then
+ cp -a %{_libdir}/grass-*/driver/db %{_libdir}/gdal-grass/driver/
+fi
+if [ -f %{_libdir}/grass-*/etc/ellipse.table ]; then
+ cp -p %{_libdir}/grass-*/etc/ellipse.table %{_libdir}/gdal-grass/etc/
+fi
+if [ -f %{_libdir}/grass-*/etc/datum.table ]; then
+ cp -p %{_libdir}/grass-*/etc/datum.table %{_libdir}/gdal-grass/etc/
+fi
+if [ -f %{_libdir}/grass-*/etc/datumtransform.table ]; then
+ cp -p %{_libdir}/grass-*/etc/datumtransform.table %{_libdir}/gdal-grass/etc/
+fi
+echo -e "\e[0;34mPlease \e[0;31mlogout and login \e[0;34magain or \
+run \e[0;31mexport GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins \
+\e[0;34mto set the plugin path. To verify the installation run \
+\e[0;31mgdal_translate --formats | grep -i grass. \e[0;34mThis should \
+return something similar to \e[0;31mGRASS (ro): GRASS Database Rasters \
+(5.7+)\e[0m"
+
+%postun
+rm -rf %{_libdir}/gdal-grass
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/gdal-grass/plugins/*.so
+%{_libdir}/gdal-grass/etc/
+%{_libdir}/gdal-grass/driver/
+%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+%{_sysconfdir}/profile.d/gdal-grass.sh
+%doc README
+
+%changelog
+* Wed Nov 24 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.4.3-1
+-Initial Build
diff --git a/unfinished/gdal-grass.volker.spec b/unfinished/gdal-grass.volker.spec
new file mode 100644
index 0000000..ed62db5
--- /dev/null
+++ b/unfinished/gdal-grass.volker.spec
@@ -0,0 +1,104 @@
+%define grasspath %{_libdir}/grass-6.4.0
+
+Name: gdal-grass
+Version: 1.4.3
+Release: 1%{?dist}
+Summary: Standalone GRASS 6 Drivers for GDAL and OGR
+
+Group: Applications/Engineering
+License: MIT
+URL: http://www.gdal.org/
+Source0: http://download.osgeo.org/gdal/%{name}-%{version}.tar.gz
+Patch0: gdal-grass-1.4.3-ldflags.patch
+Patch1: gdal-grass-1.7.3-prefix.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: grass >= 6.3.0
+Requires: grass-libs >= 6.3.0
+Requires: proj >= 4.5.0
+Requires: zlib >= 1.2.3
+Requires: gdal >= 1.6.0
+BuildRequires: grass >= 6.3
+BuildRequires: grass-libs >= 6.3
+BuildRequires: grass-devel >= 6.3
+BuildRequires: proj-devel >= 4.5.0
+BuildRequires: zlib-devel >= 1.2.3
+BuildRequires: gdal-devel >= 1.6.0
+
+%description
+This package contains standalone drivers for GRASS raster and vector
+files that can be built after GDAL has been built and installed as an
+"autoload" driver.
+
+This is particularly useful in resolving problems with GRASS depending
+on GDAL, but GDAL with GRASS support depending on GRASS. With this
+package you can configure and install GDAL normally (--without-grass), then
+build and install GRASS normally and finally build and install this driver.
+
+To build this driver it is necessary for it to find GDAL and GRASS support
+files.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p0 -b .ldflags
+%patch1 -p0 -b .prefix
+
+%build
+%configure \
+ --enable-shared \
+ --with-grass=%{grasspath} \
+ --with-autoload=%{_libdir}/gdal-grass/plugins \
+ --with-gdal=/usr/bin/gdal-config
+
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# make plugin available on system
+install -d %{buildroot}/etc/ld.so.conf.d
+install -d %{buildroot}/etc/profile.d
+echo "%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+echo "export GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins" > %{buildroot}/%{_sysconfdir}/profile.d/gdal-grass.sh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+if [ -d %{_libdir}/grass-*/driver/db ] ; then
+ cp -a %{_libdir}/grass-*/driver/db %{_libdir}/gdal-grass/driver/
+fi
+if [ -f %{_libdir}/grass-*/etc/ellipse.table ]; then
+ cp -p %{_libdir}/grass-*/etc/ellipse.table %{_libdir}/gdal-grass/etc/
+fi
+if [ -f %{_libdir}/grass-*/etc/datum.table ]; then
+ cp -p %{_libdir}/grass-*/etc/datum.table %{_libdir}/gdal-grass/etc/
+fi
+if [ -f %{_libdir}/grass-*/etc/datumtransform.table ]; then
+ cp -p %{_libdir}/grass-*/etc/datumtransform.table %{_libdir}/gdal-grass/etc/
+fi
+echo -e "\e[0;34mPlease \e[0;31mlogout and login \e[0;34magain or \
+run \e[0;31mexport GDAL_DRIVER_PATH=%{_libdir}/gdal-grass/plugins \
+\e[0;34mto set the plugin path. To verify the installation run \
+\e[0;31mgdal_translate --formats | grep -i grass. \e[0;34mThis should \
+return something similar to \e[0;31mGRASS (ro): GRASS Database Rasters \
+(5.7+)\e[0m"
+
+%postun
+rm -rf %{_libdir}/gdal-grass
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/gdal-grass/plugins/*.so
+%{_libdir}/gdal-grass/etc/
+%{_libdir}/gdal-grass/driver/
+%{_sysconfdir}/ld.so.conf.d/gdal-grass.conf
+%{_sysconfdir}/profile.d/gdal-grass.sh
+%doc README
+
+%changelog
+* Wed Nov 24 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.4.3-1
+-Initial Build
diff --git a/unfinished/gpstk.spec b/unfinished/gpstk.spec
new file mode 100644
index 0000000..991a36b
--- /dev/null
+++ b/unfinished/gpstk.spec
@@ -0,0 +1,113 @@
+Name: gpstk
+Version: 1.7
+Release: 0.1.RC%{?dist}
+Summary: The GPS Toolkit
+
+Group: Applications/Engineering
+License: LGPLv2+
+URL: http://www.gpstk.org/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-RC.src.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: jam
+BuildRequires: libtool
+BuildRequires: doxygen
+#BuildRequires: gtkmm24-devel
+#BuildRequires: libglademm24-devel
+#BuildRequires: gconfmm26-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: ncurses-devel
+
+
+%description
+Algorithms and frameworks supporting the development of processing
+and analysis applications in navigation and global positioning.
+
+%package devel
+Summary: Development files for GPSTk
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the development files for the GPS Toolkit.
+
+
+%package docs
+Summary: Documentation for GPSTk
+Group: Documentation
+
+%description docs
+This package contains the HTML documentation files for the GPS Toolkit.
+
+
+%prep
+%setup -q -n %{name}-%{version}-RC
+
+
+%build
+./autogen.sh
+%configure --prefix=%{_prefix}
+
+#doxygen
+jam -j %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+jam -s PREFIX=%{buildroot}%{_prefix} install
+
+# Jam installs everything in /lib, but 64-bit libraries should be in /lib64
+%if "%{_lib}" == "lib64"
+mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
+%endif
+
+# Remove libtool archives
+rm %{buildroot}/%{_libdir}/*.a
+
+# ldconfig in post is not enough for some reason
+pushd %{buildroot}%{_libdir}
+ find . -name '*.so.17.0' -print 2>/dev/null -exec chmod 755 {} \;
+ ldconfig -n .
+popd
+
+# TODO: Tests?
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{_bindir}/*
+%{_libdir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}/
+
+%files docs
+%defattr(-,root,root,-)
+#%doc doc/html
+
+
+%changelog
+* Fri Dec 18 2009 Volker Fröhlich <volker27@gmx.at> - 1.7-0.1.RC
+- Updated to 1.7 RC
+
+* Mon Oct 05 2009 Fabian Affolter <fabian@bernewireless.net> - 1.6-1
+- Updated to new upstream version 1.6
+
+* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 1.5-1
+- Initial package for Fedora
diff --git a/unfinished/gpstk.spec.1.6 b/unfinished/gpstk.spec.1.6
new file mode 100644
index 0000000..a234488
--- /dev/null
+++ b/unfinished/gpstk.spec.1.6
@@ -0,0 +1,116 @@
+Name: gpstk
+Version: 1.6
+Release: 1%{?dist}
+Summary: The GPS Toolkit
+
+Group: Applications/Engineering
+License: LGPLv2+
+URL: http://www.gpstk.org/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: jam
+BuildRequires: doxygen
+#BuildRequires: gtkmm24-devel
+#BuildRequires: libglademm24-devel
+#BuildRequires: gconfmm26-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: ncurses-devel
+
+
+%description
+Algorithms and frameworks supporting the development of processing
+and analysis applications in navigation and global positioning.
+
+%package devel
+Summary: Development files for GPSTk
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the development files for the GPS Toolkit.
+
+
+%package docs
+Summary: Documentation for GPSTk
+Group: Documentation
+
+%description docs
+This package contains the HTML documentation files for the GPS Toolkit.
+
+
+%prep
+%setup -q -n %{name}-%{version}.src
+
+find . -name '*.cpp' -exec chmod -x {} ';'
+find . -name '*.hpp' -exec chmod -x {} ';'
+
+%build
+#Alternative approach with Autotools
+#./autogen.sh
+# Libtool must be symlinked or something in order to work
+#%configure \
+# --prefix=%{_prefix}
+#make %{?_smp_mflags} CFLAGS="%{optflags}"
+ #--disable-static \
+
+#doxygen
+jam -j %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+jam -s PREFIX=%{buildroot}%{_prefix} install
+#Alternative approach with Autotools
+#make install DESTDIR=%{buildroot} INSTALL="install -p"
+
+# jam installs everything in /lib, but 64-bit libraries should be in /lib64
+[ "%{buildroot}%{_prefix}/lib" != "%{buildroot}%{_libdir}" ] && mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
+# Remove rpath from files
+chrpath --delete %{buildroot}%{_libdir}/*.so.*
+
+# Remove libtool archives
+rm %{buildroot}/%{_libdir}/*.a
+
+pushd %{buildroot}%{_libdir}
+ find . -name '*.so.16.0' -print 2>/dev/null -exec chmod 755 {} \;
+ ldconfig -n . \;
+ #find . -name '*.so.16.0' -print 2>/dev/null -exec mv {} {}.0 \;
+ #find . -name '*.so.16.0.0' -print 2>/dev/null | while read sofile
+ #do ln -s "$sofile" "${sofile%.*.*}"
+ #done
+popd
+
+# TODO: Tests?
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+# -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{_bindir}/*
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}/
+
+%files docs
+%defattr(-,root,root,-)
+#%doc doc/html
+
+
+%changelog
+* Mon Oct 05 2009 Fabian Affolter <fabian@bernewireless.net> - 1.6-1
+- Updated to new upstream version 1.6
+
+* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 1.5-1
+- Initial package for Fedora
diff --git a/unfinished/gpstk.spec.autotools b/unfinished/gpstk.spec.autotools
new file mode 100644
index 0000000..43b5998
--- /dev/null
+++ b/unfinished/gpstk.spec.autotools
@@ -0,0 +1,106 @@
+Name: gpstk
+Version: 1.6
+Release: 1%{?dist}
+Summary: The GPS Toolkit
+
+Group: Applications/Engineering
+License: LGPLv2+
+URL: http://www.gpstk.org/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.tar.gz
+#Patch0: gpstk-1.5-fixheaders.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: jam
+BuildRequires: doxygen
+BuildRequires: gtkmm24-devel
+BuildRequires: libglademm24-devel
+BuildRequires: gconfmm26-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+
+
+%description
+Algorithms and frameworks supporting the development of processing
+and analysis applications in navigation and global positioning.
+
+%package devel
+Summary: Development files for GPSTk
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the development files for the GPS Toolkit.
+
+
+%package docs
+Summary: Documentation for GPSTk
+Group: Documentation/HTML
+
+%description docs
+This package contains the HTML documentation files for the GPS Toolkit.
+
+
+%prep
+%setup -q -n %{name}-%{version}.src
+#%patch0 -p1 -b .header
+
+find . -name '*.cpp' -exec chmod -x {} ';'
+find . -name '*.hpp' -exec chmod -x {} ';'
+
+%build
+#./autogen.sh
+%configure \
+ --disable-static \
+ --prefix=%{_prefix}
+make %{?_smp_mflags} CFLAGS="%{optflags}"
+#jam
+#doxygen
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+# Remove rpath from files
+chrpath --delete \
+ %{buildroot}%{_bindir}/* \
+ #%{buildroot}%{_libdir}/%{name}/*.so \
+
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+# -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+#%{_mandir}/man*/%{name}.*
+%{_bindir}/*
+%{_libdir}/*.so.*
+#%{_datadir}/%{name}/
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}/
+%{_libdir}/*.so
+
+
+%files docs
+%defattr(-,root,root,-)
+#%doc doc/html
+
+
+%changelog
+* Mon Oct 05 2009 Fabian Affolter <fabian@bernewireless.net> - 1.6-1
+- Updated to new upstream version 1.6
+
+* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 1.5-1
+- Initial package for Fedora
diff --git a/unfinished/gpstk.spec.orig b/unfinished/gpstk.spec.orig
new file mode 100644
index 0000000..e9bf28e
--- /dev/null
+++ b/unfinished/gpstk.spec.orig
@@ -0,0 +1,92 @@
+Name: gpstk
+Version: 1.6
+Release: 1%{?dist}
+Summary: The GPS Toolkit
+
+Group: Applications/Engineering
+License: LGPLv2+
+URL: http://www.gpstk.org/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.tar.gz
+Patch0: gpstk-1.5-fixheaders.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: jam
+BuildRequires: doxygen
+BuildRequires: gtkmm24-devel
+BuildRequires: libglademm24-devel
+BuildRequires: gconfmm26-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+
+
+%description
+Algorithms and frameworks supporting the development of processing
+and analysis applications in navigation and global positioning.
+
+%package devel
+Summary: Development files for GPSTk
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the development files for the GPS Toolkit.
+
+
+%package docs
+Summary: Documentation for GPSTk
+Group: Documentation/HTML
+
+%description docs
+This package contains the HTML documentation files for the GPS Toolkit.
+
+
+%prep
+%setup -q -n %{name}-%{version}.src
+%patch0 -p1 -b .header
+
+%build
+#./autogen.sh
+#%configure
+#make %{?_smp_mflags} CFLAGS="%{optflags}"
+jam
+doxygen
+
+
+%install
+rm -rf %{buildroot}
+make install INSTDIR=%{buildroot} INSTALL="install -p"
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+# -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+#%{_mandir}/man*/%{name}.*
+%{_bindir}/%{name}
+#%{_libdir}/%{name}/
+#%{_datadir}/%{name}/
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}/
+
+
+%files docs
+%defattr(-,root,root,-)
+%doc doc/html
+
+
+%changelog
+* Mon Oct 05 2009 Fabian Affolter <fabian@bernewireless.net> - 1.6-1
+- Updated to new upstream version 1.6
+
+* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 1.5-1
+- Initial package for Fedora
+
diff --git a/unfinished/libLAS.spec b/unfinished/libLAS.spec
new file mode 100644
index 0000000..0fadf7c
--- /dev/null
+++ b/unfinished/libLAS.spec
@@ -0,0 +1,199 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+# Can be removed after EOL of F12 (at least for Fedora)
+
+Name: libLAS
+Version: 1.6.0
+Release: 13%{?dist}
+Summary: Library and tools for the LAS LiDAR format
+
+Group: System Environment/Libraries
+License: BSD style and Boost
+URL: http://liblas.org/
+#
+# The next release will be similar to:
+# http://download.osgeo.org/liblas/libLAS-1.6.0b3.tar.gz
+#
+# For now, we use a snapshot generated on:
+# Wed Jan 12 12:49:27 EST 2011
+# using:
+# hg clone http://hg.liblas.org/main libLAS
+# cd libLAS
+# hg archive ../libLAS-2738:e3efe5548e3b.tar.gz
+#
+# and the above was done to obtain shared-library versioning.
+#
+Source0: libLAS-2738:e3efe5548e3b.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: boost-devel, cmake
+BuildRequires: libxml2-devel, libgeotiff-devel
+# Requires:
+
+%description
+libLAS is a C/C++ library for reading and writing the very common LAS LiDAR
+format. The ASPRS LAS format is a sequential binary format used to store data
+from LiDAR sensors and by LiDAR processing software for data interchange and
+archival storage.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+#
+# TODO : This may be needed for EPEL packages once _libdir/pkgconfig/liblas.pc
+# files are created.
+#
+# Requires: pkgconfig
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package python
+Summary: Python files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description python
+The %{name}-python package contains python module for using %{name}.
+
+%prep
+%setup -q -n 'libLAS-2738:e3efe5548e3b'
+
+
+%build
+#
+# Note: -DWITH_GDAL:BOOL=ON is currently disabled since
+# libLAS requires a not-yet-released GDAL 1.8.x version.
+#
+export LDFLAGS='-Wl,--as-needed'
+%cmake \
+ -DLIBLAS_LIB_SUBDIR:PATH="%{_libdir}" \
+ -DWITH_LIBXML2:BOOL=ON \
+ -DWITH_GEOTIFF:BOOL=ON \
+ -DGEOTIFF_INCLUDE_DIR:PATH="/usr/include/libgeotiff" \
+ -DWITH_GDAL:BOOL=OFF \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DWITH_PKGCONFIG:BOOL=ON \
+ .
+make %{?_smp_mflags}
+
+%{__python} python/setup.py build
+%{__python} python/setup.py tests
+
+%check
+#
+# The following fails with the message:
+#
+# ---> group: liblas::Header, test: test<12>
+# problem: assertion failed
+# failed assertion: `Values are not equal: expected `` actual `+to_meter=1.0000000000``
+# tests summary: failures:1 ok:84
+#
+# and this is being investigated so the test is off for now.
+#
+#make test
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+# By default, libLAS installs the files:
+#
+# AUTHORS COPYING LICENSE.txt README.txt
+#
+# in /usr/share but this is more clearly handled (IMHO) by
+# the doc macro in the files section below.
+#
+rm -rf $RPM_BUILD_ROOT/usr/share
+# chmod 755 $RPM_BUILD_ROOT/usr/bin/*
+
+# Please see multilib comment below:
+#
+rm -f $RPM_BUILD_ROOT/usr/bin/liblas-config
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING LICENSE.txt README.txt
+%{_bindir}/las2las
+%{_bindir}/las2las-old
+%{_bindir}/las2txt
+%{_bindir}/las2txt-old
+%{_bindir}/lasblock
+%{_bindir}/lasinfo
+%{_bindir}/lasinfo-old
+%{_bindir}/lasmerge
+%{_bindir}/ts2las
+%{_bindir}/txt2las
+%{_libdir}/*.so.*
+%{python_sitelib}/liblas
+%{python_sitelib}/libLAS.egg-info
+
+%files devel
+%defattr(-,root,root,-)
+# doc is commented out for now
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/liblas.pc
+
+
+%changelog
+* Wed Jan 12 2011 Ed Hill <ed@eh3.com> - 1.6.0-12
+- add the as-needed linker flag
+
+* Wed Jan 12 2011 Ed Hill <ed@eh3.com> - 1.6.0-11
+- turn on pkgconfig
+
+* Wed Jan 12 2011 Ed Hill <ed@eh3.com> - 1.6.0-10
+- remove macro-in-comment rpmlint warnings
+
+* Wed Jan 12 2011 Ed Hill <ed@eh3.com> - 1.6.0-9
+- new snapshot
+
+* Wed Jan 12 2011 Ed Hill <ed@eh3.com> - 1.6.0-8
+- add comments and the check section
+
+* Thu Dec 30 2010 Ed Hill <ed@eh3.com> - 1.6.0-7
+- use LIBLAS_LIB_SUBDIR and add TODO concerning multilib
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0-6
+- put liblas-config in the -devel package, fix permissions, and
+ add RelWithDebInfo
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0-5
+- use a snapshot with soversion changes and add comments
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0b3-4
+- add SONAME patch
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0b3-3
+- fix license tag
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0b3-2
+- add comment about WITH_GDAL build errors
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0b3-1
+- shared libraries are unversioned so put in main package for now
+
+* Wed Dec 29 2010 Ed Hill <ed@eh3.com> - 1.6.0b3-0
+- initial package creation
+
diff --git a/unfinished/libepsilon.spec b/unfinished/libepsilon.spec
new file mode 100644
index 0000000..b95aa4f
--- /dev/null
+++ b/unfinished/libepsilon.spec
@@ -0,0 +1,178 @@
+# Define a macro for calling ../configure instead of ./configure
+%global dconfigure %(printf %%s '%configure' | sed 's!\./configure!../configure!g')
+
+%global short_name epsilon
+
+Name: libepsilon
+Version: 0.8.1
+Release: 3%{?dist}
+Summary: Powerful wavelet image compressor
+Group: System Environment/Libraries
+License: GPLv2
+URL: http://sourceforge.net/projects/%{short_name}-project
+Source0: http://downloads.sourceforge.net/%{short_name}-project/%{short_name}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+Requires: %{name}-common = %{version}-%{release}
+BuildRequires: popt-devel
+#BuildRequires: glibc-devel.i686
+
+%description
+EPSILON is a powerful OpenSource wavelet image compressor.
+Wavelet-driven compressors are know to be much more effective
+than traditional DCT-based ones (like JPEG). At the moment,
+the program supports 30+ different wavelet filters, runs
+in parallel in multi-threaded and MPI environments, can
+process HUGE images and much more.
+
+%package common
+Summary: Common Powerful wavelet image compressor
+%description common
+EPSILON is a powerful OpenSource wavelet image compressor.
+
+%package openmpi
+Summary: MPI-Powerful wavelet image compressor
+BuildRequires: openmpi-devel
+# Require explicitly for dir ownership and to guarantee the pickup of the right runtime
+Requires: openmpi
+Requires: %{name}-common = %{version}-%{release}
+%description openmpi
+EPSILON is a powerful OpenSource wavelet image compressor.
+
+%package mpich2
+Summary: MPICH2-Powerful wavelet image compressor
+BuildRequires: mpich2-devel
+# Require explicitly for dir ownership and to guarantee the pickup of the right runtime
+Requires: mpich2
+Requires: %{name}-common = %{version}-%{release}
+%description mpich2
+EPSILON is a powerful OpenSource wavelet image compressor.
+
+%package devel
+Summary: Development Libraries for libepsilon
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Contains libraries and header files for
+developing applications that use libepsilon.
+
+
+%prep
+%setup -q -n %{short_name}-%{version}
+#sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
+
+
+%build
+
+#MPI scheint zu funktionieren, mpich2 fliegt raus
+
+# To avoid replicated code define a build macro
+%define dobuild() \
+mkdir $MPI_COMPILER; \
+cd $MPI_COMPILER; \
+%dconfigure --enable-pthreads --enable-cluster --disable-static --program-suffix=$MPI_SUFFIX ;\
+make %{?_smp_mflags} ; \
+cd ..
+
+# Build serial version, dummy arguments
+MPI_COMPILER=serial MPI_SUFFIX= %dobuild
+
+# Build parallel versions: set compiler variables to MPI wrappers
+#export CC=mpicc
+export CXX=mpicxx
+#export FC=mpif90
+export F77=mpif77
+
+# Build OpenMPI version
+%{_openmpi_load}
+%dobuild
+%{_openmpi_unload}
+
+# Build mpich2 version
+%{_mpich2_load}
+%dobuild
+%{_mpich2_unload}
+
+
+#%configure \
+# CPPFLAGS="-I/usr/include/openmpi-x86_64/" LDFLAGS="-lmpi"\
+# --prefix=%{_prefix} \
+# --enable-pthreads \
+# --enable-cluster \
+# --disable-static \
+# --enable-mpi
+
+%install
+rm -rf %{buildroot}
+
+# Install serial version
+make -C serial install DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p"
+
+# Install OpenMPI version
+%{_openmpi_load}
+make -C $MPI_COMPILER install DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p"
+%{_openmpi_unload}
+
+# Install MPICH2 version
+%{_mpich2_load}
+make -C $MPI_COMPILER install DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p"
+%{_mpich2_unload}
+
+
+# Remove libtool archive
+rm -f %{buildroot}/%{_libdir}/%{name}.la
+rm -f %{buildroot}/%{_libdir}/%{name}.a
+# Das sollte eigentlich auch von selbst gehen.
+
+%clean
+rm -rf %{buildroot}
+
+
+# Single-Variante auch anbieten
+# Wenn möglich, Versionen für jeden MPI-Compiler in Fedora. openmpi (f, rh), mpich (rh), mpich2 (f) , mvapich und mvapich2(rh), lam (rh)
+# Spezifische Dateien müssen in $MPI_BIN, $MPI_LIB und so
+# Binaries brauchen ein Suffix
+# Keine ldconfig zulässig!
+# Gemeinsames Zeug in -common-Paket das alle benötigen
+# Eigene Header-Pakete und Devel-Pakete
+#TODO: Options, Doxygen?
+
+#Die Perl-Skripts und man-Pages sind genau gleich. Bins scheinen sich zu unterscheiden. Was ist mit der Bib? Die wird nur einmal gemacht.
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/%{short_name}
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/*.so
+%{_includedir}/*
+
+%files common
+%defattr(-,root,root,-)
+%doc README AUTHORS ChangeLog TODO COPYING
+%{_bindir}/start_%{short_name}_nodes.pl
+%{_bindir}/stop_%{short_name}_nodes.pl
+%{_libdir}/*.so.*
+%{_mandir}/man1/*
+
+%files openmpi
+%defattr(-,root,root,-)
+%{_bindir}/epsilon_openmpi
+
+%files mpich2
+%defattr(-,root,root,-)
+%{_bindir}/epsilon_mpich2
+
+%changelog
+* Wed Dec 8 2010 Volker Fröhlich <volker27@gmx.at> 0.8.1-3
+- Added MPI support
+
+* Mon Dec 5 2010 Volker Fröhlich <volker27@gmx.at> 0.8.1-2
+- Included license
+- Enable cluster and pthreads
+
+* Sun Dec 5 2010 Volker Fröhlich <volker27@gmx.at> 0.8.1-1
+- Initial packaging for Fedora
diff --git a/unfinished/libgaiagraphics.spec b/unfinished/libgaiagraphics.spec
new file mode 100644
index 0000000..f3c045b
--- /dev/null
+++ b/unfinished/libgaiagraphics.spec
@@ -0,0 +1,95 @@
+Name: libgaiagraphics
+Version: 0.4
+Release: 2%{?dist}
+Summary: Graphics canvas for GIS rendering
+
+Group: System Environment/Libraries
+#TODO: Stimmt angeblich nicht
+License: GPLv3+
+URL: http://www.gaia-gis.it/spatialite-2.4.0-4
+Source0: http://www.gaia-gis.it/spatialite-2.4.0-4/libgaiagraphics-%{version}.tar.gz
+
+# Fedora's libgeotiff ships with pkgconfig.
+# Since that is not standard, informing upstream is not useful.
+Patch0: libgaiagraphics_libgeotiff.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: libgeotiff-devel
+BuildRequires: libjpeg-devel libpng-devel
+#Not linked but checked for
+BuildRequires: zlib-devel
+BuildRequires: proj-devel
+BuildRequires: cairo-devel
+BuildRequires: autoconf
+Requires: pkgconfig
+
+%description
+Libgaiagraphics wraps raster- and vector graphics, to implement a reasonably
+abstract and platform independent graphics canvas for GIS rendering.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+#TODO: Warning autoconf
+%patch0 -p1 -b .libgeotiff
+
+%build
+# configure.ac and Makefile.ini are patched, hence the need to run autoconf.
+autoconf
+%configure --disable-static
+
+# Remove links to unused libraries
+sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
+
+
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# Delete libtool archives, because we don't ship them.
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{_libdir}/%{name}.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/gaiagraphics.h
+%{_libdir}/%{name}*.so
+%{_libdir}/pkgconfig/gaiagraphics.pc
+
+%changelog
+* Fri Feb 18 2011 Volker Fröhlich <volker27@gmx.at> - 0.4-2
+- Corrected spelling of the name in description
+- More specific file list
+- Added Requires for pkgconfig (EPEL 5)
+- Switched to version macro in source url
+
+* Tue Jan 18 2011 Volker Fröhlich <volker27@gmx.at> - 0.4-1
+- Initial packaging
diff --git a/unfinished/librasterlite.spec b/unfinished/librasterlite.spec
new file mode 100644
index 0000000..af4bf57
--- /dev/null
+++ b/unfinished/librasterlite.spec
@@ -0,0 +1,80 @@
+Name: librasterlite
+Version: 1.0
+Release: 1%{?dist}
+Summary: Support Raster Data Sources within a SpatiaLite DB
+Group: System Environment/Libraries
+License: GPLv3
+URL: http://www.gaia-gis.it/spatialite
+Source0: http://www.gaia-gis.it/spatialite/librasterlite-1.0.tar.gz
+
+BuildRequires: proj-devel geos-devel sqlite-devel
+BuildRequires: libtiff-devel
+BuildRequires: libgeotiff-devel
+BuildRequires: libjpeg-devel
+BuildRequires: zlib-devel
+BuildRequires: libpng-devel
+BuildRequires: libepsilon-devel
+BuildRequires: libspatialite-devel
+#BuildRequires: proj-devel
+
+
+%description
+A library supporting Raster Data Sources within a SpatiaLite DB
+and any releated CLI management tool.
+
+%package devel
+#Quatsch
+Summary: Development Libraries for the SpatiaLite extension
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The RasterLite library provides support for spatial data in SQLite.
+#Quatsch
+
+%prep
+%setup -q
+
+rm -rf epsilon
+rm -f Makefile-static*
+sed -i 's/epsilon//g' Makefile.in
+sed -i 's/epsilon\/Makefile//g' configure
+sed -i 's/spatialite\/sqlite3.h/sqlite3.h/g' lib/*.c
+sed -i 's/spatialite\/sqlite3.h/sqlite3.h/g' src/*.c
+
+
+%build
+%configure --prefix=%{_prefix} \
+ LDFLAGS="-Lepsilon" \
+ CPPFLAGS="%{_includedir}/libgeotiff"
+
+make %{?_smp_mflags}
+i#C_INCLUDE_PATH=%{_includedir}/libgeotiff
+
+
+%install
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS
+
+%files devel
+%defattr(-,root,root,-)
+
+
+%changelog
+* Sun Nov 28 2010 Volker Fröhlich <volker27@gmx.at> 1.0-1
+- Initial packaging for Fedora
diff --git a/unfinished/libspatialindex.spec b/unfinished/libspatialindex.spec
new file mode 100644
index 0000000..520e245
--- /dev/null
+++ b/unfinished/libspatialindex.spec
@@ -0,0 +1,77 @@
+%global shortname spatialindex
+Name: libspatialindex
+Version: 1.6.1
+Release: 1%{?dist}
+Summary: Spatial index library
+Group: System Environment/Libraries
+License: LGPL
+URL: http://trac.gispython.org/spatialindex
+Source0: http://download.osgeo.org/libspatialindex/%{shortname}-src-%{version}.tar.bz2
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: chrpath
+
+%description
+Spatialindex provides a general framework for developing spatial indices.
+Currently it defines generic interfaces, provides simple main memory and
+disk based storage managers and a robust implementation of an R*-tree,
+an MVR-tree and a TPR-tree.
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development files for %{name}.
+
+%prep
+%setup -qn %{shortname}-src-%{version}
+
+%build
+
+%configure
+# --enable-doxygen-man=NO
+
+## WARNING
+## disable %{?_smp_mflags}
+## it breaks compile
+
+# Can't prove that true.
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+chrpath --delete %{buildroot}%{_libdir}/%{name}_c.so.1.0.0
+
+# Delete libtool archives, because we don't ship them.
+pushd %{buildroot}%{_libdir}
+ rm -f *.a *.la
+popd
+
+#Tests?
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README
+%{_libdir}/%{name}*.so
+%{_libdir}/%{name}*.so.1
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{shortname}
+%{_libdir}/%{name}*.so.1.*
+
+%changelog
+* Sun Feb 06 2011 Volker Fröhlich <volker27@gmx.at> - 1.6.1-1
+- Initial packaging
diff --git a/unfinished/mod_geocache.spec b/unfinished/mod_geocache.spec
new file mode 100644
index 0000000..db5d095
--- /dev/null
+++ b/unfinished/mod_geocache.spec
@@ -0,0 +1,58 @@
+Name: mod_geocache
+Version: 0.2.1
+Release: 1%{?dist}
+Summary: Tile caching module for the Apache HTTP Server
+
+Group: Development/Tools
+License: ASL 2.0
+#Sonderbehandlung
+Source0: http://mod-geocache.googlecode.com/files/mod-geocache-%{version}.tar.gz
+URL: http://code.google.com/p/mod-geocache/
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: httpd-devel
+BuildRequires: libcurl-devel
+BuildRequires: libxml2-devel
+BuildRequires: libpng-devel
+BuildRequires: libjpeg-devel
+BuildRequires: apr-devel
+BuildRequires: gdal-devel
+
+%description
+mod-geocache aims to implement a subset of the features offered by existing
+tile caching solutions. The primary objectives are to be fast and easily
+deployable, while offering the essential features expected from a
+tile caching solution.
+
+#Eventuell Teilung in base fcgi und mod
+
+%prep
+%setup -q -n mod-geocache-%{version}
+
+
+%build
+%configure --with-fastcgi=%{_prefix}
+make %{?_smp_mflags}
+#Das Modul aktiviert sich selbst. Ist das OK?
+%install
+rm -rf %{buildroot}
+install -Dpm 755 src/.libs/mod_geocache.so %{buildroot}/%{_libdir}/httpd/modules/mod_geocache.so
+#Flags? in Makefile.inc sind die
+#Installationspfade statisch?
+#make install-module
+#make install-fcgi
+#doxygen
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE
+%{_libdir}/httpd/modules/mod_geocache.so
+
+%changelog
+* Sat Jan 22 2011 Volker Fröhlich <volker27@gmx.at> - 0.2.1-1
+- Inital packaging
diff --git a/unfinished/openmodeller-desktop.spec b/unfinished/openmodeller-desktop.spec
new file mode 100644
index 0000000..53472e3
--- /dev/null
+++ b/unfinished/openmodeller-desktop.spec
@@ -0,0 +1,93 @@
+Name: openmodeller-desktop
+Version: 1.1.0
+Release: 1.20110127svn%{?dist}
+Summary: Desktop application for openmodeller
+
+Group: Desktop
+License: GPLv2+
+URL: http://openmodeller.sourceforge.net
+#Gehört noch bearbeitet
+#Source0: http://sourceforge.net/projects/openmodeller/files/openModeller%20Desktop/1.1.0/openModellerDesktop-src-%{version}.tar.bz2
+Source0: openmodeller-desktop-svn5259.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: openssl-devel
+
+#Requires:
+
+%description
+Bla.
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development packages for %{name}.
+
+
+%prep
+%setup -qn %{name}-svn5259
+
+
+%build
+
+%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+ -DQGIS_PLUGIN_DIR:PATH=/usr/share/qgis/python/plugins \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DGDAL_LIBRARY:PATH=%{_libdir}/libgdal.so \
+ -DOM_LIBRARY:PATH=%{_libdir}/libopenmodeller.so \
+ -DOM_LIB_DIR:PATH=%{_libdir}/libopenmodeller \
+ -DOM_INCLUDE_DIR:STRING=%{_includedir}/openmodeller \
+ -DQWT_INCLUDE_DIR:PATH=%{_includedir}/qwt \
+ -DWITH_DESIGNER:BOOL=ON
+ #-DWITH_QGIS:BOOL=OFF
+
+
+#make %{?_smp_mflags}
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%find_lang OpenModellerDesktop --with-qt --all-name
+#//preferred path to GDAL (gdal-config)
+#GDAL_CONFIG_PREFER_PATH:STRING=/bin
+#Om-Library-Pfad wird falsch erkannt
+#qgis_plugin_dir
+#LIB_SUFFIX
+#qgis-bibpfade auch in lib
+#svn-marker
+#with_designer
+#Doxygen
+#qwt und gdal, python, ossim -- was ist webcatalogue und experimental?
+#Tests
+#Desktop file
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+#%files -f %{name}.lang
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt TODO CODING_GUIDE.txt
+#contributors wahrscheinlich unnötig; changelog.html auch
+%{_bindir}/*
+#%{_libdir}/libomg*
+#%{_libdir}/openModellerDesktop
+
+
+%files devel
+%defattr(-,root,root,-)
+#%{_includedir}/OpenModellerDesktop
+
+%changelog
+
+* Thu Jan 27 2011 Volker Fröhlich <volker27@gmx.at> - 1.1.0-1.20110127svn
+- Initial package
diff --git a/unfinished/openmodeller.spec b/unfinished/openmodeller.spec
new file mode 100644
index 0000000..b762b39
--- /dev/null
+++ b/unfinished/openmodeller.spec
@@ -0,0 +1,169 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: openmodeller
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Fundamental niche modeling library
+
+Group: System Environment/Libraries
+License: GPLv2+
+URL: http://openmodeller.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/lib%{name}-src-%{version}.tar.bz2
+#Cmake and Python script taken from QGIS
+Source1: FindPythonLibs.cmake
+Source2: FindLibPython.py
+
+#Taken from http://wush.net/trac/sehenley/browser/simulator/trunk/vendor/cmake/Modules/FindSWIG.cmake?rev=1306
+Source3: FindSWIG.cmake
+
+#Allow the find Cmake find script to find OpenMPI
+#Patch0: %{name}_mpi.patch
+Patch1: %{name}-python-sitedir.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gdal-devel
+BuildRequires: swig
+BuildRequires: sqlite-devel
+BuildRequires: proj-devel
+BuildRequires: expat-devel
+BuildRequires: cmake
+
+BuildRequires: libcurl-devel
+BuildRequires: gsl-devel
+BuildRequires: libX11-devel
+BuildRequires: cxxtest
+
+# We don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
+%description
+OpenModeller is an open source C++ library to determine potential
+distribution in environment and geographic space. Models are generated
+by algorithms that receive as input a set of occurrence points
+(latitude/longitude/abundance) and a set of raster files with environment
+data. Models can then be projected to generate distribution maps.
+Available algorithms include Bioclim, GARP Best Subsets, Support Vector
+Machines, Climate Space Model, Environmental Distance, AquaMaps and
+Maximum Entropy. The library uses GDAL to read different raster formats
+and proj4 to convert between different coordinate systems and projections.
+
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development package for %{name} including header files.
+
+%package python
+Summary: Python bindings for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description python
+Python bindings for %{name}.
+
+#Im test-Verzeichnis sind kompatible Lizenzen, womöglich aber ein Bundle und falsche FSF-Adressen
+
+%prep
+%setup -q -n lib%{name}-src-%{version}
+
+#SOAP?
+#%patch0 -p1 -b .mpi
+%patch1 -p1 -b .python-sitedir
+
+install -pm 644 %{SOURCE1} cmake
+install -pm 644 %{SOURCE2} cmake
+install -pm 644 %{SOURCE3} cmake
+
+# Delete invalid first lines in man pages
+pushd src/console/man
+ for file in *; do
+ sed -i '1d' $file
+ done
+popd
+
+
+#Correct path for 64 bit libraries
+#Da sollte man eher prefix schreiben
+if [ "%{_libdir}" = "/usr/lib64" ] ; then
+ sed -i 's/\lib/\/lib64/g' CMakeLists.txt
+ sed -i 's/LIBRARY DESTINATION lib/LIBRARY DESTINATION lib64/g' src/%{name}/CMakeLists.txt
+fi
+#Correct installation directory for man pages
+sed -i 's/\(man\/man1\)/share\/\1/g' src/console/CMakeLists.txt
+#-Werror cancels compilation
+#sed -i '/ADD_DEFINITIONS( -Wall -Werror )/d' CMakeLists.txt
+#OM_CTEST
+
+#Correct permissions of source files
+chmod 644 src/%{name}/*.cpp src/algorithms/enfa/*.cpp src/algorithms/enfa/*.hh
+
+#Change encoding to UTF-8
+iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && mv AUTHORS.conv AUTHORS
+pushd src/console/man
+ iconv -f iso8859-1 -t utf-8 om_niche.1 > om_niche.1.conv && mv om_niche.1.conv om_niche.1
+ iconv -f iso8859-1 -t utf-8 om_console.1 > om_console.1.conv && mv om_console.1.conv om_console.1
+popd
+%build
+# Upstream turns off pedantic as well in their RPM
+# MPI support is not ready upstream
+%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DPEDANTIC:BOOL=OFF \
+ -DOM_BUILD_SERVICE:BOOL=ON \
+ -DOM_CTEST:BOOL=ON \
+ -DOM_BUILD_BINDINGS:BOOL=ON \
+ -DGDAL_LIBRARY:PATH=%{_libdir}/libgdal.so
+
+make %{?_smp_mflags}
+# Pluginpfad ist schlecht
+#Doxygen
+ #-DLIBRARY_OUTPUT_PATH=%{_libdir}/%{name} \ -- Wird nicht perfekt verwendet
+ #-DOM_CTEST:BOOL=ON \
+#Bei Algorithms könnte ein Problem sein
+#Installationspfad
+#Beispieldaten
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%check
+#TEST
+
+%clean
+rm -rf %{buildroot}
+
+#pkg-config?
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING.txt ChangeLog README.txt
+%config(noreplace) %{_sysconfdir}/%{name}
+%{_bindir}/*
+%{_libdir}/%{name}
+%{_libdir}/lib%{name}.so
+%{_mandir}/man1/*
+%{_datadir}/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+
+%files python
+%defattr(-,root,root,-)
+%{python_sitearch}/om.py*
+%{python_sitearch}/_om.so
+
+%changelog
+* Sun Jan 23 2011 Volker Fröhlich <volker27@gmx.at> 1.1.0-1
+- Initial packaging for Fedora
diff --git a/unfinished/opticks.spec b/unfinished/opticks.spec
new file mode 100644
index 0000000..4092112
--- /dev/null
+++ b/unfinished/opticks.spec
@@ -0,0 +1,63 @@
+Name: opticks
+Version: 4.5.0
+Release: 1%{?dist}
+Summary: Opticks is an expandable remote sensing and imagery analysis software platform
+
+Group: Applications/Scientific
+License: LGPLv2.1
+URL: http://www.opticks.org
+# No tarballs available -- 4.5 = r11733
+# http://opticks.svn.sourceforge.net/viewvc/opticks/trunk/4.5.0/Code/?view=tar
+# http://opticks.svn.sourceforge.net/viewvc/opticks/trunk/4.5.0/Release/?view=tar
+Source0:
+
+BuildRequires: scons
+BuildRequires: raptor
+BuildRequires: expat
+BuildRequires: doxygen graphviz
+BuildRequires: curl
+BuildRequires: ffmpeg
+BuildRequires: gdal proj shapelib
+#libgeotiff -- Sollte von gdal her da sein -- Bzw. macht das xqilla, das auch pthreads haben dürfte
+# xqilla und shapelib sind ev. nur unter Windows nötig
+BuildRequires: xqilla
+BuildRequires: zlib
+BuildRequires: glew
+BuildRequires: ossim
+BuildRequires: minizip
+BuildRequires: yaml-cpp
+BuildRequires: pcre
+# Dieses cg-Zeug ist von NVIDIA
+# GDAL mit Xerces? Könnte bei EL vielleicht interessant sein
+# Von EHS scheinen sie eine Fork zu haben. http://xaxxon.slackworks.com/ehs/ -- Jedenfalls ist das Zeug offensichtlich tot. Oh, gar nicht: http://ehs.fritz-elfert.de/
+# Warum benötigt GDAL 1.7.3. nicht das Paket xerces?
+Requires: Qt
+
+%description
+
+
+%prep
+%setup -q
+
+
+%build
+python build.py --build-doxygen=all
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc
+
+
+
+%changelog
diff --git a/unfinished/orfeo.spec b/unfinished/orfeo.spec
new file mode 100644
index 0000000..e491113
--- /dev/null
+++ b/unfinished/orfeo.spec
@@ -0,0 +1,78 @@
+Name: orfeo
+Version: 3.8.0
+Release: 1%{?dist}
+Summary: Library of image processing algorithms
+
+Group: Applications/Engineering
+#prüfen
+License: CeCILL
+URL: http://www.orfeo-toolbox.org/otb/
+#korrigieren
+Source0: http://sourceforge.net/projects/orfeo-toolbox/files/orfeo-toolbox/OTB-3.8/OrfeoToolbox-3.8.0.tgz
+#epel
+#/download
+
+#ming
+BuildRequires: gdal-devel
+BuildRequires: fltk
+BuildRequires: automake
+
+%description
+ORFEO Toolbox is a library of image processing algorithms. OTB is based on the
+medical image processing library ITK and offers particular functionalities for
+remote sensing image processing in general and for high spatial resolution
+images in particular.
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development package for %{name}
+%prep
+%setup -qn OrfeoToolbox-%{version}
+
+
+mkdir sau
+
+%build
+#lib ist noch
+cd sau
+%cmake \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+ -DOTB_USE_EXTERNAL_FLTK:BOOL=ON \
+ ..
+#Internes Fltk, Jpeg2000, ITK, liblas, boost, tinyxml, openmp
+#Bei GDAL werden die Rasterformate nicht erkannt. An sich sollen die Tests aber laufen. Aus irgendeinem Grund sind auch die INCLUDE_DIRECTORIES manchmale auskommentiert -- was auch immer das bringt! OpenGL-Tand findet er auch nicht
+#Mapnik, pqxx inaktiv
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+cd sau
+make install DESTDIR=%{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc RELEASE_NOTES.txt
+#Keine Lizenz dabei!
+
+%{_libdir}/otb
+%{_bindir}
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/otb
+
+%changelog
+* Thu Feb 03 2011 Volker Fröhlich <volker27@gmx.at> - 3.8.0-1
+- Initial packaging
diff --git a/unfinished/osg_kaputt b/unfinished/osg_kaputt
new file mode 100644
index 0000000..adc0565
--- /dev/null
+++ b/unfinished/osg_kaputt
Binary files differ
diff --git a/unfinished/osgearth.spec b/unfinished/osgearth.spec
new file mode 100644
index 0000000..44bd975
--- /dev/null
+++ b/unfinished/osgearth.spec
@@ -0,0 +1,123 @@
+%global capname osgEarth
+
+#TODO: libosg?
+
+Name: osgearth
+Version: 2.0
+Release: 1%{?dist}
+Summary: Terrain rendering toolkit for OpenSceneGraph
+
+Group: Applications/Engineering
+License: LGPLv2+
+URL: http://www.osgearth.org/
+Source0: gwaldron-%{name}-%{name}_%{version}_T2011-02-24-0-g53b997c.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+
+BuildRequires: cmake
+BuildRequires: curl-devel
+BuildRequires: expat-devel
+BuildRequires: gdal-devel
+BuildRequires: geos-devel
+BuildRequires: libzip-devel
+BuildRequires: mesa-libGL-devel
+BuildRequires: mesa-libGLU-devel
+BuildRequires: OpenSceneGraph OpenSceneGraph-devel
+BuildRequires: OpenThreads-devel
+BuildRequires: sqlite-devel
+BuildRequires: zlib-devel
+
+# Replaces hard-coded fonts
+Requires: liberation-sans-fonts
+
+%description
+OsgEarth is a terrain rendering toolkit for OpenSceneGraph. Just create a
+simple XML file, point it at your imagery, elevation, and vector data, load
+it into your favorite OSG application, and go! osgEarth supports all kinds of
+data and comes with lots of examples to help you get up and running quickly
+and easily.
+
+%package devel
+Summary: Development Libraries for OsgEarth
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development package for osgearth including the C header files.
+
+%package examples
+Summary: Functionality tests and sample data for OsgEarth
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description examples
+Functionality tests and according sample data.
+
+%prep
+%setup -q -n gwaldron-%{name}-dbaa285
+
+#TODO: LICENSE.txt hat auch was
+#sed -i 's/\r//' README.txt
+iconv -f iso8859-1 -t utf-8 LICENSE.txt > LICENSE.txt.conv && mv LICENSE.txt.conv LICENSE.txt
+
+# Hier hat Corsepius nix geändert, glaub ich, daher klappt es nicht.
+# Replace hard coded Arial fonts
+sed -i -e 's!\(fonts/\)\?arial\.ttf!liberation/LiberationSans-Regular.ttf!g' \
+ src/applications/osgearth_symbology/osgearth_symbology.cpp \
+ src/osgEarthSymbology/Text.cpp \
+ src/osgEarthUtil/Graticule.cpp \
+ src/osgEarthUtil/Controls.cpp \
+ src/osgEarthFeatures/BuildTextOperator.cpp \
+ src/osgEarthFeatures/BuildGeometryFilter.cpp \
+ tests/feature_labels.earth
+
+sed -i -e 's!arialbd\.ttf!liberation/LiberationSans-Bold.ttf!g' \
+ src/applications/osgearth_controls/osgearth_controls.cpp
+
+#http://git.debian.org/?p=pkg-grass/osgearth.git;a=blob_plain;f=debian/rules;hb=af9134ed336850d2773fd30a6e8480ce32b5d5dc
+#Daten für die Tests auch dabei? Tests überhaupt? Wenn nicht, kann ich mir die Binarys wahrscheinlich auch gleich schenken; zumindest _tests, _clouds, _simple
+%build
+#Build_Type? CMake-install-prefix?
+%cmake
+make %{?_smp_mflags}
+#Tests händisch verschieben?
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.txt
+%{_libdir}/lib%{capname}*.so.*
+%{_libdir}/osgPlugins-*
+
+#Alle bins in examples
+#Warning: font file "liberation/LiberationSans-Regular.ttf" not found. (ocean)
+
+#data und tests in eigenes Paket namens data
+#Andere Variante ist ein libosgearth zusätzlich
+# Kriegt er dann mit, wenn das noarch ist?
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{capname}*
+%{_libdir}/lib%{capname}*.so
+
+%files examples
+%defattr(-,root,root,-)
+%{_bindir}/%{name}*
+#data und tests auch installieren!
+
+
+%changelog
+* Tue Mar 01 2011 Volker Fröhlich <volker27@gmx.at> - 2.0-1
+- Initial package
diff --git a/unfinished/pgRouting.spec b/unfinished/pgRouting.spec
new file mode 100644
index 0000000..65503d6
--- /dev/null
+++ b/unfinished/pgRouting.spec
@@ -0,0 +1,96 @@
+Name: pgRouting
+Version: 1.05
+Release: 1%{?dist}
+Summary: Provides routing functionality to PostGIS/PostgreSQL
+
+Group: Applications/Databases
+# shooting_star* are under the latter license
+License: GPLv2+ and Boost
+URL: http://pgrouting.org/
+Source0: http://download.osgeo.org/pgrouting/source/pgrouting-%{version}.tar.gz
+# Removes the preset CFLAGS and CXXFLAGS
+Patch2: pgrouting-1.05-flags.patch
+
+BuildRequires: boost-devel
+BuildRequires: CGAL-devel
+BuildRequires: cmake
+BuildRequires: geos-devel
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+
+Requires: postgis
+Requires: postgresql
+
+%description
+The main objective is to provide routing functionality to PostGIS/ PostgreSQL.
+pgRouting is part of PostLBS, which provides core tools for Location Based
+Services (LBS) as Open Source Software (OSS). Its tools are similar to those
+found on proprietary software.
+
+%prep
+%setup -qn pgrouting-%{version}
+
+%patch2 -p1 -b .flags
+# fixing boost property_map files path
+sed -i "s|boost/vector_property_map.hpp|boost/property_map/vector_property_map.hpp|" core/src/shooting_star_boost_wrapper.cpp
+sed -i "s|boost/property_map.hpp|boost/property_map/property_map.hpp|" core/src/shooting_star_relax.hpp
+sed -i "s|boost/property_map.hpp|boost/property_map/property_map.hpp|" core/src/edge_visitors.hpp
+# fix to avoid deprecated "boost/graph/detail/is_same.hpp" file
+sed -i "s|boost/graph/detail/is_same.hpp|boost/type_traits/is_same.hpp|" core/src/edge_visitors.hpp
+# fixing CMakeList issue
+cd cmake; ln -s CMakeList.txt CMakeLists.txt; cd -
+
+%build
+
+install -d build
+cd build
+
+# TSP requires libgaul http://sourceforge.net/projects/gaul
+# Last update there was in 2009
+%cmake .. \
+ -DWITH_TSP=OFF \
+ -DWITH_DD=ON
+
+make VERBOSE=1 %{?_smp_mflags}
+
+%install
+make -C build install DESTDIR=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.routing COPYING authors.txt BOOST_LICENSE_1_0.txt RELEASE_NOTES
+%{_libdir}/pgsql/*.so
+%{_datadir}/postlbs
+
+%changelog
+* Tue Mar 08 2011 Volker Fröhlich <volker27@gmx.at> - 1.05-1
+- Updated to 1.05
+- Updated URL
+- Retired patch0
+- Updated flags patch: optflags work now
+- Replaced make macros with the command
+- Dropped rm for buildroot before install
+- Dropped ldconfig, because libs are in sub-directory
+- Dropped version requirements in BRs and Requires.
+ All shiped versions are new enough in Fedora
+- Enabled DD option and added BR CGAL-devel
+- Simplified attr and dropped defattr in files section
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Nov 14 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-3
+- Fixed patch naming conventions.
+- Added backup option for files being patched with suffix.
+- Changed the package name from postgresql-pgrouting to pgRouting
+
+* Sun Nov 14 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-2
+- Changed the license to GPLv2+ and Boost.
+- Removed the override of CMAKE_INSTALL_PREFIX.
+- Removed test for %%{?_lib}.
+- Added VERBOSE=1 and %%{?_smp_mflags} for make.
+- Patch for removing the preset CFLAGS.
+- Removed gcc-c++ from BuildRequires.
+
+* Thu Nov 11 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-1
+- Initial import.
diff --git a/unfinished/pgtap.spec b/unfinished/pgtap.spec
new file mode 100644
index 0000000..e032eb5
--- /dev/null
+++ b/unfinished/pgtap.spec
@@ -0,0 +1,89 @@
+%global postgresver %(pg_config --version|awk '{print $2}'| cut -d. -f1,2)
+
+Name: pgtap
+Version: 0.25.0
+Release: 1%{?dist}
+Summary: Unit testing suite for PostgreSQL
+
+Group: Applications/Databases
+License: BSD
+URL: http://pgtap.org
+Source: http://pgfoundry.org/frs/download.php/2937/%{name}-%{version}.tar.bz2
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: postgresql-devel
+#Auch entfernt einsetzbar
+#Aber für 8.3 und kleiner braucht man die .so auf dem Server; if?
+#Requires: postgresql-server
+#Eventuell perl-TAP-Harness in EPEL
+#Eigentlich wollen wir aber http://search.cpan.org/dist/TAP-Parser-SourceHandler-pgTAP/lib/TAP/Parser/SourceHandler/pgTAP.pm
+#Gibt es unter dem Namen nur in F
+#Perl braucht man sicher, aber ob man das wirklich braucht?
+
+# Test Harness is a replacement for TAP Harness
+#%if %{?fedora}
+# Requires: perl-Test-Harness
+#%else
+# Requires: perl-TAP-Harness
+#%endif
+
+# PG 8.4 and up have the necessary functions inside the core
+%if "%{postgresver}" >= "8.4"
+BuildArch: noarch
+%endif
+
+%description
+pgTAP is a unit testing suite for PostgreSQL written in PL/pgSQL and
+PL/SQL. It includes a comprehensive collection of TAP-emitting assertion
+functions, as well as the ability to integrate with other TAP-emitting
+test frameworks. It can also be used in the xUnit testing style.
+
+
+%prep
+%setup -q
+
+
+%build
+make USE_PGXS=1 TAPSCHEMA=tap
+
+
+%install
+rm -rf %{buildroot}
+make install USE_PGXS=1 DESTDIR=%{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc
+%if "%{postgresver}" < "8.4"
+%{_libdir}/pgsql/pgtap.so
+%endif
+%{_datadir}/pgsql/contrib/*
+%{_docdir}/pgsql/contrib/%{name}.md
+
+
+%changelog
+* Thu Feb 24 2011 Volker Fröhlich <vokler27@gmx.at> 0.25.0-1
+- Adapted for Fedora
+
+* Tue Feb 01 2011 David Wheeler <david@kineticode.com> 0.25.0
+- Removed pg_prove and pg_tapgen, which are now distributed via CPAN.
+
+* Sun Mar 01 2010 Darrell Fuhriman <darrell@renewfund.com> 0.24-2
+- Make install work where the pgtap.so library is needed.
+
+* Sun Dec 27 2009 David Wheeler <david@kineticode.com> 0.24-1
+- Updated Source URL to a more predictable format.
+
+* Mon Aug 24 2009 David Fetter <david.fetter@pgexperts.com> 0.23-1
+- Got corrected .spec from Devrim GUNDUZ <devrim@gunduz.org>
+- Bumped version to 0.23.
+
+* Wed Aug 19 2009 Darrell Fuhriman <darrell@projectdx.com> 0.22-1
+- initial RPM
+
diff --git a/unfinished/pyspatialite.spec b/unfinished/pyspatialite.spec
new file mode 100644
index 0000000..061422c
--- /dev/null
+++ b/unfinished/pyspatialite.spec
@@ -0,0 +1,57 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+# Can be removed after EOL of F12
+
+Name: pyspatialite
+Version: 2.6.1
+Release: 1%{?dist}
+Summary: Wos was i
+
+Group: Development/Libraries
+License: zlib
+URL: http://trac.gispython.org/lab/wiki/Shapely
+#http://code.google.com/p/pyspatialite/downloads/detail?name=pyspatialite-2.6.1.tar.gz&can=2&q=
+Source0: %{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-devel python-setuptools-devel
+
+%description
+bla.
+
+%prep
+%setup -q
+#Probleme mit integriertem Sqlite
+#Downloading amalgation -- aber von Spatialite scheinbar.
+#Da wird auch wirklich was von Sqlite (!) kompiliert.
+
+%build
+%{__python} setup.py build
+
+
+%check
+#%{__python} setup.py test
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE
+%doc PKG-INFO doc
+%{python_sitelib}/%{name}
+%{python_sitelib}/%{name}-%{version}-py*.egg-info
+
+
+%changelog
+* Tue Jan 18 2011 Volker Fröhlich <volker27@gmx.at> - 2.6.1-1
+- Initial package for Fedora
diff --git a/unfinished/python-networkx.spec b/unfinished/python-networkx.spec
new file mode 100644
index 0000000..88d7b9f
--- /dev/null
+++ b/unfinished/python-networkx.spec
@@ -0,0 +1,62 @@
+%define short_name networkx
+
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+# Can be removed after EOL of F12
+
+Name: python-networkx
+Version: 1.4
+Release: 1%{?dist}
+Summary: Create, manipulate and study complex networks
+
+Group: Development/Libraries
+License: BSD
+URL: http://networkx.lanl.gov/index.html
+Source0: http://pypi.python.org/packages/source/%{short_name}/%{short_name}-%{version}.tar.gz
+#Source0: http://networkx.lanl.gov/download/%{short_name}/%{short_name}-%{version}rc1.tar.gz
+
+#BuildArch: noarch
+BuildRequires: python-devel python-setuptools-devel
+
+#Es geht auch was mit numpy, scipy, matplotlib, graphviz, pyparsing, pyyaml
+
+%description
+NetworkX is a Python package for the creation, manipulation,
+and study of the structure, dynamics, and functions of complex networks.
+
+%prep
+%setup -q -n %{short_name}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%check
+#%{__python} setup.py test
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+#Installiert unerwünschterweise die Dokumentation selbst
+
+rm -rf %{buildroot}/%{_datadir}
+
+%clean
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.txt LICENSE.txt
+%doc PKG-INFO examples doc
+%{python_sitelib}/%{short_name}
+%{python_sitelib}/%{short_name}-%{version}-py*.egg-info
+# These two scripts are also in the examples directory, have no shebang
+# and seem to serve no purpose otherwise.
+
+
+%changelog
+* Mon Jan 17 2011 Volker Fröhlich <volker27@gmx.at> - 1.4-1
+- Initial packaging
diff --git a/unfinished/qextserialport.spec b/unfinished/qextserialport.spec
new file mode 100644
index 0000000..35358dc
--- /dev/null
+++ b/unfinished/qextserialport.spec
@@ -0,0 +1,82 @@
+Name: qextserialport
+Version: 1.2.0
+#Stimmt nicht ganz
+Release: 1%{?dist}
+Summary: Qt interface class for old fashioned serial ports
+Group: System Environment/Libraries
+License: BSD
+URL: http://code.google.com/p/qextserialport/
+Source0: %{name}-%{version}.tar.gz
+
+# Introduces placeholders in Qmake's .pri and .pro file to be substituted later
+#Patch0: %{name}_path.diff
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+#BuildRequires: qt4-devel
+
+%description
+QextSerialPort provides an interface to old fashioned serial ports for
+Qt-based applications. It currently supports Mac OS X, Windows, Linux, FreeBSD.
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the files necessary
+to develop applications using Qextserialport.
+
+%prep
+%setup -qn %{name}
+
+# Encode Changelog to utf-8
+iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv ChangeLog.conv ChangeLog
+
+#%patch0 -p1 -b .path
+
+# Set include an lib paths; path for documentation
+#sed -i "s\LIBPATH\ %{buildroot}/%{_libdir}\1" qwtpolar.pri
+#sed -i "s\HEADERPATH\ %{buildroot}/%{_includedir}/%{name}\1" qwtpolar.pri
+#sed -i "s\DOCPATH\ %{buildroot}/%{_docdir}/%{name}-%{version}\1" qwtpolar.pri
+#sed -i "s|/path/to/qwt-5.2/include|%{_includedir}/qwt|" qwtpolar.pri
+#sed -i "s|/path/to/qwt-5.2/lib|%{_libdir}|" qwtpolar.pri
+
+# Add buildroot to installation path for Designer plug-in
+#sed -i "s|BUILDROOT|%{buildroot}|" designer/designer.pro
+
+
+%build
+
+qmake-qt4
+make %{?_smp_mflags}
+
+%install
+#rm -rf %{buildroot}
+
+#Das tut gar nix
+make install DESTDIR=%{buildroot}
+
+#
+#mv %{buildroot}%{_docdir}/%{name}/man/man3/* %{buildroot}/%{_mandir}/man3/%{name}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog
+#%{_libdir}/lib%{name}.so.*
+
+%files devel
+%defattr(-,root,root,-)
+#%{_includedir}/%{name}
+
+%changelog
+* Sun Feb 20 2011 Volker Fröhlich <volker27@gmx.at> 1.2.0-1
+- Initial packaging for Fedora
diff --git a/unfinished/qwtpolar.spec b/unfinished/qwtpolar.spec
new file mode 100644
index 0000000..9f95210
--- /dev/null
+++ b/unfinished/qwtpolar.spec
@@ -0,0 +1,88 @@
+Name: qwtpolar
+Version: 0.1.0
+Release: 1%{?dist}
+Summary: Display values on a polar coordinate system
+Group: System Environment/Libraries
+License: LGPLv2 with exceptions
+URL: http://qwtpolar.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+
+# Introduces placeholders in Qmake's .pri and .pro file to be substituted later
+Patch0: %{name}_path.diff
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: qt4-devel
+BuildRequires: qwt-devel
+
+%description
+The QwtPolar library contains classes for displaying values on a polar
+coordinate system. It is an add-on package for to the Qwt Library.
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the files necessary
+to develop applications using QwtPolar.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .path
+
+# Verbose Makefile, set include- and lib paths as well as path for documentation
+sed -i "/silent/d" qwtpolar.pri
+sed -i "s\LIBPATH\ %{buildroot}/%{_libdir}\1" qwtpolar.pri
+sed -i "s\HEADERPATH\ %{buildroot}/%{_includedir}/%{name}\1" qwtpolar.pri
+sed -i "s\DOCPATH\ %{buildroot}/%{_docdir}/%{name}-%{version}\1" qwtpolar.pri
+sed -i "s|/path/to/qwt-5.2/include|%{_includedir}/qwt|" qwtpolar.pri
+sed -i "s|/path/to/qwt-5.2/lib|%{_libdir}|" qwtpolar.pri
+# Add buildroot to installation path for Designer plug-in
+sed -i "s|BUILDROOT|%{buildroot}|" designer/designer.pro
+#sed -i "s|qwtpolar\\$\\$|\\$\\$|" designer/designer.pro
+#sed -i "/qwtpolar\\$\\$/d" designer/designer.pro
+
+chmod 644 COPYING
+
+%build
+
+qmake-qt4
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+make install DESTDIR=%{buildroot}
+install -d %{buildroot}/%{_mandir}/man3/%{name}
+
+#
+#mv %{buildroot}%{_docdir}/%{name}/man/man3/* %{buildroot}/%{_mandir}/man3/%{name}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CHANGES
+%{_libdir}/lib%{name}.so.*
+%{_libdir}/qt4/plugins/designer/libqwt_polar_designer_plugin.so
+%exclude %{_libdir}/lib%{name}.so
+%exclude %{_includedir}/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_mandir}/man3/%{name}
+#%{_docdir}/%{name}-%{version}
+%{_includedir}/%{name}
+%{_libdir}/lib%{name}.so
+
+%changelog
+* Tue Feb 01 2011 Volker Fröhlich <volker27@gmx.at> 0.1.0-1
+- Initial packaging for Fedora
diff --git a/unfinished/rasdaman.spec b/unfinished/rasdaman.spec
new file mode 100644
index 0000000..2d43953
--- /dev/null
+++ b/unfinished/rasdaman.spec
@@ -0,0 +1,90 @@
+Name: rasdaman
+#Unfug
+Version: 8.0.0
+Release: 1%{?dist}
+Summary: Weiss nicht
+
+Group: System Environment/Libraries
+License: GPLv3+
+URL: http://www.rasdaman.org
+Source0: %{name}-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: hdf-devel hdf-static
+BuildRequires: netpbm-devel
+BuildRequires: libtiff-devel
+# Ist die jetzt aktuell?
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+# Java 8.3.0 bis 8.3.6 gehen nicht
+BuildRequires: postgresql-devel
+#Java shit
+BuildRequires: openssl-devel
+Requires: hdf
+Requires(pre): /usr/sbin/useradd
+
+%description
+Dies und das
+
+%package devel
+Summary: Development Libraries for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-static = %{version}-%{release}
+
+%description devel
+Development package for %{name} including header files.
+
+
+%prep
+%setup -q
+
+#Syntax error
+#sed -i 's| -fPIC|\" -fPIC\"|' configure
+
+#GCC-4.5-Problem
+#sed -i 's|^QtONCStream::QtONCStream\*$|QtONCStream\*|' qlparser/qtdelete.cc
+
+%build
+
+export CPPFLAGS="$CPPFLAGS -I%{_includedir}/netpbm"
+export LDFLAGS="$LDFLAGS -L%{_libdir}/hdf"
+
+# Some header names are just to generic to let them go directly into /usr/include
+%configure \
+ --with-logdir=%{_var}/log/%{name} \
+ --includedir=%{_includedir}/%{name}
+
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%pre
+# Add "rasdaman" user
+/usr/sbin/useradd -c "rasdaman" #-u? und mehr
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%config(noreplace)%{_sysconfdir}/rasmgr.conf
+%{_bindir}/*
+%{_datadir}/%{name}
+%{_var}/log/%{name}
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/*
+
+%changelog
+* Tue Mar 01 2011 Volker Fröhlich <volker27@gmx.at> - 8.0.0-1
+- Initial packaging
+
diff --git a/unfinished/saga.spec b/unfinished/saga.spec
new file mode 100644
index 0000000..4d07ee7
--- /dev/null
+++ b/unfinished/saga.spec
@@ -0,0 +1,69 @@
+Name: saga
+Version: 2.0.6
+Release: 1%{?dist}
+Summary: Geographic information system with an API for processing geodata
+
+Group: Applications/Engineering
+# Überall steht V2, bei manchen Modulen aber auch V2 or later; V3 steht nirgends, Adresse falsch; Teile sind absichtlich LPGL (Zumindest AUCH 2.1)
+License: GPLv3
+URL: http://www.saga-gis.org
+Source0: http://downloads.sourceforge.net/%{name}/%{name}_%{version}.tar.gz
+#/download
+
+BuildRequires: wxGTK-devel
+BuildRequires: proj-devel
+BuildRequires: gdal-devel
+BuildRequires: jasper-devel
+BuildRequires: libtiff-devel
+BuildRequires: unixODBC-devel
+BuildRequires: libharu-devel
+BuildRequires: vigra-devel
+# Das gehört letztlich zu libpng bzw. jasper
+BuildRequires: g2clib-devel
+BuildRequires: libtool automake autoconf
+
+%description
+SAGA is a geographic information system (GIS), with a special
+'Application Programming Interface' (API) for geographic data processing.
+This API makes it easy to implement new algorithms. The SAGA API supports
+grid data, vector data, and tables.
+
+%prep
+%setup -q
+chmod -x src/modules_io/grid/io_grid_grib2/g2clib-1.0.4/*
+
+sed -i 's/\r//' AUTHORS
+
+%build
+autoreconf -i
+%configure --enable-unicode --disable-static
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+# Drop libtool archives
+rm -f %{buildroot}/%{_libdir}/saga/lib*.la %{buildroot}/%{_libdir}/saga/libsaga_*.la
+# TODO: Unused dependencies
+# TODO: Desktop-File und so
+# Ist da mit Python was?
+# Beispieldaten-Tarball gäbe es
+# G2CLIB ist dabei! Die haben wir eh. Lizenz OK?
+# Esri-Schmarren ist sauber?
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS ChangeLog
+%{_libdir}/saga
+%{_bindir}/saga*
+%{_libdir}/libsaga_*
+%{_mandir}/man1/saga_*
+
+%changelog
+* Fri Nov 26 2010 Volker Fröhlich <volker27@gmx.at> - 2.0.6-1
+- Initial packaging
diff --git a/unfinished/spatialite-gui.spec b/unfinished/spatialite-gui.spec
new file mode 100644
index 0000000..9e6bf55
--- /dev/null
+++ b/unfinished/spatialite-gui.spec
@@ -0,0 +1,57 @@
+Name: spatialite-gui
+Version: 1.4.0
+Release: 1%{?dist}
+Summary: GUI to manage Spatialite databases
+
+Group: Applications/Databases
+License: GPLv3
+URL: http://www.gaia-gis.it/spatialite-2.4.0-4
+Source0: http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite_gui-1.4.0.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: libspatialite-devel
+#BuildRequires: libgaigraphics-devel kommt mir halt vor, obwohl ich jetzt keinen Beleg sehe
+BuildRequires: wxGTK-devel
+BuildRequires: sqlite-devel
+BuildRequires: geos-devel
+BuildRequires: proj-devel
+
+#Baut bisher nur in Rawhide erfolgreich (getestet mit Mock); dürfte an der Sqlite-Version liegen.
+
+%description
+GUI to manage Spatialite databases.
+
+%prep
+%setup -q -n spatialite_gui-%{version}
+rm -f Makefile-static*
+sed -i 's/LIBS = @LIBS@/LIBS = -lproj -lgeos_c @LIBS@/' Makefile.in
+#Pfuscherei
+
+%build
+
+%configure LDFLAGS=-lproj \
+ --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{_bindir}/*
+
+
+%changelog
+* Wed Dec 8 2010 Volker Fröhlich <volker27@gmx.at> 1.4.0-1
+- Initial packaging
diff --git a/unfinished/tinyows-323svn.spec b/unfinished/tinyows-323svn.spec
new file mode 100644
index 0000000..255dbdd
--- /dev/null
+++ b/unfinished/tinyows-323svn.spec
@@ -0,0 +1,101 @@
+Name: tinyows
+Version: 323svn
+Release: 1%{?dist}
+Summary: WFS-T and FE implementation server
+
+Group: Applications/Publishing
+License: MIT
+URL: http://www.tinyows.org
+Source0: http://tinyows.org/tracdocs/release/%{name}-%{version}.tar.bz2
+#Source1: no_date_footer.html
+#Requires: httpd # Nicht zwangsläufig den
+Requires: postgis >= 1.5
+
+BuildRequires: ctags valgrind indent
+BuildRequires: graphviz doxygen
+BuildRequires: libxml2-devel postgresql-devel fcgi-devel
+
+%description
+TinyOWS server implements latest WFS-T standard versions,
+as well as related standards such as Filter Encoding (FE).
+
+%prep
+%setup -q
+
+%build
+autoconf
+%configure \
+ --with-fastcgi \
+ --with-pg_config
+ #--prefix=%{_prefix}
+# Ungültig
+
+
+# fix datadir lookup path
+sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' src/ows_define.h
+sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' test/config.xml
+#Womöglich nöt
+# fix DSO lookup
+#sed -i -e 's|-lpq|-lpq -lm|' Makefile
+
+# WARNING
+# disable %{?_smp_mflags}
+# it breaks compile
+make %{?_smp_mflags}
+
+# disable timestamp inside docs
+#sed -i -e 's|HTML_FOOTER|HTML_FOOTER=no_date_footer.html\n\#|g' doc/Doxyfile
+#make doxygen
+
+%install
+rm -rf %{buildroot}
+
+make install PREFIX=%{buildroot}%{_datadir}
+#make install-test
+install -d %{buildroot}%{_bindir}
+install -p -m 0755 tinyows %{buildroot}%{_bindir}/
+install -d %{buildroot}%{_sysconfdir}/%{name}
+install -p -m 0644 test/config.xml %{buildroot}%{_sysconfdir}/%{name}
+pushd %{buildroot}%{_datadir}/%{name}/
+ ln -s ../../..%{_sysconfdir}/%{name}/config.xml config.xml
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%check
+
+# Im Moment fliegt man da komplett raus (Mem leak)
+#make %{?_smp_mflags} test-valgrind
+#|| true
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README VERSION
+#%doc doc/doxygen
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/config.xml
+
+%changelog
+* Sat Sep 11 2010 Volker Fröhlich <volker27@gmx.at> - 0.9.0-1
+- bla
+
+* Thu Mar 18 2010 Balint Cristian <rezso@rdsor.ro> - 0.7.0-1
+- new upstream
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Jan 05 2009 Balint Cristian <rezso@rdsor.ro> - 0.6.0-3
+- initial import
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-2
+- shorter summary description
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-1
+- initial package for fedora
diff --git a/unfinished/tinyows.spec b/unfinished/tinyows.spec
new file mode 100644
index 0000000..8e9c499
--- /dev/null
+++ b/unfinished/tinyows.spec
@@ -0,0 +1,110 @@
+Name: tinyows
+Version: 0.9.0
+Release: 1%{?dist}
+Summary: WFS-T and FE implementation server
+
+Group: Applications/Publishing
+License: MIT
+URL: http://www.tinyows.org
+Source0: http://tinyows.org/tracdocs/release/%{name}-%{version}.tar.bz2
+#Source1: no_date_footer.html
+#Requires: httpd # Nicht zwangsläufig den
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: postgis >= 1.5
+
+BuildRequires: ctags valgrind indent
+BuildRequires: graphviz doxygen
+BuildRequires: libxml2-devel postgresql-devel fcgi-devel
+
+%description
+TinyOWS server implements latest WFS-T standard versions,
+as well as related standards such as Filter Encoding (FE).
+
+%prep
+%setup -q
+
+%build
+# autoconf?
+%configure \
+ #Ob das hier nicht _bindir sein sollte, weil da kommt die Binary hin
+ --prefix=%{_prefix}
+ --with-fastcgi \
+ --with-pg_config
+# Was machen pg_config und _xml2_config?
+# Ungültig
+#configure hat ac_default_prefix=/usr/local
+
+# fix datadir lookup path
+sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' src/ows_define.h
+sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' test/config.xml
+#Womöglich nöt
+# fix DSO lookup
+#sed -i -e 's|-lpq|-lpq -lm|' Makefile
+
+# WARNING
+# disable %{?_smp_mflags}
+# it breaks compile
+# Übernimmt cflags nicht richtig!
+make %{?_smp_mflags}
+
+# disable timestamp inside docs
+#sed -i -e 's|HTML_FOOTER|HTML_FOOTER=no_date_footer.html\n\#|g' doc/Doxyfile
+#make doxygen
+
+%install
+rm -rf %{buildroot}
+
+#Geht destdir nicht?
+
+make install PREFIX=%{buildroot}%{_datadir}
+make install-test
+install -d %{buildroot}%{_bindir}
+install -p -m 0755 tinyows %{buildroot}%{_bindir}/
+install -d %{buildroot}%{_sysconfdir}/%{name}
+install -p -m 0644 test/config.xml %{buildroot}%{_sysconfdir}/%{name}
+#Was ist DAS für ein Konstrukt?
+pushd %{buildroot}%{_datadir}/%{name}/
+ ln -s ../../..%{_sysconfdir}/%{name}/config.xml config.xml
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%check
+#Demo?
+
+# Im Moment fliegt man da komplett raus (Mem leak)
+#make %{?_smp_mflags} test-valgrind
+#|| true
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README NEWS
+#%doc doc/doxygen
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/config.xml
+
+%changelog
+* Sat Sep 11 2010 Volker Fröhlich <volker27@gmx.at> - 0.9.0-1
+- bla
+
+* Thu Mar 18 2010 Balint Cristian <rezso@rdsor.ro> - 0.7.0-1
+- new upstream
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Jan 05 2009 Balint Cristian <rezso@rdsor.ro> - 0.6.0-3
+- initial import
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-2
+- shorter summary description
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-1
+- initial package for fedora
diff --git a/unfinished/tinyows.spec.alt b/unfinished/tinyows.spec.alt
new file mode 100644
index 0000000..e9caf0c
--- /dev/null
+++ b/unfinished/tinyows.spec.alt
@@ -0,0 +1,92 @@
+Name: tinyows
+Version: 0.7.0
+Release: 1%{?dist}
+Summary: WFS-T and FE implementation server
+
+Group: Applications/Publishing
+License: MIT
+URL: http://www.tinyows.org
+Source0: http://tinyows.org/tracdocs/release/%{name}_0-6-0.tar.bz2
+Source1: no_date_footer.html
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: httpd
+
+BuildRequires: ctags indent doxygen valgrind
+BuildRequires: libxml2-devel postgresql-devel
+
+%description
+TinyOWS server implements latest WFS-T standard versions,
+as well as related standards such as Filter Encoding (FE).
+
+%prep
+%setup -q -n %{name}
+
+# clean SVN
+find . -type d -name .svn -exec rm -rf '{}' +
+
+%build
+
+%configure --enable-api
+
+# fix datadir lookup path
+sed -i -e 's|/usr/tinyows/|%{_datadir}/%{name}/|' src/ows_define.h
+# fix DSO lookup
+sed -i -e 's|-lpq|-lpq -lm|' Makefile
+
+
+# WARNING
+# disable %{?_smp_mflags}
+# it breaks compile
+make
+
+# disable timestamp inside docs
+sed -i -e 's|HTML_FOOTER|HTML_FOOTER=no_date_footer.html\n\#|g' doc/Doxyfile
+make doxygen
+
+%install
+rm -rf %{buildroot}
+
+install -d %{buildroot}%{_bindir}
+install -p -m 0755 tinyows %{buildroot}%{_bindir}/
+install -d %{buildroot}%{_datadir}/%{name}
+cp -pR schema %{buildroot}%{_datadir}/%{name}/
+install -d %{buildroot}%{_sysconfdir}/%{name}
+install -p -m 0644 config.xml %{buildroot}%{_sysconfdir}/%{name}
+pushd %{buildroot}%{_datadir}/%{name}/
+ ln -s ../../../%{_sysconfdir}/%{name}/config.xml config.xml
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%check
+
+make %{?_smp_mflags} valgrind || true
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README VERSION
+%doc doc/doxygen
+%{_bindir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/config.xml
+%{_datadir}/%{name}
+
+%changelog
+* Thu Mar 18 2010 Balint Cristian <rezso@rdsor.ro> - 0.7.0-1
+- new upstream
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Jan 05 2009 Balint Cristian <rezso@rdsor.ro> - 0.6.0-3
+- initial import
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-2
+- shorter summary description
+
+* Thu Sep 25 2008 Balint Cristian <rezso@rdsor.ro> - 0.6.0-1
+- initial package for fedora