5 Summary: Cross-platform make system
6 Url: http://www.cmake.org
7 Group: Platfrom Development/Tools
8 Source0: http://www.cmake.org/files/v2.8/cmake-%{version}.tar.gz
10 Source2: TizenCommon.cmake
11 Source1001: cmake.manifest
13 BuildRequires: expat-devel
14 BuildRequires: pkgconfig(libarchive) >= 2.8.0
15 BuildRequires: pkgconfig(libcurl)
16 BuildRequires: pkgconfig(zlib)
18 BuildRequires: ncurses-devel
19 BuildRequires: gcc-c++
22 CMake is used to control the software compilation process using simple platform
23 and compiler independent configuration files. CMake generates native makefiles
24 and workspaces that can be used in the compiler environment of your choice.
25 CMake is quite sophisticated: it is possible to support complex environments
26 requiring system configuration, pre-processor generation, code generation, and
27 template instantiation.
31 %setup -q -n cmake-%{version}
35 export CXXFLAGS="$RPM_OPT_FLAGS"
36 export CFLAGS="$CXXFLAGS"
39 --datadir=/share/%{name} \
40 --docdir=/share/doc/packages/%{name} \
45 %__make VERBOSE=1 %{?_smp_mflags}
49 mkdir -p %{buildroot}%{_libdir}/%{name}
50 find %{buildroot}%{_datadir}/%{name} -type f -print0 | xargs -0 chmod 644
51 cp %{SOURCE2} %{buildroot}%{_datadir}/%{name}/Modules
53 # Install cmake rpm macros
54 install -D -p -m 0644 %{S:1} \
55 %{buildroot}%{_sysconfdir}/rpm/macros.cmake
57 fdupes %{buildroot}%{_datadir}/%{name}
62 %manifest %{name}.manifest
63 %defattr(-,root,root,-)
64 %config(noreplace) %{_sysconfdir}/rpm/macros.cmake
65 %doc %{_datadir}/doc/packages/%{name}
66 %{_datadir}/aclocal/cmake.m4