/[packages]/cauldron/opencpn-objsearch-plugin/current/SPECS/opencpn-objsearch-plugin.spec
ViewVC logotype

Contents of /cauldron/opencpn-objsearch-plugin/current/SPECS/opencpn-objsearch-plugin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2030976 - (show annotations) (download)
Sat Jan 13 15:16:34 2024 UTC (5 months, 1 week ago) by philippedidier
File size: 2185 byte(s)
add forgotten BuildRequires:  pkgconfig(jsoncpp)
1 %define piname objsearch_pi
2 %define _disable_ld_no_undefined 1
3
4 Name: opencpn-objsearch-plugin
5 Summary: Chart Object Search plugin for OpenCPN
6 Version: 0.26.0
7 Release: %mkrel 3
8 License: GPLv3+
9 Group: Geography
10 URL: https://opencpn.org/OpenCPN/plugins/chartobject.html
11 Source0: https://github.com/nohal/%{piname}/archive/v%{version}/%{piname}-%{version}.tar.gz
12 #download https://github.com/OpenCPN/opencpn-libs/archive/refs/tags/main@257338e.tar.gz
13 Source1: opencpn-libs-main-257338e.tar.gz
14 Patch0: opencpn-libs-257338e-tinyxml.patch
15 Patch1: opencpn-libs-257338e-json.patch
16
17 BuildRequires: cmake
18 BuildRequires: gettext
19 BuildRequires: wxgtku3.2-devel
20 BuildRequires: pkgconfig(bzip2)
21 BuildRequires: pkgconfig(gl)
22 BuildRequires: pkgconfig(glu)
23 BuildRequires: pkgconfig(zlib)
24 BuildRequires: pkgconfig(tinyxml)
25 BuildRequires: pkgconfig(jsoncpp)
26
27 Requires: opencpn
28 Provides: %{piname} = %{version}
29
30 %description
31 Allows search of named objects on S-57 s63 and CM93 vector charts.
32
33 Note: After the installation, the plug-in does not know anything about your
34 charts, you must view a chart at least once to populate the plug-in's database
35 with it's content.
36 This one time operation makes OpenCPN slower, however during subsequent views
37 of the same chart the speed of the application is unaffected.
38 Once the database is populated, the charts are no longer needed, so if you
39 prefer to use raster charts, you can populate the database from the ENC
40 chartset and then switch back to RNC charts and the search capabilities will
41 still be available.
42
43 %prep
44 %autosetup -a1 -p1 -n %{piname}-%{version}
45 mv opencpn-libs-main-257338e/{.,}* opencpn-libs/
46
47 %build
48 %cmake
49
50 %cmake_build
51
52 %install
53
54 mkdir -p %{buildroot}%{_libdir}/opencpn
55 mkdir -p %{buildroot}%{_datadir}/opencpn/plugins/%{piname}/data
56 mkdir -p %{buildroot}%{_datadir}/locale
57
58 install -Dpm755 %{_vpath_builddir}/lib%{piname}.so %{buildroot}%{_libdir}/opencpn/
59 install -Dpm644 data/* %{buildroot}%{_datadir}/opencpn/plugins/%{piname}/data
60 mv %{_vpath_builddir}/app/ObjSearch-0.26-mageia-*/share/locale %{buildroot}%{_datadir}
61
62 %files
63 %{_libdir}/opencpn/lib%{piname}.so
64 %{_datadir}/opencpn/plugins/%{piname}/data/
65 %{_datadir}/locale

  ViewVC Help
Powered by ViewVC 1.1.30