forked from pool/csmash
This commit is contained in:
parent
c74c5c9699
commit
99de833c6f
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 23 18:49:59 CET 2007 - lmichnovic@suse.cz
|
||||||
|
|
||||||
|
- forcing use of CXXFLAGS for compilation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 7 17:43:22 CEST 2006 - lmichnovic@suse.cz
|
Mon Aug 7 17:43:22 CEST 2006 - lmichnovic@suse.cz
|
||||||
|
|
||||||
|
17
csmash.spec
17
csmash.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package csmash (Version 0.6.6)
|
# spec file for package csmash (Version 0.6.6)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
Name: csmash
|
Name: csmash
|
||||||
BuildRequires: SDL_image-devel SDL_mixer-devel gcc-c++ gtk1-compat-devel libdrm-devel update-desktop-files xorg-x11-devel
|
BuildRequires: SDL_image-devel SDL_mixer-devel gcc-c++ gtk1-compat-devel libdrm-devel update-desktop-files xorg-x11-devel
|
||||||
License: GPL
|
License: GNU General Public License (GPL)
|
||||||
Group: Amusements/Games/3D/Other
|
Group: Amusements/Games/3D/Other
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 0.6.6
|
Version: 0.6.6
|
||||||
Release: 16
|
Release: 60
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: danslatristesse2-48.ogg
|
Source1: danslatristesse2-48.ogg
|
||||||
Source2: %name.desktop
|
Source2: %name.desktop
|
||||||
@ -53,15 +53,16 @@ gettextize -f
|
|||||||
aclocal -I m4
|
aclocal -I m4
|
||||||
autoreconf --force --install
|
autoreconf --force --install
|
||||||
automake
|
automake
|
||||||
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
%if "%(xft-config --prefix)" == "/usr"
|
%if "%(xft-config --prefix)" == "/usr"
|
||||||
CXXFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir} \
|
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir} \
|
||||||
--x-includes=/usr/include --x-libraries=/usr/%_lib
|
--x-includes=/usr/include --x-libraries=/usr/%_lib
|
||||||
%else
|
%else
|
||||||
CXXFLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir}
|
./configure --prefix=%{_prefix} --datadir=%{_datadir} --bindir=%{_bindir}
|
||||||
%endif
|
%endif
|
||||||
make %{?jobs:-j%jobs}
|
# it is needed to call CXXFLAGS together with make
|
||||||
|
# it is not sufficient to export them only
|
||||||
|
make %{?jobs:-j%jobs} CXXFLAGS="-I/usr/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT $RPM_OPT_FLAGS"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
@ -79,7 +80,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc README README.jp AUTHORS COPYING CREDITS INSTALL NEWS ChangeLog
|
%doc README README.jp AUTHORS COPYING CREDITS INSTALL NEWS ChangeLog
|
||||||
/usr/share/applications/%name.desktop
|
/usr/share/applications/%name.desktop
|
||||||
|
|
||||||
%changelog -n csmash
|
%changelog
|
||||||
|
* Fri Mar 23 2007 - lmichnovic@suse.cz
|
||||||
|
- forcing use of CXXFLAGS for compilation
|
||||||
* Mon Aug 07 2006 - lmichnovic@suse.cz
|
* Mon Aug 07 2006 - lmichnovic@suse.cz
|
||||||
- using gettextize -f to fix not expanding macro MKINSTALLDIRS
|
- using gettextize -f to fix not expanding macro MKINSTALLDIRS
|
||||||
* Fri Jul 28 2006 - lmichnovic@suse.cz
|
* Fri Jul 28 2006 - lmichnovic@suse.cz
|
||||||
|
Loading…
Reference in New Issue
Block a user