1 |
barjac |
327947 |
## NOTE Please read README_packaging.txt before updating this package. |
2 |
barjac |
908737 |
%define _disable_ld_no_undefined 1 |
3 |
|
|
%global __requires_exclude ^lib(S57ENC|GARMINHOST|TEXCMP|NMEA0183)\\.so.*$ |
4 |
barjac |
327947 |
%define tarname OpenCPN |
5 |
|
|
|
6 |
|
|
Name: opencpn |
7 |
barjac |
897645 |
Summary: A concise Chartplotter and Navigation software |
8 |
barjac |
1203425 |
Version: 4.8.2 |
9 |
umeabot |
1299989 |
Release: %mkrel 3 |
10 |
barjac |
327947 |
License: GPLv2+ |
11 |
|
|
Group: Geography |
12 |
barjac |
951178 |
URL: http://opencpn.org/ocpn/ |
13 |
barjac |
990599 |
Source0: https://github.com/%{tarname}/%{tarname}/archive/v%{version}/%{tarname}-%{version}.tar.gz |
14 |
barjac |
908737 |
Source1: README_packaging.txt |
15 |
|
|
Source2: get-plugins |
16 |
wally |
1244916 |
Patch0: OpenCPN-4.8.2-aarch64-plugindir.patch |
17 |
barjac |
897645 |
|
18 |
barjac |
908737 |
BuildRequires: bzip2-devel |
19 |
barjac |
327947 |
BuildRequires: cmake |
20 |
|
|
BuildRequires: gettext |
21 |
|
|
BuildRequires: pkgconfig(gl) |
22 |
|
|
BuildRequires: pkgconfig(glu) |
23 |
barjac |
908737 |
BuildRequires: pkgconfig(libcurl) |
24 |
wally |
1244928 |
BuildRequires: pkgconfig(libexif) |
25 |
barjac |
327947 |
BuildRequires: pkgconfig(libgps) |
26 |
barjac |
908737 |
BuildRequires: pkgconfig(portaudio-2.0) |
27 |
barjac |
327947 |
BuildRequires: pkgconfig(zlib) |
28 |
wally |
1244916 |
BuildRequires: pkgconfig(tinyxml) |
29 |
barjac |
962304 |
BuildRequires: wxgtku3.0-devel |
30 |
barjac |
327947 |
|
31 |
|
|
Requires: gpsd-clients |
32 |
barjac |
908737 |
|
33 |
|
|
Recommends: opencpn-ais-radar-plugin |
34 |
|
|
Recommends: opencpn-br24radar-plugin |
35 |
|
|
Recommends: opencpn-celestial-navigation-plugin |
36 |
barjac |
897645 |
Recommends: opencpn-chartdldr-plugin |
37 |
barjac |
908737 |
Recommends: opencpn-climatology-plugin |
38 |
|
|
Recommends: opencpn-iacfleet-plugin |
39 |
|
|
Recommends: opencpn-logbookkonni-plugin |
40 |
|
|
Recommends: opencpn-objsearch-plugin |
41 |
|
|
Recommends: opencpn-polar-plugin |
42 |
|
|
Recommends: opencpn-route-plugin |
43 |
|
|
Recommends: opencpn-s63-plugin |
44 |
barjac |
908987 |
Recommends: opencpn-sar-plugin |
45 |
barjac |
897645 |
Recommends: opencpn-squiddio-plugin |
46 |
|
|
Recommends: opencpn-statusbar-plugin |
47 |
|
|
Recommends: opencpn-watchdog-plugin |
48 |
barjac |
908737 |
Recommends: opencpn-weather-routing-plugin |
49 |
barjac |
897645 |
Recommends: opencpn-weatherfax-plugin |
50 |
barjac |
327947 |
|
51 |
|
|
%description |
52 |
|
|
A cross-platform ship-borne GUI application supporting |
53 |
|
|
* GPS/GPDS Position Input |
54 |
|
|
* BSB Raster Chart display |
55 |
|
|
* S57 Vector ENC chart display |
56 |
|
|
* CM93 Vector chart display |
57 |
|
|
* AIS Input Decoding |
58 |
|
|
* Waypoint Autopilot Navigation |
59 |
|
|
|
60 |
|
|
Pilot charts can be downloaded from http://opencpn.org/ocpn/pilotcharts |
61 |
barjac |
908737 |
Other useful add-ons may be found inside the "Download" link at |
62 |
|
|
http://opencpn.org/ocpn |
63 |
barjac |
327947 |
|
64 |
|
|
%prep |
65 |
barjac |
990599 |
%setup -q -n %{tarname}-%{version} |
66 |
wally |
1244916 |
%autopatch -p1 |
67 |
barjac |
895071 |
|
68 |
barjac |
951178 |
rm -rf plugins/chartdldr_pi |
69 |
barjac |
895071 |
|
70 |
barjac |
1186585 |
# Be sure to use system tinyxml headers and not bundled ones |
71 |
barjac |
897645 |
rm -f src/tinyxml*.cpp include/tinyxml.h |
72 |
|
|
|
73 |
barjac |
327947 |
%build |
74 |
barjac |
908737 |
%cmake -DBUNDLE_DOCS=ON \ |
75 |
|
|
-DBUNDLE_TCDATA=ON \ |
76 |
|
|
-DBUNDLE_GSHHS=CRUDE \ |
77 |
|
|
-DBUILD_SHARED_LIBS=OFF |
78 |
daviddavid |
1019819 |
%make_build |
79 |
barjac |
327947 |
|
80 |
|
|
%install |
81 |
barjac |
908737 |
%make_install -C build |
82 |
wally |
1244916 |
|
83 |
barjac |
327947 |
%find_lang %{name} |
84 |
|
|
%find_lang %{name}-grib_pi |
85 |
|
|
%find_lang %{name}-dashboard_pi |
86 |
barjac |
951178 |
%find_lang %{name}-wmm_pi |
87 |
barjac |
897645 |
|
88 |
wally |
1244916 |
desktop-file-install \ |
89 |
barjac |
327947 |
--dir=%{buildroot}%{_datadir}/applications \ |
90 |
|
|
--remove-category='Science' \ |
91 |
|
|
%{buildroot}%{_datadir}/applications/%{name}.desktop |
92 |
wally |
1244916 |
|
93 |
barjac |
990599 |
cp -f data/license.txt %{buildroot}%{_datadir}/%{name}/doc |
94 |
|
|
cp -f data/doc/help_en_US.html %{buildroot}%{_datadir}/%{name}/doc |
95 |
barjac |
327947 |
|
96 |
barjac |
897645 |
# Remove Debian-only docs |
97 |
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name} |
98 |
|
|
|
99 |
barjac |
951178 |
%files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang -f %{name}-wmm_pi.lang |
100 |
barjac |
897645 |
%doc README |
101 |
|
|
%{_bindir}/* |
102 |
|
|
%dir %{_libdir}/%{name} |
103 |
barjac |
1186585 |
%{_libdir}/%{name}/* |
104 |
|
|
%dir %{_datadir}/%{name} |
105 |
|
|
%dir %{_datadir}/%{name}/plugins |
106 |
|
|
%{_datadir}/%{name}/* |
107 |
barjac |
897645 |
%{_datadir}/applications/%{name}.desktop |
108 |
|
|
%{_iconsdir}/hicolor/*/apps/%{name}.* |