SHA256
1
0
forked from pool/wumpus
wumpus/wumpus.spec
Dirk Stoecker a733125e0c Accepting request 789236 from home:cgiboudeaux:branches:games
- Update to 1.7:
  * license change from BSD-3-Clause to BSD-2-Clause
  * Minor bug fix for suprhack
  * Added a logo and a historical note about it
- Run spec-cleaner
- Update wumpus-Makefile.patch
- Drop wumpus-superhack.c.patch, merged upstream.
- Drop wumpus-wumpus.c.patch, merged upstream.

OBS-URL: https://build.opensuse.org/request/show/789236
OBS-URL: https://build.opensuse.org/package/show/games/wumpus?expand=0&rev=4
2020-03-30 15:22:30 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package wumpus
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define oname superhack
Name: wumpus
Version: 1.7
Release: 0
Summary: Faithful transcription of the 1974 Atari Wumpus game
License: BSD-2-Clause
Group: Amusements/Games/Action/Race
URL: http://www.catb.org/~esr/wumpus/
Source0: http://www.catb.org/~esr/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Source2: %{name}.desktop
Source3: %{oname}.desktop
Source4: %{name}.png
# PATCH-FIX-UPSTREAM - wumpus-Makefile.patch -- Fix paths and installation
Patch0: %{name}-Makefile.patch
BuildRequires: hicolor-icon-theme
BuildRequires: ncurses-devel
BuildRequires: update-desktop-files
%description
WUMPUS is a bit of retrocomputing nostalgia. It is an *exact* clone,
even down to the godawful user interface, of an ancient classic game.
This version fixes two minor bugs in my original 1992 USENET posting
of the source. Superhack is a structurally similar game with a
different premise.
%prep
%setup -q
%patch0 -p1
cp -af %{SOURCE2} .
cp -af %{SOURCE3} .
cp -af %{SOURCE4} .
%build
%make_build CFLAGS="%{optflags}"
%install
%make_install
# Symlink Manpage
ln -sf %{_mandir}/man6/%{name}.6%{ext_man} %{buildroot}%{_mandir}/man6/%{oname}.6%{ext_man}
%suse_update_desktop_file %{name}
%suse_update_desktop_file %{oname}
%files
%license COPYING
%doc README
%{_bindir}/%{name}
%{_bindir}/%{oname}
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_mandir}/man6/%{oname}.6%{?ext_man}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/icons/hicolor/
%changelog