%global commit ea28c44134a11b451891e4a9bd9391e1d086958c %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ascii-patrol Version: 1.4 Release: 1%{?dist} Summary: An ASCII game project which was mainly inspired by Moon Patrol License: GPLv3 URL: http://ascii-patrol.com/ Source0: https://github.com/msokalski/ascii-patrol/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: libX11-devel BuildRequires: libXi-devel BuildRequires: pulseaudio-libs-devel # It is required for highscores table support Requires: curl %description Ascii Patrol is an ASCII game project. It was mainly inspired by "Moon Patrol". %prep %autosetup -n %{name}-%{commit} # Fix Makefile sed -i 's/CXXFLAGS = -Wno-multichar -O3 -D NIX/CXXFLAGS += -D NIX/' \ Makefile sed -i 's/LDFLAGS = -pthread/LDFLAGS += -pthread/' Makefile %build %set_build_flags %make_build %install # Install binary install -d %{buildroot}%{_bindir} install -m 755 asciipat %{buildroot}%{_bindir} %files %{_bindir}/asciipat %license LICENSE %doc README.md %changelog * Wed May 8 2019 Andrea Musuruane - 1.4-1 - First release