]>
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 | |
77f8acdd | 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 |
0fd568ba CM |
14 | Version: 2.8.3 |
15 | Release: 1 | |
efafbc62 | 16 | License: BSD |
72a696fa | 17 | Group: Development/Building |
28f0bd6c | 18 | Source0: http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz |
0fd568ba | 19 | # Source0-md5: a76a44b93acf5e3badda9de111385921 |
6342daf8 | 20 | Patch0: %{name}-lib64.patch |
44af9955 | 21 | Patch1: %{name}-tinfo.patch |
a315a797 | 22 | URL: http://www.cmake.org/ |
0fd568ba CM |
23 | Requires: libarchive |
24 | BuildRequires: libarchive-devel | |
33042d59 | 25 | %{?with_gui:BuildRequires: QtGui-devel} |
ece9e155 KK |
26 | BuildRequires: libstdc++-devel |
27 | BuildRequires: ncurses-devel | |
33042d59 KK |
28 | %{?with_gui:BuildRequires: qt4-build} |
29 | %{?with_gui:BuildRequires: qt4-qmake} | |
ece9e155 | 30 | BuildRequires: rpmbuild(macros) >= 1.167 |
ab02ad6a | 31 | %{!?with_bootstrap:BuildRequires: xmlrpc-c-devel >= 1.4.12-2} |
efafbc62 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3fcbc09a AG |
33 | |
34 | %description | |
efafbc62 AG |
35 | CMake is used to control the software compilation process using simple |
36 | platform and compiler independent configuration files. CMake generates | |
37 | native makefiles and workspaces that can be used in the compiler | |
38 | environment of your choice. CMake is quite sophisticated: it is | |
39 | possible to support complex environments requiring system | |
40 | configuration, pre-processor generation, code generation, and template | |
41 | instantiation. | |
3fcbc09a | 42 | |
520c9eb8 JR |
43 | %description -l pl.UTF-8 |
44 | CMake służy do sterowania procesem kompilacji oprogramowania przy | |
ca760f29 | 45 | użyciu prostych plików konfiguracyjnych niezależnych od platformy i |
46 | kompilatora. CMake generuje natywne pliki makefile i workspace, | |
485d9a7a | 47 | których można używać w wybranym środowisku kompilatora. CMake jest |
59787775 | 48 | dość wyrafinowany: może obsłużyć złożone środowiska wymagające |
ca760f29 | 49 | konfiguracji systemu, generowanie preprocesora, generowanie kodu i |
50 | dziedziczenie szablonów. | |
33042d59 KK |
51 | |
52 | %package gui | |
b563f9dc JB |
53 | Summary: Qt GUI for CMake |
54 | Summary(pl.UTF-8): Graficzny interfejs użytkownika Qt dla CMake | |
33042d59 KK |
55 | Group: Development/Tools |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
b563f9dc JB |
58 | %description gui |
59 | This package contains the Qt based GUI for CMake. | |
60 | ||
61 | %description gui -l pl.UTF-8 | |
62 | Ten pakiet zawiera oparty na Qt graficzny interfejs użytkownika dla | |
63 | CMake. | |
72a696fa | 64 | |
3fcbc09a | 65 | %prep |
923851a2 | 66 | %setup -q |
286b1479 | 67 | %if "%{_lib}" == "lib64" |
6342daf8 | 68 | %patch0 -p1 |
286b1479 | 69 | %endif |
44af9955 | 70 | %patch1 -p0 |
3fcbc09a | 71 | |
ece9e155 | 72 | cat > "init.cmake" <<EOF |
286b1479 | 73 | SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE) |
ece9e155 KK |
74 | EOF |
75 | ||
3fcbc09a | 76 | %build |
ece9e155 KK |
77 | export CC="%{__cc}" |
78 | export CXX="%{__cxx}" | |
79 | export CFLAGS="%{rpmcflags}" | |
80 | export CXXFLAGS="%{rpmcxxflags}" | |
ccca321d | 81 | export LDFLAGS="%{rpmldflags}" |
923851a2 AG |
82 | ./bootstrap \ |
83 | --prefix=%{_prefix} \ | |
84 | --mandir=/share/man \ | |
85 | --datadir=/share/cmake \ | |
ece9e155 | 86 | --init=init.cmake \ |
c342f103 | 87 | %{!?with_bootstrap:--system-libs} \ |
33042d59 | 88 | %{?with_gui:--qt-gui} \ |
923851a2 AG |
89 | --verbose |
90 | ||
28f0bd6c | 91 | %{__make} VERBOSE=1 |
3fcbc09a AG |
92 | |
93 | %install | |
efafbc62 | 94 | rm -rf $RPM_BUILD_ROOT |
9ecf094d | 95 | install -d $RPM_BUILD_ROOT%{_libdir}/cmake |
72a696fa JB |
96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
77f8acdd | 99 | rm -r $RPM_BUILD_ROOT%{_prefix}/doc |
3fcbc09a AG |
100 | |
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %files | |
efafbc62 | 105 | %defattr(644,root,root,755) |
51ed65c6 | 106 | %doc ChangeLog.* Copyright.txt *.gif Docs/{cmake,ctest}.{txt,html} |
72a696fa JB |
107 | %attr(755,root,root) %{_bindir}/ccmake |
108 | %attr(755,root,root) %{_bindir}/cmake | |
08b6790a | 109 | %attr(755,root,root) %{_bindir}/cpack |
72a696fa JB |
110 | %attr(755,root,root) %{_bindir}/ctest |
111 | %{_mandir}/man1/*.1* | |
923851a2 | 112 | %{_datadir}/cmake |
1941b22e | 113 | %dir %{_libdir}/cmake |
33042d59 | 114 | |
1a3a9dcd | 115 | %if %{with gui} |
33042d59 KK |
116 | %files gui |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_bindir}/cmake-gui | |
119 | %{_datadir}/mime/packages/cmakecache.xml | |
120 | %{_desktopdir}/CMake.desktop | |
ca760f29 | 121 | %{_pixmapsdir}/CMakeSetup32.png |
1a3a9dcd | 122 | %endif |