From 85bf0ca4f8f5390dafb081207ea7413f67068668 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Mar 29 2016 14:54:47 +0000 Subject: properly apply CFLAGS, without clobbering the Makefile-preset --- diff --git a/2048-cli.spec b/2048-cli.spec index 5b2c030..082a8bd 100644 --- a/2048-cli.spec +++ b/2048-cli.spec @@ -16,7 +16,7 @@ Name: 2048-cli Version: 0.9.1 -Release: 0.1%{?gitrel}%{?dist} +Release: 0.2%{?gitrel}%{?dist} Summary: The game 2048 for your Linux terminal %{?el5:Group: Amusements/Games} @@ -63,21 +63,19 @@ A SDL version of the game 2048 for your Linux terminal. %build -%{__make} %{?_smp_mflags} terminal \ - CFLAGS='%{optflags}' LDFLAGS='%{?__global_ldflags}' +%configure || : +%{__make} %{?_smp_mflags} terminal %{__mv} -f 2048 2048nc -%{__make} %{?_smp_mflags} sdl \ - CFLAGS='%{optflags}' LDFLAGS='%{?__global_ldflags}' +%{__make} %{?_smp_mflags} sdl %{__mv} -f 2048 2048sdl -%{__make} %{?_smp_mflags} curses \ - CFLAGS='%{optflags}' LDFLAGS='%{?__global_ldflags}' +%{__make} %{?_smp_mflags} curses %install %{?el5:%{__rm} -rf %{buildroot}} # There is no install-target in Makefile. -%{__mkdir} -p %{buildroot}%{_bindir} \ +%{__mkdir} -p %{buildroot}%{_bindir} \ %{buildroot}%{_mandir}/man1 \ %{buildroot}%{_pkgdocdir} %{__install} -pm 0755 2048 2048nc 2048sdl %{buildroot}%{_bindir} @@ -116,6 +114,9 @@ A SDL version of the game 2048 for your Linux terminal. %changelog +* Tue Mar 29 2016 Björn Esser - 0.9.1-0.2.git20151229.4520781 +- properly apply CFLAGS, without clobbering the Makefile-preset + * Tue Mar 29 2016 Björn Esser - 0.9.1-0.1.git20151229.4520781 - update to new snapshot git20151229.4520781 - handle %%license and %%doc properly