]> git.pld-linux.org Git - packages/autopano-sift-C.git/commitdiff
- use Release build type (pass appropriate C_FLAGS and CXX_FLAGS to cmake - both...
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 31 Oct 2010 08:57:57 +0000 (08:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autopano-sift-C.spec -> 1.6

autopano-sift-C.spec

index 70ba28735c61cb145b4320ea1b867e5c3aa55227..d3bd2e19504db8bd183a455a836a193f786e2eaf 100644 (file)
@@ -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"
This page took 0.059975 seconds and 4 git commands to generate.