]>
Commit | Line | Data |
---|---|---|
d1b2e54c JB |
1 | # TODO: |
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???) | |
ccca321d KK |
6 | # |
7 | # Conditional build: | |
b563f9dc JB |
8 | %bcond_with bootstrap # use internal versions of some libraries |
9 | %bcond_without gui # don't build gui package | |
ccca321d | 10 | # |
efafbc62 | 11 | Summary: Cross-platform, open-source make system |
ac3ea35a | 12 | Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach |
72a696fa | 13 | Name: cmake |
e2ce4760 | 14 | Version: 2.6.2 |
a68af6ab | 15 | Release: 2 |
efafbc62 | 16 | License: BSD |
72a696fa | 17 | Group: Development/Building |
ccca321d | 18 | Source0: http://www.cmake.org/files/v2.6/%{name}-%{version}.tar.gz |
e2ce4760 | 19 | # Source0-md5: 9e82aa3beb991aa8e5797cf330618d42 |
6342daf8 | 20 | Patch0: %{name}-lib64.patch |
a315a797 | 21 | URL: http://www.cmake.org/ |
33042d59 | 22 | %{?with_gui:BuildRequires: QtGui-devel} |
ece9e155 KK |
23 | BuildRequires: libstdc++-devel |
24 | BuildRequires: ncurses-devel | |
33042d59 KK |
25 | %{?with_gui:BuildRequires: qt4-build} |
26 | %{?with_gui:BuildRequires: qt4-qmake} | |
ece9e155 | 27 | BuildRequires: rpmbuild(macros) >= 1.167 |
ab02ad6a | 28 | %{!?with_bootstrap:BuildRequires: xmlrpc-c-devel >= 1.4.12-2} |
efafbc62 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3fcbc09a AG |
30 | |
31 | %description | |
efafbc62 AG |
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 | |
38 | instantiation. | |
3fcbc09a | 39 | |
520c9eb8 JR |
40 | %description -l pl.UTF-8 |
41 | CMake służy do sterowania procesem kompilacji oprogramowania przy | |
485d9a7a KK |
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. | |
33042d59 KK |
48 | |
49 | %package gui | |
b563f9dc JB |
50 | Summary: Qt GUI for CMake |
51 | Summary(pl.UTF-8): Graficzny interfejs użytkownika Qt dla CMake | |
33042d59 KK |
52 | Group: Development/Tools |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
b563f9dc JB |
55 | %description gui |
56 | This package contains the Qt based GUI for CMake. | |
57 | ||
58 | %description gui -l pl.UTF-8 | |
59 | Ten pakiet zawiera oparty na Qt graficzny interfejs użytkownika dla | |
60 | CMake. | |
72a696fa | 61 | |
3fcbc09a | 62 | %prep |
923851a2 | 63 | %setup -q |
286b1479 | 64 | %if "%{_lib}" == "lib64" |
6342daf8 | 65 | %patch0 -p1 |
286b1479 | 66 | %endif |
3fcbc09a | 67 | |
ece9e155 | 68 | cat > "init.cmake" <<EOF |
286b1479 | 69 | SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE) |
ece9e155 KK |
70 | EOF |
71 | ||
3fcbc09a | 72 | %build |
ece9e155 KK |
73 | export CC="%{__cc}" |
74 | export CXX="%{__cxx}" | |
75 | export CFLAGS="%{rpmcflags}" | |
76 | export CXXFLAGS="%{rpmcxxflags}" | |
ccca321d | 77 | export LDFLAGS="%{rpmldflags}" |
923851a2 AG |
78 | ./bootstrap \ |
79 | --prefix=%{_prefix} \ | |
80 | --mandir=/share/man \ | |
81 | --datadir=/share/cmake \ | |
ece9e155 | 82 | --init=init.cmake \ |
c342f103 | 83 | %{!?with_bootstrap:--system-libs} \ |
33042d59 | 84 | %{?with_gui:--qt-gui} \ |
923851a2 AG |
85 | --verbose |
86 | ||
923851a2 | 87 | %{__make} |
3fcbc09a AG |
88 | |
89 | %install | |
efafbc62 | 90 | rm -rf $RPM_BUILD_ROOT |
72a696fa JB |
91 | |
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
c4bbee29 | 95 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
3fcbc09a AG |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %files | |
efafbc62 | 101 | %defattr(644,root,root,755) |
51ed65c6 | 102 | %doc ChangeLog.* Copyright.txt *.gif Docs/{cmake,ctest}.{txt,html} |
72a696fa JB |
103 | %attr(755,root,root) %{_bindir}/ccmake |
104 | %attr(755,root,root) %{_bindir}/cmake | |
08b6790a | 105 | %attr(755,root,root) %{_bindir}/cpack |
72a696fa JB |
106 | %attr(755,root,root) %{_bindir}/ctest |
107 | %{_mandir}/man1/*.1* | |
923851a2 | 108 | %{_datadir}/cmake |
33042d59 KK |
109 | |
110 | %files gui | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_bindir}/cmake-gui | |
113 | %{_datadir}/mime/packages/cmakecache.xml | |
114 | %{_desktopdir}/CMake.desktop | |
115 | %{_pixmapsdir}/CMakeSetup.png |