# topdir: geographiclib-tools-2.7.0 Name: geographiclib-tools Version: 2.7.0 Release: 2%{?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 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: make %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 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 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 \ -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DCMAKEDIR=%{_lib}/cmake/GeographicLib \ -DPKGDIR=%{_lib}/pkgconfig \ -DDOCDIR= \ -DEXAMPLEDIR= %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 - 2.7.0-2 - Fix library install path: set CMAKE_INSTALL_LIBDIR/CMAKEDIR/PKGDIR to %%{_lib} so shared lib, cmake config and pkgconfig go to lib64 not lib - Disable HTML doc and example installation (DOCDIR/EXAMPLEDIR empty) to avoid unpackaged files * Mon Oct 12 2026 openEuler Builder - 2.7.0-1 - Initial package