From b9aff06b61bb0941a338777e53754e16054b299e Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 23 Mar 2020 08:34:40 -0500 Subject: [PATCH 1/6] "Adding package.cfg file" --- package.cfg | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 package.cfg diff --git a/package.cfg b/package.cfg new file mode 100644 index 0000000..66ea79d --- /dev/null +++ b/package.cfg @@ -0,0 +1,2 @@ +[koji] +targets = epel8 epel8-playground \ No newline at end of file From d0b2764e8b72fefe0bc69bacc3a1c8036ebfab98 Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Mon, 23 Mar 2020 08:10:33 -0400 Subject: [PATCH 2/6] README: Add summary and description from package spec Signed-off-by: Justin W. Flory --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a55dd63..62d8c4d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ -# zork +zork +==== -The zork package \ No newline at end of file +Public Domain original DUNGEON game (Zork I) + + +## About + +Public Domain source code to the original DUNGEON game (Zork I). +Released to the PD by Infocom. +Includes source files, headers, and information. + +This version of Dungeon was modified from FORTRAN to C. +The original was written in DEC FORTRAN, translated from MDL. +It was then translated to f77 for UN\*X systems, from which it was translated to C. +The C translation was done with the help of f2c, the FORTRAN to C translator written by David Gay (AT&T Bell Labs), Stu Feldman (Bellcore), Mark Maimone (Carnegie-Mellon University), and Norm Schryer (AT&T Bell Labs). From 99cf30d656a667041cd7f71ada629c06113236e2 Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Mon, 23 Mar 2020 08:14:26 -0400 Subject: [PATCH 3/6] Initial commit: Approved package SPEC and patchfile Signed-off-by: Justin W. Flory --- zork-tweak-makefile.patch | 57 +++++++++++++++++++++++++++++++++ zork.spec | 67 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 zork-tweak-makefile.patch create mode 100644 zork.spec diff --git a/zork-tweak-makefile.patch b/zork-tweak-makefile.patch new file mode 100644 index 0000000..6a81080 --- /dev/null +++ b/zork-tweak-makefile.patch @@ -0,0 +1,57 @@ +From ce241188ca387a42c3ab09454c881acfe30c955e Mon Sep 17 00:00:00 2001 +From: "Justin W. Flory" +Date: Tue, 30 Apr 2019 15:36:07 -0400 +Subject: [PATCH 1/1] Makefile: Change compile options for Fedora RPM package + +--- + Makefile | 6 +++--- + dinit.c | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index 88305ce..aae1916 100644 +--- a/Makefile ++++ b/Makefile +@@ -42,7 +42,7 @@ TERMFLAG = + # Uncomment the following line if you want to have access to the game + # debugging tool. This is invoked by typing "gdt". It is not much + # use except for debugging. +-GDTFLAG = -DALLOW_GDT ++# GDTFLAG = -DALLOW_GDT + + # Compilation flags + CFLAGS = -g #-static +@@ -69,7 +69,7 @@ dungeon: $(OBJS) dtextc.dat + $(CC) $(CFLAGS) -o zork $(OBJS) $(LIBS) + + install: zork dtextc.dat +- mkdir -p $(BINDIR) $(LIBDIR) $(MANDIR)/man6 ++ mkdir -p $(BINDIR) $(DATADIR) $(LIBDIR) $(MANDIR)/man6 + cp zork $(BINDIR) + cp dtextc.dat $(DATADIR) + cp dungeon.6 $(MANDIR)/man6/ +@@ -93,7 +93,7 @@ local.o: local.c funcs.h vars.h + $(CC) $(CFLAGS) $(GDTFLAG) -c local.c + + supp.o: supp.c funcs.h vars.h +- $(CC) $(CFLAGS) $(TERMFLAG) -c supp.c ++ $(CC) $(CFLAGS) $(TERMFLAG) -c supp.c + + actors.o: funcs.h vars.h + ballop.o: funcs.h vars.h +diff --git a/dinit.c b/dinit.c +index d687cf4..cda5878 100644 +--- a/dinit.c ++++ b/dinit.c +@@ -24,7 +24,7 @@ FILE *dbfile; + #define TEXTFILE "lib:dtextc.dat" + #else /* ! __AMOS__ */ + #ifdef unix +-#define TEXTFILE "/usr/games/lib/dunlib/dtextc.dat" ++#define TEXTFILE "/usr/share/zork/dtextc.dat" + #else /* ! unix */ + I need a definition for TEXTFILE + #endif /* ! unix */ +-- +2.20.1 + diff --git a/zork.spec b/zork.spec new file mode 100644 index 0000000..b0afda1 --- /dev/null +++ b/zork.spec @@ -0,0 +1,67 @@ +Name: zork +Version: 1.0.2 +Release: 3%{?dist} +Summary: Public Domain original DUNGEON game (Zork I) + +License: Public Domain +URL: https://github.com/devshane/zork +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +Patch0: zork-tweak-makefile.patch + +BuildRequires: gcc +BuildRequires: make +BuildRequires: ncurses-devel + + +%description +Public Domain source code to the original DUNGEON game (Zork I). Released to +the PD by Infocom. Includes source files, headers, and information. + +This version of Dungeon was modified from FORTRAN to C. The original was +written in DEC FORTRAN, translated from MDL. It was then translated to f77 for +UN*X systems, from which it was translated to C. The C translation was done +with the help of f2c, the FORTRAN to C translator written by David Gay (AT&T +Bell Labs), Stu Feldman (Bellcore), Mark Maimone (Carnegie-Mellon University), +and Norm Schryer (AT&T Bell Labs). + + +%prep +%global _hardened_build 1 +%autosetup + +%build +%make_build \ + CFLAGS="%{optflags}" \ + DATADIR="%{_datadir}/%{name}" \ + LDFLAGS="%{__global_ldflags}" + +%install +%make_install \ + BINDIR="%{buildroot}%{_bindir}" \ + DATADIR="%{buildroot}%{_datadir}/%{name}/" \ + LIBDIR="%{buildroot}%{_datadir}" \ + MANDIR="%{buildroot}%{_mandir}" +echo ".so dungeon.6" > %{buildroot}%{_mandir}/man6/zork.6 + + +%files +%doc history +%doc README.md +%license readme.txt +%{_bindir}/%{name} +%{_datadir}/%{name}/dtextc.dat +%{_mandir}/man6/dungeon.6.gz +%{_mandir}/man6/zork.6* + + +%changelog +* Tue Mar 03 2020 Justin W. Flory - 1.0.2-3 +- Add manpage alias for zork, to match binary executable +- Add upstream 'history' file as a doc + +* Tue Apr 30 2019 Justin W. Flory - 1.0.2-2 +- Use Fedora CFLAGS during compilation + +* Mon Apr 29 2019 Justin W. Flory - 1.0.2-1 +- First zork package From a9800045b39c7b3b4d2a9af2ef1c7c636d711f88 Mon Sep 17 00:00:00 2001 From: "Justin W. Flory" Date: Mon, 23 Mar 2020 08:21:26 -0400 Subject: [PATCH 4/6] Add package sources uploaded to lookaside cache Signed-off-by: Justin W. Flory --- .gitignore | 1 + sources | 1 + 2 files changed, 2 insertions(+) create mode 100644 .gitignore create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a47086 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zork-1.0.2.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..e94e59b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zork-1.0.2.tar.gz) = ad18132176f25a21f9f7f71f38c328653db7e2cd7952effc869cf3d43ae0fa79e7e30b5af3cff3da3efc5704e5b5366be0372e9e41ae5bc4e78a62d4712f02fc From 3152961ae865504413cee7e5e41944d2d0263b5d Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Thu, 24 Sep 2020 16:13:24 +0000 Subject: [PATCH 5/6] remove package.cfg per new epel-playground policy --- package.cfg | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 package.cfg diff --git a/package.cfg b/package.cfg deleted file mode 100644 index 66ea79d..0000000 --- a/package.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[koji] -targets = epel8 epel8-playground \ No newline at end of file From f306d7cefaec204a1b21f2a8d41a036ee3633ba8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 09:43:05 +0000 Subject: [PATCH 6/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild