1 |
## NOTE Please read README_packaging.txt before updating this package. |
## 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 |
%define tarname OpenCPN |
|
# To build plugin packages replace the # with percent in the appropriate lines below. |
|
|
%define with_logbook 1 |
|
|
%define with_chartdldr 1 |
|
|
%define with_squiddio 1 |
|
|
%define with_BR24radar 1 |
|
|
%define with_objsearch 1 |
|
|
%define with_statusbar 1 |
|
|
%define with_watchdog 1 |
|
|
%define with_iacfleet 1 |
|
|
%define with_weatherfax 1 |
|
|
%define with_route 1 |
|
|
%define with_SAR 1 |
|
|
%define with_climatology 1 |
|
|
%define with_celestial 1 |
|
|
#define with_polar 1 |
|
|
#define with_weather 1 |
|
|
#define with_s63 1 |
|
|
|
|
|
# Plugin versions |
|
|
%define ver_logbook 1.1957 |
|
|
%define ver_chartdldr 1.2 |
|
|
%define ver_squiddio 0.5 |
|
|
%define ver_BR24radar 1.3 |
|
|
%define ver_objsearch 0.6 |
|
|
%define ver_statusbar 0.6 |
|
|
%define ver_watchdog 1.9 |
|
|
%define ver_iacfleet 0.8 |
|
|
%define ver_weatherfax 1.4 |
|
|
%define ver_route 1.0 |
|
|
%define ver_SAR 0.8 |
|
|
%define ver_climatology 1.1 |
|
|
%define ver_CL_DATA 1.0 |
|
|
%define ver_celestial 1.10 |
|
|
%define ver_polar 1.1 |
|
|
%define ver_weather 1.7 |
|
|
%define ver_s63 1.2 |
|
5 |
|
|
6 |
Name: opencpn |
Name: opencpn |
7 |
Summary: A concise Chartplotter and Navigation software |
Summary: A concise Chartplotter and Navigation software |
8 |
Version: 4.0.0 |
Version: 4.0.0 |
9 |
Release: %mkrel 2 |
Release: %mkrel 1 |
10 |
License: GPLv2+ |
License: GPLv2+ |
11 |
Group: Geography |
Group: Geography |
12 |
URL: http://%{name}.org |
URL: http://%{name}.org |
14 |
# http://sourceforge.net/projects/opencpn/files/opencpn/4.0.0/OpenCPN-4.0.0-Source.tar.gz |
# http://sourceforge.net/projects/opencpn/files/opencpn/4.0.0/OpenCPN-4.0.0-Source.tar.gz |
15 |
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{tarname}-%{version}-Source.tar.gz |
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{tarname}-%{version}-Source.tar.gz |
16 |
|
|
17 |
# Create Sources 1..17 in SOURCES using ./get-plugins |
Source1: README_packaging.txt |
18 |
%if %{defined with_logbook} |
Source2: get-plugins |
|
Source1: LogbookKonni_pi-%{ver_logbook}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_chartdldr} |
|
|
Source2: chartdldr_pi-%{ver_chartdldr}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_squiddio} |
|
|
Source3: squiddio_pi-%{ver_squiddio}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_BR24radar} |
|
|
Source4: BR24radar_pi-%{ver_BR24radar}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_objsearch} |
|
|
Source5: objsearch_pi-%{ver_objsearch}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_statusbar} |
|
|
Source6: statusbar_pi-%{ver_statusbar}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_watchdog} |
|
|
Source7: watchdog_pi-%{ver_watchdog}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_iacfleet} |
|
|
Source8: iacfleet_pi-%{ver_iacfleet}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_weatherfax} |
|
|
Source9: weatherfax_pi-%{ver_weatherfax}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_route} |
|
|
Source10: route_pi-%{ver_route}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_SAR} |
|
|
Source11: SAR_pi-%{ver_SAR}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_climatology} |
|
|
Source12: climatology_pi-%{ver_climatology}.tar.gz |
|
|
Source13: CL-DATA-%{ver_CL_DATA}.tar.xz |
|
|
%endif |
|
|
%if %{defined with_celestial} |
|
|
Source14: celestial_navigation_pi-%{ver_celestial}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_polar} |
|
|
Source15: polar_pi-%{ver_polar}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_weather} |
|
|
Source16: weather_routing_pi-%{ver_weather}.tar.gz |
|
|
%endif |
|
|
%if %{defined with_s63} |
|
|
Source17: s63_pi-%{ver_s63}.tar.gz |
|
|
%endif |
|
|
Source18: README_packaging.txt |
|
|
Source19: get-plugins |
|
19 |
|
|
20 |
# http://www.cruisersforum.com/forums/f134/beta-test-technical-30929-91.html#post1785375 |
# http://www.cruisersforum.com/forums/f134/beta-test-technical-30929-91.html#post1785375 |
21 |
Patch0: opencpn-4.0.0-mga-triangulate.h.patch |
Patch0: opencpn-4.0.0-mga-triangulate.h.patch |
22 |
%if %{defined with_celestial} |
Patch1: opencpn-4.0.0-mga-O0_CMakeLists.txt.patch |
|
Patch1: celestial-1.10-mga-CMakeList.txt.patch |
|
|
%endif |
|
23 |
|
|
|
BuildRequires: cmake |
|
24 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
25 |
|
BuildRequires: cmake |
26 |
BuildRequires: gettext |
BuildRequires: gettext |
|
BuildRequires: portaudio-devel |
|
|
BuildRequires: wxgtku-devel |
|
|
BuildRequires: pkgconfig(libcurl) |
|
27 |
BuildRequires: pkgconfig(gl) |
BuildRequires: pkgconfig(gl) |
28 |
BuildRequires: pkgconfig(glu) |
BuildRequires: pkgconfig(glu) |
29 |
BuildRequires: pkgconfig(gtk+-2.0) |
BuildRequires: pkgconfig(libcurl) |
30 |
BuildRequires: pkgconfig(libgps) |
BuildRequires: pkgconfig(libgps) |
31 |
|
BuildRequires: pkgconfig(portaudio-2.0) |
32 |
BuildRequires: pkgconfig(zlib) |
BuildRequires: pkgconfig(zlib) |
33 |
BuildRequires: tinyxml-devel |
BuildRequires: tinyxml-devel |
34 |
|
BuildRequires: wxgtku2.8-devel |
35 |
|
|
36 |
Requires: gpsd-clients |
Requires: gpsd-clients |
37 |
Requires: libportaudio2 |
|
38 |
%if %{defined with_logbook} |
Recommends: opencpn-ais-radar-plugin |
39 |
Recommends: opencpn-logbook-plugin |
Recommends: opencpn-br24radar-plugin |
40 |
%endif |
Recommends: opencpn-celestial-navigation-plugin |
|
%if %{defined with_chartdldr} |
|
41 |
Recommends: opencpn-chartdldr-plugin |
Recommends: opencpn-chartdldr-plugin |
42 |
%endif |
Recommends: opencpn-climatology-plugin |
43 |
%if %{defined with_squiddio} |
Recommends: opencpn-iacfleet-plugin |
44 |
Recommends: opencpn-squiddio-plugin |
Recommends: opencpn-logbookkonni-plugin |
|
%endif |
|
|
%if %{defined with_BR24radar} |
|
|
Recommends: opencpn-BR24radar-plugin |
|
|
%endif |
|
|
%if %{defined with_objsearch} |
|
45 |
Recommends: opencpn-objsearch-plugin |
Recommends: opencpn-objsearch-plugin |
46 |
%endif |
Recommends: opencpn-polar-plugin |
47 |
%if %{defined with_statusbar} |
Recommends: opencpn-route-plugin |
48 |
|
Recommends: opencpn-s63-plugin |
49 |
|
Recommends: opencpn-SAR-plugin |
50 |
|
Recommends: opencpn-squiddio-plugin |
51 |
Recommends: opencpn-statusbar-plugin |
Recommends: opencpn-statusbar-plugin |
|
%endif |
|
|
%if %{defined with_watchdog} |
|
52 |
Recommends: opencpn-watchdog-plugin |
Recommends: opencpn-watchdog-plugin |
53 |
%endif |
Recommends: opencpn-weather-routing-plugin |
|
%if %{defined with_iacfleet} |
|
|
Recommends: opencpn-iacfleet-plugin |
|
|
%endif |
|
|
%if %{defined with_weatherfax} |
|
54 |
Recommends: opencpn-weatherfax-plugin |
Recommends: opencpn-weatherfax-plugin |
|
%endif |
|
|
%if %{defined with_route} |
|
|
Recommends: opencpn-route-plugin |
|
|
%endif |
|
|
%if %{defined with_SAR} |
|
|
Recommends: opencpn-SAR-plugin |
|
|
%endif |
|
|
%if %{defined with_climatology} |
|
|
Recommends: opencpn-climatology-plugin |
|
|
%endif |
|
|
%if %{defined with_celestial} |
|
|
Recommends: opencpn-celestial_navigation-plugin |
|
|
%endif |
|
|
%if %{defined with_polar} |
|
|
Recommends: opencpn-polar-plugin |
|
|
%endif |
|
|
%if %{defined with_weather} |
|
|
Recommends: opencpn-weather_routing-plugin |
|
|
%endif |
|
|
%if %{defined with_s63} |
|
|
Recommends: opencpn-s63-plugin |
|
|
%endif |
|
55 |
|
|
56 |
%description |
%description |
57 |
A cross-platform ship-borne GUI application supporting |
A cross-platform ship-borne GUI application supporting |
63 |
* Waypoint Autopilot Navigation |
* Waypoint Autopilot Navigation |
64 |
|
|
65 |
Pilot charts can be downloaded from http://opencpn.org/ocpn/pilotcharts |
Pilot charts can be downloaded from http://opencpn.org/ocpn/pilotcharts |
66 |
Other useful addons may be found \ |
Other useful add-ons may be found inside the "Download" link at |
67 |
inside the "Download" tab http://opencpn.org/ocpn |
http://opencpn.org/ocpn |
|
|
|
|
#-------------------------------------------------------------------- |
|
|
%if %{defined with_logbook} |
|
|
%package logbook-plugin |
|
|
Summary: Logbook plugin (version %{ver_logbook}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-logbook-plugin = %{ver_logbook} |
|
|
|
|
|
%description logbook-plugin |
|
|
The Konni's logbook plugin is fully integrated inside the graphical interface |
|
|
of %{tarname}. This is version %{ver_logbook}. |
|
|
NB : the needed LogbookKonni_Layouts.zip et LogbookKonni_Other.zip may be found |
|
|
in the /usr/share/opencpn directory. |
|
|
NB : locale language is automatically set for the logbook when it has been set |
|
|
for OpenCPN there is no need to search for the languages.zip file. |
|
|
|
|
|
%files logbook-plugin -f %{name}-logbookkonni_pi.lang |
|
|
%dir %{_datadir}/%{name} |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/liblogbookkonni_pi.so |
|
|
%{_datadir}/%{name}/plugins/LogbookKonni_pi/data/* |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_chartdldr} |
|
|
%package chartdldr-plugin |
|
|
Summary: Chart downloader (version %{ver_chartdldr}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-chartdldr-plugin = %{ver_chartdldr} |
|
|
|
|
|
%description chartdldr-plugin |
|
|
The chart downloader plugin lets you download, install and keep up to date |
|
|
the navigational charts provided by various free governmental sources worldwide |
|
|
directly from within OpenCPN's Toolbox. |
|
|
The supported charts include both the raster and vector charts for the |
|
|
US waters provided by the NOAA, |
|
|
official raster navigational charts published by Argentina, Brasil and |
|
|
New Zealand (covering also huge areas of the Pacific ocean) |
|
|
as well as electronic charts of the inland waterways of the USA |
|
|
and more than a dozen European Union countries. |
|
|
This is version %{ver_chartdldr}. |
|
|
|
|
|
%files chartdldr-plugin -f %{name}-chartdldr_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libchartdldr_pi.so |
|
|
%{_datadir}/%{name}/plugins/chartdldr_pi/data/* |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_squiddio} |
|
|
%package squiddio-plugin |
|
|
Summary: Waypoints of sailing destinations for %{tarname} (version %{ver_squiddio}) |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-squiddio-plugin = %{ver_squiddio} |
|
|
|
|
|
%description squiddio-plugin |
|
|
Squiddio makes its global user-sourced and user-maintained repository of |
|
|
sailing destinations (marinas, anchorages, yacht clubs, docks, fuel stations |
|
|
etc.) available as waypoints in %{tarname} through a plugin. |
|
|
The waypoint Properties box shows basic information about the Destination, |
|
|
such as the Destination's average user rating, address and phone number |
|
|
(where available) and a link to the Destination's page on sQuddio. |
|
|
|
|
|
%files squiddio-plugin -f %{name}-squiddio_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libsquiddio_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_BR24radar} |
|
|
%package BR24radar-plugin |
|
|
Summary: Radar PlugIn (version %{ver_BR24radar}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-BR24radar-plugin = %{ver_BR24radar} |
|
|
|
|
|
%description BR24radar-plugin |
|
|
Navico Radar v1.2, released 2015-05-30Navico Radar |
|
|
|
|
|
Navico (Simrad, Lowrance) Broadband BR24/3G/4G Radar PlugIn for %{tarname}. |
|
|
Homepage: opencpn-navico-radar-plugin.github.io |
|
|
|
|
|
%files BR24radar-plugin -f %{name}-br24radar_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libbr24radar_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_objsearch} |
|
|
%package objsearch-plugin |
|
|
Summary: Chart Object Search (version %{ver_objsearch}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-objsearch-plugin = %{ver_objsearch} |
|
|
|
|
|
%description objsearch-plugin |
|
|
Allows search of named objects on S-57 and CM93 vector charts. |
|
|
|
|
|
Note: After the installation, the plug-in does not know anything about your |
|
|
charts, you must view a chart at least once to populate the plug-in's database |
|
|
with it's content. |
|
|
This one time operation makes OpenCPN slower, during subsequent views of the |
|
|
same chart the speed of the application is unaffected. Once the database is |
|
|
populated, the charts are no longer needed, so if you prefer to use raster |
|
|
charts, you can populate the database from the ENC chartset and then switch |
|
|
back to RNC charts and the search capabilities will still be available. |
|
|
This is version %{ver_objsearch}. |
|
|
|
|
|
%files objsearch-plugin -f %{name}-objsearch_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libobjsearch_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_statusbar} |
|
|
%package statusbar-plugin |
|
|
Summary: Statusbar (version %{ver_statusbar}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-statusbar-plugin = %{ver_statusbar} |
|
|
|
|
|
%description statusbar-plugin |
|
|
Statusbar v0.4, released 2014-06-29Statusbar |
|
|
|
|
|
The builtin status bar is very limited in it's configuration options and can be difficult to read. |
|
|
This plugin replaces it with a more configurable one. |
|
|
For best results, you should disable the built-in toolbar on the User Interface tab in the Toolbox |
|
|
and set the Y position of the plugin toolbar to at least the pixel size of the font selected in the plugin preferences. |
|
|
This is version %{ver_statusbar}. |
|
|
%files statusbar-plugin -f %{name}-statusbar_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libstatusbar_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_watchdog} |
|
|
%package watchdog-plugin |
|
|
Summary: Watchdog (version %{ver_watchdog}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-watchdog-plugin = %{ver_watchdog} |
|
|
|
|
|
%description watchdog-plugin |
|
|
Watchdog v1.1, released 2014-06-29Watchdog |
|
|
|
|
|
The plugin implements various configurable alarms alerting the user about the changing conditions round the boat. |
|
|
Also implements an improved anchor alarm. |
|
|
This is version %{ver_watchdog}. |
|
|
%files watchdog-plugin -f %{name}-watchdog_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libwatchdog_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_iacfleet} |
|
|
%package iacfleet-plugin |
|
|
Summary: Visualises data of weather bulletins for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-iacfleet-plugin = %{ver_iacfleet} |
|
|
|
|
|
%description iacfleet-plugin |
|
|
IAC Fleet Code plugin for %{name} visualises the encoded data issued as part of the weather bulletins. |
|
|
The IAC Fleet Code provides size effective encoded synoptic charts for several areas of the world, |
|
|
especially useful with slow and limited connection to the Internet. |
|
|
Coverage areas: |
|
|
- South Pacific weather issued by Fiji Meteorologica Service in Nadi and available from Saildocs |
|
|
- Weather over Brazil and adjacent partso of Pacific and Atlantic oceans, including direct download |
|
|
of the data from the Internet |
|
|
- Weather analysis and 24 hour forecast for North Atlantic and Europe issued by NOAA, |
|
|
including direct download of the data from the Internet |
|
|
This is version %{ver_iacfleet}. |
|
|
|
|
|
%files iacfleet-plugin -f %{name}-iacfleet_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libiacfleet_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_weatherfax} |
|
|
%package weatherfax-plugin |
|
|
Summary: Weather Fax plug-in (version %{ver_weatherfax}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-weatherfax-plugin = %{ver_weatherfax} |
|
|
|
|
|
%description weatherfax-plugin |
|
|
Can open image files directly, or decode audio faxes to an image. |
|
|
With simple calibration, resulting image is overlaid on top of charts. |
|
|
Converts images in mercator, polar, conic and uniform coordinates. |
|
|
Can convert any image into a raster chart. |
|
|
Builtin database for HF radio fax stations via SSB. |
|
|
Builtin database for internet retrieval from meterological sites. |
|
|
This is version %{ver_weatherfax}. |
|
|
|
|
|
%files weatherfax-plugin -f %{name}-weatherfax_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libweatherfax_pi.so |
|
|
%{_datadir}/%{name}/plugins/weatherfax_pi/data/* |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_route} |
|
|
%package route-plugin |
|
|
Summary: Route Plotting plugin (version %{ver_route}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-route-plugin = %{ver_route} |
|
|
|
|
|
%description route-plugin |
|
|
Plots Great Circle routes, Limited Circle Routes and Rhumb lines. |
|
|
This is version %{ver_route}. |
|
|
|
|
|
%files route-plugin -f %{name}-route_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libroute_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_SAR} |
|
|
%package SAR-plugin |
|
|
Summary: Search and Rescue patterns for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-SAR-plugin = %{ver_SAR} |
|
|
|
|
|
%description SAR-plugin |
|
|
Creates Search and Rescue patterns with desired parameters. |
|
|
This is version %{ver_SAR}. |
|
|
|
|
|
%files SAR-plugin -f %{name}-SAR_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libSAR_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_climatology} |
|
|
%package climatology-plugin |
|
|
Summary: Climatology plugin (version %{ver_climatology}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-climatology-plugin = %{ver_climatology} |
|
|
|
|
|
%description climatology-plugin |
|
|
Provides overlay capabilities for historic weather data. |
|
|
Supported Climatology types include: |
|
|
Average wind directions and speed |
|
|
Percentage of gale and calm conditions |
|
|
Average swell and seastate (not yet implemented) |
|
|
Precipitation, Humidity, and Cloud Cover |
|
|
Monthly average Sea Level pressure and Sea Temperature, Air Temperature |
|
|
Tropical Cyclone tracks |
|
|
This is version %{ver_climatology}. |
|
|
|
|
|
%files climatology-plugin -f %{name}-climatology_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libclimatology_pi.so |
|
|
%{_datadir}/%{name}/plugins/climatology_pi/data/* |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_polar} |
|
|
%package polar-plugin |
|
|
Summary: Polar diagram generation (version %{ver_polar}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-polar-plugin = %{ver_polar} |
|
|
|
|
|
%description polar-plugin |
|
|
Polar diagram generation plug-in for %{tarname} |
|
|
This is version %{ver_polar}. |
|
|
|
|
|
%files polar-plugin -f %{name}-polar_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libpolar_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_weather} |
|
|
%package weather_routing-plugin |
|
|
Summary: Weather routing plugin (version %{ver_weather}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-weather-plugin = %{ver_weather} |
|
|
|
|
|
%description weather_routing-plugin |
|
|
Weather routing plugin creates optimized weather routes |
|
|
using isochrone method and predictive grib data or averaged gridded Climate data |
|
|
based upon constraint settings, start and finish information, |
|
|
and boat performance calculated using boat specs or polar data. |
|
|
|
|
|
Use the Grib Plugin and recently downloaded grib files for completing grib predictive routing (1-8 days). |
|
|
Use the Climatology Plugin to find cruising routes, (most useful in prevailing winds areas) |
|
|
Use both grib and climatology data, allowing the grib's route to be extended past time/range, |
|
|
or to use current data if the grib does not contain it, or to use climatology to avoid areas of cyclones. |
|
|
This is version %{ver_weather}. |
|
|
|
|
|
%files weather_routing-plugin -f %{name}-weather_routing_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libweather_routing_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_s63} |
|
|
%package s63-plugin |
|
|
Summary: S-63 plugin (version %{ver_s63}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-s63-plugin = %{ver_s63} |
|
|
|
|
|
%description s63-plugin |
|
|
S-63 is the encrypted distribution format for S-57 vector charts. |
|
|
Today, hydrographical offices all over the world are producing their official vector charts in the S-57 format. |
|
|
Distribution is done under the S-63 standard. |
|
|
To use the encrypted charts, you must get a license for your particular machine (called Permit), |
|
|
make sure to visit http://o-charts.org/ for more information and to get the permits. |
|
|
This is version %{ver_s63}. |
|
|
|
|
|
%files s63-plugin -f %{name}-s63_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libs63_pi.so |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
|
%if %{defined with_celestial} |
|
|
%package celestial_navigation-plugin |
|
|
Summary: Celestial Navigation PlugIn (version %{ver_celestial}) for %{tarname} |
|
|
Group: Geography |
|
|
|
|
|
Requires: %{name} = %{version}-%{release} |
|
|
Provides: %{name}-celestial-plugin = %{ver_celestial} |
|
|
|
|
|
%description celestial_navigation-plugin |
|
|
Implements nautical almanac for sun, moon, planets, and various navigational stars. |
|
|
Enable the User to compute position fix from celestial measurements. |
|
|
This is version %{ver_celestial}. |
|
|
|
|
|
%files celestial_navigation-plugin -f %{name}-celestial_navigation_pi.lang |
|
|
%dir %{_libdir}/%{name} |
|
|
%{_libdir}/%{name}/libcelestial_navigation_pi.so |
|
|
%{_datadir}/%{name}/plugins/celestial_navigation_pi/data/* |
|
|
%endif |
|
|
#----------------------------------------------------------------------- |
|
68 |
|
|
69 |
%prep |
%prep |
70 |
%setup -q %{?with_logbook:-a 1} %{?with_chartdldr:-a 2} %{?with_squiddio:-a 3} %{?with_BR24radar:-a 4} %{?with_objsearch:-a 5} %{?with_statusbar:-a 6} %{?with_watchdog:-a 7} %{?with_iacfleet:-a 8} %{?with_weatherfax:-a 9} %{?with_route:-a 10} %{?with_SAR:-a 11} %{?with_climatology:-a 12 -a 13} %{?with_celestial:-a 14} %{?with_polar:-a 15} %{?with_weather:-a 16} %{?with_s63:-a 17} -n %{tarname}-%{version}-Source |
%setup -q -n %{tarname}-%{version}-Source |
|
|
|
|
mv *_pi -t plugins/ |
|
71 |
|
|
72 |
%autopatch -p1 |
%autopatch -p1 |
73 |
|
|
|
%if %{defined with_climatology} |
|
|
cd plugins/climatology_pi |
|
|
tar -xJf ../../../../SOURCES/CL-DATA-1.0.tar.xz |
|
|
cd .. |
|
|
%endif |
|
|
|
|
74 |
# To be sure to use system tinyxml headers and not bundled ones |
# To be sure to use system tinyxml headers and not bundled ones |
75 |
rm -f src/tinyxml*.cpp include/tinyxml.h |
rm -f src/tinyxml*.cpp include/tinyxml.h |
|
rm -f plugins/chartdldr_pi/src/tinyxml/tinyxml*.cpp include/tinyxml.h |
|
|
rm -f plugins/LogbookKonni_pi/tinyxml/tinyxml*.cpp include/tinyxml.h |
|
|
rm -f plugins/LogbookKonni_pi/tinyxml/tinystr*.cpp include/tinystr.h |
|
|
rm -f plugins/watchdog_pi/src/tinyxml/tinyxml*.cpp include/tinyxml.h |
|
|
rm -f plugins/weatherfax_pi/src/tinyxml/tinyxml*.cpp include/tinyxml.h |
|
76 |
|
|
77 |
%build |
%build |
78 |
cmake . \ |
%cmake -DBUNDLE_DOCS=ON \ |
79 |
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
-DBUNDLE_TCDATA=ON \ |
80 |
-DCMAKE_BUILD_TYPE=release |
-DBUNDLE_GSHHS=CRUDE \ |
81 |
|
-DBUILD_SHARED_LIBS=OFF |
82 |
%make |
%make |
83 |
|
|
84 |
%install |
%install |
85 |
%make_install |
%make_install -C build |
86 |
|
|
87 |
%find_lang %{name} |
%find_lang %{name} |
88 |
%find_lang %{name}-grib_pi |
%find_lang %{name}-grib_pi |
89 |
%find_lang %{name}-dashboard_pi |
%find_lang %{name}-dashboard_pi |
90 |
|
|
|
%find_lang %{name}-logbookkonni_pi |
|
|
%find_lang %{name}-chartdldr_pi |
|
|
%find_lang %{name}-squiddio_pi |
|
|
%find_lang %{name}-br24radar_pi |
|
|
%find_lang %{name}-objsearch_pi |
|
|
%find_lang %{name}-statusbar_pi |
|
|
%find_lang %{name}-watchdog_pi |
|
|
%find_lang %{name}-iacfleet_pi |
|
|
%find_lang %{name}-weatherfax_pi |
|
|
%find_lang %{name}-route_pi |
|
|
%find_lang %{name}-SAR_pi |
|
|
%find_lang %{name}-climatology_pi |
|
|
%find_lang %{name}-polar_pi |
|
|
%find_lang %{name}-weather_routing_pi |
|
|
%find_lang %{name}-s63_pi |
|
|
%find_lang %{name}-celestial_navigation_pi |
|
|
|
|
91 |
desktop-file-install \ |
desktop-file-install \ |
92 |
--dir=%{buildroot}%{_datadir}/applications \ |
--dir=%{buildroot}%{_datadir}/applications \ |
93 |
--remove-category='Science' \ |
--remove-category='Science' \ |
94 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
95 |
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name} |
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/doc |
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/gshhs |
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/tcdata |
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/plugins/LogbookKonni_pi/data |
|
|
|
|
|
cp -r %{_builddir}/%{tarname}-%{version}-Source/data/doc/images %{buildroot}%{_datadir}/%{name}/doc/ |
|
|
cp -r %{_builddir}/%{tarname}-%{version}-Source/data/gshhs %{buildroot}%{_datadir}/%{name}/ |
|
|
cp -r %{_builddir}/%{tarname}-%{version}-Source/data/tcdata %{buildroot}%{_datadir}/%{name}/ |
|
|
|
|
|
%if %{defined with_logbook} |
|
|
cp -r %{_builddir}/%{tarname}-%{version}-Source/plugins/LogbookKonni_pi/data \ |
|
|
%{buildroot}%{_datadir}/%{name}/plugins/LogbookKonni_pi |
|
|
%endif |
|
|
|
|
|
%if %{defined with_climatology} |
|
|
cp -r %{_builddir}/%{tarname}-%{version}-Source/plugins/climatology_pi/data \ |
|
|
%{buildroot}%{_datadir}/%{name}/plugins/climatology_pi |
|
|
%endif |
|
|
|
|
96 |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/license.txt %{buildroot}%{_datadir}/%{name}/doc |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/license.txt %{buildroot}%{_datadir}/%{name}/doc |
97 |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/doc/help_en_US.html %{buildroot}%{_datadir}/%{name}/doc |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/doc/help_en_US.html %{buildroot}%{_datadir}/%{name}/doc |
98 |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/doc/readme %{buildroot}%{_datadir}/%{name}/doc |
cp -f %{_builddir}/%{tarname}-%{version}-Source/data/doc/readme %{buildroot}%{_datadir}/%{name}/doc |
100 |
# Remove Debian-only docs |
# Remove Debian-only docs |
101 |
rm -rf %{buildroot}%{_datadir}/doc/%{name} |
rm -rf %{buildroot}%{_datadir}/doc/%{name} |
102 |
|
|
|
%ifarch x86_64 |
|
|
mv %{buildroot}/usr/lib/opencpn/* %{buildroot}%{_libdir}/opencpn/ ||: |
|
|
%endif |
|
|
|
|
103 |
%files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang |
%files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang |
104 |
%doc README |
%doc README |
|
|
|
105 |
%dir %{_datadir}/%{name} |
%dir %{_datadir}/%{name} |
106 |
%doc %{_datadir}/%{name}/doc/images/* |
%doc %{_datadir}/%{name}/doc/images/* |
107 |
%doc %{_datadir}/%{name}/doc/license.txt |
%doc %{_datadir}/%{name}/doc/license.txt |