%define name Thuban %define version 1.0.0 Summary: Geographic data viewer Name: %{name} Version: %{version} Release: 1.fdr.2 Epoch: 1 Source0: %{name}-%{version}.tar.gz # solves encoding problem in about dialog Patch0: thuban-about.patch # intermediate solution for encoding problem with projections Patch1: thuban-proj.patch # solves problem with incorrect bounding boxes Patch2: thuban-layer.patch License: GPL Group: Applications/Productivity BuildRoot: %{_builddir}/%{name}-root Prefix: %{_prefix} URL: http://thuban.intevation.de/ BuildRequires: wxGTK2-devel, proj-devel Requires: wxPythonGTK2, wxGTK2, python-sqlite, proj %description Thuban is a viewer for geographic data written in Python # Commented out since mapserver package will only be available to a later stage #%package umn-mapserver #Summary: mapfile extension #Requires: mapserver # #%description umn-mapserver #Enables Thuban to read and write mapfiles, the configuration files for #UMN MapServer %prep %setup # Solves encoding problem of about-dialog %patch0 -p0 %patch1 -p0 %patch2 -p0 cp libraries/pyshapelib/{README,README.pyshapelib} cp libraries/pyshapelib/{COPYING,COPYING.pyshapelib} cp libraries/pyprojection/{LICENSE,LICENSE.pyprojection} %build env PATH="$PATH:/usr/lib/wxPython/bin:/usr/lib/wxPython/bin" CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install rm -rf %{buildroot} python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --prefix=/usr #cp -a %{_builddir}/%{name}/PyOGCLib/ogclib %{buildroot}/%{_libdir}/thuban # Commented out since mapserver package is not available by now # Installation files for umn-mapserver package #cp -a Extensions/umn_mapserver %{buildroot}%{_libdir}/thuban/Extensions %clean rm -rf %{_builddir}/%{name} rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) #%{_libdir}/thuban/ogclib/* %doc README COPYING libraries/pyshapelib/README.pyshapelib libraries/pyshapelib/COPYING.pyshapelib libraries/pyprojection/LICENSE.pyprojection # Commented out since mapserver package is not available by now #%files umn-mapserver #%defattr(-,root,root) #%{_libdir}/thuban/Extensions/umn_mapserver/* %Changelog * Mon Aug 23 2004 Silke Reimer - added new patch thuban-layer.proj which solves a problem with bounding boxes that are larger than possible bounding boxes for a layers' projection * Wed Aug 18 2004 Silke Reimer - added new patch thuban-proj.patch which disables Projektion Lambert-93 from Resources/Projections/default.proj to avoid a segmentation fault of wxGTK due to some encoding problems. This is a very ugly solution. Mid term this should be solved by thuban with a better encoding management (probably using unicode). * Fri Aug 06 2004 Silke Reimer - small changes to fit to Fedora naming conventions * Thu Jul 01 2004 Silke Reimer - Initial build