updated, added 64bit fixes

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=10
This commit is contained in:
Dirk Stoecker 2007-11-23 10:12:40 +00:00 committed by Git OBS Bridge
parent 5c775d9970
commit e1e9209ffe

View File

@ -4,7 +4,10 @@ Release: 1
License: GPL License: GPL
Group: Applications/Engineering Group: Applications/Engineering
Source: %{name}-%{version}.tbz2 Source: %{name}-%{version}.tbz2
URL: http://www.qgis.org/ Source1: %{name}.desktop
Patch0: man-install-share-0.9.0.patch
Patch1: lib64-suffix-0.9.0.patch
Url: http://www.qgis.org/
Summary: Quantum GIS (QGIS) is designed to be a Geographic Information System (GIS) built for Linux/Unix. Summary: Quantum GIS (QGIS) is designed to be a Geographic Information System (GIS) built for Linux/Unix.
Packager: Dirk Stöcker <opensuse@dstoecker.de> Packager: Dirk Stöcker <opensuse@dstoecker.de>
Requires: libgeos >= 2 Requires: libgeos >= 2
@ -38,9 +41,12 @@ Group: Libraries
Requires: qgis = %{version}, grass Requires: qgis = %{version}, grass
%description %description
Quantum GIS (QGIS) is designed to be a Geographic Information System (GIS) Quantum GIS (QGIS) is a user friendly Open Source Geographic Information
built for Linux/Unix. QGIS will offer support for vector and raster formats. System (GIS) that runs on Linux, Unix, Mac OSX, and Windows. QGIS supports
Currently QGIS supports shapefiles and PostgreSQL/PostGIS layers. 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.
Planned features include: Planned features include:
@ -72,27 +78,18 @@ Development packages for Quantum GIS
%description plugin-grass %description plugin-grass
Development packages for Quantum GIS Development packages for Quantum GIS
%debug_package
%prep %prep
%setup %setup
%patch0 -p1
%patch1 -p1
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
export QTDIR=/usr export QTDIR=/usr
export PATH=$PATH:$QTDIR/bin export PATH=$PATH:$QTDIR/bin
CFLAGS="-O2" CPPFLAGS="-O2" LDFLAGS="-s" \
#./configure --enable-debug \
# --prefix=%{prefix} \
# --enable-spit \
# --with-qtdir=$QTDIR \
# --with-gdal=%{bindir}/gdal-config \
# --with-geos=%{bindir}/geos-config \
# --with-grass=/opt/grass \
# --with-wfs \
# --with-python \
# --with-gsl \
# --with-sqlite3
cmake -D CMAKE_INSTALL_PREFIX=%{_prefix} \ cmake -D CMAKE_INSTALL_PREFIX=%{_prefix} \
-D GRASS_PREFIX=/opt/grass \ -D GRASS_PREFIX=/opt/grass \
. .
@ -106,21 +103,28 @@ make
%install %install
make install DESTDIR=%{buildroot} 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 %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/bin/* %{_bindir}/*
%{_libdir}/libqgis_*s* %{_libdir}/lib%{name}_*s*
%{_libdir}/qgis/* %dir %{_libdir}/%{name}
%{_prefix}/man/* %{_libdir}/%{name}/*
%{_prefix}/share/qgis/* %{_mandir}/*
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%exclude %{_libdir}/libqgisgrass.so %exclude %{_libdir}/libqgisgrass.so
%exclude %{_libdir}/qgis/libgrass* %exclude %{_libdir}/qgis/libgrass*
%doc AUTHORS BUGS COPYING ChangeLog INSTALL README TODO %doc AUTHORS BUGS COPYING ChangeLog INSTALL README TODO
#%doc NEWS
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -138,6 +142,8 @@ rm -rf %{buildroot}
/sbin/ldconfig /sbin/ldconfig
%changelog -n qgis %changelog -n qgis
* 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 * Thu Sep 27 2007 Dirk Stöcker 0.9.0
- update to final release - update to final release
* Mon Aug 14 2007 Dirk Stöcker 0.9.0pre1 * Mon Aug 14 2007 Dirk Stöcker 0.9.0pre1