summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--geographiclib-tools.spec85
-rw-r--r--sources1
3 files changed, 87 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..198cb64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geographiclib-tools-2.7.0.tar.gz
diff --git a/geographiclib-tools.spec b/geographiclib-tools.spec
new file mode 100644
index 0000000..b42c239
--- /dev/null
+++ b/geographiclib-tools.spec
@@ -0,0 +1,85 @@
+# topdir: geographiclib-tools-2.7.0
+Name: geographiclib-tools
+Version: 2.7.0
+Release: 1%{?dist}
+Summary: GeographicLib command-line tools for geodesic and coordinate conversions
+
+License: MIT
+URL: https://github.com/geographiclib/geographiclib
+Source0: https://github.com/geographiclib/geographiclib/archive/48959dfc4a581ad29f76b526726a801473767c98.tar.gz#/%{name}-%{version}.tar.gz
+
+Group: Development/Tools
+Packager: openEuler Builder <builder@openeuler.org>
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+
+%description
+GeographicLib provides a C++ library and command-line tools for:
+* geodesic and rhumb line calculations
+* conversions between geographic, UTM, UPS, MGRS, geocentric,
+ and local cartesian coordinates
+* gravity (e.g. EGM2008) and geomagnetic field (e.g. WMM2020)
+ calculations
+* computations on a triaxial ellipsoid.
+
+This package provides the command-line tools.
+
+%package libs
+Summary: GeographicLib shared library
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+Provides: GeographicLib = %{version}-%{release}
+Provides: GeographicLib%{?_isa} = %{version}-%{release}
+
+%description libs
+The geographiclib-tools-libs package contains the shared GeographicLib
+library used by the command-line tools and other applications.
+
+%package devel
+Summary: Development files for GeographicLib
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+Requires: %{name}-libs = %{version}-%{release}
+Provides: GeographicLib-devel = %{version}-%{release}
+Provides: cmake(GeographicLib) = %{version}
+
+%description devel
+Header files, CMake integration files, and pkgconfig for GeographicLib
+development.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+%cmake_conf \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_DOCUMENTATION=OFF \
+ -DCONVERT_WARNINGS_TO_ERRORS=OFF \
+ -DUSE_BOOST=OFF
+%cmake_build
+
+%install
+%cmake_install
+
+%files
+%license LICENSE.txt
+%doc README.md NEWS AUTHORS
+%{_bindir}/*
+%{_sbindir}/*
+%{_mandir}/man1/*.1*
+%{_mandir}/man8/*.8*
+
+%files libs
+%{_libdir}/libGeographicLib.so.26*
+%license LICENSE.txt
+
+%files devel
+%{_includedir}/GeographicLib/
+%{_libdir}/libGeographicLib.so
+%{_libdir}/cmake/GeographicLib/
+%{_libdir}/pkgconfig/geographiclib.pc
+
+%changelog
+* Mon Oct 12 2026 openEuler Builder <builder@openeuler.org> - 2.7.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..9a8863f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2695c977685e023ca8f9f970bd6bf71b geographiclib-tools-2.7.0.tar.gz