Compare commits

..

No commits in common. "rawhide" and "f30" have entirely different histories.

11 changed files with 26 additions and 228 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View file

@ -1,24 +0,0 @@
diff -up xblast-2.10.4/cfg_control.h~ xblast-2.10.4/cfg_control.h
--- xblast-2.10.4/cfg_control.h~ 2006-02-09 22:21:23.000000000 +0100
+++ xblast-2.10.4/cfg_control.h 2020-02-19 22:48:34.041292637 +0100
@@ -29,7 +29,7 @@
#define NUM_KEYB_CONTROLS 2
/* constant assignment of control to event type */
-const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
+extern const XBEventCode keyEventType[NUM_KEYB_CONTROLS];
/* ingame controls for editing*/
typedef struct
diff -up xblast-2.10.4/network.h~ xblast-2.10.4/network.h
--- xblast-2.10.4/network.h~ 2006-02-10 16:07:42.000000000 +0100
+++ xblast-2.10.4/network.h 2020-02-17 23:47:58.022504923 +0100
@@ -105,7 +105,7 @@ typedef enum
#define TEAM_UNDEF 252
/* team color assignment */
-const XBColor teamColors[NUM_XBTS];
+extern const XBColor teamColors[NUM_XBTS];
/* results of game config receive/create */
typedef enum

View file

@ -1,62 +0,0 @@
diff -up xblast-2.10.4/atom.c~ xblast-2.10.4/atom.c
--- xblast-2.10.4/atom.c~ 2006-02-09 22:21:22.000000000 +0100
+++ xblast-2.10.4/atom.c 2022-07-16 17:36:05.151322538 +0200
@@ -168,6 +168,7 @@ XBAtom atomRight;
XBAtom atomRightKeyboard;
XBAtom atomScrambleDel;
XBAtom atomScrambleDraw;
+XBAtom atomSDL;
XBAtom atomSelect;
XBAtom atomServer;
XBAtom atomShape;
@@ -373,6 +374,7 @@ InitDefaultAtoms (void)
atomRightKeyboard = GUI_StringToAtom ("rightKeyboard");
atomScrambleDel = GUI_StringToAtom ("scrambleDel");
atomScrambleDraw = GUI_StringToAtom ("scrambleDraw");
+ atomSDL = GUI_StringToAtom ("sdl");
atomSelect = GUI_StringToAtom ("select");
atomServer = GUI_StringToAtom ("server");
atomShape = GUI_StringToAtom ("shape");
diff -up xblast-2.10.4/atom.h~ xblast-2.10.4/atom.h
--- xblast-2.10.4/atom.h~ 2006-02-09 22:21:22.000000000 +0100
+++ xblast-2.10.4/atom.h 2022-07-16 17:36:05.687320493 +0200
@@ -163,6 +163,7 @@ extern XBAtom atomRight;
extern XBAtom atomRightKeyboard;
extern XBAtom atomScrambleDel;
extern XBAtom atomScrambleDraw;
+extern XBAtom atomSDL;
extern XBAtom atomSelect;
extern XBAtom atomServer;
extern XBAtom atomShape;
diff -up xblast-2.10.4/sdl_config.c~ xblast-2.10.4/sdl_config.c
--- xblast-2.10.4/sdl_config.c~ 2006-02-09 22:21:24.000000000 +0100
+++ xblast-2.10.4/sdl_config.c 2022-07-16 17:36:30.294228033 +0200
@@ -149,7 +149,7 @@ GetColorConfig (void)
void
GUI_LoadConfig (void)
{
- dbGui = DB_Create (DT_Config, atomX11);
+ dbGui = DB_Create (DT_Config, atomSDL);
assert (dbGui != NULL);
if (DB_Load (dbGui)) {
return;
diff -up xblast-2.10.4/x11_config.c~ xblast-2.10.4/x11_config.c
--- xblast-2.10.4/x11_config.c~ 2006-02-09 22:21:25.000000000 +0100
+++ xblast-2.10.4/x11_config.c 2022-07-16 17:33:34.640897215 +0200
@@ -101,6 +101,16 @@ GetFontConfig (void)
DB_GetEntryString (section, atomSmall, &cfgFont.small);
DB_GetEntryString (section, atomMedium, &cfgFont.medium);
DB_GetEntryString (section, atomLarge, &cfgFont.large);
+ /*
+ * detect old SDL version which saved its settings (which
+ * are invalid for x11) to x11.cfg, in this case fall back
+ * to the default font settings.
+ */
+ if (!strcmp (cfgFont.small, "14")) {
+ memcpy (&cfgFont, &defaultFontConfig, sizeof (CFGFont));
+ StoreFontConfig (&cfgFont);
+ DB_Store (dbGui);
+ }
}
return &cfgFont;
} /* GetFontConfig */

View file

@ -16,7 +16,7 @@
const CFGFont *cfgFont;
const CFGColor *cfgColor;
- char *fontName = "Vera.ttf";
+ char *fontName = "/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf";
+ char *fontName = "/usr/share/fonts/dejavu/DejaVuSans.ttf";
/*
* Initialize SDL_ttf library

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -1,40 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>xblast.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>XBlast</name>
<summary>Lay bombs and Blast the other players of the field</summary>
<description>
<p>
XBlast is a multi-player arcade game where the "purpose" is to Blast
the other players of the gamefield by laying bombs close to them.
While at the same time you must avoid being blown up yourself.
</p>
<p>
The game can be played with at least two players and up to six players.
</p>
<p>
The game comes with many different types of bombs, player upgrades,
levels, etc.
</p>
</description>
<url type="homepage">http://xblast.sourceforge.net/</url>
<screenshots>
<screenshot type="default">http://freexbresse.free.fr/xblast/pics/levyb/lev66.gif</screenshot>
<screenshot>http://freexbresse.free.fr/xblast/pics/levyb/lev22.gif</screenshot>
<screenshot>http://freexbresse.free.fr/xblast/pics/levyb/lev09.gif</screenshot>
<screenshot>http://freexbresse.free.fr/xblast/pics/levyb/lev43.gif</screenshot>
</screenshots>
<updatecontact>jwrdegoede_at_fedoraproject.org</updatecontact>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">mild</content_attribute>
</content_rating>
<releases>
<release version="2.10.4" date="2006-06-14">
<description>
<p>Latest stable xblast release</p>
</description>
</release>
</releases>
</component>

View file

@ -1,4 +1,5 @@
[Desktop Entry]
Encoding=UTF-8
Name=XBlast
Comment=Lay bombs and Blast the other players of the field
Exec=xblast

BIN
xblast.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -1,6 +0,0 @@
# There is a generic xblast manpage in the -common pkg
addFilter("W: no-manual-page-for-binary x.*")
# There are docs in the shared (and required) -common pkg
addFilter("W: no-documentation")
# meh
addFilter("E: incorrect-fsf-address.*")

View file

@ -1,32 +1,25 @@
Name: xblast
Version: 2.10.4
Release: 43%{?dist}
Release: 26%{?dist}
Summary: Lay bombs and Blast the other players of the field (SDL version)
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
License: GPLv2+
URL: http://xblast.sourceforge.net
Source0: http://downloads.sourceforge.net/xblast/xblast-%{version}.tar.gz
Source1: xblast.sh
Source1: xblast.png
Source2: xblast.desktop
Source3: xblast-32.png
Source4: xblast-48.png
Source5: xblast-128.png
Source6: xblast.appdata.xml
Source3: xblast.sh
Patch0: xblast-2.10.4-sdl-fixes.patch
Patch1: xblast-2.10.4-manpage.patch
Patch2: xblast-2.10.4-fcommon-fix.patch
Patch3: xblast-2.10.4-font-config-fix.patch
BuildRequires: gcc make
BuildRequires: gcc
BuildRequires: libXt-devel gettext gawk desktop-file-utils SDL_gfx-devel
BuildRequires: SDL_image-devel SDL_ttf-devel SDL_mixer-devel SDL_net-devel
BuildRequires: libappstream-glib
Requires: %{name}-data >= 2.10.0, %{name}-common = %{version}-%{release}
Requires: font(dejavusans)
Requires: /usr/share/fonts/dejavu/DejaVuSans.ttf
Provides: %{name}-engine = %{version}-%{release}
%description
This is the new SDL version of XBlast, a multi-player game where the "purpose"
is to Blast the other players of the game-field by laying bombs close to them.
This is the new SDL version of XBlast, a multiplayer game where the "purpose"
is to Blast the other players of the gamefield by laying bombs close to them.
While at the same time you must avoid being blown up yourself.
@ -37,8 +30,8 @@ Requires: xorg-x11-fonts-ISO8859-1-75dpi
Provides: %{name}-engine = %{version}-%{release}
%description x11
This is the original X11 version of XBlast, a multi-player game where the
"purpose" is to Blast the other players of the game-field by laying bombs close
This is the original X11 version of XBlast, a multiplayer game where the
"purpose" is to Blast the other players of the gamefield by laying bombs close
to them. While at the same time you must avoid being blown up yourself.
@ -47,14 +40,17 @@ Summary: Files common to both the X11 and SDL version of XBlast
Requires: %{name}-engine = %{version}-%{release}, hicolor-icon-theme
%description common
Files common to both the X11 and SDL version of XBlast, a multi-player game
where the "purpose" is to Blast the other players of the game-field by laying
Files common to both the X11 and SDL version of XBlast, a multiplayer game
where the "purpose" is to Blast the other players of the gamefield by laying
bombs close to the other player.
%prep
%autosetup -p1
%setup -q
%patch0 -p1 -z .sdl
%patch1 -p1 -z .man
sed -i 's|$(game_datadir)/locale|%{_datadir}/locale|g' Makefile.in
# stop rpmlint from complaining about executable source files in the -debuginfo
chmod -x chat.* version.c
# stop autoxxx from rerunning because of strange timestamps in the tarbal
@ -79,28 +75,19 @@ make install localedir=%{_datadir}/locale DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-x11
install -m 755 xblast-sdl $RPM_BUILD_ROOT%{_bindir}
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 644 %{name}.man $RPM_BUILD_ROOT%{_mandir}/man6/%{name}.6
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
install -p -m 644 %{SOURCE3} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -p -m 644 %{SOURCE4} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -p -m 644 %{SOURCE5} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/appdata
appstream-util validate-relax --nonet \
$RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
install -p -m 644 %{SOURCE1} \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%files
%{_bindir}/%{name}-sdl
@ -110,72 +97,14 @@ appstream-util validate-relax --nonet \
%{_bindir}/xbsndsrv
%files -f %{name}.lang common
%doc AUTHORS README
%license COPYING
%doc AUTHORS ChangeLog COPYING README NEWS
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6.gz
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 2.10.4-41
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jul 16 2022 Hans de Goede <hdegoede@redhat.com> - 2.10.4-35
- Fix xblast-x11 crashing with BadFont error after using xblast-sdl (#2107144)
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Mar 4 2020 Hans de Goede <hdegoede@redhat.com> - 2.10.4-30
- Fix xblast not starting because of dejavu-sans-fonts path changes
- Replace 128x128 icon with a better version
- Add 32x32 and 48x48 icons for cases where we need a lower res icon
* Wed Feb 19 2020 Hans de Goede <hdegoede@redhat.com> - 2.10.4-29
- Fix FTBFS (rhbz#1800265)
- Replace icon with 128x128 pixel version
- Add appdata
- Change font Requires to font(dejavusans) instead of a file-path (rhbz#1731705)
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.4-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild