5 Summary: Cross-platform, open-source make system
10 Group: Development/Other
12 Url: http://www.cmake.org/HTML/Index.html
13 Source0: CMake%{version}-src-unix.tar.bz2
14 Patch0: cmake-ncurses.patch
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
22 possible to support complex environments requiring system
23 configuration, pre-processor generation, code generation, and template
27 %setup -q -n CMake-%version
31 CXXFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
34 CXXFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
37 rm -rf $RPM_BUILD_ROOT
38 %{__make} install DESTDIR=$RPM_BUILD_ROOT
39 mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT/%_datadir/
40 bzip2 $RPM_BUILD_ROOT/%_datadir/man/man1/*
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %doc ChangeLog.txt *.pdf *.rtf Copyright.txt *.gif
53 %_datadir/CMake/Modules
54 %_datadir/CMake/Templates