summaryrefslogtreecommitdiff
path: root/geographiclib-tools.spec
blob: b42c2390b5849cc19c2b236e8758b20c725125a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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