/[packages]/cauldron/opencpn-celestial-navigation-plugin/current/SPECS/opencpn-celestial-navigation-plugin.spec
ViewVC logotype

Contents of /cauldron/opencpn-celestial-navigation-plugin/current/SPECS/opencpn-celestial-navigation-plugin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2029696 - (show annotations) (download)
Wed Jan 10 22:09:48 2024 UTC (5 months ago) by philippedidier
File size: 1840 byte(s)
new version 2.4.40.0-git20231108
1 %global gdate 20231108
2 %global commit0 f91c3f6bce1082af865b092d404811837e1e4a03
3 %define piname celestial_navigation_pi
4 %global _disable_ld_as_needed 1
5 %global rel 1
6
7 Name: opencpn-celestial-navigation-plugin
8 Summary: Celestial Navigation plugin for OpenCPN
9 Version: 2.4.40.0
10 Release: %mkrel 1.git%{?gdate}.%{rel}
11 License: GPLv3+
12 Group: Geography
13 URL: https://opencpn.org/OpenCPN/plugins/celestialnav.html
14 %if 0%{!?gdate:1}
15 Source0: https://github.com/rgleason/%{piname}/archive/v%{version}/%{piname}-%{version}.tar.gz
16 %else
17 Source0: https://github.com/rgleason/%{piname}/archive/%{commit0}/%{piname}-%{commit0}.tar.gz
18 %endif
19 #download https://github.com/OpenCPN/opencpn-libs/archive/refs/tags/main@257338e.tar.gz
20 Source1: opencpn-libs-main-257338e.tar.gz
21 Patch0: opencpn-libs-257338e-tinyxml.patch
22 Patch1: opencpn-libs-257338e-json.patch
23 Patch2: celestial-PluginConfigure.patch
24
25 BuildRequires: cmake
26 BuildRequires: gettext
27 BuildRequires: wxgtku3.2-devel
28 BuildRequires: pkgconfig(bzip2)
29 BuildRequires: pkgconfig(gl)
30 BuildRequires: pkgconfig(glu)
31 BuildRequires: pkgconfig(zlib)
32 BuildRequires: pkgconfig(tinyxml)
33 BuildRequires: pkgconfig(jsoncpp)
34
35 Requires: opencpn
36 Provides: %{piname} = %{version}
37
38 %description
39 Implements nautical almanac for sun, moon, planets and various
40 navigational stars.
41
42 Enables the user to compute a position fix from celestial measurements.
43
44 %prep
45 %autosetup -a1 -p1 -n %{piname}-%{?commit0}%{!?commit0:%version}
46
47 mv opencpn-libs-main-257338e/{.,}* opencpn-libs/
48
49 %build
50 %cmake
51
52 %cmake_build
53
54 %install
55 %cmake_install
56
57 %find_lang opencpn-%{piname}
58
59 %ifarch x86_64 aarch64
60 mkdir -p %{buildroot}%{_libdir}/opencpn
61 mv %{buildroot}/usr/lib/opencpn/* %{buildroot}%{_libdir}/opencpn/
62 %endif
63
64 %files -f opencpn-%{piname}.lang
65 %{_libdir}/opencpn/lib%{piname}.so
66 %{_datadir}/opencpn/plugins/%{piname}/

  ViewVC Help
Powered by ViewVC 1.1.30