From 97bd934a72eb56934be1b5c04134327343c21f07 Mon Sep 17 00:00:00 2001 From: Andrea Musuruane Date: Jul 16 2017 18:40:08 +0000 Subject: Initial import (#1468830) --- diff --git a/.gitignore b/.gitignore index e69de29..80968b0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/abbayedesmorts-gpl-2.0.1-9ce56f6.tar.gz diff --git a/abbaye.appdata.xml b/abbaye.appdata.xml new file mode 100644 index 0000000..d31ce4b --- /dev/null +++ b/abbaye.appdata.xml @@ -0,0 +1,34 @@ + + + + abbaye.desktop + CC-BY-SA-3.0 + GPL-3.0 and CC-BY-3.0 + Abbaye des Morts + Indie platform game by Locomalito + +

+ In the 13th century, the Cathars, who preach about good Christian beliefs, + were being expelled by the Catholic Church out of the Languedoc region in + France. +

+

+ One of them, called Jean Raymond, found an old church in which to hide, not + knowing that beneath its ruins lay buried an ancient evil. +

+

+ A style close to Spectrum ZX, with its dark background and bright colors, + proper fit with the story, because it does look old and somewhat horrifying. + Also, the gameplay is direclty inspired by Manic Miner and Jet Set Willy. +

+
+ + + https://raw.githubusercontent.com/nevat/abbayedesmorts-gpl/master/screenshots/title.png + + + https://raw.githubusercontent.com/nevat/abbayedesmorts-gpl/master/screenshots/ingame.png + + + https://github.com/nevat/abbayedesmorts-gpl +
diff --git a/abbayedesmorts-gpl-2.0.1-ldflags.patch b/abbayedesmorts-gpl-2.0.1-ldflags.patch new file mode 100644 index 0000000..a9c54c1 --- /dev/null +++ b/abbayedesmorts-gpl-2.0.1-ldflags.patch @@ -0,0 +1,20 @@ +diff -dur abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5.orig/Makefile abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5/Makefile +--- abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5.orig/Makefile 2017-07-09 02:00:41.000000000 +0200 ++++ abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5/Makefile 2017-07-15 18:57:15.055808369 +0200 +@@ -2,6 +2,7 @@ + + CC?= gcc + CFLAGS?= -O2 -finline-functions -funswitch-loops -fgcse-after-reload -fpredictive-commoning -ftree-vectorize ++LDFLAGS?= -Wl,-z,relro + + CFLAGS+= `sdl2-config --cflags` -DDATADIR="\"$(PREFIX)/share/abbayev2\"" + LIBS= `sdl2-config --libs` -lSDL2_image -lSDL2_mixer -lm +@@ -21,7 +22,7 @@ + all: $(PROG) + + $(PROG): $(SRCS) +- $(CC) $(CFLAGS) $(SRCS) -o $(PROG) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG) $(LIBS) + + clean: + rm -f ./abbayev2 diff --git a/abbayedesmorts-gpl.spec b/abbayedesmorts-gpl.spec new file mode 100644 index 0000000..959187c --- /dev/null +++ b/abbayedesmorts-gpl.spec @@ -0,0 +1,81 @@ +%global commit 9ce56f69dec5e185058508cb924b1f597a1380e5 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: abbayedesmorts-gpl +Version: 2.0.1 +Release: 3.20170709git%{?dist} +Summary: Platform game set in 13th century + +# Graphics and Sounds are licensed under +# Creative Commons 3.0 Attribution license. +License: GPLv3 and CC-BY +# Original Windows game by locomalito +# https://locomalito.com/abbaye_des_morts.php +URL: https://github.com/nevat/abbayedesmorts-gpl +Source0: https://github.com/nevat/abbayedesmorts-gpl/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Source1: abbaye.appdata.xml +Patch0: %{name}-2.0.1-ldflags.patch + +BuildRequires: SDL2-devel +BuildRequires: SDL2_mixer-devel +BuildRequires: SDL2_image-devel +BuildRequires: libappstream-glib +BuildRequires: desktop-file-utils + +%description +In the 13th century, the Cathars, who preach about good Christian beliefs, +were being expelled by the Catholic Church out of the Languedoc region in +France. + +One of them, called Jean Raymond, found an old church in which to hide, not +knowing that beneath its ruins lay buried an ancient evil. + +A style close to Spectrum ZX, with its dark background and bright colors, +proper fit with the story, because it does look old and somewhat horrifying. +Also, the gameplay is directly inspired by Manic Miner and Jet Set Willy. + + +%prep +%autosetup -n %{name}-%{commit} + + +%build +export CFLAGS="%{optflags}" +export LDFLAGS="%{__global_ldflags}" +make %{?_smp_mflags} + + +%install +%make_install + +# Validate desktop file +desktop-file-validate %{buildroot}%{_datadir}/applications/abbaye.desktop + +# Install AppData file +install -d %{buildroot}%{_datadir}/appdata +install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/abbaye.appdata.xml + + +%files +%{_bindir}/abbayev2 +%{_datadir}/abbayev2 +%{_datadir}/appdata/abbaye.appdata.xml +%{_datadir}/applications/abbaye.desktop +%{_datadir}/pixmaps/abbaye.png +%doc ReadMe.md ChangeLog.md screenshots +%license COPYING + + +%changelog +* Sat Jul 15 2017 Andrea Musuruane - 2.0.1-3.20170709git +- Fixed AppData file +- Fixed LDFLAGS usage + +* Thu Jul 13 2017 Andrea Musuruane - 2.0.1-2.20170709git +- Updated to new upstream post-release +- Added missing BR + +* Sat Jul 08 2017 Andrea Musuruane - 2.0.1-1 +- First release + diff --git a/sources b/sources index e69de29..c6638ae 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (abbayedesmorts-gpl-2.0.1-9ce56f6.tar.gz) = bfd9c295c3078d61c0cf774a6472c4462ce3e02b85dd0f617e487193278de7cb8a07f24bc4083f918d6142e086b4e8ee63c29d7fcb6eb2015456af5383b2e143