]>
Commit | Line | Data |
---|---|---|
c8dfe941 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
c8dfe941 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = cmake |
c3996e92 | 7 | version = %{ver_maj}.%{ver_min} |
952ebb4a MT |
8 | ver_maj = 3.25 |
9 | ver_min = 0 | |
166a2650 | 10 | release = 1 |
c8dfe941 | 11 | |
802ea3af | 12 | groups = Development/Tools |
952ebb4a | 13 | url = https://www.cmake.org |
802ea3af MT |
14 | license = BSD |
15 | summary = Cross-platform make system. | |
8ffa5459 | 16 | |
802ea3af | 17 | description |
f1e06ebc SS |
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 | |
c8dfe941 | 23 | generation, code generation, and template instantiation. |
802ea3af | 24 | end |
c8dfe941 | 25 | |
952ebb4a | 26 | source_dl = https://www.cmake.org/files/v%{ver_maj}/ |
166a2650 | 27 | |
802ea3af MT |
28 | build |
29 | requires | |
c3996e92 | 30 | bzip2-devel |
802ea3af MT |
31 | expat-devel |
32 | gcc-c++ | |
4fef5f19 MT |
33 | jsoncpp-devel >= 1.4.1 |
34 | libarchive-devel >= 3.1.0 | |
802ea3af | 35 | libcurl-devel |
4fef5f19 | 36 | libuv-devel >= 1.10.0 |
802ea3af MT |
37 | ncurses-devel |
38 | openssl-devel | |
4fef5f19 | 39 | rhash-devel |
c3996e92 | 40 | xz-devel |
802ea3af MT |
41 | zlib-devel |
42 | end | |
c8dfe941 | 43 | |
802ea3af MT |
44 | build |
45 | mkdir -pv build | |
46 | cd build && ../bootstrap \ | |
4fef5f19 | 47 | --prefix=%{prefix} \ |
c8dfe941 | 48 | --datadir=/share/cmake \ |
802ea3af | 49 | --docdir=/share/doc/cmake-%{version} \ |
c8dfe941 MT |
50 | --mandir=/share/man \ |
51 | --system-libs \ | |
802ea3af MT |
52 | --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
53 | ||
54 | make VERBOSE=1 %{PARALLELISMFLAGS} | |
55 | end | |
c8dfe941 | 56 | |
4fef5f19 MT |
57 | # The following tests FAILED: |
58 | # 5 - kwsys.testSystemTools (Failed) | |
59 | # 327 - RunCMake.FileAPI (Failed) | |
60 | #test | |
61 | # cd build && bin/ctest -V -E ModuleNotices | |
62 | #end | |
c8dfe941 | 63 | |
802ea3af MT |
64 | install |
65 | cd build && make install DESTDIR=%{BUILDROOT} | |
66 | end | |
67 | end | |
c8dfe941 | 68 | |
802ea3af MT |
69 | packages |
70 | package %{name} | |
1f9bc2f0 MT |
71 | |
72 | package %{name}-debuginfo | |
73 | template DEBUGINFO | |
74 | end | |
802ea3af | 75 | end |