182 lines
5.0 KiB
RPMSpec
182 lines
5.0 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: qgis
|
|
Version: 1.7.0
|
|
Release: 1
|
|
License: GPL
|
|
Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS)
|
|
Url: http://www.qgis.org/
|
|
Group: Applications/GIS
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
Source2: %{name}.rpmlintrc
|
|
Requires: libgdal1 >= 1.6.0
|
|
Requires: libgeos >= 2
|
|
Packager: Otto Dassau <dassau@gbd-consult.de>
|
|
%if 0%{?suse_version} > 1030
|
|
BuildRequires: sqlite-devel >= 3.5
|
|
Requires: sqlite >= 3.5
|
|
%endif
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: python-devel
|
|
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
|
|
%if 0%{?suse_version} <= 1030 || 0%{?suse_version} >= 1120
|
|
BuildRequires: python-qt4-devel
|
|
BuildRequires: python-sip-devel
|
|
%else
|
|
BuildRequires: python-qt4
|
|
BuildRequires: python-sip
|
|
%endif
|
|
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
|
|
BuildRequires: libgdal-devel >= 1.6.0
|
|
BuildRequires: libgeos-devel >= 2
|
|
BuildRequires: libproj-devel
|
|
BuildRequires: libqt4-devel >= 4.3
|
|
BuildRequires: libqt4-qt3support >= 4.3
|
|
BuildRequires: postgresql-devel >= 8
|
|
BuildRequires: txt2tags
|
|
BuildRequires: update-desktop-files
|
|
Obsoletes: qgis10
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%package devel
|
|
Summary: Development Libraries for the Quantum GIS development branch 1
|
|
Group: Development/Libraries
|
|
Requires: qgis = %{version}
|
|
|
|
%package plugin-grass
|
|
Summary: GRASS Support Libraries for Quantum GIS development branch 1
|
|
Group: Applications/GIS
|
|
Requires: grass
|
|
Requires: qgis = %{version}
|
|
|
|
%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 development branch 1.x including the C header files.
|
|
|
|
%description plugin-grass
|
|
GRASS plugin for Quantum GIS development branch 1.x required to interface with GRASS system.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export QTDIR=/usr
|
|
export PATH=$PATH:$QTDIR/bin
|
|
|
|
%ifarch x86_64
|
|
%define lib lib64
|
|
%else
|
|
%define lib lib
|
|
%endif
|
|
|
|
cmake -Wno-dev %{intsq} \
|
|
-D CMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-D GRASS_PREFIX=/opt/grass\
|
|
-D QGIS_LIB_SUBDIR=%{lib} \
|
|
-D WITH_BINDINGS=TRUE \
|
|
-D WITH_MAPSERVER=ON \
|
|
-D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \
|
|
-D QGIS_MANUAL_SUBDIR=share/man \
|
|
-D QWT_INCLUDE_DIR=/usr/include/qwt \
|
|
-D CMAKE_SKIP_RPATH=ON \
|
|
%if 0%{?suse_version} <= 1030
|
|
-D WITH_INTERNAL_SQLITE3=TRUE \
|
|
-D SQLITE3_INCLUDE_DIR=%{buildroot}/src/core/sqlite3 \
|
|
%endif
|
|
.
|
|
|
|
# add path to find libgdal.so
|
|
#find ./ -iname build.make -exec sed -i 's#/libgdal.so#/usr/%{lib}/libgdal.so#' {} \;
|
|
|
|
#echo "for 'make' run first:"
|
|
export QTDIR=%{_prefix}
|
|
#echo "export PATH=$PATH:$QTDIR/bin"
|
|
export PATH=$PATH:$QTDIR/bin
|
|
|
|
make %{_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
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
|
|
|
|
# Do not update .desktop files
|
|
%suse_update_desktop_file -n %{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_libdir}/lib%{name}python.s*
|
|
%{_libdir}/lib%{name}_*s*
|
|
%{_libdir}/lib%{name}*s*
|
|
%{_libdir}/%{name}/
|
|
%{_mandir}/man1/*
|
|
%{_datadir}/%{name}/*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_prefix}/lib/qgis/qgis_help
|
|
%exclude %{_libdir}/libqgisgrass.so
|
|
%exclude %{_libdir}/libqgisgrass.so.%{version}
|
|
%exclude %{_libdir}/qgis/libgrass*
|
|
%doc BUGS COPYING ChangeLog INSTALL README TODO
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/qgis/*
|
|
%exclude %{_prefix}/lib/debug/*
|
|
%exclude %{_prefix}/lib/debug/.build-id/*
|
|
|
|
%files plugin-grass
|
|
%defattr(644,root,root)
|
|
%{_libdir}/qgis/libgrass*
|
|
%{_libdir}/libqgisgrass.so
|
|
%{_libdir}/libqgisgrass.so.%{version}
|
|
%defattr(755,root,root)
|
|
%{_prefix}/lib/qgis/grass/bin/qgis.g.browser
|
|
%{_prefix}/lib/qgis/grass/modules/qgis.*
|
|
|
|
%post plugin-grass -p /sbin/ldconfig
|
|
|
|
%postun plugin-grass -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%changelog
|