2011-08-18 17:04:52 +02:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2007-11-23 11:12:40 +01:00
|
|
|
Name: qgis
|
2011-09-30 09:23:28 +02:00
|
|
|
Version: 1.7.1
|
2007-11-23 11:12:40 +01:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
2011-08-18 17:04:52 +02:00
|
|
|
Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS)
|
|
|
|
Url: http://www.qgis.org/
|
2008-03-24 00:56:51 +01:00
|
|
|
Group: Applications/GIS
|
2007-12-20 17:38:11 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-11-23 11:12:40 +01:00
|
|
|
Source1: %{name}.desktop
|
2011-08-18 17:04:52 +02:00
|
|
|
Source2: %{name}.rpmlintrc
|
2010-04-22 13:03:58 +02:00
|
|
|
Requires: libgdal1 >= 1.6.0
|
2011-08-18 17:04:52 +02:00
|
|
|
Requires: libgeos >= 2
|
|
|
|
Packager: Otto Dassau <dassau@gbd-consult.de>
|
2008-09-03 19:11:13 +02:00
|
|
|
%if 0%{?suse_version} > 1030
|
2008-09-03 19:08:00 +02:00
|
|
|
BuildRequires: sqlite-devel >= 3.5
|
2011-08-18 17:04:52 +02:00
|
|
|
Requires: sqlite >= 3.5
|
2008-09-03 19:08:00 +02:00
|
|
|
%endif
|
2009-07-08 16:01:21 +02:00
|
|
|
BuildRequires: libexpat-devel
|
2009-08-24 12:18:10 +02:00
|
|
|
BuildRequires: python-devel
|
2011-08-18 17:04:52 +02:00
|
|
|
BuildRequires: qwt-devel >= 5
|
|
|
|
Requires: gpsbabel
|
|
|
|
Requires: gsl >= 1.6
|
|
|
|
Requires: libqt4 >= 4.3
|
|
|
|
Requires: postgresql >= 8
|
|
|
|
Requires: postgresql-libs >= 8
|
|
|
|
Requires: python-gdal
|
|
|
|
Requires: python-qt4
|
|
|
|
Requires: python-sip
|
|
|
|
Requires: python-xml
|
2009-11-30 16:22:49 +01:00
|
|
|
%if 0%{?suse_version} <= 1030 || 0%{?suse_version} >= 1120
|
2009-09-15 11:47:15 +02:00
|
|
|
BuildRequires: python-qt4-devel
|
2010-02-12 14:24:32 +01:00
|
|
|
BuildRequires: python-sip-devel
|
2009-09-15 12:38:56 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: python-qt4
|
2009-08-24 07:47:55 +02:00
|
|
|
BuildRequires: python-sip
|
2010-02-12 14:24:32 +01:00
|
|
|
%endif
|
2011-08-18 17:04:52 +02:00
|
|
|
BuildRequires: -post-build-checks
|
|
|
|
BuildRequires: FastCGI-devel
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: cmake >= 2.4
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: grass
|
|
|
|
BuildRequires: grass-devel
|
|
|
|
BuildRequires: gsl >= 1.6
|
|
|
|
BuildRequires: gsl-devel
|
|
|
|
BuildRequires: libQtWebKit-devel >= 4.3
|
2010-04-22 13:03:58 +02:00
|
|
|
BuildRequires: libgdal-devel >= 1.6.0
|
2007-09-13 10:00:06 +02:00
|
|
|
BuildRequires: libgeos-devel >= 2
|
|
|
|
BuildRequires: libproj-devel
|
2011-08-18 17:04:52 +02:00
|
|
|
BuildRequires: libqt4-devel >= 4.3
|
2009-09-15 12:31:19 +02:00
|
|
|
BuildRequires: libqt4-qt3support >= 4.3
|
2011-08-18 17:04:52 +02:00
|
|
|
BuildRequires: postgresql-devel >= 8
|
|
|
|
BuildRequires: txt2tags
|
2009-01-01 18:55:24 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2009-04-27 15:03:32 +02:00
|
|
|
Obsoletes: qgis10
|
2011-08-18 17:04:52 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%package devel
|
2011-08-18 17:04:52 +02:00
|
|
|
Summary: Development Libraries for the Quantum GIS development branch 1
|
2007-09-13 10:00:06 +02:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: qgis = %{version}
|
|
|
|
|
|
|
|
%package plugin-grass
|
2011-08-18 17:04:52 +02:00
|
|
|
Summary: GRASS Support Libraries for Quantum GIS development branch 1
|
2008-03-24 00:57:52 +01:00
|
|
|
Group: Applications/GIS
|
2011-03-10 18:37:12 +01:00
|
|
|
Requires: grass
|
2011-08-18 17:04:52 +02:00
|
|
|
Requires: qgis = %{version}
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%description
|
2011-08-18 17:04:52 +02:00
|
|
|
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 is licensed under the GNU
|
|
|
|
General Public License. QGIS lets you browse and create map data on your
|
|
|
|
computer. It supports many common spatial data formats (e.g. ESRI ShapeFile,
|
2007-11-23 11:12:40 +01:00
|
|
|
geotiff). QGIS supports plugins to do things like display tracks from your GPS.
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%description devel
|
2009-04-27 15:03:32 +02:00
|
|
|
Development packages for Quantum GIS development branch 1.x including the C header files.
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%description plugin-grass
|
2009-04-27 15:03:32 +02:00
|
|
|
GRASS plugin for Quantum GIS development branch 1.x required to interface with GRASS system.
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%prep
|
2011-08-18 17:04:52 +02:00
|
|
|
%setup -q
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%build
|
2011-08-18 17:04:52 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2007-09-13 10:00:06 +02:00
|
|
|
export QTDIR=/usr
|
|
|
|
export PATH=$PATH:$QTDIR/bin
|
|
|
|
|
2007-11-23 13:38:26 +01:00
|
|
|
%ifarch x86_64
|
2007-12-09 13:23:19 +01:00
|
|
|
%define lib lib64
|
2007-11-23 13:38:26 +01:00
|
|
|
%else
|
2007-12-09 13:23:19 +01:00
|
|
|
%define lib lib
|
2007-11-23 13:38:26 +01:00
|
|
|
%endif
|
|
|
|
|
2008-09-04 09:38:13 +02:00
|
|
|
cmake -Wno-dev %{intsq} \
|
2008-08-30 09:07:12 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX=%{_prefix} \
|
2007-12-09 13:23:19 +01:00
|
|
|
-D GRASS_PREFIX=/opt/grass\
|
|
|
|
-D QGIS_LIB_SUBDIR=%{lib} \
|
2008-09-03 18:53:22 +02:00
|
|
|
-D WITH_BINDINGS=TRUE \
|
2011-04-13 16:20:23 +02:00
|
|
|
-D WITH_MAPSERVER=ON \
|
2007-12-09 13:23:19 +01:00
|
|
|
-D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \
|
2008-09-04 09:55:53 +02:00
|
|
|
-D QGIS_MANUAL_SUBDIR=share/man \
|
2010-08-09 12:55:04 +02:00
|
|
|
-D QWT_INCLUDE_DIR=/usr/include/qwt \
|
2010-04-26 21:48:55 +02:00
|
|
|
-D CMAKE_SKIP_RPATH=ON \
|
2008-09-04 09:55:53 +02:00
|
|
|
%if 0%{?suse_version} <= 1030
|
|
|
|
-D WITH_INTERNAL_SQLITE3=TRUE \
|
|
|
|
-D SQLITE3_INCLUDE_DIR=%{buildroot}/src/core/sqlite3 \
|
|
|
|
%endif
|
|
|
|
.
|
2008-08-30 09:25:16 +02:00
|
|
|
|
2010-04-26 15:21:06 +02:00
|
|
|
# add path to find libgdal.so
|
2011-01-11 15:01:25 +01:00
|
|
|
#find ./ -iname build.make -exec sed -i 's#/libgdal.so#/usr/%{lib}/libgdal.so#' {} \;
|
2010-04-26 15:21:06 +02:00
|
|
|
|
2007-09-13 10:00:06 +02:00
|
|
|
#echo "for 'make' run first:"
|
|
|
|
export QTDIR=%{_prefix}
|
|
|
|
#echo "export PATH=$PATH:$QTDIR/bin"
|
|
|
|
export PATH=$PATH:$QTDIR/bin
|
|
|
|
|
2011-08-18 17:04:52 +02:00
|
|
|
make %{_smp_mflags}
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%install
|
2011-09-21 13:11:17 +02:00
|
|
|
%makeinstall
|
|
|
|
|
2007-11-23 11:12:40 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
2011-08-18 17:04:52 +02:00
|
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/applications
|
2007-11-23 11:12:40 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
ln -s ../%{name}/images/icons/qgis-icon.png \
|
|
|
|
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
2007-09-13 10:00:06 +02:00
|
|
|
|
2009-01-01 18:28:10 +01:00
|
|
|
# Do not update .desktop files
|
|
|
|
%suse_update_desktop_file -n %{name}
|
|
|
|
|
2007-09-13 10:00:06 +02:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-11-23 11:12:40 +01:00
|
|
|
%{_bindir}/*
|
2008-07-14 10:27:19 +02:00
|
|
|
%{_libdir}/lib%{name}python.s*
|
2007-11-23 11:12:40 +01:00
|
|
|
%{_libdir}/lib%{name}_*s*
|
2011-06-06 15:05:09 +02:00
|
|
|
%{_libdir}/lib%{name}*s*
|
2011-08-18 17:04:52 +02:00
|
|
|
%{_libdir}/%{name}/
|
2008-07-11 23:35:38 +02:00
|
|
|
%{_mandir}/man1/*
|
2007-11-23 11:12:40 +01:00
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2011-06-06 15:05:09 +02:00
|
|
|
%{_prefix}/lib/qgis/qgis_help
|
2007-09-13 10:00:06 +02:00
|
|
|
%exclude %{_libdir}/libqgisgrass.so
|
2010-07-18 12:30:09 +02:00
|
|
|
%exclude %{_libdir}/libqgisgrass.so.%{version}
|
2007-09-13 10:00:06 +02:00
|
|
|
%exclude %{_libdir}/qgis/libgrass*
|
2011-09-30 09:49:03 +02:00
|
|
|
%doc BUGS COPYING README TODO
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-08-18 17:04:52 +02:00
|
|
|
%{_includedir}/qgis/*
|
2010-07-18 12:30:09 +02:00
|
|
|
%exclude %{_prefix}/lib/debug/*
|
2011-06-06 15:05:09 +02:00
|
|
|
%exclude %{_prefix}/lib/debug/.build-id/*
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%files plugin-grass
|
|
|
|
%defattr(644,root,root)
|
|
|
|
%{_libdir}/qgis/libgrass*
|
|
|
|
%{_libdir}/libqgisgrass.so
|
2010-07-18 12:30:09 +02:00
|
|
|
%{_libdir}/libqgisgrass.so.%{version}
|
2010-07-19 09:49:14 +02:00
|
|
|
%defattr(755,root,root)
|
2010-07-18 12:30:09 +02:00
|
|
|
%{_prefix}/lib/qgis/grass/bin/qgis.g.browser
|
|
|
|
%{_prefix}/lib/qgis/grass/modules/qgis.*
|
2007-09-13 10:00:06 +02:00
|
|
|
|
2008-06-24 12:23:52 +02:00
|
|
|
%post plugin-grass -p /sbin/ldconfig
|
2007-09-13 10:00:06 +02:00
|
|
|
|
2008-06-24 12:23:52 +02:00
|
|
|
%postun plugin-grass -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2007-09-13 10:00:06 +02:00
|
|
|
|
2011-06-06 15:05:09 +02:00
|
|
|
%changelog
|