From 2d26cd0cf508b3cb70cf5c01df8f254c2161e82c Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 31 Oct 2010 08:57:57 +0000 Subject: [PATCH] - use Release build type (pass appropriate C_FLAGS and CXX_FLAGS to cmake - both C and C++ are used) Changed files: autopano-sift-C.spec -> 1.6 --- autopano-sift-C.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/autopano-sift-C.spec b/autopano-sift-C.spec index 70ba287..d3bd2e1 100644 --- a/autopano-sift-C.spec +++ b/autopano-sift-C.spec @@ -5,10 +5,10 @@ Version: 2.5.1 Release: 1 License: GPL v2, but SIFT algorithm may require license in some countries Group: Applications/Graphics -Source0: http://dl.sourceforge.net/hugin/%{name}-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.gz # Source0-md5: b9bade07e8c4f2ea383c22a082c260e0 URL: http://wiki.panotools.org/Autopano-sift-C -BuildRequires: cmake +BuildRequires: cmake >= 2.4 BuildRequires: libjpeg-devel BuildRequires: libpano13-devel BuildRequires: libpng-devel @@ -57,16 +57,15 @@ obrazu, co pomaga przy zdjęciach obiektywami szerokokątnymi lub %prep %setup -q -# don't override our optflags with cmake-predefined values -sed -i 's/NOT CMAKE_BUILD_TYPE/GFY/' CMakeLists.txt - %build install -d build cd build # CMAKE_AR is a hack, cmake is unable to find it otherwise :/ %cmake .. \ -DCMAKE_AR=/usr/bin/ar \ - %{?debug:-DCMAKE_BUILD_TYPE=Debug} \ + -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:Release} \ + -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ + -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ %if "%{_lib}" == "lib64" -- 2.44.0