3 %bcond_with bootstrap # use internal versions of some libraries
5 Summary: Cross-platform, open-source make system
6 Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach
11 Group: Development/Building
12 Source0: http://www.cmake.org/files/v2.6/%{name}-%{version}.tar.gz
13 # Source0-md5: e95ae003672dfc6c8151a1ee49a0d4a6
14 Patch1: %{name}-lib64.patch
15 URL: http://www.cmake.org/HTML/Index.html
16 BuildRequires: libstdc++-devel
17 BuildRequires: ncurses-devel
18 BuildRequires: rpmbuild(macros) >= 1.167
19 %{!?with_bootstrap:BuildRequires: xmlrpc-c-devel}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 CMake is used to control the software compilation process using simple
24 platform and compiler independent configuration files. CMake generates
25 native makefiles and workspaces that can be used in the compiler
26 environment of your choice. CMake is quite sophisticated: it is
27 possible to support complex environments requiring system
28 configuration, pre-processor generation, code generation, and template
31 %description -l pl.UTF-8
32 CMake służy do sterowania procesem kompilacji oprogramowania przy
33 użyciu prostych plików konfiguracyjnych niezależnych od platformy i
34 kompilatora. CMake generuje natywne pliki makefile i workspace,
35 których można używać w wybranym środowisku kompilatora. CMake jest
36 dość przemyślany: może obsłużyć złożone środowiska wymagające
37 konfiguracji systemu, generowanie preprocesora, generowanie kodu i
38 dziedziczenie szablonów.
42 %if "%{_lib}" == "lib64"
46 cat > "init.cmake" <<EOF
47 SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE)
48 SET (CMAKE_AR "%{__ar}" CACHE FILEPATH " " FORCE)
54 export CFLAGS="%{rpmcflags}"
55 export CXXFLAGS="%{rpmcxxflags}"
56 export LDFLAGS="%{rpmldflags}"
60 --datadir=/share/cmake \
62 %{!?with_bootstrap:--system-libs} \
68 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc ChangeLog.* Copyright.txt *.gif Docs/{cmake,ctest}.{txt,html}
81 %attr(755,root,root) %{_bindir}/ccmake
82 %attr(755,root,root) %{_bindir}/cmake
83 %attr(755,root,root) %{_bindir}/cpack
84 %attr(755,root,root) %{_bindir}/ctest