forked from pool/wumpus
Accepting request 789830 from games
OBS-URL: https://build.opensuse.org/request/show/789830 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wumpus?expand=0&rev=2
This commit is contained in:
commit
aab409099f
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:965e49b3e53f44023994b42b3aa568ad79d3a2287bb0a07460b601500c9ae16d
|
|
||||||
size 11694
|
|
3
wumpus-1.7.tar.gz
Normal file
3
wumpus-1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:892678a66d6d1fe2a7ede517df2694682b882797a546ac5c0568cc60b659f702
|
||||||
|
size 27177
|
@ -1,11 +1,15 @@
|
|||||||
--- Makefile.orig 2015-04-04 12:38:03.000000000 +0200
|
diff --git a/Makefile b/Makefile
|
||||||
+++ Makefile 2015-06-08 20:36:13.445880866 +0200
|
index ef8bddd..39b0a4d 100644
|
||||||
@@ -27,12 +27,25 @@
|
--- a/Makefile
|
||||||
SOURCES = README COPYING NEWS Makefile wumpus.c superhack.c wumpus.xml
|
+++ b/Makefile
|
||||||
|
@@ -31,14 +31,25 @@ wumpus.html: wumpus.xml
|
||||||
|
SOURCES = README COPYING NEWS control Makefile wumpus.c superhack.c wumpus.xml wumpus.png wumpus.desktop superhack.desktop
|
||||||
|
|
||||||
install: wumpus.6
|
install: wumpus superhack wumpus.6
|
||||||
- cp wumpus superhack /usr/bin/
|
- mkdir -p $(prefix)/bin
|
||||||
- cp wumpus.6 /usr/share/man/man6/
|
- mkdir -p $(prefix)/share/man/man6
|
||||||
|
- cp wumpus superhack $(prefix)/bin/
|
||||||
|
- cp wumpus.6 $(prefix)/share/man/man6/
|
||||||
+ install -m 0755 -d $(DESTDIR)/usr/bin/
|
+ install -m 0755 -d $(DESTDIR)/usr/bin/
|
||||||
+ install -m 0755 -d $(DESTDIR)/usr/share/man/man6/
|
+ install -m 0755 -d $(DESTDIR)/usr/share/man/man6/
|
||||||
+ install -m 0755 -d $(DESTDIR)//usr/share/applications/
|
+ install -m 0755 -d $(DESTDIR)//usr/share/applications/
|
||||||
@ -19,8 +23,8 @@
|
|||||||
+ install -m 0644 wumpus.xml $(DESTDIR)/usr/share/appdata/
|
+ install -m 0644 wumpus.xml $(DESTDIR)/usr/share/appdata/
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
- rm /usr/bin/wumpus /usr/bin/superhack
|
- rm $(prefix)/bin/wumpus $(prefix)/bin/superhack
|
||||||
- rm /usr/share/man/man6/wumpus.6
|
- rm $(prefix)/share/man/man6/wumpus.6
|
||||||
+ rm -f /usr/bin/superhack /usr/bin/wumpus
|
+ rm -f /usr/bin/superhack /usr/bin/wumpus
|
||||||
+ rm -f /usr/share/man/man6/wumpus.6
|
+ rm -f /usr/share/man/man6/wumpus.6
|
||||||
+ rm -f /usr/share/applications/wumpus.desktop
|
+ rm -f /usr/share/applications/wumpus.desktop
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
--- superhack.c.orig 2015-04-04 12:36:55.000000000 +0200
|
|
||||||
+++ superhack.c 2015-06-08 18:29:28.574280952 +0200
|
|
||||||
@@ -13,6 +13,9 @@
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
+#include <string.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+#include <sys/socket.h>
|
|
||||||
|
|
||||||
static int path[5];
|
|
||||||
static int j, k, scratchloc, pies;
|
|
||||||
@@ -423,6 +426,7 @@
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* superhack.c ends here */
|
|
@ -1,12 +0,0 @@
|
|||||||
--- wumpus.c.orig 2015-04-04 12:31:47.000000000 +0200
|
|
||||||
+++ wumpus.c 2015-06-08 18:43:34.738979482 +0200
|
|
||||||
@@ -30,6 +30,9 @@
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
+#include <string.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+#include <sys/socket.h>
|
|
||||||
|
|
||||||
/* 5 REM *** HUNT THE WUMPUS *** */
|
|
||||||
|
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 27 21:55:04 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 8 18:26:47 UTC 2015 - nemysis@gmx.ch
|
Mon Jun 8 18:26:47 UTC 2015 - nemysis@gmx.ch
|
||||||
|
|
||||||
|
45
wumpus.spec
45
wumpus.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package wumpus
|
# spec file for package wumpus
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,19 +12,18 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define oname superhack
|
%define oname superhack
|
||||||
|
|
||||||
Name: wumpus
|
Name: wumpus
|
||||||
Version: 1.6
|
Version: 1.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Faithful transcription of the 1974 Atari Wumpus game
|
Summary: Faithful transcription of the 1974 Atari Wumpus game
|
||||||
License: BSD-3-Clause
|
License: BSD-2-Clause
|
||||||
Group: Amusements/Games/Action/Race
|
Group: Amusements/Games/Action/Race
|
||||||
Url: http://www.catb.org/~esr/wumpus/
|
URL: http://www.catb.org/~esr/wumpus/
|
||||||
Source0: http://www.catb.org/~esr/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://www.catb.org/~esr/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
Source2: %{name}.desktop
|
Source2: %{name}.desktop
|
||||||
@ -32,16 +31,9 @@ Source3: %{oname}.desktop
|
|||||||
Source4: %{name}.png
|
Source4: %{name}.png
|
||||||
# PATCH-FIX-UPSTREAM - wumpus-Makefile.patch -- Fix paths and installation
|
# PATCH-FIX-UPSTREAM - wumpus-Makefile.patch -- Fix paths and installation
|
||||||
Patch0: %{name}-Makefile.patch
|
Patch0: %{name}-Makefile.patch
|
||||||
# PATCH-FIX-UPSTREAM - wumpus-superhack.c.patch -- Fix bad C++ code
|
|
||||||
Patch1: %{name}-superhack.c.patch
|
|
||||||
# PATCH-FIX-UPSTREAM - wumpus-wumpus.c.patch -- Fix bad C++ code
|
|
||||||
Patch2: %{name}-wumpus.c.patch
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
%endif
|
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: update-desktop-files
|
||||||
|
|
||||||
%description
|
%description
|
||||||
WUMPUS is a bit of retrocomputing nostalgia. It is an *exact* clone,
|
WUMPUS is a bit of retrocomputing nostalgia. It is an *exact* clone,
|
||||||
@ -52,16 +44,14 @@ different premise.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
%patch0 -p1
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
|
|
||||||
cp -af %{S:2} .
|
cp -af %{SOURCE2} .
|
||||||
cp -af %{S:3} .
|
cp -af %{SOURCE3} .
|
||||||
cp -af %{S:4} .
|
cp -af %{SOURCE4} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
%make_build CFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -69,17 +59,16 @@ make %{?_smp_mflags} CFLAGS="%{optflags}"
|
|||||||
# Symlink Manpage
|
# Symlink Manpage
|
||||||
ln -sf %{_mandir}/man6/%{name}.6%{ext_man} %{buildroot}%{_mandir}/man6/%{oname}.6%{ext_man}
|
ln -sf %{_mandir}/man6/%{name}.6%{ext_man} %{buildroot}%{_mandir}/man6/%{oname}.6%{ext_man}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%suse_update_desktop_file %{name}
|
||||||
%suse_update_desktop_file %{name}
|
%suse_update_desktop_file %{oname}
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license COPYING
|
||||||
%doc COPYING README
|
%doc README
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/%{oname}
|
%{_bindir}/%{oname}
|
||||||
%{_mandir}/man6/%{name}.6%{ext_man}
|
%{_mandir}/man6/%{name}.6%{?ext_man}
|
||||||
%{_mandir}/man6/%{oname}.6%{ext_man}
|
%{_mandir}/man6/%{oname}.6%{?ext_man}
|
||||||
%dir %{_datadir}/appdata
|
%dir %{_datadir}/appdata
|
||||||
%{_datadir}/appdata/%{name}.xml
|
%{_datadir}/appdata/%{name}.xml
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user