2 # - any valid CMAKE_BUILD_TYPE causes overriding of our optflags
3 # (and default non-verbose makefiles are hiding it!)
4 # - rpmldflags/rpmcppflags are not passed through %%cmake macro at all
5 # (is there any standard way???)
8 %bcond_with bootstrap # use internal versions of some libraries
11 Summary: Cross-platform, open-source make system
12 Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach
17 Group: Development/Building
18 Source0: http://www.cmake.org/files/v2.6/%{name}-%{version}.tar.gz
19 # Source0-md5: 6717f4bc3cfcced4172ad98660ce7599
20 Patch1: %{name}-lib64.patch
21 URL: http://www.cmake.org/HTML/index.html
22 %{?with_gui:BuildRequires: QtGui-devel}
23 BuildRequires: libstdc++-devel
24 BuildRequires: ncurses-devel
25 %{?with_gui:BuildRequires: qt4-build}
26 %{?with_gui:BuildRequires: qt4-qmake}
27 BuildRequires: rpmbuild(macros) >= 1.167
28 %{!?with_bootstrap:BuildRequires: xmlrpc-c-devel}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 CMake is used to control the software compilation process using simple
33 platform and compiler independent configuration files. CMake generates
34 native makefiles and workspaces that can be used in the compiler
35 environment of your choice. CMake is quite sophisticated: it is
36 possible to support complex environments requiring system
37 configuration, pre-processor generation, code generation, and template
40 %description -l pl.UTF-8
41 CMake służy do sterowania procesem kompilacji oprogramowania przy
42 użyciu prostych plików konfiguracyjnych niezależnych od platformy
43 i kompilatora. CMake generuje natywne pliki makefile i workspace,
44 których można używać w wybranym środowisku kompilatora. CMake jest
45 dość przemyślany: może obsłużyć złożone środowiska wymagające
46 konfiguracji systemu, generowanie preprocesora, generowanie kodu
47 i dziedziczenie szablonów.
50 Summary: Qt GUI for %{name}
51 Group: Development/Tools
52 Requires: %{name} = %{version}-%{release}
55 The %{name}-gui package contains the Qt based GUI for CMake.
59 %if "%{_lib}" == "lib64"
63 cat > "init.cmake" <<EOF
64 SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE)
65 SET (CMAKE_AR "%{__ar}" CACHE FILEPATH " " FORCE)
71 export CFLAGS="%{rpmcflags}"
72 export CXXFLAGS="%{rpmcxxflags}"
73 export LDFLAGS="%{rpmldflags}"
77 --datadir=/share/cmake \
79 %{!?with_bootstrap:--system-libs} \
80 %{?with_gui:--qt-gui} \
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
94 rm -rf $RPM_BUILD_ROOT
97 %defattr(644,root,root,755)
98 %doc ChangeLog.* Copyright.txt *.gif Docs/{cmake,ctest}.{txt,html}
99 %attr(755,root,root) %{_bindir}/ccmake
100 %attr(755,root,root) %{_bindir}/cmake
101 %attr(755,root,root) %{_bindir}/cpack
102 %attr(755,root,root) %{_bindir}/ctest
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/cmake-gui
109 %{_datadir}/mime/packages/cmakecache.xml
110 %{_desktopdir}/CMake.desktop
111 %{_pixmapsdir}/CMakeSetup.png