Compare commits
18 Commits
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 80a9332850 | |
Fedora Release Engineering | 2e96d2bcce | |
Igor Gnatenko | 8405714a4c | |
Fedora Release Engineering | 178d84b9a7 | |
Igor Gnatenko | 3f2732fa09 | |
Fedora Release Engineering | 1eadd637c7 | |
Fedora Release Engineering | 25a3a1c0cd | |
Fedora Release Engineering | 0ccad10b40 | |
Fedora Release Engineering | e223268a21 | |
Fedora Release Engineering | d469f67a36 | |
David King | 9fb7b5f728 | |
Dennis Gilmore | 9d4784cf1e | |
David King | 1f72ee0dce | |
Peter Robinson | 1e5dac8835 | |
Dennis Gilmore | 7da8e9f93c | |
Iain Arnell | 4cd63b0552 | |
Iain Arnell | db85173fc3 | |
Dennis Gilmore | 0752dc8b89 |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 David King <amigadave@amigadave.com> -->
|
||||||
|
<application>
|
||||||
|
<id type="desktop">slashem.desktop</id>
|
||||||
|
<name>Slash'EM</name>
|
||||||
|
<summary>Slash'EM is a single player dungeon exploration game</summary>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<project_license>NGPL</project_license>
|
||||||
|
<description>
|
||||||
|
<p>Slash'EM (Super Lotsa Added Stuff Hack - Extended Magic) is a
|
||||||
|
variant of the roguelike game NetHack that offers extra features,
|
||||||
|
monsters, levels and items.</p>
|
||||||
|
</description>
|
||||||
|
<url type="homepage">http://slashem.sourceforge.net/</url>
|
||||||
|
<updatecontact>amigadave@amigadave.com</updatecontact>
|
||||||
|
</application>
|
|
@ -2,8 +2,7 @@
|
||||||
Name=Slash'EM
|
Name=Slash'EM
|
||||||
Comment=Slash'EM is a single player dungeon exploration game
|
Comment=Slash'EM is a single player dungeon exploration game
|
||||||
Exec=slashem
|
Exec=slashem
|
||||||
Icon=slashem.xpm
|
Icon=slashem
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Type=Application
|
Type=Application
|
||||||
Encoding=UTF-8
|
Categories=Game;AdventureGame;RolePlaying;X-Fedora;
|
||||||
Categories=Application;Game;X-Fedora;
|
|
||||||
|
|
104
slashem.spec
104
slashem.spec
|
@ -1,35 +1,42 @@
|
||||||
Name: slashem
|
Name: slashem
|
||||||
Version: 0.0.8
|
Version: 0.0.8
|
||||||
Release: 0.11.E0F1%{?dist}
|
Release: 0.27.E0F1%{?dist}
|
||||||
Summary: Super Lotsa Added Stuff Hack - Extended Magic
|
Summary: Super Lotsa Added Stuff Hack - Extended Magic
|
||||||
|
|
||||||
Group: Amusements/Games
|
|
||||||
License: NGPL
|
License: NGPL
|
||||||
URL: http://slashem.sourceforge.net/
|
URL: http://slashem.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/slashem/se008e0f1.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/se008e0f1.tar.gz
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
|
Source2: %{name}.appdata.xml
|
||||||
Patch0: slashem-config.patch
|
Patch0: slashem-config.patch
|
||||||
# fix building with libpng 1.5
|
# fix building with libpng 1.5
|
||||||
Patch1: slashem-libpng-1.5.patch
|
Patch1: slashem-libpng-1.5.patch
|
||||||
# update config.guess and config.sub to recognize aarch64
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1037330
|
||||||
Patch2: slashem-aarch64.patch
|
Patch2: slashem-format-security.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: /usr/bin/appstream-util
|
||||||
|
BuildRequires: /usr/bin/convert
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: bison, flex, desktop-file-utils
|
BuildRequires: bison, flex, desktop-file-utils
|
||||||
BuildRequires: bdftopcf, libX11-devel, libXaw-devel, libXext-devel
|
BuildRequires: bdftopcf, libX11-devel, libXext-devel
|
||||||
BuildRequires: libXmu-devel, libXpm-devel, libXt-devel
|
BuildRequires: libXmu-devel, libXpm-devel, libXt-devel
|
||||||
BuildRequires: SDL-devel libGL-devel libpng-devel zlib-devel
|
BuildRequires: SDL-devel libGL-devel libpng-devel zlib-devel
|
||||||
|
BuildRequires: pkgconfig(xaw7)
|
||||||
# to compress save files
|
# to compress save files
|
||||||
Requires: bzip2
|
Requires: bzip2
|
||||||
|
# For icon theme directories.
|
||||||
|
Requires: hicolor-icon-theme
|
||||||
# for X11 core fonts
|
# for X11 core fonts
|
||||||
Requires: nethack-bitmap-fonts-core
|
Requires: nethack-bitmap-fonts-core
|
||||||
|
|
||||||
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
%global fa_var /var/games/%{name}
|
%global fa_var /var/games/%{name}
|
||||||
%global fa_save /var/games/%{name}/save
|
%global fa_save /var/games/%{name}/save
|
||||||
%global fa_share %{_datadir}/games/%{name}
|
%global fa_share %{_datadir}/games/%{name}
|
||||||
%global fa_unshare %{_libdir}/games/%{name}
|
%global fa_unshare %{_libdir}/games/%{name}
|
||||||
%global fa_doc %{_defaultdocdir}/%{name}-%{version}
|
%global fa_doc %{_pkgdocdir}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
From the land before 3DFX, before VGA graphics and DOOM, before the IBM PC, way
|
From the land before 3DFX, before VGA graphics and DOOM, before the IBM PC, way
|
||||||
|
@ -53,9 +60,9 @@ SLASH'EM is the (continuing) saga of one such variant...
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}E0F1
|
%setup -q -n %{name}-%{version}E0F1
|
||||||
%patch0 -p 1 -b .config
|
%patch0 -p1 -b .config
|
||||||
%patch1 -p 1 -b .libpng
|
%patch1 -p1 -b .libpng
|
||||||
%patch2 -p 1 -b .aarch64
|
%patch2 -p1 -b .format-security
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's:^\(#define FILE_AREA_VAR\).*:\1 "%{fa_var}/":' \
|
-e 's:^\(#define FILE_AREA_VAR\).*:\1 "%{fa_var}/":' \
|
||||||
|
@ -65,7 +72,6 @@ sed -i \
|
||||||
-e 's:^\(#define FILE_AREA_DOC\).*:\1 "%{fa_doc}/":' \
|
-e 's:^\(#define FILE_AREA_DOC\).*:\1 "%{fa_doc}/":' \
|
||||||
include/unixconf.h
|
include/unixconf.h
|
||||||
|
|
||||||
|
|
||||||
for f in *.txt ; do
|
for f in *.txt ; do
|
||||||
iconv -f iso8859-1 -t utf-8 $f >$f.conv
|
iconv -f iso8859-1 -t utf-8 $f >$f.conv
|
||||||
touch -r $f $f.conv
|
touch -r $f $f.conv
|
||||||
|
@ -96,14 +102,15 @@ make \
|
||||||
FILE_AREA_DOC=%{fa_doc} \
|
FILE_AREA_DOC=%{fa_doc} \
|
||||||
SHELLDIR=%{_bindir}
|
SHELLDIR=%{_bindir}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make install DESTDIR=%{buildroot} \
|
make install DESTDIR=%{buildroot} \
|
||||||
FILE_AREA_VAR=%{buildroot}%{fa_var} \
|
FILE_AREA_VAR=%{buildroot}%{fa_var} \
|
||||||
FILE_AREA_SAVE=%{buildroot}%{fa_save} \
|
FILE_AREA_SAVE=%{buildroot}%{fa_save} \
|
||||||
FILE_AREA_SHARE=%{buildroot}%{fa_share} \
|
FILE_AREA_SHARE=%{buildroot}%{fa_share} \
|
||||||
FILE_AREA_UNSHARE=%{buildroot}%{fa_unshare} \
|
FILE_AREA_UNSHARE=%{buildroot}%{fa_unshare} \
|
||||||
FILE_AREA_DOC=%{buildroot}%{fa_doc} \
|
FILE_AREA_DOC=%{buildroot}%{fa_doc} \
|
||||||
|
INSTALL="install -p" \
|
||||||
SHELLDIR=%{buildroot}%{_bindir} \
|
SHELLDIR=%{buildroot}%{_bindir} \
|
||||||
CHOWN=/bin/true \
|
CHOWN=/bin/true \
|
||||||
CHGRP=/bin/true
|
CHGRP=/bin/true
|
||||||
|
@ -122,21 +129,18 @@ rm %{buildroot}%{_mandir}/man6/[^s]*
|
||||||
|
|
||||||
sed -i -e 's:^!\(SlashEM.tile_file.*\):\1:' %{buildroot}%{fa_share}/SlashEM.ad
|
sed -i -e 's:^!\(SlashEM.tile_file.*\):\1:' %{buildroot}%{fa_share}/SlashEM.ad
|
||||||
|
|
||||||
install -D -p -m 0644 win/X11/nh_icon.xpm %{buildroot}%{_datadir}/pixmaps/slashem.xpm
|
install -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
||||||
desktop-file-install \
|
convert win/X11/nh_icon.xpm %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
--add-category X-Fedora \
|
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
||||||
--add-category Application \
|
|
||||||
--add-category Game \
|
|
||||||
%{SOURCE1}
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf %{buildroot}
|
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||||
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc history.txt doc/*.txt README.34 readme.* slamfaq.txt dat/license dat/history
|
%doc history.txt doc/*.txt README.34 readme.* slamfaq.txt dat/license dat/history
|
||||||
%{_bindir}/slashem
|
%{_bindir}/slashem
|
||||||
%{_bindir}/slashem-recover
|
%{_bindir}/slashem-recover
|
||||||
|
@ -144,8 +148,9 @@ rm -rf %{buildroot}
|
||||||
%dir %{fa_unshare}
|
%dir %{fa_unshare}
|
||||||
%{fa_unshare}/nhushare
|
%{fa_unshare}/nhushare
|
||||||
%{_mandir}/man6/*
|
%{_mandir}/man6/*
|
||||||
|
%{_datadir}/appdata/%{name}.appdata.xml
|
||||||
%{_datadir}/applications/slashem.desktop
|
%{_datadir}/applications/slashem.desktop
|
||||||
%{_datadir}/pixmaps/slashem.xpm
|
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
||||||
%defattr(0664,root,games)
|
%defattr(0664,root,games)
|
||||||
%config(noreplace) %{fa_var}/logfile
|
%config(noreplace) %{fa_var}/logfile
|
||||||
%config(noreplace) %{fa_var}/perm
|
%config(noreplace) %{fa_var}/perm
|
||||||
|
@ -156,6 +161,57 @@ rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.27.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.26.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.25.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.24.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.23.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.22.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.21.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-0.20.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Sep 22 2015 David King <amigadave@amigadave.com> - 0.0.8-0.19.E0F1
|
||||||
|
- Convert XPM icon the PNG
|
||||||
|
|
||||||
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-0.18.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Nov 20 2014 David King <amigadave@amigadave.com> - 0.0.8-0.17.E0F1
|
||||||
|
- Update desktop file and validate it during check
|
||||||
|
- Add AppData description and validate it during check
|
||||||
|
- Preserve timestamps during install
|
||||||
|
- Tidy spec file
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-0.16.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-0.15.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Dec 04 2013 Iain Arnell <iarnell@gmail.com> 0.0.8-0.14.E0F1
|
||||||
|
- apply patch to avoid format-security errors (RHBZ#1037330)
|
||||||
|
|
||||||
|
* Sat Aug 10 2013 Iain Arnell <iarnell@gmail.com> 0.0.8-0.13.E0F1
|
||||||
|
- use _pkgdocdir macro
|
||||||
|
|
||||||
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-0.12.E0F1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
* Sat Mar 23 2013 Iain Arnell <iarnell@gmail.com> 0.0.8-0.11.E0F1
|
* Sat Mar 23 2013 Iain Arnell <iarnell@gmail.com> 0.0.8-0.11.E0F1
|
||||||
- patch to support aarch64 (thanks, ausil)
|
- patch to support aarch64 (thanks, ausil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue