/[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 870481 - (hide annotations) (download)
Fri Aug 28 11:28:50 2015 UTC (8 years, 7 months ago) by cjw
Original Path: cauldron/opencpn/current/SPECS/opencpn.spec
File size: 3601 byte(s)
- rebuild with gcc 5

1 barjac 327947 ## NOTE Please read README_packaging.txt before updating this package.
2    
3     %define tarname OpenCPN
4    
5     Name: opencpn
6     Summary: A concise Chartplotter and Navigation software, with a logbook
7 philippedidier 429033 Version: 3.2.2
8 cjw 870481 Release: %mkrel 6
9 barjac 327947 License: GPLv2+
10     Group: Geography
11     URL: http://%{name}.org
12 philippedidier 429830 # http://sourceforge.net/projects/opencpn/files/opencpn/3.2.2/OpenCPN-3.2.2-Source.tar.gz
13 barjac 404857 Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{tarname}-%{version}-Source.tar.gz
14 barjac 327947 # Create Source1 in SOURCES using:
15     # $ ./mk_git_tar LogbookKonni_pi git://github.com/konnibe/LogbookKonni-1.2.git tar.gz
16     Source1: LogbookKonni_pi.tar.gz
17     Source2: README_packaging.txt
18     Source3: mk_git_tar
19    
20     BuildRequires: cmake
21     BuildRequires: bzip2-devel
22     BuildRequires: gettext
23     BuildRequires: wxgtku-devel
24     BuildRequires: pkgconfig(gl)
25     BuildRequires: pkgconfig(glu)
26     BuildRequires: pkgconfig(gtk+-2.0)
27     BuildRequires: pkgconfig(libgps)
28     BuildRequires: pkgconfig(zlib)
29     BuildRequires: tinyxml-devel
30    
31     Requires: gpsd-clients
32 tv 676086 Recommends: opencpn-logbook-plugin
33 barjac 327947
34    
35     %description
36     A cross-platform ship-borne GUI application supporting
37     * GPS/GPDS Position Input
38     * BSB Raster Chart display
39     * S57 Vector ENC chart display
40     * CM93 Vector chart display
41     * AIS Input Decoding
42     * Waypoint Autopilot Navigation
43    
44     Pilot charts can be downloaded from http://opencpn.org/ocpn/pilotcharts
45 barjac 446080 Other useful addons may be found inside the "Download" tab
46     http://opencpn.org/ocpn
47 barjac 327947
48     %files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang
49     %doc README
50     %{_bindir}/*
51     %dir %{_datadir}/%{name}
52 barjac 404857 %{_datadir}/%{name}/doc/*
53     %{_datadir}/%{name}/gshhs/*
54     %{_datadir}/%{name}/s57data/*
55     %{_datadir}/%{name}/sounds/*
56 barjac 327947 %{_datadir}/%{name}/tcdata/*
57 barjac 404857 %{_datadir}/%{name}/uidata/*
58 barjac 327947 %{_datadir}/%{name}/license.txt
59     %dir %{_libdir}/%{name}
60     %{_libdir}/%{name}/libdashboard_pi.so
61     %{_libdir}/%{name}/libgrib_pi.so
62     %{_datadir}/applications/%{name}.desktop
63     %{_iconsdir}/hicolor/*/apps/%{name}.*
64    
65     #--------------------------------------------------------------------
66    
67     %package logbook-plugin
68     Summary: A logbook for %{tarname}
69     Group: Geography
70    
71     Requires: %{name} = %{version}-%{release}
72    
73     %description logbook-plugin
74     The Konni's logbook plugin is fully integrated inside the graphical interface
75     of %{tarname}.
76     NB : the needed LogbookKonni_Layouts.zip et LogbookKonni_Other.zip may be found
77     in the /usr/share/opencpn directory.
78     NB : locale language is automatically set for the logbook when it has been set
79     for OpenCPN there is no need to search for the languages.zip file.
80    
81     %files logbook-plugin -f %{name}-logbookkonni_pi.lang
82     %dir %{_datadir}/%{name}
83     %{_datadir}/%{name}/*.zip
84     %dir %{_libdir}/%{name}
85     %{_libdir}/%{name}/liblogbookkonni_pi.so
86    
87     #-----------------------------------------------------------------------
88    
89     %prep
90     %setup -q -a 1 -n %{tarname}-%{version}-Source
91     mv LogbookKonni_pi -t plugins/
92    
93     %build
94     cmake . \
95     -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
96     -DCMAKE_BUILD_TYPE=release \
97     -DCMAKE_SKIP_RPATH:BOOL=ON
98     %make
99    
100     %install
101     %makeinstall_std
102    
103     %find_lang %{name}
104     %find_lang %{name}-grib_pi
105     %find_lang %{name}-dashboard_pi
106     %find_lang %{name}-logbookkonni_pi
107    
108     desktop-file-install \
109     --dir=%{buildroot}%{_datadir}/applications \
110     --remove-category='Science' \
111     %{buildroot}%{_datadir}/applications/%{name}.desktop
112    
113     mkdir -p %{buildroot}%{_datadir}/%{name}
114 barjac 404857 cp -f %{_builddir}/%{tarname}-%{version}-Source/plugins/LogbookKonni_pi/LogbookKonni_Layouts.zip \
115 barjac 327947 %{buildroot}%{_datadir}/%{name}/LogbookKonni_Layouts.zip
116 barjac 404857 cp -f %{_builddir}/%{tarname}-%{version}-Source/plugins/LogbookKonni_pi/LogbookKonni_Other.zip \
117 barjac 327947 %{buildroot}%{_datadir}/%{name}/LogbookKonni_Other.zip

  ViewVC Help
Powered by ViewVC 1.1.30