X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcmake.git;a=blobdiff_plain;f=cmake.spec;h=2347de36463034c48cab04be8eab8254809373ee;hp=e37c141c5943dc3e518280da371d3011d95da2db;hb=4c63463daa82c56361753c0d4761fdb949dd13b1;hpb=53357b6b47d1e61e29dfe90363402456687dde10 diff --git a/cmake.spec b/cmake.spec index e37c141..2347de3 100644 --- a/cmake.spec +++ b/cmake.spec @@ -1,4 +1,5 @@ # TODO: +# - extend libx32 patch to work also on 64-bit arch # - any valid CMAKE_BUILD_TYPE causes overriding of our optflags # (and default non-verbose makefiles are hiding it!) # - rpmldflags/rpmcppflags are not passed through %%cmake macro at all @@ -7,29 +8,36 @@ # Conditional build: %bcond_with bootstrap # use internal versions of some libraries %bcond_without gui # don't build gui package -%bcond_without tests +%bcond_with tests # perform "make test" +%bcond_without doc # don't build documentation Summary: Cross-platform, open-source make system Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach Name: cmake -Version: 2.8.11.1 +Version: 3.2.3 Release: 2 License: BSD Group: Development/Building -Source0: http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz -# Source0-md5: df5324a3b203373a9e0a04b924281a43 +Source0: http://www.cmake.org/files/v3.2/%{name}-%{version}.tar.gz +# Source0-md5: d51c92bf66b1e9d4fe2b7aaedd51377c Patch0: %{name}-lib64.patch Patch1: %{name}-helpers.patch -Patch2: cmake-findruby.patch -Patch3: cmake-git.patch +Patch2: %{name}-findruby.patch +Patch3: %{name}-tests.patch +Patch4: cmake-min-ver.patch +Patch5: %{name}-findruby2.patch +Patch6: %{name}-findpython.patch +Patch7: %{name}-libx32.patch URL: http://www.cmake.org/ %{?with_gui:BuildRequires: QtGui-devel} +BuildRequires: jsoncpp-devel >= 1.6.2-2 BuildRequires: libarchive-devel BuildRequires: libstdc++-devel BuildRequires: ncurses-devel > 5.9-3 -%{?with_gui:BuildRequires: qt4-build} -%{?with_gui:BuildRequires: qt4-qmake} +%{?with_gui:BuildRequires: qt5-build} +%{?with_gui:BuildRequires: qt5-qmake} BuildRequires: rpmbuild(macros) >= 1.167 +%{?with_doc:BuildRequires: sphinx-pdg} %{!?with_bootstrap:BuildRequires: xmlrpc-c-devel >= 1.4.12-2} Requires: filesystem >= 3.0-52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -52,6 +60,17 @@ dość wyrafinowany: może obsłużyć złożone środowiska wymagające konfiguracji systemu, generowanie preprocesora, generowanie kodu i dziedziczenie szablonów. +%package doc-html +Summary: CMake documentation in HTML format +Summary(pl.UTF-8): Dokumentacja do pakietu CMake w formacie HTML +Group: Documentation + +%description doc-html +CMake documentation in HTML format. + +%description doc-html -l pl.UTF-8 +Dokumentacja do pakietu CMake w formacie HTML. + %package gui Summary: Qt GUI for CMake Summary(pl.UTF-8): Graficzny interfejs użytkownika Qt dla CMake @@ -81,6 +100,10 @@ Summary: bash-completion for cmake Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla cmake'a Group: Applications/Shells Requires: %{name} = %{version}-%{release} +Requires: bash-completion >= 2.0 +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif %description -n bash-completion-%{name} bash-completion for cmake. @@ -96,6 +119,12 @@ Bashowe dopełnianie parametrów dla cmake'a. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%if "%{_lib}" == "libx32" +%patch7 -p1 +%endif cat > "init.cmake" <