[packages/libreatlas] - new
qboosh
qboosh at pld-linux.org
Sun Sep 30 09:49:08 CEST 2012
commit 826934f063ea899df9a602b09c62733d3886890a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 30 09:50:16 2012 +0200
- new
libreatlas-link.patch | 15 ++++++++++
libreatlas.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+)
---
diff --git a/libreatlas.spec b/libreatlas.spec
new file mode 100644
index 0000000..250d70e
--- /dev/null
+++ b/libreatlas.spec
@@ -0,0 +1,79 @@
+# $Revision: 1.21 $, $Date: 2011/07/16 18:25:43 $
+Summary: Geography Education application built on top of SpatiaLite and RasterLite
+Summary(pl.UTF-8): Geograficzny program edukacyjny stworzony w oparciu o SpatiaLite i RasterLite
+Name: libreatlas
+Version: 1.0.0a
+Release: 1
+License: GPL v3+
+Group: Applications
+Source0: http://www.gaia-gis.it/gaia-sins/libreatlas-sources/%{name}-%{version}.tar.gz
+# Source0-md5: d09d57d2cbb0b05be0e3ff9ad925d86a
+Patch0: %{name}-link.patch
+URL: https://www.gaia-gis.it/fossil/libreatlas
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake
+BuildRequires: freexl-devel
+BuildRequires: geos-devel
+BuildRequires: libgeotiff-devel >= 1.2.5
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: librasterlite-devel
+BuildRequires: libspatialite-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig
+BuildRequires: proj-devel >= 4
+BuildRequires: wxGTK2-unicode-devel >= 2.8.12-4
+BuildRequires: zlib-devel
+Requires: libgeotiff-devel >= 1.2.5
+Requires: wxGTK2-unicode >= 2.8.12-4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LibreAtlas is an open source Geography Education application built on
+top of SpatiaLite and RasterLite. It uses LibreAtlas databases which
+are a digital alternative to a paper atlas.
+
+%description -l pl.UTF-8
+LibreAtlas to mający otwarte źródła geograficzny program edukacyjny,
+stworzony w oparciu o SpatiaLite i RasterLite. Wykorzystuje bazy
+danych LibreAtlas, będące cyfrową alternatywą dla atlasu papierowego.
+
+%prep
+%setup -q
+%patch0 -p1
+
+mkdir wx-bin
+ln -sf /usr/bin/wx-gtk2-unicode-config wx-bin/wx-config
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+# configure refers to wx-config with no option to override
+PATH=$(pwd)/wx-bin:$PATH
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+sed -ne '2,$p' gnome_resource/LibreAtlas.desktop >$RPM_BUILD_ROOT%{_desktopdir}/LibreAtlas.desktop
+cp -p gnome_resource/LibreAtlas.png $RPM_BUILD_ROOT%{_pixmapsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/LibreAtlas
+%{_desktopdir}/LibreAtlas.desktop
+%{_pixmapsdir}/LibreAtlas.png
diff --git a/libreatlas-link.patch b/libreatlas-link.patch
new file mode 100644
index 0000000..1d8c188
--- /dev/null
+++ b/libreatlas-link.patch
@@ -0,0 +1,15 @@
+--- libreatlas-1.0.0a/Makefile.am.orig 2012-07-04 21:09:41.000000000 +0200
++++ libreatlas-1.0.0a/Makefile.am 2012-09-30 09:19:44.081736759 +0200
+@@ -8,10 +8,10 @@
+ LibreAtlas_SOURCES = Classdef.h Main.cpp MapView.cpp MapHelpers.cpp Dialogs.cpp
+
+ if MINGW
+-LDADD = @WX_LIBS@ @LIBSPATIALITE_LIBS@ @LIBRASTERLITE_LIBS@ @LIBFREEXL_LIBS@ \
++LDADD = @WX_LIBS@ @LIBSPATIALITE_LIBS@ @LIBRASTERLITE_LIBS@ @LIBFREEXL_LIBS@ -lgeos_c \
+ -lgdiplus
+ else
+-LDADD = @WX_LIBS@ @LIBSPATIALITE_LIBS@ @LIBRASTERLITE_LIBS@ @LIBFREEXL_LIBS@
++LDADD = @WX_LIBS@ @LIBSPATIALITE_LIBS@ @LIBRASTERLITE_LIBS@ @LIBFREEXL_LIBS@ -lgeos_c
+ endif
+
+ EXTRA_DIST = Makefile-static-MinGW \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libreatlas.git/commitdiff/826934f063ea899df9a602b09c62733d3886890a
More information about the pld-cvs-commit
mailing list