-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroadfighter.spec
186 lines (138 loc) · 6.5 KB
/
roadfighter.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
Name: roadfighter
Version: 1.0.1269
Release: 29%{?dist}
Summary: Konami's Road Fighter remake
# http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
License: Distributable
URL: http://roadfighter.jorito.net/
Source0: http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}.tgz
Source1: %{name}.sh
Source2: %{name}.appdata.xml
Patch0: %{name}-1.0.1269-Makefile.patch
Patch1: %{name}-1.0.1269-fix-string-format-bug.patch
Patch2: %{name}-1.0.1269-build-fix.patch
BuildRequires: gcc-c++
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_sound-devel
BuildRequires: SDL_ttf-devel
BuildRequires: ImageMagick
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
Requires: hicolor-icon-theme
%description
This is a remake of a car-based arcade game developed by Konami and released
in 1984. The goal is to reach the finish line within the stages without
running out of time, hitting other cars or running out of fuel.
%prep
%setup -q
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
# Fix char encondig
iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8
touch -r readme.txt readme.txt.utf8
mv readme.txt.utf8 readme.txt
%build
%set_build_flags
%make_build
%install
# Install wrapper script
install -d %{buildroot}%{_bindir}
install -m 755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{name}
# Install game and data
install -d %{buildroot}%{_libexecdir}/%{name}
install -m 755 -p %{name} %{buildroot}%{_libexecdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
cp -pr fonts graphics maps sound %{buildroot}%{_datadir}/%{name}
# Install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
convert -resize 48x48 \
-extent 48x48 \
-gravity center \
-background none \
build/linux/%{name}.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
# Install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
--set-icon=%{name} \
--remove-category=Application \
build/linux/%{name}.desktop
# Install AppData file
install -d %{buildroot}%{_metainfodir}
install -p -m 644 %{SOURCE2} %{buildroot}%{_metainfodir}
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/%{name}.appdata.xml
%doc readme.txt
%changelog
* Wed Jan 29 2025 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Aug 03 2024 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sun Feb 04 2024 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Aug 03 2023 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Aug 08 2022 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Thu Feb 10 2022 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Aug 04 2021 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Feb 04 2021 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Aug 19 2020 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Feb 05 2020 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Dec 14 2019 Andrea Musuruane <[email protected]> - 1.0.1269-19
- Added AppData file
* Sat Dec 14 2019 Andrea Musuruane <[email protected]> - 1.0.1269-18
- Fixed icon directory
* Sat Dec 14 2019 Andrea Musuruane <[email protected]> - 1.0.1269-17
- Spec file clean up
* Sat Aug 10 2019 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Mar 05 2019 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Aug 19 2018 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-14
- Rebuilt for Fedora 29 Mass Rebuild binutils issue
* Fri Jul 27 2018 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Mar 02 2018 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 31 2017 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sun Mar 26 2017 RPM Fusion Release Engineering <[email protected]> - 1.0.1269-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jul 4 2016 Hans de Goede <[email protected]> - 1.0.1269-9
- Fix FTBFS
- Rebuild for F24
* Tue Sep 30 2014 Andrea Musuruane <[email protected]> - 1.0.1269-8
- Fix FTBFS
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
- Dropped cleaning at the beginning of %%install
- Remove extension from Icon in Desktop file
* Sun Aug 31 2014 Sérgio Basto <[email protected]> - 1.0.1269-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Tue Mar 12 2013 Nicolas Chauvet <[email protected]> - 1.0.1269-6
- https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Apr 12 2012 Nicolas Chauvet <[email protected]> - 1.0.1269-5
- Rebuilt
* Thu Mar 08 2012 Nicolas Chauvet <[email protected]> - 1.0.1269-4
- Rebuilt for c++ ABI breakage
* Thu Feb 09 2012 Nicolas Chauvet <[email protected]> - 1.0.1269-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Aug 07 2009 Andrea Musuruane <[email protected]> 1.0.1269-2
- Preserved timestamps
* Thu Jul 23 2009 Andrea Musuruane <[email protected]> 1.0.1269-1
- First release