cmake/cmake-2.6.4.spec

Name: cmake
Summary: Cross-platform make system
Version: 2.6.4
Release: 1
License: BSD
Group: Development/Tools
URL: http://www.cmake.org/
Description: CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL6 ships with cmake-2.6.4-5.el6
# ExclusiveDist: el2 el3 el4 el5

%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}

Summary: Cross-platform make system
Name: cmake
Version: 2.6.4
Release: 1%{?dist}
License: BSD
Group: Development/Tools
URL: http://www.cmake.org/

Source0: http://www.cmake.org/files/v2.6/cmake-%{version}.tar.gz
Source1: macros.cmake-2.6.4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: curl-devel
BuildRequires: expat-devel
BuildRequires: gcc-c++
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
%{!?_without_modxorg:BuildRequires: libX11-devel}
%{?_without_modxorg:BuildRequires: XFree86-devel}

%description
CMake is used to control the software compilation process using simple 
platform and compiler independent configuration files. CMake generates 
native makefiles and workspaces that can be used in the compiler 
environment of your choice. CMake is quite sophisticated: it is possible 
to support complex environments requiring system configuration, pre-processor 
generation, code generation, and template instantiation.

%prep
%setup

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
./bootstrap \
    --prefix="%{_prefix}" \
    --init="cmake.init" \
    --datadir="/share/cmake" \
    --docdir="/doc-rpm/" \
    --mandir="/share/man"
#    --system-libs
%{__make} %{?_smp_mflags} VERBOSE="1"

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__install} -Dp -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.cmake
%{__perl} -pi -e 's|@@CMAKE_VERSION@@|%{version}|' %{buildroot}%{_sysconfdir}/rpm/macros.cmake
%{__install} -Dp -m0644 Docs/cmake-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/cmake-mode.el

### Clean up buildroot
%{__mv} -f %{buildroot}%{_prefix}/doc-rpm/ .
find %{buildroot}%{_datadir}/cmake/Modules/ -type f | xargs chmod -x

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc doc-rpm/* Example/
%doc %{_mandir}/man1/cmake.1*
%doc %{_mandir}/man1/ccmake.1*
%doc %{_mandir}/man1/cmakecommands.1*
%doc %{_mandir}/man1/cmakecompat.1*
%doc %{_mandir}/man1/cmakemodules.1*
%doc %{_mandir}/man1/cmakepolicies.1*
%doc %{_mandir}/man1/cmakeprops.1*
%doc %{_mandir}/man1/cmakevars.1*
%doc %{_mandir}/man1/cpack.1*
%doc %{_mandir}/man1/ctest.1*
%config(noreplace) %{_sysconfdir}/rpm/macros.cmake
%{_bindir}/ccmake
%{_bindir}/cmake
%{_bindir}/cpack
%{_bindir}/ctest
%{_datadir}/cmake/
%dir %{_datadir}/emacs/
%dir %{_datadir}/emacs/site-lisp/
%{_datadir}/emacs/site-lisp/cmake-mode.el

%changelog
* Sat May 05 2007 Dag Wieers <dag@wieers.com> - 2.4.6-1
- Initial package. (using DAR)