properly apply CFLAGS, without clobbering the Makefile-preset
This commit is contained in:
parent
914d6e8b0d
commit
85bf0ca4f8
1 changed files with 9 additions and 8 deletions
|
|
@ -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 <fedora@besser82.io> - 0.9.1-0.2.git20151229.4520781
|
||||
- properly apply CFLAGS, without clobbering the Makefile-preset
|
||||
|
||||
* Tue Mar 29 2016 Björn Esser <fedora@besser82.io> - 0.9.1-0.1.git20151229.4520781
|
||||
- update to new snapshot git20151229.4520781
|
||||
- handle %%license and %%doc properly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue