/[packages]/updates/8/opencpn/current/SPECS/opencpn.spec
ViewVC logotype

Annotation of /updates/8/opencpn/current/SPECS/opencpn.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1145378 - (hide annotations) (download)
Wed Aug 23 22:37:28 2017 UTC (6 years, 8 months ago) by ovitters
Original Path: cauldron/opencpn/current/SPECS/opencpn.spec
File size: 3642 byte(s)
SILENT convert -devel buildrequires into pkgconfig
1 barjac 327947 ## NOTE Please read README_packaging.txt before updating this package.
2 barjac 908737 %define _disable_ld_no_undefined 1
3     %global __requires_exclude ^lib(S57ENC|GARMINHOST|TEXCMP|NMEA0183)\\.so.*$
4 barjac 327947 %define tarname OpenCPN
5    
6     Name: opencpn
7 barjac 897645 Summary: A concise Chartplotter and Navigation software
8 barjac 1059874 Version: 4.4.0
9 akien 1106104 Release: %mkrel 2
10 barjac 327947 License: GPLv2+
11     Group: Geography
12 barjac 951178 URL: http://opencpn.org/ocpn/
13 barjac 990599 Source0: https://github.com/%{tarname}/%{tarname}/archive/v%{version}/%{tarname}-%{version}.tar.gz
14 barjac 908737 Source1: README_packaging.txt
15     Source2: get-plugins
16 barjac 897645
17 barjac 908737 BuildRequires: bzip2-devel
18 barjac 327947 BuildRequires: cmake
19     BuildRequires: gettext
20     BuildRequires: pkgconfig(gl)
21     BuildRequires: pkgconfig(glu)
22 barjac 908737 BuildRequires: pkgconfig(libcurl)
23 barjac 327947 BuildRequires: pkgconfig(libgps)
24 barjac 908737 BuildRequires: pkgconfig(portaudio-2.0)
25 barjac 327947 BuildRequires: pkgconfig(zlib)
26 ovitters 1145378 BuildRequires: pkgconfig(tinyxml)
27 barjac 962304 BuildRequires: wxgtku3.0-devel
28 barjac 327947
29     Requires: gpsd-clients
30 barjac 908737
31     Recommends: opencpn-ais-radar-plugin
32     Recommends: opencpn-br24radar-plugin
33     Recommends: opencpn-celestial-navigation-plugin
34 barjac 897645 Recommends: opencpn-chartdldr-plugin
35 barjac 908737 Recommends: opencpn-climatology-plugin
36     Recommends: opencpn-iacfleet-plugin
37     Recommends: opencpn-logbookkonni-plugin
38     Recommends: opencpn-objsearch-plugin
39     Recommends: opencpn-polar-plugin
40     Recommends: opencpn-route-plugin
41     Recommends: opencpn-s63-plugin
42 barjac 908987 Recommends: opencpn-sar-plugin
43 barjac 897645 Recommends: opencpn-squiddio-plugin
44     Recommends: opencpn-statusbar-plugin
45     Recommends: opencpn-watchdog-plugin
46 barjac 908737 Recommends: opencpn-weather-routing-plugin
47 barjac 897645 Recommends: opencpn-weatherfax-plugin
48 barjac 327947
49     %description
50     A cross-platform ship-borne GUI application supporting
51     * GPS/GPDS Position Input
52     * BSB Raster Chart display
53     * S57 Vector ENC chart display
54     * CM93 Vector chart display
55     * AIS Input Decoding
56     * Waypoint Autopilot Navigation
57    
58     Pilot charts can be downloaded from http://opencpn.org/ocpn/pilotcharts
59 barjac 908737 Other useful add-ons may be found inside the "Download" link at
60     http://opencpn.org/ocpn
61 barjac 327947
62     %prep
63 barjac 990599 %setup -q -n %{tarname}-%{version}
64 barjac 895071
65 barjac 951178 rm -rf plugins/chartdldr_pi
66 barjac 895071
67 barjac 897645 # To be sure to use system tinyxml headers and not bundled ones
68     rm -f src/tinyxml*.cpp include/tinyxml.h
69    
70 barjac 327947 %build
71 barjac 908737 %cmake -DBUNDLE_DOCS=ON \
72     -DBUNDLE_TCDATA=ON \
73     -DBUNDLE_GSHHS=CRUDE \
74     -DBUILD_SHARED_LIBS=OFF
75 daviddavid 1019819 %make_build
76 barjac 327947
77     %install
78 barjac 908737 %make_install -C build
79 barjac 897645
80 barjac 327947 %find_lang %{name}
81     %find_lang %{name}-grib_pi
82     %find_lang %{name}-dashboard_pi
83 barjac 951178 %find_lang %{name}-wmm_pi
84 barjac 897645
85 barjac 327947 desktop-file-install \
86     --dir=%{buildroot}%{_datadir}/applications \
87     --remove-category='Science' \
88     %{buildroot}%{_datadir}/applications/%{name}.desktop
89 barjac 990599
90     cp -f data/license.txt %{buildroot}%{_datadir}/%{name}/doc
91     cp -f data/doc/help_en_US.html %{buildroot}%{_datadir}/%{name}/doc
92     cp -f data/doc/readme %{buildroot}%{_datadir}/%{name}/doc
93 barjac 327947
94 barjac 897645 # Remove Debian-only docs
95     rm -rf %{buildroot}%{_datadir}/doc/%{name}
96    
97 barjac 951178 %files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang -f %{name}-wmm_pi.lang
98 barjac 897645 %doc README
99     %dir %{_datadir}/%{name}
100     %doc %{_datadir}/%{name}/doc/images/*
101     %doc %{_datadir}/%{name}/doc/license.txt
102     %doc %{_datadir}/%{name}/license.txt
103     %doc %{_datadir}/%{name}/doc/readme
104     %doc %{_datadir}/%{name}/doc/help*
105     %{_bindir}/*
106     %dir %{_datadir}/%{name}/gshhs
107     %{_datadir}/%{name}/gshhs/*
108     %{_datadir}/%{name}/s57data/*
109     %{_datadir}/%{name}/sounds/*
110     %dir %{_datadir}/%{name}/tcdata
111     %{_datadir}/%{name}/tcdata/*
112     %{_datadir}/%{name}/uidata/*
113     %dir %{_libdir}/%{name}
114     %{_libdir}/%{name}/libdashboard_pi.so
115 barjac 951178 %{_libdir}/%{name}//libwmm_pi.so
116 barjac 897645 %{_libdir}/%{name}/libgrib_pi.so
117     %{_datadir}/applications/%{name}.desktop
118     %{_iconsdir}/hicolor/*/apps/%{name}.*
119 barjac 951178 %{_datadir}/%{name}/plugins/dashboard_pi/data/*
120     %{_datadir}/%{name}/plugins/grib_pi/data/*
121     %{_datadir}/%{name}/plugins/wmm_pi/data/*

  ViewVC Help
Powered by ViewVC 1.1.30