commit 3bb710882847d786b1a0677db4747bc0f6685f08
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sun Sep 3 15:41:54 2017 +0200
Fixed missing debuginfo
Added URL tag
Updated Source0 tags
Updated description
Added man page from Debian
Dropped Group tag
...free-1.14.diff => scottfree-1.14-Makefile.patch | 13 +------
scottfree-1.14-includes.patch | 12 ++++++
scottfree.spec | 43 +++++++++++++++++-----
3 files changed, 47 insertions(+), 21 deletions(-)
---
diff --git a/scottfree-1.14.diff b/scottfree-1.14-Makefile.patch
similarity index 61%
rename from scottfree-1.14.diff
rename to scottfree-1.14-Makefile.patch
index 112552c..a54458f 100644
--- a/scottfree-1.14.diff
+++ b/scottfree-1.14-Makefile.patch
@@ -12,7 +12,7 @@
-ScottCurses: ScottCurses.o
- $(CC) ScottCurses.o -o ScottCurses -lcurses -ltermcap
+scottfree: ScottCurses.o
-+ $(CC) ScottCurses.o -o scottfree -lcurses
++ $(CC) $(LDFLAGS) ScottCurses.o -o scottfree -lcurses
+install:
+ mkdir -p $(DESTDIR)/usr/bin
@@ -20,14 +20,3 @@
+clean:
+ rm -f ScottCurses.o scottfree
---- scottfree-1.14.orig/ScottCurses.c
-+++ scottfree-1.14/ScottCurses.c
-@@ -20,6 +20,8 @@
- #include <curses.h>
- #include <stdarg.h>
- #include <signal.h>
-+#include <unistd.h>
-+#include <sys/types.h>
-
- #include "Scott.h"
-
diff --git a/scottfree-1.14-includes.patch b/scottfree-1.14-includes.patch
new file mode 100644
index 0000000..2d8860b
--- /dev/null
+++ b/scottfree-1.14-includes.patch
@@ -0,0 +1,12 @@
+diff -urN scottfree-1.14.orig.orig/ScottCurses.c scottfree-1.14.orig/ScottCurses.c
+--- scottfree-1.14.orig.orig/ScottCurses.c 1995-04-27 06:03:27.000000000 -0400
++++ scottfree-1.14.orig/ScottCurses.c 2008-01-11 10:49:52.000000000 -0500
+@@ -20,6 +20,8 @@
+ #include <curses.h>
+ #include <stdarg.h>
+ #include <signal.h>
++#include <unistd.h>
++#include <sys/types.h>
+
+ #include "Scott.h"
+
diff --git a/scottfree.spec b/scottfree.spec
index 357dff6..fcc4283 100644
--- a/scottfree.spec
+++ b/scottfree.spec
@@ -1,38 +1,63 @@
-%global debug_package %{nil}
-
-Summary: Interpreter for Scott Adams format text adventure games
Name: scottfree
Version: 1.14
-Release: 11%{?dist}
+Release: 12%{?dist}
+Summary: Interpreter for Scott Adams format text adventure games
+
License: GPLv2+
-Group: Amusements/Games
-Source: ftp://ftp.gmd.de/if-archive/scott-adams/ScottFree.tar.gz
-Patch: scottfree-1.14.diff
+URL:
http://ifarchive.org/if-archive/scott-adams/interpreters/scottfree/
+Source0:
http://ifarchive.org/if-archive/scott-adams/interpreters/scottfree/ScottF...
+# Man page taken from Debian
+Source1: %{name}.6
+Patch0: %{name}-1.14-Makefile.patch
+Patch1: %{name}-1.14-includes.patch
BuildRequires: ncurses-devel
+
%description
ScottFree is an interpreter for Scott-Adams-format text adventure games
(remember those?). It reads and executes TRS-80 format data files.
Most Adventure International Games are distributed as shareware and are
-available from ftp://ftp.gmd.de/if-archive/scott-adams/
+available from
http://ifarchive.org/if-archive/scott-adams/
+
%prep
%autosetup -c -p1
+
+# Fix file permissions
chmod 644 *
+
%build
+export CFLAGS="%{optflags}"
+export LDFLAGS="%{__global_ldflags}"
%make_build
+
%install
%make_install
+# Install man page
+install -d %{buildroot}%{_mandir}/man6
+install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man6/
+
+
%files
-%{_bindir}/scottfree
+%{_bindir}/%{name}
+%{_mandir}/man6/%{name}.6*
%doc README Definition
+
%changelog
+* Sat Sep 02 2017 Andrea Musuruane <musuruan(a)gmail.com> - 1.14-12
+- Fixed missing debuginfo
+- Added URL tag
+- Updated Source0 tags
+- Updated description
+- Added man page from Debian
+- Dropped Group tag
+
* Fri Sep 01 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 1.14-11
- Disable debuginfo