File OpenCPN-photolayer_pi.spec of Package OpenCPN-photolayer_pi

Summary: Photo Layer Geo localised PlugIn for OpenCPN 5.x.x
Name: OpenCPN-photolayer_pi
Version: 5.2.0
Release: 0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Group: Productivity/Other
URL: http://opencpn.org/
Distribution: OpenSuse
License: GPL-2.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: lsb-release
BuildRequires: openSUSE-release
BuildRequires: geotiff-devel


Requires: OpenCPN-5.x-Base

Source0:  photolayer_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.

Using geotiff images from, for example, VentureFarther, this plugin enables adjustment of the transparency of the geotiff.
In conjunction with a navigation chart, this facilitates comparison of the nautical chart with other information.  A georeferenced satellite image can be compared with a navigation chart.
In the example above, an amateur survey is being compared with the official chart of the same area.

Plugin by Mike Rossiter

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

%build
mkdir build
cd build
cmake -DCMAKE_SKIP_RPATH=ON \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DUSE_RPMBUILD=ON \
      -DBUILD_TYPE:STRING=pkg \
      -DUSE_SYSTEM_GEOTIFF:BOOL="OFF" \
      -DUSE_GL=ON \
      -DCFLAGS="-O2 -march=native" \
      ../
make

%install
cd build
%{__make} DESTDIR=%{buildroot} install
%find_lang opencpn --all-name

%files -f build/opencpn.lang

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


%changelog
* Sat Jan 30 2021 Dominig
- move to dominig fork to allows for OBS building (cmake issue with git requirement)
* Wed Apr 24 2019 dominig
- Creation 5.2.0
openSUSE Build Service is sponsored by