# Conditional build:
%bcond_with bootstrap # use internal versions of some libraries
%bcond_without gui # don't build gui package
-#
+
Summary: Cross-platform, open-source make system
Summary(pl.UTF-8): Wieloplatformowy system make o otwartych źródłach
Name: cmake
-Version: 2.8.2
+Version: 2.8.3
Release: 1
License: BSD
Group: Development/Building
Source0: http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz
-# Source0-md5: 8c967d5264657a798f22ee23976ff0d9
+# Source0-md5: a76a44b93acf5e3badda9de111385921
Patch0: %{name}-lib64.patch
Patch1: %{name}-tinfo.patch
URL: http://www.cmake.org/
%{?with_gui:BuildRequires: QtGui-devel}
+BuildRequires: libarchive-devel
BuildRequires: libstdc++-devel
BuildRequires: ncurses-devel
%{?with_gui:BuildRequires: qt4-build}
%{?with_gui:BuildRequires: qt4-qmake}
BuildRequires: rpmbuild(macros) >= 1.167
%{!?with_bootstrap:BuildRequires: xmlrpc-c-devel >= 1.4.12-2}
+Requires: libarchive
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/cmake
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
+rm -r $RPM_BUILD_ROOT%{_prefix}/doc
%clean
rm -rf $RPM_BUILD_ROOT