2010-11-15 16:50:50 +00:00
|
|
|
#
|
2011-05-26 13:31:30 +00:00
|
|
|
# spec file for package cmake
|
2006-12-20 01:22:20 +00:00
|
|
|
#
|
2014-01-29 08:47:50 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 01:22:20 +00:00
|
|
|
#
|
2008-08-05 23:42:15 +00:00
|
|
|
# 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.
|
|
|
|
|
2006-12-20 01:22:20 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-19 08:52:56 +00:00
|
|
|
|
2006-12-20 01:22:20 +00:00
|
|
|
Name: cmake
|
2014-06-11 10:42:34 +00:00
|
|
|
Version: 3.0.0
|
2012-01-25 18:09:37 +00:00
|
|
|
Release: 0
|
2014-06-21 10:43:44 +00:00
|
|
|
Summary: Cross-platform, open-source make system
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Tools/Building
|
2007-10-02 22:49:11 +00:00
|
|
|
Url: http://www.cmake.org/
|
2014-06-21 10:43:44 +00:00
|
|
|
Source0: http://www.cmake.org/files/v3.0/%{name}-%{version}.tar.gz
|
2013-08-16 09:35:44 +00:00
|
|
|
Source1: cmake.macros
|
|
|
|
Source2: opensuse_rules.cmake
|
2012-08-14 10:26:12 +00:00
|
|
|
Patch2: cmake-fix-ruby-test.patch
|
2014-07-01 11:10:57 +00:00
|
|
|
#PATCH-FIX-UPSTREAM dvaleev@suse.com https://github.com/Kitware/CMake/pull/111.patch
|
|
|
|
Patch3: cmake-ppc64le-jni.patch
|
2010-05-25 16:31:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2014-06-21 10:43:44 +00:00
|
|
|
BuildRequires: libexpat-devel
|
2010-05-25 16:31:48 +00:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: zlib-devel
|
2007-12-11 12:19:30 +00:00
|
|
|
Requires: make
|
2014-07-03 08:00:27 +00:00
|
|
|
Recommends: cmake-mans
|
2014-06-21 10:43:44 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: libarchive-devel
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
%endif
|
2006-12-20 01:22:20 +00:00
|
|
|
|
|
|
|
%description
|
2014-06-11 10:42:34 +00:00
|
|
|
CMake is a cross-platform, open-source build system
|
2006-12-20 01:22:20 +00:00
|
|
|
|
|
|
|
%prep
|
2014-06-21 10:43:44 +00:00
|
|
|
%setup -q
|
2014-03-06 09:36:53 +00:00
|
|
|
%patch2 -p1
|
2014-07-01 11:10:57 +00:00
|
|
|
%patch3 -p1
|
2006-12-20 01:22:20 +00:00
|
|
|
|
|
|
|
%build
|
2014-06-21 10:43:44 +00:00
|
|
|
export CXXFLAGS="%{optflags}"
|
2007-07-23 17:55:10 +00:00
|
|
|
export CFLAGS="$CXXFLAGS"
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--datadir=/share/%{name} \
|
|
|
|
--docdir=/share/doc/packages/%{name} \
|
|
|
|
--mandir=/share/man \
|
2008-05-06 22:25:59 +00:00
|
|
|
--system-libs \
|
2014-04-24 10:29:47 +00:00
|
|
|
--no-system-curl \
|
|
|
|
%if 0%{?suse_version} <= 1110
|
2011-04-05 10:51:42 +00:00
|
|
|
--no-system-libarchive \
|
|
|
|
%endif
|
2014-06-21 10:43:44 +00:00
|
|
|
--parallel=0%{jobs} \
|
2014-04-24 10:29:47 +00:00
|
|
|
--verbose \
|
2010-05-25 16:31:48 +00:00
|
|
|
--no-qt-gui
|
2011-09-19 19:29:30 +00:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2006-12-20 01:22:20 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-21 10:43:44 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2010-05-25 16:31:48 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/cmake
|
2014-06-21 10:43:44 +00:00
|
|
|
find %{buildroot}%{_datadir}/cmake -type f -print0 | xargs -0 chmod 644
|
2013-08-16 09:35:44 +00:00
|
|
|
# rpm macros
|
|
|
|
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/rpm/macros.cmake
|
|
|
|
# buildrules
|
|
|
|
install -m644 %{SOURCE2} -D %{buildroot}%{_datadir}/cmake/Modules/opensuse_rules.cmake
|
|
|
|
sed -i \
|
|
|
|
-e 's:OPTFLAGS:%{optflags}:g' \
|
|
|
|
%{buildroot}%{_datadir}/cmake/Modules/opensuse_rules.cmake
|
2012-11-02 14:31:52 +00:00
|
|
|
|
2014-06-21 10:43:44 +00:00
|
|
|
%fdupes %{buildroot}%{_datadir}/cmake
|
2006-12-20 01:22:20 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-08-16 09:35:44 +00:00
|
|
|
%{_sysconfdir}/rpm/macros.cmake
|
2010-05-25 16:31:48 +00:00
|
|
|
%{_bindir}/cpack
|
|
|
|
%{_bindir}/cmake
|
|
|
|
%{_bindir}/ctest
|
|
|
|
%{_bindir}/ccmake
|
|
|
|
%{_datadir}/cmake
|
2010-07-21 12:27:51 +00:00
|
|
|
%{_libdir}/cmake
|
2014-04-24 10:29:47 +00:00
|
|
|
%dir %{_datadir}/aclocal
|
2011-10-14 12:45:21 +00:00
|
|
|
%{_datadir}/aclocal/cmake.m4
|
2014-06-21 10:43:44 +00:00
|
|
|
%doc %{_docdir}/%{name}
|
2007-12-11 12:19:30 +00:00
|
|
|
|
2007-03-29 10:01:34 +00:00
|
|
|
%changelog
|