This repository has been archived on 2019-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
copr-dani-qgis/qgis.spec

487 lines
16 KiB
RPMSpec
Raw Normal View History

2010-07-12 01:32:19 +02:00
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: qgis
Version: 1.4.0
Release: 8%{?dist}
Summary: A user friendly Open Source Geographic Information System
Group: Applications/Engineering
License: GPLv2+ with exceptions
URL: http://www.qgis.org/
Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
Source1: %{name}.desktop
# Fix sip version, so it works with sip 4.10
# Already fixed in upcoming version http://trac.osgeo.org/qgis/ticket/2446
Patch0: qgis-1.4.0-sip410.patch
# Fix detection problem for GRASS libraries
Patch1: qgis-1.4.0-grass.patch
Patch2: qgis-1.4.0-qt47.patch
# Already fixed in upcoming version https://trac.osgeo.org/qgis/ticket/2879
Patch3: qgis-1.4.0-QVariant.patch
## Upstream patches
# http://trac.osgeo.org/qgis/ticket/2542
Patch100: qgis-1.4.0-fieldcalc.patch
# http://trac.osgeo.org/qgis/ticket/2661
Patch101: qgis-1.4.0-vectorcrs.patch
# http://trac.osgeo.org/qgis/ticket/2670
Patch102: qgis-1.4.0-asslibqgisv.patch
BuildRequires: cmake
BuildRequires: flex bison
BuildRequires: expat-devel
BuildRequires: gdal-devel
BuildRequires: geos-devel
BuildRequires: gsl-devel
BuildRequires: postgresql-devel
BuildRequires: proj-devel
BuildRequires: sqlite-devel
BuildRequires: chrpath
BuildRequires: desktop-file-utils
BuildRequires: qt-devel
BuildRequires: sip-devel > 4.7
BuildRequires: python-devel
BuildRequires: PyQt4-devel
BuildRequires: qt4-webkit-devel
2007-07-03 17:21:11 +02:00
# grass package contains definitions needed for configure script
2010-07-12 01:32:19 +02:00
BuildRequires: grass, grass-devel
Requires: gpsbabel
Obsoletes: qgis-theme-classic < 1.1
Obsoletes: qgis-theme-gis < 1.1
Obsoletes: qgis-theme-nkids < 1.1
2007-07-03 17:21:11 +02:00
%description
Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
2010-07-12 01:32:19 +02:00
System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
QGIS supports vector, raster, and database formats. 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.
%package devel
2010-07-12 01:32:19 +02:00
Summary: Development Libraries for the Quantum GIS
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
2010-07-12 01:32:19 +02:00
Development packages for Quantum GIS including the C header files.
2007-07-03 17:21:11 +02:00
2010-07-12 01:32:19 +02:00
%package grass
Summary: GRASS Support Libraries for Quantum GIS
Group: Applications/Engineering
Requires: %{name} = %{version}-%{release}
Requires: grass
2007-07-03 17:21:11 +02:00
%description grass
2010-07-12 01:32:19 +02:00
GRASS plugin for Quantum GIS required to interface with the GRASS system.
2010-07-12 01:32:19 +02:00
%package python
Summary: Python integration and plugins for Quantum GIS
Group: Applications/Engineering
Requires: %{name} = %{version}-%{release}
%description python
2010-07-12 01:32:19 +02:00
Python integration and plugins for QGIS.
2007-07-03 17:21:11 +02:00
%prep
2009-07-30 21:15:53 +02:00
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .sip410
2010-07-12 01:32:19 +02:00
%patch1 -p1 -b .grass
%patch2 -p1 -b .qt47
%patch3 -p1 -b .QVariant
%patch100 -p1 -b .fieldcalc
%patch101 -p1 -b .vectorcrs
%patch102 -p1 -b .asslibqgis
# Encode man-file to utf-8
iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.conv qgis_help.1
# Fix spurious executable bits
# Already fixed in upcoming version
chmod -x \
./src/app/legend/qgslegend.h \
./src/app/legend/qgslegend.cpp \
./src/core/composer/qgscomposershape.h \
./src/core/composer/qgscomposershape.cpp
# Remove obsolete translations
#/usr/bin/lupdate-qt4 -noobsolete -ts i18n/qgis_*.ts
2007-07-03 17:21:11 +02:00
%build
2009-12-24 04:29:48 +01:00
2010-07-12 01:32:19 +02:00
# Detection doesn't work on it's own
GRASS_PREFIX=%{_libdir}
2007-07-03 17:21:11 +02:00
2010-07-12 01:32:19 +02:00
%cmake \
-D QGIS_LIB_SUBDIR=%{_lib} \
-D QGIS_MANUAL_SUBDIR=/share/man \
-D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
-D WITH_BINDINGS:BOOL=TRUE \
-D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
-D GRASS_PREFIX=$GRASS_PREFIX \
-D GDAL_INCLUDE_DIR=%{_includedir}/gdal \
-D GDAL_LIBRARY=%{_libdir}/libgdal.so \
.
# Parallel make leads to race conditions with PYQT4_WRAP_UI
#make %{?_smp_mflags}
make
2007-07-03 17:21:11 +02:00
%install
2010-07-12 01:32:19 +02:00
rm -rf %{buildroot}
2009-12-24 04:29:48 +01:00
make install DESTDIR=%{buildroot}
2010-07-12 01:32:19 +02:00
# Qt translations shouldn't be shipped
rm -f %{buildroot}/%{_datadir}/%{name}/i18n/qt_*.qm
2007-07-03 17:21:11 +02:00
2010-07-12 01:32:19 +02:00
%find_lang %{name} --with-qt
2007-07-03 17:21:11 +02:00
2010-07-12 01:32:19 +02:00
# Remove rpath from files
chrpath --delete \
%{buildroot}%{python_sitearch}/%{name}/*.so
# Add executable perms to python libs so they get stripped
chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
# Remove files packaged by doc or undesired
rm -f %{buildroot}%{_datadir}/%{name}/doc/BUGS \
%{buildroot}%{_datadir}/%{name}/doc/ChangeLog \
%{buildroot}%{_datadir}/%{name}/doc/CODING \
%{buildroot}%{_datadir}/%{name}/doc/COPYING \
%{buildroot}%{_datadir}/%{name}/doc/INSTALL \
%{buildroot}%{_datadir}/%{name}/doc/PROVENANCE \
%{buildroot}%{_datadir}/%{name}/doc/README
# Install desktop file
install -pd %{buildroot}%{_datadir}/pixmaps
install -pm0644 \
%{buildroot}%{_datadir}/%{name}/images/icons/%{name}-icon.png \
%{buildroot}%{_datadir}/pixmaps/%{name}.png
2007-07-03 17:21:11 +02:00
desktop-file-install --vendor="fedora" \
2010-07-12 01:32:19 +02:00
--dir=%{buildroot}/%{_datadir}/applications \
%{SOURCE1}
2007-07-03 17:21:11 +02:00
2010-07-12 01:32:19 +02:00
%check
# The tests don't seem to work right
# -D ENABLE_TESTS:BOOL=TRUE \
#make -d test
2007-07-03 17:21:11 +02:00
%clean
2010-07-12 01:32:19 +02:00
rm -rf %{buildroot}
2007-07-03 17:21:11 +02:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post grass -p /sbin/ldconfig
%postun grass -p /sbin/ldconfig
%post python -p /sbin/ldconfig
%postun python -p /sbin/ldconfig
2010-07-12 01:32:19 +02:00
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc BUGS COPYING ChangeLog README CODING PROVENANCE Exception_to_GPL_for_Qt.txt
# Can be viewed in the About-Box:
# CONTRIBUTORS AUTHORS
%{_libdir}/lib%{name}_*.so.*
2010-07-12 01:32:19 +02:00
%{_libdir}/%{name}/
%{_bindir}/qgis*
%{_mandir}/man1/%{name}*
%dir %{_datadir}/%{name}/
2007-07-03 17:21:11 +02:00
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/fedora-%{name}.desktop
2010-07-12 01:32:19 +02:00
%dir %{_datadir}/%{name}/i18n/
%{_datadir}/%{name}/doc
2007-07-03 17:21:11 +02:00
%{_datadir}/%{name}/images
%{_datadir}/%{name}/resources
%{_datadir}/%{name}/svg
2010-07-12 01:32:19 +02:00
%{_datadir}/%{name}/themes
%exclude %{_libdir}/libqgisgrass.so.%{version}
%exclude %{_libdir}/%{name}/libgrassprovider.so
%exclude %{_libdir}/%{name}/libgrassplugin.so
%exclude %{_datadir}/%{name}/themes/default/grass
%exclude %{_datadir}/%{name}/themes/gis/grass
%exclude %{_datadir}/%{name}/themes/classic/grass
2007-07-03 17:21:11 +02:00
%files devel
2010-07-12 01:32:19 +02:00
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/lib%{name}_*.so
2010-07-12 01:32:19 +02:00
%{_libdir}/lib%{name}python.so
%{_libdir}/lib%{name}grass.so
2007-07-03 17:21:11 +02:00
%files grass
2010-07-12 01:32:19 +02:00
%defattr(-,root,root,-)
%{_libdir}/lib%{name}grass.so.%{version}
%{_libdir}/%{name}/libgrassprovider.so
%{_libdir}/%{name}/libgrassplugin.so
2007-07-03 17:21:11 +02:00
%{_datadir}/%{name}/grass
%{_datadir}/%{name}/themes/default/grass
2010-07-12 01:32:19 +02:00
%{_datadir}/%{name}/themes/gis/grass
%{_datadir}/%{name}/themes/classic/grass
2007-07-03 17:21:11 +02:00
%files python
2010-07-12 01:32:19 +02:00
%defattr(-,root,root,-)
%{_libdir}/lib%{name}python.so.*
%{_datadir}/%{name}/python
%{python_sitearch}/%{name}
2007-07-03 17:21:11 +02:00
%changelog
2010-07-12 01:32:19 +02:00
* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-8
- Further completed qt47 patch
* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-7
- Further completed qt47 patch
* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-6
- Added patch to remove redundant ::QVariant in function-style cast
* Fri Jul 09 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-5
- Removed smp_mflags because of race conditions
- Simplified member initializer syntax in qt47 patch
* Wed Jul 07 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-4
- Added preliminary patch for Qt 4.7 -- still won't build for Rawhide because of https://bugzilla.redhat.com/show_bug.cgi?id=587707
- Put version variable in filelist for GRASS
- Added qt-webkit as build require, removed gettext
- Corrected erroneous dependency on GRASS subpackage
* Thu Jul 01 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-3
- Changed license to reflect exception for Qt; packaged exception file
- Added find_lang and excluded qt-translations
- Added ownership for directory in share
- Dropped docdir statement
- Changed description for the subpackages python and grass
* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
- Grouped corresponding entries for %description and %package
- Corrected swapped summaries for python- and grass-subpackage
- Set theme subpackages as obsolete
- Removed nonsensical build-requires statements from subpackages
- Dropped redundant definition of GRASS_PREFIX
- Removed verbose-option from make
- Removed unnecessary chmod-command
- Removed nonsensical ldconfig for devel-subpackage
- Made the file list more elegant
- Removed unnecessary call for chrpath
* Thu Jun 17 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-1
- Updated for 1.4.0
- Dropped theme packages
* Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.2-6
- rebuild for sip 4.10
- fix sip version check so it works with sip 4.10 (#553713)
2010-07-12 01:32:19 +02:00
* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-5
- Rebuild against new GEOS.
2010-01-07 23:43:04 +01:00
2009-12-24 04:29:48 +01:00
* Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-4
- qgis rebuild for sip-4.9.x (#538119)
2009-12-04 19:36:51 +01:00
* Fri Dec 04 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.0.2-3
- Rebuild for new Geos.
* Tue Nov 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
- -python: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538119)
2009-12-24 04:29:48 +01:00
* Thu Oct 22 2009 Alex Lancaster <alexlan[AT] fedoraproject org> - 1.0.2-1.1
- Rebuilt to fix python problem (#518121)
* Thu Jul 30 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.2-1
- updating for 1.0.2
- moving libqgispython.so to python subpackage for bug#507381
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-18 23:09:04 +01:00
* Wed Feb 18 2009 Douglas E. Warner <silfreed@silfreed.net> 1.0.1-1
- updating for 1.0.1
* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> 1.0.0-1
- updating for 1.0.0
- added gis theme and quick print plugin
- added requirement for gpsbabel
2008-12-22 19:21:48 +01:00
* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-8
- cleaning up patch
2008-12-22 14:28:33 +01:00
* Mon Dec 22 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-7
- bump to add patch
* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-6
- adding patch to fix typedef problems in python build
2008-12-18 18:17:49 +01:00
* Thu Dec 18 2008 Douglas E. Warner <silfreed@silfreed.net> - 0.11.0-5
- Rebuild for Python 2.6
2008-11-29 18:21:03 +01:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.0-4
- Rebuild for Python 2.6
* Sun Oct 19 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.11.0-3
- Rebuild for new geos, fixes broken deps
* Mon Aug 11 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-2
- building against blas and lapack instead of atlas and blas to fix missing
library calls
* Wed Jul 16 2008 Douglas E. Warner <silfreed@silfreed.net> 0.11.0-1
- update to metis 0.11.0
- remove python patch
- enabling python subpackage
- fixed executable perms on new headers/source
- stripping rpath with chrpath
- making python libs executable to get files stripped
* Fri Mar 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.10.0-2
- added patch to support cmake 2.6
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.10.0-1
- upgraded to 0.10.0 release candidate
- removed gcc 4.3 patches
- adding devel package since libraries are now versioned
* Fri Mar 28 2008 Balint Cristian <rezso@rdsor.ro> - 0.9.1-5
- fix build by adding more gcc43 patches
- rebuild against grass63
2008-02-20 01:00:30 +01:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4
- Autorebuild for GCC 4.3
* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-4
- adding gcc43-INT_MAX-qgis-0.9.1.patch
- adding gcc43-duplicate_function_param-qgis-0.9.1.patch
2008-02-18 21:13:11 +01:00
- adding gcc43-memcpy-qgis-0.9.1.patch
- adding gcc43-memcpy-strtod-qgis-0.9.1.patch
* Mon Feb 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-3
- adding Requires sip, PyQt4 for python bindings support
* Mon Jan 28 2008 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-2
- defining lib path in build
- installing python bindings globally
- adding patch to determine python site packages dir correctly
* Mon Dec 17 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.1-1
- update to 0.9.1
- removing lib64 and man instal path patches (included upstream)
- enabling python integration
2007-10-05 14:55:57 +02:00
* Fri Oct 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-2
- enabling build for PPC64 (bug#247152)
* Wed Sep 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.9.0-1
- update to 0.9.0
- remove settings-include-workdir.patch
- updated man-install-share.patch to man-install-share-0.9.0.patch
- updated lib64-suffix.patch to lib64-suffix-0.9.0.patch
- enabled python to support msexport tool
- added Requires: grass to grass subpackage
2007-08-28 13:14:07 +02:00
* Tue Aug 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-13
- bump for expat 2.0 rebuild bug#195888
2007-08-02 20:32:53 +02:00
* Thu Aug 02 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-12
2007-08-02 20:35:40 +02:00
- updated License from GPL to GPLv2+
2007-08-02 20:32:53 +02:00
* Tue Jul 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-11
- allowing docs to be installed by qgis so they can be referenced by internal
help system (bug#241403)
- updated lib64 patch (bug#247549) to try to get plugins found on x86_64
* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-10
- updated lib64 patch for core and grass libraries
2007-07-05 19:56:04 +02:00
* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-9
- updated lib64 patch
* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-8
- adding ExcludeArch: ppc64 for bug#247152 (lrelease segfault)
* Thu Jul 05 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-7
- adding patch for lib64 support through lib_suffix
2007-07-03 17:21:11 +02:00
* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-6
- fixed date of changelog entry for 0.8.1-5 from Wed Jun 27 2007 to
Thu Jun 28 2007
- linking icon to included png instead of packaging it again
* Thu Jun 28 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-5
- adding comment on why grass is required in addition to grass-devel for BR
- fixing typo
* Wed Jun 27 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-4
- adding contributors to doc
- adding desktop file and icon
* Mon Jun 25 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-3
- updating detection of grass libraries to not use RPM call
- disabling building of -devel package due to shared libraries not being
versioned and having no other packages that compile against qgis
(see bug #241403)
- removing chmod of test_export.py due to lack of python requirement
- removing msexport and share/python directory due to removal of python
* Fri Jun 22 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-2
- added BuildRequires: cmake
- updated build to use cmake macro and make verbose
* Mon Jun 19 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.1-1
- updating version
- removed BuildRequires: python-devel due to lack of PyQt4 bindings
- updated build for use of cmake instead of autotools
- added patch for setting WORKDIR in settings.pro file
- added patch for fixing install path of man pages
- updated library names
* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-6
- adding BuildRequires bison, flex
* Tue May 29 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-5
- fixing more directory owernship (themes, themes-default)
- fixing qt4 hardcoded lib path
- removing Requires ldconfig
- adding BuildRequires sqlite-devel
- adding patch for supporting python 2.5 in configure script
* Sat May 26 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-4
- moving all BuildRequires to main section
- dropping use of makeinstall macro
- making sure directories are owned by this package
- removing *.a and *.la files
- disabled stripping of libraries and binaries to allow debuginfo package
to be built
- fixing macros in changelog
- removing executable bits on source files
* Wed May 16 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-3
- fixing Requires statements for sub-packages
* Tue May 15 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-2
- added devel dependancy on qgis
- moved qgis-config to devel package
- moving doc directory
- removed zero-length NEWS doc
- added postin/postun ldconfig calls
- split packages up to reduce package size and split out dependancies
grass, theme-nkids
* Mon May 14 2007 Douglas E. Warner <silfreed@silfreed.net> 0.8.0-1
- Initial RPM release.