From 5f074a44240c5ad070bc5d54e8d668d38a4e8cf0 Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Sep 13 2019 14:29:36 +0000 Subject: restructure files to remain below github limit of 1000 entries --- diff --git a/2048-cli-link-against-correct-curses-lib.patch b/2048-cli-link-against-correct-curses-lib.patch new file mode 100644 index 0000000..ffb2f55 --- /dev/null +++ b/2048-cli-link-against-correct-curses-lib.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 0003ea0..0d566d1 100644 +--- a/Makefile ++++ b/Makefile +@@ -11,7 +11,7 @@ FILTERED_C_FILES := $(filter-out src/gfx%.c src/merge%.c, $(C_FILES)) + all: terminal + + curses: $(FILTERED_C_FILES) src/gfx_curses.c +- $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lcurses ++ $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_curses.c -o $(PROGRAM) $(LDFLAGS) -lncurses + + terminal: $(FILTERED_C_FILES) src/gfx_terminal.c + $(CC) $(CFLAGS) $(FILTERED_C_FILES) $(MERGE_FILE) src/gfx_terminal.c -o $(PROGRAM) $(LDFLAGS) diff --git a/2048-cli-use-proper-gettext-header.patch b/2048-cli-use-proper-gettext-header.patch new file mode 100644 index 0000000..01409bc --- /dev/null +++ b/2048-cli-use-proper-gettext-header.patch @@ -0,0 +1,13 @@ +diff --git a/src/gfx_curses.c b/src/gfx_curses.c +index 0a2682f..f7791de 100644 +--- a/src/gfx_curses.c ++++ b/src/gfx_curses.c +@@ -3,7 +3,7 @@ + #include + #include "gfx.h" + #include "merge.h" +-#include ++#include + #include + + #define NUMBER_OF_COLORS 7 diff --git a/2048-cli.changes b/2048-cli.changes new file mode 100644 index 0000000..1b5b96d --- /dev/null +++ b/2048-cli.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 17 15:05:08 UTC 2019 - Jan Engelhardt + +- Generalize description, and adjust summary grammar. + +------------------------------------------------------------------- +Mon Jan 14 19:31:51 UTC 2019 - mardnh@gmx.de + +- Initial package, version 0.9.1+git.20181118 diff --git a/2048-cli.spec b/2048-cli.spec new file mode 100644 index 0000000..7330202 --- /dev/null +++ b/2048-cli.spec @@ -0,0 +1,59 @@ +# +# spec file for package 2048-cli +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019, Martin Hauke +# +# 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/ +# + + +Name: 2048-cli +Version: 0.9.1+git.20181118 +Release: 0 +Summary: A CLI version of the "2048" game +License: MIT +Group: Amusements/Games/Strategy/Other +URL: https://github.com/tiehuis/2048-cli +#Git-Clone: https://github.com/tiehuis/2048-cli.git +Source: %{name}-%{version}.tar.xz +Patch0: 2048-cli-use-proper-gettext-header.patch +Patch1: 2048-cli-link-against-correct-curses-lib.patch +BuildRequires: ncurses-devel + +%description +2048 is a mathematics-based puzzle game where the player has to slide +tiles on a grid to combine them and create a tile with the number 2048. +The player has to merge the similar number tiles (2n) by moving the arrow +keys in four different directions. When two tiles with the same number +touch, they will merge into one. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +export CFLAGS="%{optflags} $(pkg-config --cflags ncurses)" +make curses %{?_smp_mflags} + +%install +install -Dpm 0755 2048 %{buildroot}%{_bindir}/2048-cli +install -Dpm 0644 man/2048.6 %{buildroot}%{_mandir}/man6/2048-cli.6 + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{name} +%{_mandir}/man6/%{name}.6%{?ext_man} + +%changelog diff --git a/_service b/_service new file mode 100644 index 0000000..7194204 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/tiehuis/2048-cli.git + master + git + enable + v(.*) + @PARENT_TAG@+git.%cd + + + *.tar + xz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..91530db --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/tiehuis/2048-cli.git + 0e81799f0281890770996b6fc6b107b95e6d0369 \ No newline at end of file