1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{ver_maj}.%{ver_min}
12 groups = Development/Tools
13 url = http://www.cmake.org
15 summary = Cross-platform make system.
18 CMake is used to control the software compilation process using simple \
19 platform and compiler independent configuration files. CMake generates \
20 native makefiles and workspaces that can be used in the compiler \
21 environment of your choice. CMake is quite sophisticated: it is possible \
22 to support complex environments requiring system configuration, pre-processor \
23 generation, code generation, and template instantiation.
26 source_dl = http://www.cmake.org/files/v%{ver_maj}/
33 jsoncpp-devel >= 1.4.1
34 libarchive-devel >= 3.1.0
44 PARALLELISMFLAGS = -j4
48 cd build && ../bootstrap \
50 --datadir=/share/cmake \
51 --docdir=/share/doc/cmake-%{version} \
54 --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
56 make VERBOSE=1 %{PARALLELISMFLAGS}
59 # The following tests FAILED:
60 # 5 - kwsys.testSystemTools (Failed)
61 # 327 - RunCMake.FileAPI (Failed)
63 # cd build && bin/ctest -V -E ModuleNotices
67 cd build && make install DESTDIR=%{BUILDROOT}
69 # Install pakfire macro.
70 mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
71 install -v -m 644 %{DIR_SOURCE}/cmake.macro \
72 %{BUILDROOT}/usr/lib/pakfire/macros
79 package %{name}-debuginfo