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