Updated for 1.6
This commit is contained in:
parent
9e688de1f3
commit
3211a574c9
|
@ -1,10 +0,0 @@
|
||||||
--- qgis-1.5.0-qwt/cmake/FindQWT.cmake 2010-07-03 01:46:21.423273337 +0200
|
|
||||||
+++ qgis-1.5.0/cmake/FindQWT.cmake 2010-07-03 02:24:07.850647802 +0200
|
|
||||||
@@ -17,6 +17,7 @@
|
|
||||||
#MESSAGE("Searching for QWT")
|
|
||||||
FIND_PATH(QWT_INCLUDE_DIR qwt.h
|
|
||||||
/usr/include
|
|
||||||
+ /usr/include/qwt
|
|
||||||
/usr/include/qwt-qt4
|
|
||||||
/usr/local/include
|
|
||||||
"$ENV{LIB_DIR}/include"
|
|
|
@ -1,64 +0,0 @@
|
||||||
--- qgis-1.5.0/python/core/conversions.sip 2010-04-20 14:25:42.000000000 +0200
|
|
||||||
+++ qgis-1.5.0-sip411/python/core/conversions.sip 2010-09-11 23:37:45.828329803 +0200
|
|
||||||
@@ -263,61 +263,6 @@
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-%MappedType QSet<int>
|
|
||||||
-{
|
|
||||||
-%TypeHeaderCode
|
|
||||||
-#include <QSet>
|
|
||||||
-#if (SIP_VERSION >= 0x040900)
|
|
||||||
-#define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString))
|
|
||||||
-#define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant))
|
|
||||||
-#endif
|
|
||||||
-%End
|
|
||||||
-
|
|
||||||
-%ConvertFromTypeCode
|
|
||||||
- // Create the list.
|
|
||||||
- PyObject *l;
|
|
||||||
-
|
|
||||||
- if ((l = PyList_New(sipCpp->size())) == NULL)
|
|
||||||
- return NULL;
|
|
||||||
-
|
|
||||||
- // Set the list elements.
|
|
||||||
- QSet<int>::iterator it = sipCpp->begin();
|
|
||||||
- for (int i = 0; it != sipCpp->end(); ++it, ++i)
|
|
||||||
- {
|
|
||||||
- PyObject *tobj;
|
|
||||||
-
|
|
||||||
- if ((tobj = PyInt_FromLong(*it)) == NULL)
|
|
||||||
- {
|
|
||||||
- Py_DECREF(l);
|
|
||||||
- return NULL;
|
|
||||||
- }
|
|
||||||
- PyList_SET_ITEM(l, i, tobj);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- return l;
|
|
||||||
-%End
|
|
||||||
-
|
|
||||||
-%ConvertToTypeCode
|
|
||||||
- // Check the type if that is all that is required.
|
|
||||||
- if (sipIsErr == NULL)
|
|
||||||
- return PyList_Check(sipPy);
|
|
||||||
-
|
|
||||||
- QSet<int> *qset = new QSet<int>;
|
|
||||||
-
|
|
||||||
- for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
|
|
||||||
- {
|
|
||||||
- qset->insert(PyInt_AsLong(PyList_GET_ITEM(sipPy, i)));
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- *sipCppPtr = qset;
|
|
||||||
- return sipGetState(sipTransferObj);
|
|
||||||
-%End
|
|
||||||
-
|
|
||||||
-};
|
|
||||||
-
|
|
||||||
-
|
|
||||||
template <TYPE>
|
|
||||||
%MappedType QSet<TYPE>
|
|
||||||
{
|
|
53
qgis.spec
53
qgis.spec
|
@ -3,21 +3,20 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: qgis
|
Name: qgis
|
||||||
Version: 1.5.0
|
Version: 1.6.0
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A user friendly Open Source Geographic Information System
|
Summary: A user friendly Open Source Geographic Information System
|
||||||
|
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
License: GPLv2+ with exceptions
|
License: GPLv2+ with exceptions
|
||||||
URL: http://www.qgis.org/
|
URL: http://www.qgis.org/
|
||||||
Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
|
#Source0: http://download.osgeo.org/qgis/src/%{name}_%{version}.tar.gz
|
||||||
|
Source0: http://qgis.org/~timlinux/src/%{name}_%{version}.tar.gz
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
|
|
||||||
# Fix detection problem for GRASS libraries
|
# Fix detection problem for GRASS libraries
|
||||||
# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
|
# Proposed changes for next version: https://trac.osgeo.org/qgis/ticket/2863
|
||||||
Patch0: qgis-1.5.0-grass.patch
|
Patch0: qgis-1.5.0-grass.patch
|
||||||
Patch1: qgis-1.5.0-qwt.patch
|
|
||||||
Patch2: qgis-1.5.0-sip411.patch
|
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: flex bison
|
BuildRequires: flex bison
|
||||||
|
@ -38,16 +37,24 @@ BuildRequires: sip-devel > 4.7
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: PyQt4-devel
|
BuildRequires: PyQt4-devel
|
||||||
BuildRequires: qt4-webkit-devel
|
BuildRequires: qt4-webkit-devel
|
||||||
|
BuildRequires: fcgi-devel
|
||||||
|
|
||||||
# grass package contains definitions needed for configure script
|
# grass package contains definitions needed for configure script
|
||||||
BuildRequires: grass, grass-devel
|
BuildRequires: grass, grass-devel
|
||||||
|
|
||||||
Requires: gpsbabel
|
Requires: gpsbabel
|
||||||
|
|
||||||
|
# Obsoletes can be dropped after F15's EOL
|
||||||
Obsoletes: qgis-theme-classic < 1.1
|
Obsoletes: qgis-theme-classic < 1.1
|
||||||
Obsoletes: qgis-theme-gis < 1.1
|
Obsoletes: qgis-theme-gis < 1.1
|
||||||
Obsoletes: qgis-theme-nkids < 1.1
|
Obsoletes: qgis-theme-nkids < 1.1
|
||||||
|
|
||||||
|
# We don't want to provide private python extension libs
|
||||||
|
%{?filter_setup:
|
||||||
|
%filter_provides_in %{python_sitearch}/.*\.so$
|
||||||
|
%filter_setup
|
||||||
|
}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
|
Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
|
||||||
System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
|
System (GIS) that runs on Linux, Unix, Mac OSX, and Windows.
|
||||||
|
@ -85,11 +92,9 @@ Requires: PyQt4
|
||||||
Python integration and plugins for QGIS.
|
Python integration and plugins for QGIS.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
%patch0 -p1 -b .grass
|
%patch0 -p1 -b .grass
|
||||||
%patch1 -p1 -b .qwt
|
|
||||||
%patch2 -p1 -b .sip411
|
|
||||||
|
|
||||||
# Encode man-file to utf-8
|
# 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
|
iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.conv qgis_help.1
|
||||||
|
@ -103,9 +108,11 @@ iconv -f iso8859-1 -t utf-8 qgis_help.1 > qgis_help.1.conv && mv qgis_help.1.con
|
||||||
GRASS_PREFIX=%{_libdir}
|
GRASS_PREFIX=%{_libdir}
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
|
%{_cmake_skip_rpath} \
|
||||||
-D QGIS_LIB_SUBDIR=%{_lib} \
|
-D QGIS_LIB_SUBDIR=%{_lib} \
|
||||||
-D QGIS_MANUAL_SUBDIR=/share/man \
|
-D QGIS_MANUAL_SUBDIR=/share/man \
|
||||||
-D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
|
-D QGIS_PLUGIN_SUBDIR=%{_lib}/%{name} \
|
||||||
|
-D QGIS_CGIBIN_SUBDIR=%{_var}/www/cgi-bin \
|
||||||
-D WITH_BINDINGS:BOOL=TRUE \
|
-D WITH_BINDINGS:BOOL=TRUE \
|
||||||
-D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
|
-D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
|
||||||
-D GRASS_PREFIX=$GRASS_PREFIX \
|
-D GRASS_PREFIX=$GRASS_PREFIX \
|
||||||
|
@ -114,21 +121,16 @@ GRASS_PREFIX=%{_libdir}
|
||||||
.
|
.
|
||||||
|
|
||||||
# Parallel make leads to race conditions with PYQT4_WRAP_UI
|
# Parallel make leads to race conditions with PYQT4_WRAP_UI
|
||||||
#make %{?_smp_mflags}
|
# But let's give it a try again!
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
#make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# Qt translations shouldn't be shipped
|
|
||||||
rm -f %{buildroot}/%{_datadir}/%{name}/i18n/qt_*.qm
|
|
||||||
|
|
||||||
%find_lang %{name} --with-qt
|
%find_lang %{name} --with-qt
|
||||||
|
|
||||||
# Remove rpath from files
|
|
||||||
chrpath --delete \
|
|
||||||
%{buildroot}%{python_sitearch}/%{name}/*.so
|
|
||||||
|
|
||||||
# Add executable perms to python libs so they get stripped
|
# Add executable perms to python libs so they get stripped
|
||||||
chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
|
chmod +x %{buildroot}%{python_sitearch}/%{name}/*.so
|
||||||
|
@ -151,11 +153,6 @@ desktop-file-install --vendor="fedora" \
|
||||||
--dir=%{buildroot}/%{_datadir}/applications \
|
--dir=%{buildroot}/%{_datadir}/applications \
|
||||||
%{SOURCE1}
|
%{SOURCE1}
|
||||||
|
|
||||||
%check
|
|
||||||
# The tests don't seem to work right
|
|
||||||
# -D ENABLE_TESTS:BOOL=TRUE \
|
|
||||||
#make -d test
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
@ -179,6 +176,9 @@ rm -rf %{buildroot}
|
||||||
%{_libdir}/lib%{name}_*.so.*
|
%{_libdir}/lib%{name}_*.so.*
|
||||||
%{_libdir}/%{name}/
|
%{_libdir}/%{name}/
|
||||||
%{_bindir}/qgis*
|
%{_bindir}/qgis*
|
||||||
|
%{_var}/www/cgi-bin/admin.sld
|
||||||
|
%{_var}/www/cgi-bin/wms_metadata.xml
|
||||||
|
%{_var}/www/cgi-bin/qgis_mapserv.fcgi
|
||||||
%{_mandir}/man1/%{name}*
|
%{_mandir}/man1/%{name}*
|
||||||
%dir %{_datadir}/%{name}/
|
%dir %{_datadir}/%{name}/
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
@ -224,6 +224,15 @@ rm -rf %{buildroot}
|
||||||
%{python_sitearch}/%{name}
|
%{python_sitearch}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Thu Nov 11 2010 Volker Fröhlich <volker27@gmx.at> - 1.6.0-1
|
||||||
|
- Avoid rpaths in the first place
|
||||||
|
- Dropped superfluid QWT and SIP patches
|
||||||
|
- Dropped test section
|
||||||
|
- Added dependency for fcgi-devel
|
||||||
|
- Abbreviated syntax for setup macro
|
||||||
|
- Qt translations are no longer shipped
|
||||||
|
|
||||||
* Wed Sep 29 2010 jkeating - 1.5.0-6
|
* Wed Sep 29 2010 jkeating - 1.5.0-6
|
||||||
- Rebuilt for gcc bug 634757
|
- Rebuilt for gcc bug 634757
|
||||||
|
|
||||||
|
@ -277,7 +286,7 @@ rm -rf %{buildroot}
|
||||||
- Changed description for the subpackages python and grass
|
- Changed description for the subpackages python and grass
|
||||||
|
|
||||||
* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
|
* Wed Jun 24 2010 Volker Fröhlich <volker27@gmx.at> - 1.4.0-2
|
||||||
- Grouped corresponding entries for %description and %package
|
- Grouped corresponding entries for description and package macro
|
||||||
- Corrected swapped summaries for python- and grass-subpackage
|
- Corrected swapped summaries for python- and grass-subpackage
|
||||||
- Set theme subpackages as obsolete
|
- Set theme subpackages as obsolete
|
||||||
- Removed nonsensical build-requires statements from subpackages
|
- Removed nonsensical build-requires statements from subpackages
|
||||||
|
|
Reference in New Issue
Block a user