[fann/el6] Add patch to check for older CMake to build on EL-6
Tomas Smetana
tsmetana at fedoraproject.org
Tue Oct 8 14:44:24 UTC 2013
commit 5434439e619ba06364fccf24371cfef516e166de
Author: Tomas Smetana <tsmetana at redhat.com>
Date: Tue Oct 8 16:44:09 2013 +0200
Add patch to check for older CMake to build on EL-6
fann-2.2.0-oldcmake.patch | 11 +++++++++++
fann.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/fann-2.2.0-oldcmake.patch b/fann-2.2.0-oldcmake.patch
new file mode 100644
index 0000000..60284d7
--- /dev/null
+++ b/fann-2.2.0-oldcmake.patch
@@ -0,0 +1,11 @@
+diff -up FANN-2.2.0-Source/CMakeLists.txt.oldcmake FANN-2.2.0-Source/CMakeLists.txt
+--- FANN-2.2.0-Source/CMakeLists.txt.oldcmake 2013-10-08 13:10:58.660711474 +0200
++++ FANN-2.2.0-Source/CMakeLists.txt 2013-10-08 13:11:06.912673977 +0200
+@@ -1,6 +1,6 @@
+ PROJECT (FANN)
+ #SET(CMAKE_VERBOSE_MAKEFILE ON)
+-cmake_minimum_required(VERSION 2.8)
++cmake_minimum_required(VERSION 2.6)
+
+ SET(CMAKE_MODULE_PATH
+ ${CMAKE_SOURCE_DIR}/cmake/Modules
diff --git a/fann.spec b/fann.spec
index c61ecc1..c5e13eb 100644
--- a/fann.spec
+++ b/fann.spec
@@ -1,7 +1,7 @@
Summary: A fast artificial neural network library
Name: fann
Version: 2.2.0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: LGPLv2+
Group: Development/Libraries
URL: http://fann.sf.net/
@@ -9,6 +9,7 @@ Source: http://downloads.sourceforge.net/fann/fann/2.2.0/FANN-%{version}-Sou
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: cmake
Patch0: fann-2.2.0-pkgconfig.patch
+Patch1: fann-2.2.0-oldcmake.patch
%description
@@ -29,6 +30,7 @@ based on the FANN library.
%prep
%setup -q -n FANN-%{version}-Source
%patch0 -p1
+%patch1 -p1
LIBS=-lm
export LIBS
@@ -74,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/*.h
%changelog
+* Tue Oct 08 2013 Tomas Smetana <tsmetana at redhat.com> - 2.2.0-5
+- Add patch to check for older CMake to build on EL-6
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list