-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvcmi.spec
256 lines (190 loc) · 8.06 KB
/
vcmi.spec
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
Name: vcmi
Summary: Heroes of Might and Magic 3 game engine
URL: https://vcmi.eu/
%global fuzzylite_commit 7aee562d6ca17f3cf42588ffb5116e03017c3c50
%global fuzzylite_scommit %(c=%{fuzzylite_commit}; echo ${c:0:7})
%global fuzzylite_version 6.0
Version: 1.6.7
Release: 0%{?dist}
# vcmi is GPL-2.0-or-later, fuzzylight is GPL-3.0-only
License: GPL-2.0-or-later AND GPL-3.0-only
Source0: https://github.com/vcmi/vcmi/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/fuzzylite/fuzzylite/archive/%{fuzzylite_commit}/fuzzylite-%{fuzzylite_scommit}.tar.gz
BuildRequires: %{_bindir}/desktop-file-validate
BuildRequires: %{_bindir}/dos2unix
BuildRequires: cmake
BuildRequires: gcc-c++ >= 4.7.2
BuildRequires: SDL2-devel
BuildRequires: SDL2_image-devel
BuildRequires: SDL2_ttf-devel
BuildRequires: SDL2_mixer-devel
BuildRequires: boost-devel >= 1.51
BuildRequires: libappstream-glib
%ifnarch ppc64le
# luajit does not support ppc64le
BuildRequires: luajit-devel
%endif
BuildRequires: minizip-ng-devel
BuildRequires: tbb-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qttools-devel
BuildRequires: qt6-linguist
Requires: innoextract
Requires: hicolor-icon-theme
Requires: %{name}-data = %{version}-%{release}
Provides: bundled(fuzzylight) = %{fuzzylite_version}
%description
The purpose of VCMI project is to rewrite entire Heroes 3.5: WoG engine from
scratch, giving it new and extended possibilities. It will help to support
mods and new towns already made by fans but abandoned because of game code
limitations.
In its current state it already supports maps of any sizes, higher
resolutions and extended engine limits.
%package data
Summary: Data files for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description data
Data files for the VCMI project, a %{summary}.
%prep
%autosetup -p1
# fuzzyight from Source1:
tar -xf %{SOURCE1} -C AI/FuzzyLite --strip-components=1
dos2unix license.txt ChangeLog.md
%build
%cmake -Wno-dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_TEST=0 \
-UCMAKE_INSTALL_LIBDIR \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON \
-DCMAKE_INSTALL_RPATH=%{_libdir}/%{name} \
-DENABLE_INNOEXTRACT='FALSE' \
-DENABLE_GOLDMASTER=ON
%ifnarch %{ix86} x86_64 aarch64
# not enough memory in Koji for parallel build
%global _smp_mflags -j1
%endif
%cmake_build
# Move the .qm files to the expected directories
mkdir -p %{_vpath_builddir}/{launcher,mapeditor}/translation/
mv %{_vpath_builddir}/launcher/*.qm %{_vpath_builddir}/launcher/translation/
mv %{_vpath_builddir}/mapeditor/*.qm %{_vpath_builddir}/mapeditor/translation/
%install
%cmake_install
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/eu.vcmi.VCMI.metainfo.xml
%ldconfig_scriptlets
%files
%doc ChangeLog.md
%license license.txt AI/FuzzyLite/LICENSE.FuzzyLite
%{_bindir}/vcmieditor
%{_bindir}/vcmiclient
%{_bindir}/vcmiserver
%{_bindir}/vcmibuilder
%{_bindir}/vcmilauncher
%{_libdir}/%{name}/
# keep this in the main package, because GNOME Software etc.
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/vcmiclient.png
%{_datadir}/icons/hicolor/*/apps/vcmiclient.svg
%{_datadir}/icons/hicolor/*/apps/vcmieditor.png
%{_metainfodir}/eu.vcmi.VCMI.metainfo.xml
%files data
%{_datadir}/%{name}/
%changelog
* Sat Mar 1 2025 Trung Lê <8@tle.id.au> - 1.6.7-0
- New upstream release
* Fri Feb 28 2025 Trung Lê <8@tle.id.au> - 1.6.6-0
- New upstream release
* Sun Feb 16 2025 Trung Lê <8@tle.id.au> - 1.6.5-0
- New upstream release
* Tue Jan 28 2025 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.5.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Nov 06 2024 Sérgio Basto <sergio@serjux.com> - 1.5.7-1
- Rebuild for ffmpeg-7
* Sat Aug 31 2024 Trung Lê <8@tle.id.au> - 1.5.7-0
- New upstream release
* Thu Aug 08 2024 Trung Lê <8@tle.id.au> - 1.5.6-0
- New upstream release
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.5.5-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Jul 18 2024 Trung Lê <8@tle.id.au> - 1.5.5-0
- New upstream release
* Mon Jul 15 2024 Trung Lê <8@tle.id.au> - 1.5.4-0
- New upstream release
* Tue Jul 9 2024 Trung Lê <8@tle.id.au> - 1.5.3-0
- New upstream release
* Mon Jul 8 2024 Peter Lemenkov <lemenkov@gmail.com> - 1.5.2-1
- Refactoring
* Wed Jun 5 2024 Trung Lê <8@tle.id.au> - 1.5.2-0
- New upstream release
* Mon May 27 2024 Trung Lê <8@tle.id.au> - 1.5.1-1
- New upstream release
* Thu Jan 25 2024 Trung Lê <8@tle.id.au> - 1.4.5-1
- New upstream release
* Thu Aug 31 2023 Trung Lê <8@tle.id.au> - 1.3.1-2
- Rebuilt with Qt6 for Fedora 39
* Sat Aug 19 2023 Trung Lê <8@tle.id.au> - 1.3.1-1
- New upstream release
- Re-enable support for ppc64le
* Mon Aug 14 2023 Trung Lê <8@tle.id.au> - 1.3.0-1
- New upstream release
- Clean up defunct codes
* Wed Aug 02 2023 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Mar 02 2023 Leigh Scott <leigh123linux@gmail.com> - 1.0.0-3
- Rebuild for new boost
* Wed Feb 08 2023 Leigh Scott <leigh123linux@gmail.com> - 1.0.0-2
- rebuilt
* Wed Sep 14 2022 Leigh Scott <leigh123linux@gmail.com> - 1.0.0-1
- New upstream release
* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 0.99^20190113gitf06c8a8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 0.99^20190113gitf06c8a8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Aug 03 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.99^20190113gitf06c8a8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Feb 18 2021 Leigh Scott <leigh123linux@gmail.com> - 0.99^20190113gitf06c8a8-4
- Rebuild for new libminizip
* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.99^20190113gitf06c8a8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Jan 1 2021 Leigh Scott <leigh123linux@gmail.com> - 0.99^20190113gitf06c8a8-2
- Rebuilt for new ffmpeg snapshot
* Tue Sep 29 2020 Miro Hrončok <mhroncok@redhat.com> - 0.99^20190113gitf06c8a8-1
- Update to a git snapshot to support new Boost
- Use RPATH to make it launch :/
- Declare the bundled FuzzyLite
- Rebuilt for Boost 1.73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat Feb 22 2020 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 0.99-8
- Rebuild for ffmpeg-4.3 git
* Wed Feb 05 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.99-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Aug 07 2019 Leigh Scott <leigh123linux@gmail.com> - 0.99-6
- Rebuild for new ffmpeg version
* Mon Mar 04 2019 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.99-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Aug 19 2018 Leigh Scott <leigh123linux@googlemail.com> - 0.99-4
- Rebuilt for Fedora 29 Mass Rebuild binutils issue
* Fri Jul 27 2018 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.99-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Mar 04 2018 Miro Hrončok <mhroncok@redhat.com> - 0.99-2
- Add mods for extra resolutions
- Add %%check with desktop file checking
- Require hicolor-icon-theme and don't own the hicolor dirs
- Fix dos line ends
- Change description and summary
- Use cmake and make macros
- Exclude files instead of not terminating build on unpackaged files
- Add Patch1 for Boost 1.66 compatibility
- Split noarch data into a subpackage
- Own /usr/share/vcmi/ and /usr/lib64/vcmi/
* Tue Nov 01 2016 VCMI - 0.99-1
- New upstream release