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(zlib)
17 BuildRequires: ncurses-devel
18 BuildRequires: gcc-c++
21 CMake is used to control the software compilation process using simple platform
22 and compiler independent configuration files. CMake generates native makefiles
23 and workspaces that can be used in the compiler environment of your choice.
24 CMake is quite sophisticated: it is possible to support complex environments
25 requiring system configuration, pre-processor generation, code generation, and
26 template instantiation.
30 %setup -q -n cmake-%{version}
34 export CXXFLAGS="$RPM_OPT_FLAGS"
35 export CFLAGS="$CXXFLAGS"
38 --datadir=/share/%{name} \
39 --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