[libreatlas] Initial import (#951817).
Micah Roth
ndroftheline at fedoraproject.org
Wed Apr 24 16:07:42 UTC 2013
commit a75304f1dec8faab8ab42f2ae449515b82b7c2c1
Author: Micah Roth <micah.roth at ucla.edu>
Date: Wed Apr 24 23:20:05 2013 +0800
Initial import (#951817).
.gitignore | 1 +
README | 11 +++++
libreatlas-1.0.0a-geos_c_linker.patch | 12 +++++
libreatlas.spec | 73 +++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bb79774 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libreatlas-1.0.0a.tar.gz
diff --git a/README b/README
new file mode 100644
index 0000000..4dce143
--- /dev/null
+++ b/README
@@ -0,0 +1,11 @@
+Website:
+https://www.gaia-gis.it/fossil/libreatlas
+
+So to get started, you simply:
+
+1. Install the LibreAtlas application
+2. Download or copy a LibreAtlas database of your choice (available at
+ http://www.gaia-gis.it/gaia-sins/libreatlas-resources/) and unpack to the
+ directory of your choice
+3. When starting the application for the first time,
+ you open the LibreAtlas database ...and that's absolutely all!
diff --git a/libreatlas-1.0.0a-geos_c_linker.patch b/libreatlas-1.0.0a-geos_c_linker.patch
new file mode 100644
index 0000000..57a50a3
--- /dev/null
+++ b/libreatlas-1.0.0a-geos_c_linker.patch
@@ -0,0 +1,12 @@
+diff -Nur libreatlas-1.0.0a/configure libreatlas-1.0.0a-geos-c/configure
+--- libreatlas-1.0.0a/configure 2012-07-05 03:09:41.000000000 +0800
++++ libreatlas-1.0.0a-geos-c/configure 2013-04-12 01:22:04.579288884 +0800
+@@ -16463,7 +16463,7 @@
+
+ CPPFLAGS="$CPPFLAGS_SAVE"
+ # Ensure we can link against libgeos_c
+-LIBS_SAVE="$LIBS"
++LIBS_SAVE="-lgeos_c $LIBS"
+ LIBS="$GEOS_LDFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GEOSTopologyPreserveSimplify" >&5
+ $as_echo_n "checking for library containing GEOSTopologyPreserveSimplify... " >&6; }
diff --git a/libreatlas.spec b/libreatlas.spec
new file mode 100644
index 0000000..7715460
--- /dev/null
+++ b/libreatlas.spec
@@ -0,0 +1,73 @@
+Name: libreatlas
+Version: 1.0.0a
+Release: 3%{?dist}
+Summary: A digital atlas and geography education tool
+
+# Upstream emailed regarding explicitly stating license in headers
+License: GPLv3+
+URL: https://www.gaia-gis.it/fossil/libreatlas
+Source0: http://www.gaia-gis.it/gaia-sins/%{name}-%{version}.tar.gz
+Source1: README
+# geos_c header not added to linker variable
+# Upstream emailed regarding linker problem
+Patch0: %{name}-1.0.0a-geos_c_linker.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: freexl-devel
+BuildRequires: libspatialite-devel
+BuildRequires: wxGTK-devel
+BuildRequires: sqlite-devel
+BuildRequires: geos-devel
+BuildRequires: proj-devel
+BuildRequires: libgeotiff-devel
+BuildRequires: libjpeg-devel
+BuildRequires: librasterlite-devel
+
+%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 paper atlases.
+
+
+%prep
+%setup -q
+%patch0 -p1
+# first line of this .desktop file appears to be for debian(?) compatibility,
+# causes rpmlint to complain
+sed -i '1d' gnome_resource/LibreAtlas.desktop
+install -pm 0644 %{SOURCE1} .
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+desktop-file-install \
+ --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
+ gnome_resource/LibreAtlas.desktop
+install -pm 0644 -D \
+ gnome_resource/LibreAtlas.png \
+ $RPM_BUILD_ROOT%{_datadir}/pixmaps/LibreAtlas.png
+
+
+%files
+%doc COPYING AUTHORS README
+%{_bindir}/LibreAtlas
+%{_datadir}/applications/LibreAtlas.desktop
+%{_datadir}/pixmaps/LibreAtlas.png
+
+
+%changelog
+* Sun Apr 21 2013 Micah Roth <micah.roth_ucla.edu> - 1.0.0a-3
+- cleaned up comments
+- ---formal review rdieter--
+- added explanation for removing first line of original .desktop file
+* Wed Apr 17 2013 Micah Roth <micah.roth_ucla.edu> - 1.0.0a-2
+- added README to Source1 to correct zero-length README file error from rpmlint
+- changed $make_install to make install DESTDIR=$RPM_BUILD_ROOT
+* Thu Apr 11 2013 Micah Roth <micah.roth ][at][ ucla.edu> - 1.0.0a-1
+- create specfile
+- Add a patch to fix compilation problem
+- created README file indicating where to download atlas data
diff --git a/sources b/sources
index e69de29..164e47e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d09d57d2cbb0b05be0e3ff9ad925d86a libreatlas-1.0.0a.tar.gz
More information about the scm-commits
mailing list