LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cmake.spec of Package cmake (Project openSUSE:Factory)

# spec file for package cmake
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           cmake
Release:        0
Url:            http://www.cmake.org/
Source0:        http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz
Patch1:         cmake-disable-builtin-chrpath.diff
Patch2:         cmake-fix-ruby-test.patch
Patch3:         cmake-gettext.patch
Summary:        Cross-platform, open-source make system
License:        BSD-3-Clause
Group:          Development/Tools/Building
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  fdupes
%if 0%{?sles_version} != 10
BuildRequires:  libarchive-devel
BuildRequires:  libexpat-devel
BuildRequires:  expat-devel
BuildRequires:  curl-devel
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  zlib-devel

Requires:       make

CMake is a cross-platform, open-source make system

%setup -q
%patch3 -p1

./configure \
    --prefix=%{_prefix} \
    --datadir=/share/%{name} \
    --docdir=/share/doc/packages/%{name} \
    --mandir=/share/man \
%if 0%{?suse_version} && !0%{?sles_version}
    --system-libs \
    --system-curl \
    --system-expat \
    --system-zlib \
    --system-bzip2 \
    --no-system-libarchive \
    --parallel=0%jobs \
make VERBOSE=1 %{?_smp_mflags}

make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_libdir}/cmake
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
cp ChangeLog.manual %{buildroot}/usr/share/doc/packages/%{name}/Changelog

%if 0%{?suse_version}
%fdupes %buildroot/usr/share/cmake

%doc %{_datadir}/doc/packages/%{name}
%doc %{_mandir}/man1/cmakepolicies.1.*
%doc %{_mandir}/man1/cmake.1.*
%doc %{_mandir}/man1/ctest.1.*
%doc %{_mandir}/man1/ccmake.1.*
%doc %{_mandir}/man1/cmakecommands.1.*
%doc %{_mandir}/man1/cmakecompat.1.*
%doc %{_mandir}/man1/cmakemodules.1.*
%doc %{_mandir}/man1/cmakeprops.1.*
%doc %{_mandir}/man1/cmakevars.1.*
%doc %{_mandir}/man1/cpack.1.*