-
Notifications
You must be signed in to change notification settings - Fork 0
/
hengband.spec
289 lines (216 loc) · 7.92 KB
/
hengband.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
%define version 3.0.1.19
%define release 1
Summary: hengband %{version}
Name: hengband
Version: %{version}
Release: %{release}
License: unknown
Group: Amusements/Games
Url: https://hengband.github.io
Source: hengband-%{version}.tar.gz
Requires: ncurses-libs libstdc++ libcurl libX11
BuildRequires: autoconf automake gcc-c++ ncurses-devel libcurl-devel nkf libX11-devel
Requires: %{name}-data
%package data
Summary: %{name}-data %{version}
%package en
Requires: ncurses-libs libstdc++ libcurl libX11
Requires: %{name}-data
Summary: %{name}-en %{version}
%description
Hengband is a variant of ZAngband.
Official page is this,
https://hengband.github.io
More infomation is /usr/share/doc/hengband/readme-eng.md
This is a Japanese version.
Summary(ja): 変愚蛮怒 %{version}
%description -l ja
変愚蛮怒は Angband のバリアントです。
本ソフトウェアの最新版は以下の場所から入手できます。
https://hengband.github.io
詳しくは /usr/share/doc/hengband/readme.md を参照。
このパッケージは日本語版です。
%description data
Hengband is a variant of ZAngband.
Official page is this,
https://hengband.github.io
More infomation is /usr/share/doc/hengband/readme-eng.md
This packages contains common data files.
Summary(ja): 変愚蛮怒 %{version}
%description data -l ja
変愚蛮怒は Angband のバリアントです。
本ソフトウェアの最新版は以下の場所から入手できます。
https://hengband.github.io
詳しくは /usr/share/doc/hengband/readme.md を参照。
このパッケージはゲーム用データです。
%description en
Hengband is a variant of ZAngband.
Official page is this,
https://hengband.github.io
More infomation is /usr/share/doc/hengband/readme-eng.md
This is a English version.
Summary(ja): 変愚蛮怒 %{version}
%prep
rm -rf %{buildroot}
%setup -n %{name}-%{version}
./bootstrap
%build
%configure --with-libpath=%{_datadir}/games/%{name}/lib --disable-japanese
%make_build
cp src/hengband src/hengband-en
%configure --with-libpath=%{_datadir}/games/%{name}/lib
%make_build
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/games/%{name}
%make_install bindir=%{_bindir}
cp src/hengband-en %{buildroot}/%{_bindir}
cp -R lib/ -p %{buildroot}/%{_datadir}/games/%{name}/
find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "Makefile*" -exec rm {} \;
find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "delete.me*" -exec rm {} \;
find %{buildroot}/%{_datadir}/games/%{name}/ -name ".git*" -exec rm -rf {} \;
rm -rf %{buildroot}/%{_datadir}/games/%{name}/lib/xtra/{sound,music}
touch %{buildroot}/%{_datadir}/games/%{name}/lib/apex/scores.raw
%clean
rm -rf %{buildroot}
%preun
if [ -e %{_datadir}/games/%{name}/lib/data/f_info_j.raw ]
then
rm -rf %{_datadir}/games/%{name}/lib/data/*.raw
fi
exit 0
%files
%defattr(-,root,root)
%attr(2755,root,games) %{_bindir}/%{name}
%files en
%defattr(-,root,root)
%attr(2755,root,games) %{_bindir}/%{name}-en
%files data
%dir %{_datadir}/games/%{name}/lib
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/apex
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/bone
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/data
%dir %{_datadir}/games/%{name}/lib/edit
%dir %{_datadir}/games/%{name}/lib/file
%dir %{_datadir}/games/%{name}/lib/file/books
%dir %{_datadir}/games/%{name}/lib/help
%dir %{_datadir}/games/%{name}/lib/info
%dir %{_datadir}/games/%{name}/lib/pref
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/save
%dir %{_datadir}/games/%{name}/lib/script
%dir %{_datadir}/games/%{name}/lib/user
%dir %{_datadir}/games/%{name}/lib/xtra
%dir %{_datadir}/games/%{name}/lib/xtra/graf
%{_datadir}/games/%{name}/lib/apex/h_scores.raw
%{_datadir}/games/%{name}/lib/apex/readme.txt
%attr(664 root,games) %config(noreplace) %{_datadir}/games/%{name}/lib/apex/scores.raw
%{_datadir}/games/%{name}/lib/edit/*.txt
%{_datadir}/games/%{name}/lib/edit/*.jsonc
%{_datadir}/games/%{name}/lib/edit/quests/*.txt
%{_datadir}/games/%{name}/lib/edit/towns/*.txt
%{_datadir}/games/%{name}/lib/file/*.txt
%{_datadir}/games/%{name}/lib/file/books/*.txt
%{_datadir}/games/%{name}/lib/help/*.hlp
%{_datadir}/games/%{name}/lib/help/*.txt
%{_datadir}/games/%{name}/lib/pref/*.prf
%{_datadir}/games/%{name}/lib/xtra/graf/8x8.bmp
%doc readme.md readme_angband readme-eng.md
%license lib/help/jlicense.txt
%changelog
* Mon Aug 12 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.19(Beta)
* Fri Aug 02 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.18(Beta)
* Sun Jul 14 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.17(Beta)
* Tue Jul 02 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.16(Beta)
* Fri Jun 21 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.15(Beta)
* Wed Jun 05 2024 whitehara <[email protected]>
- hengband RPM 3.0.1.14(Beta)
* Sun Jun 02 2024 whitehara <[email protected]>
- Add new .jsonc to data
- hengband RPM 3.0.1.13(Beta)
* Wed May 08 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.12(Beta)
* Wed Apr 17 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.11(Beta)
* Mon Apr 01 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.10(Beta)
* Sun Mar 10 2024 Shiro Hara <[email protected]>
- Add en(English version), data(common data files) subpakages
- hengband RPM 3.0.1.9(Beta)
* Mon Mar 04 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.8(Beta)
* Mon Feb 05 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.7(Beta)
* Mon Jan 22 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.6(Beta)
* Tue Jan 09 2024 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.5(Beta)
* Wed Dec 27 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.4(Beta)
* Mon Dec 11 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.3(Beta)
* Mon Nov 27 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.2(Beta)
* Fri Nov 17 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.1(Beta)
* Mon Oct 30 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.1.0(Beta)
* Sun Oct 22 2023 Shiro Hara <[email protected]>
- Fix the graphic mode is not available on X11
* Wed Oct 18 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.91(Alpha)
* Mon Oct 16 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.90(Alpha)
* Tue Aug 8 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.89(Alpha)
* Mon Jul 24 2023 Shiro Hara <[email protected]>
- Enable X11
* Sun Jul 23 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.88(Alpha)
* Sun Jul 09 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.87(Alpha)
* Mon Jun 26 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.86(Alpha)
* Wed Jun 14 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0.85(Alpha)
* Mon May 29 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 84
* Wed May 17 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 83
- Replace RPM_BUILD_ROOT to builddir macro
* Sat May 06 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 82
* Thu May 04 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 81
* Mon Feb 20 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 78
* Sun Feb 19 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 77
- Remove Packacger
- Remove Buildroot
- Add %license
- Fix Version and Release
* Fri Feb 17 2023 Shiro Hara <[email protected]>
- hengband RPM 3.0.0Alpha release 76
- Renew Url
- Renew Packager
- Change Copyright to License
- Change readme.txt to readme.md
* Fri Jul 05 2002 Takahiro MIZUNO <[email protected]>
- hengband RPM 1.0.0b release 3
- Add %preun script.
- Change source extension. (tar.gz -> bz2)
- Fix Copyright.
- Fix simply %files.
- Fix %description.
* Mon Jun 17 2002 Takahiro MIZUNO <[email protected]>
- hengband RPM 1.0.0b release 2
- Fix setgid permission. (Mogamiさん多謝)
* Sun Jun 16 2002 Takahiro MIZUNO <[email protected]>
- hengband RPM 1.0.0b release 1
* Sun Jun 16 2002 Takahiro MIZUNO <[email protected]>
- hengband RPM 1.0.0 release 1