Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Fedora Release Engineering
7155982235 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:40:27 +00:00
Fedora Release Engineering
909343b5c1 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:58:53 +00:00
Diego Herrera
4045b7f7e9 Fix missing dependency and add gnome warning 2025-01-27 16:12:07 -03:00
Fedora Release Engineering
349ccac290 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:02:18 +00:00
Miroslav Suchý
3b9fe5494c convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-08-28 07:52:55 +02:00
Fedora Release Engineering
7bc3916f8f Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:59:24 +00:00
Fedora Release Engineering
cdaefe3cbe Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 23:02:41 +00:00
Fedora Release Engineering
35204cf2e6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:56:10 +00:00
4 changed files with 62 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
results_*
*.rpm
/angband-4.2.3-norestricted.tar.gz
/angband-4.2.4-norestricted.tar.gz
/angband-4.2.5-norestricted.tar.gz

View file

@ -6,7 +6,7 @@ diff -ruN angband-4.2.5-orig/lib/icons/angband-sdl2.desktop angband-4.2.5/lib/ic
Type=Application
Comment=A roguelike dungeon exploration game based on the books of J.R.R.Tolkien
-Exec=sh -c "if [ \\$XDG_SESSION_TYPE == \"wayland\" ]; then env SDL_VIDEODRIVER=wayland angband -msdl2; else angband -msdl2; fi"
+Exec=angband -msdl2
+Exec=angband-sdl
TryExec=angband
Icon=angband
Categories=Game;RolePlaying;

23
angband-sdl Normal file
View file

@ -0,0 +1,23 @@
#!/usr/bin/bash
RUN_SDL=1
MESSAGE="\
Angband (SDL) doesn't work on Gnome Desktop because GTK+ refuses to initialize on excecutables that require the setgid feature.\n\n\
Run Angband (X11) instead?"
if [[ "$DESKTOP_SESSION" == "gnome" ]]; then
zenity \
--title="Warning" \
--icon="dialog-warning" \
--question \
--text "$MESSAGE"
RUN_SDL=$?
fi
if [[ "$RUN_SDL" == "0" ]]; then
angband -mx11
else
angband -msdl2
fi

View file

@ -1,9 +1,10 @@
Name: angband
Version: 4.2.5
Release: 1%{?dist}
Release: 9%{?dist}
Summary: Popular roguelike role playing game
License: GPLv2
# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
URL: https://rephial.org/
Source0: angband-%{version}-norestricted.tar.gz
# angband contains assets and code that don't comply to Fedora's
@ -15,6 +16,8 @@ Source1: generate-tarball.sh
# The fix-restricted.patch file is used by generate-tarball.sh to fix
# the source to work without the restricted assets.
Source2: fix-restricted.patch
# Add warning when running on gnome desktop
Source3: angband-sdl
# Specific Fedora restriction on chown usage during install process
Patch0: angband-4.2.4-1-chown_fix.patch
@ -36,6 +39,8 @@ BuildRequires: python3-docutils
Requires: hicolor-icon-theme
Requires: freetype >= 2.11.0-3
Requires: xorg-x11-fonts-misc
Requires: zenity
Requires: %{name}-data = %{version}-%{release}
%description
@ -46,7 +51,8 @@ Morgoth - "The Dark Enemy".
%package data
Summary: Angband data files
License: GPLv2 and CC-BY
# Automatically converted from old format: GPLv2 and CC-BY - review is highly recommended.
License: GPL-2.0-only AND LicenseRef-Callaway-CC-BY
BuildArch: noarch
%description data
@ -100,11 +106,13 @@ appstream-util validate-relax --nonet \
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6/
install -p -m 644 src/angband.man $RPM_BUILD_ROOT%{_mandir}/man6/angband.6
install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/angband-sdl
%files
%license docs/copying.rst
%attr(2755,root,games) %{_bindir}/%{name}
%{_bindir}/angband-sdl
%{_datadir}/applications/*.desktop
%{_metainfodir}/angband.metainfo.xml
%dir %{_sysconfdir}/angband
@ -134,6 +142,31 @@ install -p -m 644 src/angband.man $RPM_BUILD_ROOT%{_mandir}/man6/angband.6
%changelog
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jan 27 2025 Diego Herrera <dherrera@redhat.com> 4.2.5-7
- Require xorg-x11-fonts-misc
- Add extra warning when running Angband (SDL) on Gnome
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Aug 28 2024 Miroslav Suchý <msuchy@redhat.com> - 4.2.5-5
- convert license to SPDX
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Sep 7 2023 Diego Herrera <dherrera@redhat.com> 4.2.5-1
- Updated version to 4.2.5
- Upstreamed assets