2007-11-23 11:12:40 +01:00
|
|
|
Name: qgis
|
2009-12-30 15:16:20 +01:00
|
|
|
Version: 1.4.0
|
2007-11-23 11:12:40 +01:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
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
|
2008-07-14 12:44:45 +02:00
|
|
|
Source2: %{name}.rpmlintrc
|
2009-11-30 17:29:31 +01:00
|
|
|
#Patch0: sqlite3.patch
|
2009-12-30 15:16:20 +01:00
|
|
|
#Patch1: sip49_support.patch
|
2007-11-23 11:12:40 +01:00
|
|
|
Url: http://www.qgis.org/
|
2008-06-24 12:23:52 +02:00
|
|
|
Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS)
|
2009-09-17 11:58:59 +02:00
|
|
|
Packager: Otto Dassau <dassau@gbd-consult.de>
|
2007-09-13 10:00:06 +02:00
|
|
|
Requires: libgeos >= 2
|
2008-04-12 18:16:34 +02:00
|
|
|
Requires: libgdal >= 1.5.0
|
2008-09-03 19:11:13 +02:00
|
|
|
%if 0%{?suse_version} > 1030
|
2008-09-03 19:08:00 +02:00
|
|
|
Requires: sqlite >= 3.5
|
|
|
|
BuildRequires: sqlite-devel >= 3.5
|
|
|
|
%endif
|
2008-12-28 13:41:24 +01:00
|
|
|
Requires: libqt4 >= 4.3
|
2007-09-13 10:00:06 +02:00
|
|
|
Requires: gsl >= 1.6
|
|
|
|
Requires: postgresql >= 8 postgresql-libs >= 8
|
2009-09-15 12:31:19 +02:00
|
|
|
Requires: python-qt4
|
|
|
|
Requires: python-xml
|
2009-07-08 14:23:36 +02:00
|
|
|
Requires: gpsbabel
|
2009-07-08 16:01:21 +02:00
|
|
|
BuildRequires: libexpat-devel
|
2009-08-24 12:18:10 +02:00
|
|
|
BuildRequires: python-devel
|
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
|
2009-09-15 12:38:56 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: python-qt4
|
2009-09-15 12:29:34 +02:00
|
|
|
%endif
|
2009-08-24 07:47:55 +02:00
|
|
|
BuildRequires: python-sip
|
2008-04-12 18:16:34 +02:00
|
|
|
BuildRequires: libgdal-devel >= 1.5.0
|
2007-09-13 10:00:06 +02:00
|
|
|
BuildRequires: libgeos-devel >= 2
|
|
|
|
BuildRequires: libproj-devel
|
|
|
|
BuildRequires: postgresql-devel >= 8
|
2008-04-12 18:16:34 +02:00
|
|
|
BuildRequires: grass >= 6.2.3 grass-devel
|
2007-09-13 10:00:06 +02:00
|
|
|
BuildRequires: libgdal-grass >= 1.4.1
|
2009-09-15 12:31:19 +02:00
|
|
|
BuildRequires: libqt4-devel >= 4.3
|
|
|
|
BuildRequires: libqt4-qt3support >= 4.3
|
2009-12-30 15:16:20 +01:00
|
|
|
BuildRequires: libQtWebKit-devel >= 4.3
|
2007-09-13 10:00:06 +02:00
|
|
|
BuildRequires: gsl >= 1.6 gsl-devel
|
|
|
|
BuildRequires: cmake >= 2.4
|
|
|
|
BuildRequires: flex bison
|
2009-01-01 18:55:24 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2009-01-01 17:07:46 +01:00
|
|
|
BuildRequires: -post-build-checks
|
2007-09-13 10:00:06 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-27 15:03:32 +02:00
|
|
|
Obsoletes: qgis10
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%package devel
|
2009-04-27 15:03:32 +02:00
|
|
|
Summary: Development Libraries for the Quantum GIS development branch 1.x
|
2007-09-13 10:00:06 +02:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: qgis = %{version}
|
|
|
|
|
|
|
|
%package plugin-grass
|
2009-04-27 15:03:32 +02:00
|
|
|
Summary: GRASS Support Libraries for Quantum GIS development branch 1.x
|
2008-03-24 00:57:52 +01:00
|
|
|
Group: Applications/GIS
|
2007-11-23 13:38:26 +01:00
|
|
|
Requires: qgis = %{version}
|
2008-12-28 13:41:24 +01:00
|
|
|
Requires: grass >= 6.3
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%description
|
2007-11-23 11:12:40 +01: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 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
|
|
|
|
2007-11-23 11:12:40 +01:00
|
|
|
%debug_package
|
|
|
|
|
2007-09-13 10:00:06 +02:00
|
|
|
%prep
|
|
|
|
%setup
|
2009-11-30 17:29:31 +01:00
|
|
|
#%patch0 -p1
|
2009-12-30 15:16:20 +01:00
|
|
|
#%patch1 -p1
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
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 \
|
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 \
|
|
|
|
%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
|
|
|
|
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
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
2007-11-23 11:12:40 +01: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 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*
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_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
|
2007-09-13 10:00:06 +02:00
|
|
|
%exclude %{_libdir}/libqgisgrass.so
|
2009-12-30 15:16:20 +01:00
|
|
|
%exclude %{_libdir}/libqgisgrass.so.1.4.0
|
2007-09-13 10:00:06 +02:00
|
|
|
%exclude %{_libdir}/qgis/libgrass*
|
2007-09-27 16:54:27 +02:00
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog INSTALL README TODO
|
2007-09-13 10:00:06 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/include/qgis/*
|
|
|
|
|
|
|
|
%files plugin-grass
|
|
|
|
%defattr(644,root,root)
|
|
|
|
%{_libdir}/qgis/libgrass*
|
|
|
|
%{_libdir}/libqgisgrass.so
|
2009-12-30 15:16:20 +01:00
|
|
|
%{_libdir}/libqgisgrass.so.1.4.0
|
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
|
|
|
|
|
|
|
%changelog -n qgis
|
2009-12-30 15:16:20 +01:00
|
|
|
* Wed Dec 30 2009 Otto Dassau <dassau@gbd-consult.de> 1.4
|
|
|
|
- added libQtWebKit as new dependency
|
|
|
|
* Mon Nov 30 2009 Otto Dassau 1.3
|
2009-11-30 17:29:31 +01:00
|
|
|
- added patch for sip >= 4.9 support
|
2009-11-30 16:22:49 +01:00
|
|
|
- added python-qt4-devel requirement for opensuse 11.2 and factory
|
|
|
|
* Sun Sep 13 2009 Otto Dassau 1.3
|
2009-09-14 09:01:35 +02:00
|
|
|
- changes and updates for new qgis development version
|
|
|
|
* Sun Aug 23 2009 Otto Dassau 1.2
|
|
|
|
- changes and updates for new qgis development version
|
2009-08-23 15:10:33 +02:00
|
|
|
* Mon Apr 27 2009 Otto Dassau 1.1
|
2009-09-14 09:01:35 +02:00
|
|
|
- changes and updates for new qgis development version
|
2009-04-24 09:37:36 +02:00
|
|
|
* Sun Mar 15 2009 Otto Dassau 1.0.1-2
|
2009-03-15 10:55:47 +01:00
|
|
|
- update for new release
|
|
|
|
* Sun Feb 22 2009 Otto Dassau 1.0.1
|
2009-02-22 13:18:01 +01:00
|
|
|
- update for new release
|
|
|
|
* Sun Dec 28 2008 Otto Dassau 1.0.0
|
2008-12-28 13:41:24 +01:00
|
|
|
- update for new version
|
|
|
|
* Fri Aug 29 2008 Otto Dassau 0.11.0
|
2008-08-28 15:41:12 +02:00
|
|
|
- update to build also on SLE_10 and 10.2
|
2008-08-30 09:25:16 +02:00
|
|
|
- use internal sqlite3 to support older suse versions
|
2008-08-28 15:41:12 +02:00
|
|
|
- added python-xml
|
2008-12-28 13:41:24 +01:00
|
|
|
* Mon Jul 14 2008 Otto Dassau 0.11.0
|
2008-07-14 10:27:19 +02:00
|
|
|
- update for new version, shorter description part
|
2008-07-14 12:44:45 +02:00
|
|
|
- added rpmlintrc file
|
2008-04-18 20:09:21 +02:00
|
|
|
* Fri Apr 18 2008 Otto Dassau 0.10.0
|
|
|
|
- update for new version
|
2007-12-20 17:38:11 +01:00
|
|
|
* Thu Dec 20 2007 Otto Dassau 0.9.1
|
|
|
|
- added python-qt4 and python-sip for python support
|
2007-11-23 11:12:40 +01:00
|
|
|
* Fri Nov 23 2007 Dirk Stöcker 0.9.0
|
|
|
|
- copied 64 bit fixes from Fedora
|
2007-09-27 16:39:51 +02:00
|
|
|
* Thu Sep 27 2007 Dirk Stöcker 0.9.0
|
|
|
|
- update to final release
|
2007-09-13 10:00:06 +02:00
|
|
|
* Mon Aug 14 2007 Dirk Stöcker 0.9.0pre1
|
2007-09-27 16:39:51 +02:00
|
|
|
- adapted to openSUSE build service
|
2007-09-13 10:00:06 +02:00
|
|
|
* Mon Jul 30 2007 Otto Dassau 0.9.0pre1
|
|
|
|
- changed to cmake
|
|
|
|
* Mon Jun 12 2007 Otto Dassau 0.8.1
|
|
|
|
- update for GRASS 6.2.2 bugfix release
|
|
|
|
* Mon Jun 12 2007 Otto Dassau 0.8.1
|
|
|
|
- first build
|
|
|
|
- splitting into files, files devel and files grass-plugin
|
|
|
|
* Sat Dec 30 2006 Otto Dassau 0.8.0
|
|
|
|
- added define grassversion
|
|
|
|
- first built of stable 0.8.0
|
|
|
|
* Tue Dec 19 2006 Otto Dassau 0.8.pre2
|
|
|
|
- adaptions to SuSE 10.2
|
|
|
|
* Mon Aug 24 2005 Otto Dassau 0.7.4
|
|
|
|
- adaptions to SuSE 10.0
|
|
|
|
* Mon Aug 24 2005 Otto Dassau 0.7.3
|
|
|
|
- adaptions to GRASS 6.0.1
|
|
|
|
* Mon Jun 25 2005 Stephan Holl 0.7.3pre2
|
2009-11-30 16:22:49 +01:00
|
|
|
- creation of a pre-release
|
2007-09-13 10:00:06 +02:00
|
|
|
* Mon Jun 20 2005 Otto Dassau 0.7.0
|
|
|
|
- adaptions to SuSE 9.3
|
|
|
|
* Wed Feb 18 2004 Jens Oberender
|
|
|
|
- the first spec for CVS
|