forked from OpenCPN/OpenCPN
-
Notifications
You must be signed in to change notification settings - Fork 1
/
opencpn.spec.in
137 lines (123 loc) · 4.26 KB
/
opencpn.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# -*- rpm-spec -*-
BuildRoot: @CPACK_RPM_DIRECTORY@/@CPACK_PACKAGE_FILE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH@
Summary: @CPACK_RPM_PACKAGE_SUMMARY@
Name: @CPACK_RPM_PACKAGE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_NAME@
Version: @CPACK_RPM_PACKAGE_VERSION@
Release: @CPACK_RPM_PACKAGE_RELEASE@
License: @CPACK_RPM_PACKAGE_LICENSE@
Group: @CPACK_RPM_PACKAGE_GROUP@
Vendor: @CPACK_RPM_PACKAGE_VENDOR@
@TMP_RPM_URL@
@TMP_RPM_REQUIRES@
@TMP_RPM_PROVIDES@
@TMP_RPM_OBSOLETES@
@TMP_RPM_CONFLICTS@
@TMP_RPM_AUTOPROV@
@TMP_RPM_AUTOREQ@
@TMP_RPM_AUTOREQPROV@
@TMP_RPM_BUILDARCH@
@TMP_RPM_PREFIX@
%define _rpmdir @CPACK_RPM_DIRECTORY@
%define _rpmfilename @CPACK_RPM_FILE_NAME@
%define _unpackaged_files_terminate_build 0
%define _topdir @CPACK_RPM_DIRECTORY@
# This is a hack to change platform default path with our cmake/cpack ones
%define _bindir @CPACK_OPENCPN_RPM_BINDIR@
%define _libdir @CPACK_OPENCPN_RPM_LIBDIR@
%define _datadir @CPACK_OPENCPN_RPM_DATADIR@
@TMP_RPM_SPEC_INSTALL_POST@
@CPACK_RPM_SPEC_MORE_DEFINE@
@CPACK_RPM_COMPRESSION_TYPE_TMP@
%description
@CPACK_RPM_PACKAGE_DESCRIPTION@
# This is a shortcutted spec file generated by CMake RPM generator
# we skip _install step because CPack does that for us.
# We do only save CPack installed tree in _prepr
# and then restore it in build.
%prep
mv $RPM_BUILD_ROOT "@CPACK_TOPLEVEL_DIRECTORY@/tmpBBroot"
# Remove third party embedded source to ensure we never ever build these.
rm -f src/tinyxml*.cpp include/tinyxml.h
rm -rf plugins/grib_pi/src/zlib-1.2.3
rm -rf plugins/grib_pi/src/bzip2
#p build
%install
if [ -e $RPM_BUILD_ROOT ];
then
rm -rf $RPM_BUILD_ROOT
fi
mv "@CPACK_TOPLEVEL_DIRECTORY@/tmpBBroot" $RPM_BUILD_ROOT
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%find_lang %{name}-grib_pi
%find_lang %{name}-dashboard_pi
%clean
%post
@CPACK_RPM_SPEC_POSTINSTALL@
%postun
@CPACK_RPM_SPEC_POSTUNINSTALL@
%pre
@CPACK_RPM_SPEC_PREINSTALL@
%preun
@CPACK_RPM_SPEC_PREUNINSTALL@
%files
%files -f %{name}.lang
%files -f %{name}-grib_pi.lang
%files -f %{name}-dashboard_pi.lang
%defattr(-,root,root,-)
%{_bindir}/opencpn
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libdashboard_pi.so
%{_libdir}/%{name}/libgrib_pi.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%dir %{_datadir}/%{name}
%doc %{_datadir}/%{name}/license.txt
%dir %{_datadir}/%{name}/uidata
%{_datadir}/%{name}/uidata/toolicons_traditional.png
%{_datadir}/%{name}/uidata/toolicons_journeyman_flat.png
%{_datadir}/%{name}/uidata/toolicons_journeyman.png
%{_datadir}/%{name}/uidata/styles.xml
%dir %{_datadir}/%{name}/s57data
%{_datadir}/%{name}/s57data/rastersymbols-dark.png
%{_datadir}/%{name}/s57data/s57attributes.csv
%{_datadir}/%{name}/s57data/rastersymbols-day.png
%{_datadir}/%{name}/s57data/chartsymbols.xml
%{_datadir}/%{name}/s57data/attdecode.csv
%{_datadir}/%{name}/s57data/S52RAZDS.RLE
%{_datadir}/%{name}/s57data/s57expectedinput.csv
%{_datadir}/%{name}/s57data/s57objectclasses.csv
%{_datadir}/%{name}/s57data/rastersymbols-dusk.png
%dir %{_datadir}/%{name}/gshhs
%{_datadir}/%{name}/gshhs/wdb_borders_l.b
%{_datadir}/%{name}/gshhs/wdb_borders_c.b
%{_datadir}/%{name}/gshhs/wdb_rivers_i.b
%{_datadir}/%{name}/gshhs/poly-c-1.dat
%{_datadir}/%{name}/gshhs/wdb_rivers_l.b
%{_datadir}/%{name}/gshhs/poly-i-1.dat
%{_datadir}/%{name}/gshhs/wdb_rivers_c.b
%{_datadir}/%{name}/gshhs/wdb_borders_i.b
%{_datadir}/%{name}/gshhs/poly-l-1.dat
%dir %{_datadir}/%{name}/tcdata
%{_datadir}/%{name}/tcdata/HARMONIC
%{_datadir}/%{name}/tcdata/HARMONIC.IDX
%doc %{_datadir}/%{name}/tcdata/README.harmonics
%dir %{_datadir}/%{name}/sounds
%{_datadir}/%{name}/sounds/1bells.wav
%{_datadir}/%{name}/sounds/2bells.wav
%{_datadir}/%{name}/sounds/3bells.wav
%{_datadir}/%{name}/sounds/4bells.wav
%{_datadir}/%{name}/sounds/5bells.wav
%{_datadir}/%{name}/sounds/6bells.wav
%{_datadir}/%{name}/sounds/7bells.wav
%{_datadir}/%{name}/sounds/8bells.wav
%doc %{_datadir}/%{name}/sounds/README.bells
%doc %{_datadir}/%{name}/doc
%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/changelog.Debian.gz
%doc %{_datadir}/doc/%{name}/copyright
%changelog
@CPACK_RPM_SPEC_CHANGELOG@