221 lines
6.4 KiB
RPMSpec
221 lines
6.4 KiB
RPMSpec
Name: qgis
|
|
Version: 1.4.0
|
|
Release: 1
|
|
License: GPL
|
|
Group: Applications/GIS
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.desktop
|
|
Source2: %{name}.rpmlintrc
|
|
#Patch0: sqlite3.patch
|
|
#Patch1: sip49_support.patch
|
|
Url: http://www.qgis.org/
|
|
Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS)
|
|
Packager: Otto Dassau <dassau@gbd-consult.de>
|
|
Requires: libgeos >= 2
|
|
Requires: libgdal1 >= 1.6.0
|
|
%if 0%{?suse_version} > 1030
|
|
Requires: sqlite >= 3.5
|
|
BuildRequires: sqlite-devel >= 3.5
|
|
%endif
|
|
Requires: libqt4 >= 4.3
|
|
Requires: gsl >= 1.6
|
|
Requires: postgresql >= 8 postgresql-libs >= 8
|
|
Requires: python-qt4
|
|
Requires: python-sip
|
|
Requires: python-xml
|
|
Requires: gpsbabel
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: python-devel
|
|
%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: libgdal-devel >= 1.6.0
|
|
BuildRequires: libgeos-devel >= 2
|
|
BuildRequires: libproj-devel
|
|
BuildRequires: postgresql-devel >= 8
|
|
BuildRequires: grass >= 6.2.3 grass-devel
|
|
BuildRequires: libgdal-grass >= 1.4
|
|
BuildRequires: libqt4-devel >= 4.3
|
|
BuildRequires: libqt4-qt3support >= 4.3
|
|
BuildRequires: libQtWebKit-devel >= 4.3
|
|
BuildRequires: gsl >= 1.6 gsl-devel
|
|
BuildRequires: cmake >= 2.4
|
|
BuildRequires: flex bison
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: -post-build-checks
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Obsoletes: qgis10
|
|
|
|
%package devel
|
|
Summary: Development Libraries for the Quantum GIS development branch 1.x
|
|
Group: Development/Libraries
|
|
Requires: qgis = %{version}
|
|
|
|
%package plugin-grass
|
|
Summary: GRASS Support Libraries for Quantum GIS development branch 1.x
|
|
Group: Applications/GIS
|
|
Requires: qgis = %{version}
|
|
Requires: grass >= 6.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 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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup
|
|
#%patch0 -p1
|
|
#%patch1 -p1
|
|
|
|
%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 %{intsq} \
|
|
-D CMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
-D GRASS_PREFIX=/opt/grass\
|
|
-D QGIS_LIB_SUBDIR=%{lib} \
|
|
-D WITH_BINDINGS=TRUE \
|
|
-D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \
|
|
-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
|
|
.
|
|
|
|
#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
|
|
|
|
# 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*
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/*
|
|
%{_mandir}/man1/*
|
|
%{_datadir}/%{name}/*
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%exclude %{_libdir}/libqgisgrass.so
|
|
%exclude %{_libdir}/libqgisgrass.so.1.4.0
|
|
%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.1.4.0
|
|
|
|
%post plugin-grass -p /sbin/ldconfig
|
|
|
|
%postun plugin-grass -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%changelog -n qgis
|
|
* 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
|
|
- added patch for sip >= 4.9 support
|
|
- added python-qt4-devel requirement for opensuse 11.2 and factory
|
|
* Sun Sep 13 2009 Otto Dassau 1.3
|
|
- changes and updates for new qgis development version
|
|
* Sun Aug 23 2009 Otto Dassau 1.2
|
|
- changes and updates for new qgis development version
|
|
* Mon Apr 27 2009 Otto Dassau 1.1
|
|
- changes and updates for new qgis development version
|
|
* Sun Mar 15 2009 Otto Dassau 1.0.1-2
|
|
- update for new release
|
|
* Sun Feb 22 2009 Otto Dassau 1.0.1
|
|
- update for new release
|
|
* Sun Dec 28 2008 Otto Dassau 1.0.0
|
|
- update for new version
|
|
* Fri Aug 29 2008 Otto Dassau 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 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 pre-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
|