1 |
%define piname objsearch_pi |
2 |
|
3 |
Name: opencpn-objsearch-plugin |
4 |
Summary: Chart Object Search plugin for OpenCPN |
5 |
Version: 0.21 |
6 |
Release: %mkrel 7 |
7 |
License: GPLv3+ |
8 |
Group: Geography |
9 |
URL: https://opencpn.org/OpenCPN/plugins/chartobject.html |
10 |
Source0: https://github.com/nohal/%{piname}/archive/v%{version}/%{piname}-%{version}.tar.gz |
11 |
|
12 |
BuildRequires: cmake |
13 |
BuildRequires: gettext |
14 |
BuildRequires: wxgtku3.0-devel < 3.1 |
15 |
BuildRequires: pkgconfig(bzip2) |
16 |
BuildRequires: pkgconfig(gl) |
17 |
BuildRequires: pkgconfig(glu) |
18 |
BuildRequires: pkgconfig(zlib) |
19 |
BuildRequires: pkgconfig(tinyxml) |
20 |
|
21 |
Requires: opencpn |
22 |
Provides: %{piname} = %{version} |
23 |
|
24 |
%description |
25 |
Allows search of named objects on S-57 s63 and CM93 vector charts. |
26 |
|
27 |
Note: After the installation, the plug-in does not know anything about your |
28 |
charts, you must view a chart at least once to populate the plug-in's database |
29 |
with it's content. |
30 |
This one time operation makes OpenCPN slower, however during subsequent views |
31 |
of the same chart the speed of the application is unaffected. |
32 |
Once the database is populated, the charts are no longer needed, so if you |
33 |
prefer to use raster charts, you can populate the database from the ENC |
34 |
chartset and then switch back to RNC charts and the search capabilities will |
35 |
still be available. |
36 |
|
37 |
%prep |
38 |
%setup -q -n %{piname} |
39 |
|
40 |
%build |
41 |
%cmake |
42 |
|
43 |
%cmake_build |
44 |
|
45 |
%install |
46 |
%cmake_install |
47 |
|
48 |
%find_lang opencpn-%{piname} |
49 |
|
50 |
%ifarch x86_64 aarch64 |
51 |
mkdir -p %{buildroot}%{_libdir}/opencpn |
52 |
mv %{buildroot}/usr/lib/opencpn/* %{buildroot}%{_libdir}/opencpn/ |
53 |
%endif |
54 |
|
55 |
%files -f opencpn-%{piname}.lang |
56 |
%{_libdir}/opencpn/lib%{piname}.so |
57 |
%{_datadir}/opencpn/plugins/%{piname}/data/ |