From dcac0e354a9a58c8cf34b11294ac30ead1a8da14 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 14 Oct 2010 07:27:17 +0000 Subject: [PATCH] - dropped outdated/unsupported/unmaintained frame-pointer patch - restored svgalib BR - pass CMAKE_C_FLAGS_RELEASE to avoid overriding our optflags by -O3 Changed files: allegro.spec -> 1.81 --- allegro.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/allegro.spec b/allegro.spec index 68c610f..fcc1b12 100644 --- a/allegro.spec +++ b/allegro.spec @@ -28,8 +28,7 @@ Group: Libraries Source0: http://downloads.sourceforge.net/alleg/%{name}-%{version}.tar.gz # Source0-md5: 0f1cfff8f2cf88e5c91a667d9fd386ec Patch0: %{name}-info.patch -#Patch1: %{name}-frame-pointer.patch -Patch2: %{name}-config.patch +Patch1: %{name}-config.patch URL: http://alleg.sourceforge.net/ BuildRequires: OpenGL-GLU-devel BuildRequires: OpenGL-devel @@ -41,7 +40,7 @@ BuildRequires: libpng-devel BuildRequires: libstdc++-devel BuildRequires: libvorbis-devel BuildRequires: pkgconfig -#%{?with_svga:BuildRequires: svgalib-devel} +%{?with_svga:BuildRequires: svgalib-devel} BuildRequires: texinfo BuildRequires: xorg-lib-libX11-devel BuildRequires: xorg-lib-libXcursor-devel @@ -327,14 +326,14 @@ biblioteki allegro. %prep %setup -q %patch0 -p1 -#%%patch1 -p1 -%patch2 -p1 +%patch1 -p1 %build install -d build cd build %cmake .. \ -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ + -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=1 \ -DMANDIR=%{_mandir} \ -- 2.44.0