185 lines
5.3 KiB
RPMSpec
185 lines
5.3 KiB
RPMSpec
Name: qgis
|
|
Version: 0.11.0
|
|
Release: 1
|
|
License: GPL
|
|
Group: Applications/GIS
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
Source2: %{name}.rpmlintrc
|
|
Patch: sqlite3.patch
|
|
Url: http://www.qgis.org/
|
|
Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS)
|
|
Packager: Otto Dassau <otto.dassau@gmx.de>
|
|
Requires: libgeos >= 2
|
|
Requires: libgdal >= 1.5.0
|
|
#Internal sqlite is used to support older suse versions
|
|
#Requires: sqlite >= 3.5
|
|
Requires: libqt4 >= 4.2
|
|
Requires: gsl >= 1.6
|
|
Requires: postgresql >= 8 postgresql-libs >= 8
|
|
%if 0%{?application_geo_qt} > 43
|
|
Requires: python-qt4 python-xml
|
|
BuildRequires: python-devel python-qt4 python-sip
|
|
%endif
|
|
%if 0%{?suse_version} >=1030
|
|
Requires: python-qt4 python-xml
|
|
BuildRequires: python-devel python-qt4 python-sip
|
|
%endif
|
|
BuildRequires: libgdal-devel >= 1.5.0
|
|
BuildRequires: libgeos-devel >= 2
|
|
#Internal sqlite is used to support older suse versions
|
|
#BuildRequires: sqlite-devel >= 3.5
|
|
BuildRequires: libproj-devel
|
|
BuildRequires: postgresql-devel >= 8
|
|
BuildRequires: grass >= 6.2.3 grass-devel
|
|
BuildRequires: libgdal-grass >= 1.4.1
|
|
BuildRequires: libqt4-devel >= 4.2 libqt4-qt3support >= 4.2
|
|
BuildRequires: gsl >= 1.6 gsl-devel
|
|
BuildRequires: cmake >= 2.4
|
|
BuildRequires: flex bison
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package devel
|
|
Summary: Development Libraries for the Quantum GIS
|
|
Group: Development/Libraries
|
|
Requires: qgis = %{version}
|
|
|
|
%package plugin-grass
|
|
Summary: GRASS Support Libraries for Quantum GIS
|
|
Group: Applications/GIS
|
|
Requires: qgis = %{version}
|
|
Requires: grass >= 6.2.3
|
|
|
|
%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 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.
|
|
|
|
%description devel
|
|
Development packages for Quantum GIS including the C header files.
|
|
|
|
%description plugin-grass
|
|
GRASS plugin for Quantum GIS required to interface with GRASS system.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup
|
|
%patch -p0
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
export QTDIR=/usr
|
|
export PATH=$PATH:$QTDIR/bin
|
|
|
|
%ifarch x86_64
|
|
%define lib lib64
|
|
%else
|
|
%define lib lib
|
|
%endif
|
|
|
|
cmake -Wno-dev \
|
|
-D CMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-D GRASS_PREFIX=/opt/grass\
|
|
-D QGIS_LIB_SUBDIR=%{lib} \
|
|
-D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \
|
|
-D QGIS_MANUAL_SUBDIR=share/man \
|
|
-D WITH_INTERNAL_SQLITE3=TRUE \
|
|
-D SQLITE3_INCLUDE_DIR=%{buildroot}/src/core/sqlite3 \
|
|
.
|
|
|
|
#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}
|
|
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
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_libdir}/lib%{name}python.s*
|
|
%{_libdir}/lib%{name}_*s*
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/*
|
|
%{_mandir}/man1/*
|
|
%{_datadir}/%{name}/*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%exclude %{_libdir}/libqgisgrass.so
|
|
%exclude %{_libdir}/qgis/libgrass*
|
|
%doc AUTHORS BUGS COPYING ChangeLog INSTALL README TODO
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_prefix}/include/qgis/*
|
|
|
|
%files plugin-grass
|
|
%defattr(644,root,root)
|
|
%{_libdir}/qgis/libgrass*
|
|
%{_libdir}/libqgisgrass.so
|
|
%{_libdir}/libqgisgrass.so.0.11
|
|
|
|
%post plugin-grass -p /sbin/ldconfig
|
|
|
|
%postun plugin-grass -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%changelog -n qgis
|
|
* Fri Aug 29 2008 Otto Dassau <otto.dassau@gmx.de> 0.11.0
|
|
- update to build also on SLE_10 and 10.2
|
|
- use internal sqlite3 to support older suse versions
|
|
- added python-xml
|
|
* Mon Jul 14 2008 Otto Dassau <otto.dassau@gmx.de> 0.11.0
|
|
- update for new version, shorter description part
|
|
- added rpmlintrc file
|
|
* Fri Apr 18 2008 Otto Dassau 0.10.0
|
|
- update for new version
|
|
* Thu Dec 20 2007 Otto Dassau 0.9.1
|
|
- added python-qt4 and python-sip for python support
|
|
* Fri Nov 23 2007 Dirk Stöcker 0.9.0
|
|
- copied 64 bit fixes from Fedora
|
|
* Thu Sep 27 2007 Dirk Stöcker 0.9.0
|
|
- update to final release
|
|
* Mon Aug 14 2007 Dirk Stöcker 0.9.0pre1
|
|
- adapted to openSUSE build service
|
|
* 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
|
|
- creation of a pre2-release
|
|
* 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
|