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