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