File OpenCPN-weather_routing_pi.spec of Package OpenCPN-weather_routing_pi

Summary: Weather Routing PlugIn for OpenCPN 5.x.x
Name: OpenCPN-weather_routing_pi
Version: 5.2.0
Release: 0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Group: Productivity/Other
URL: http://opencpn.org/
Distribution: OpenSuse
License: GPL-3.0
BuildRequires: cmake 
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: gtk3-devel
BuildRequires: wxWidgets-3_0-nostl-devel
BuildRequires: gettext-runtime
BuildRequires: gettext-tools
BuildRequires: libbz2-devel
BuildRequires: gpsd-devel
BuildRequires: portaudio-devel
BuildRequires: tinyxml-devel
BuildRequires: rpm-build
BuildRequires: fdupes
BuildRequires: lsb-release
BuildRequires: openSUSE-release


Requires: OpenCPN-5.x-Base
Requires: OpenCPN-gshhs-Data

Source0:  weather_routing_pi-%{version}.tar.xz

%description
OpenCPN is a free software (GPLv2) project to create a concise chartplotter 
and navigation software for use as an underway or planning tool.  OpenCPN 
is developed by a team of active sailors using real world conditions for 
program testing and refinement. With some additional Plugins.

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.
.

  http://opencpn.org/ocpn/downloadplugins
Source
  https://github.com/seandepagnier/weather_routing_pi

%prep
%setup -n weather_routing_pi-%{version}

%build
mkdir build
cd build
cmake -DCMAKE_SKIP_RPATH=ON \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DUSE_RPMBUILD=ON \
      -DUSE_GL=ON \
      -DCFLAGS="-O2 -march=native" \
      ../
make

%install
cd build
%{__make} DESTDIR=%{buildroot} install
%fdupes %{buildroot}/%_prefix

%find_lang opencpn --all-name

%files -f build/opencpn.lang

%defattr(-, root, root)
%{_prefix}/share/opencpn/
%{_prefix}/lib/opencpn/


%changelog
* Wed Aug 30 2017 Dominig
- upgrade to OpenCPN 4.8
* Thu Mar 23 2017 Dominig
- upgrade to OpenCPN 4.6 and move to git source service
* Fri Jul 01 2016 Dominig
- update OpenCPN 4.4.0
* Mon Feb 29 2016 Dominig
- Update 4.2.0
* Tue Jun 2 2015 dominig
- Creation 4.0.0
openSUSE Build Service is sponsored by