2010-11-15 17:50:50 +01:00
|
|
|
#
|
2011-05-26 15:31:30 +02:00
|
|
|
# spec file for package cmake
|
2006-12-20 02:22:20 +01:00
|
|
|
#
|
2014-01-29 09:47:50 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 02:22:20 +01:00
|
|
|
#
|
2008-08-06 01:42:15 +02: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 02:22:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-19 10:52:56 +02:00
|
|
|
|
2006-12-20 02:22:20 +01:00
|
|
|
Name: cmake
|
2014-01-29 09:47:50 +01:00
|
|
|
Version: 2.8.12.2
|
2012-01-25 19:09:37 +01:00
|
|
|
Release: 0
|
2007-10-03 00:49:11 +02:00
|
|
|
Url: http://www.cmake.org/
|
2011-07-29 18:20:26 +02:00
|
|
|
Source0: http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz
|
2013-08-16 11:35:44 +02:00
|
|
|
Source1: cmake.macros
|
|
|
|
Source2: opensuse_rules.cmake
|
2012-08-14 12:26:12 +02:00
|
|
|
Patch2: cmake-fix-ruby-test.patch
|
2013-12-09 10:19:20 +01:00
|
|
|
# PATCH-FIX-UPSTREAM fix-check-for-freetype251.patch -- http://www.cmake.org/Bug/view.php?id=13959, http://www.cmake.org/Bug/view.php?id=14601
|
|
|
|
Patch3: fix-check-for-freetype251.patch
|
2014-02-18 05:33:36 +01:00
|
|
|
# PATCH-FIX-UPSTREAM cmake-jni-ppc64le.patch -- https://github.com/Kitware/CMake/pull/90
|
|
|
|
Patch4: cmake-jni-ppc64le.patch
|
2006-12-20 02:22:20 +01:00
|
|
|
Summary: Cross-platform, open-source make system
|
2012-01-25 19:09:37 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Tools/Building
|
2008-06-22 02:01:47 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-14 16:03:41 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-09-11 14:07:26 +02:00
|
|
|
%if 0%{?suse_version} > 1010
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRequires: fdupes
|
2013-09-11 14:07:26 +02:00
|
|
|
%endif
|
2012-11-02 15:31:52 +01:00
|
|
|
%if 0%{?sles_version} != 10
|
|
|
|
BuildRequires: libarchive-devel
|
2010-07-21 14:27:51 +02:00
|
|
|
%endif
|
2012-11-02 15:31:52 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2010-09-14 16:03:41 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
%endif
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: zlib-devel
|
2012-11-02 15:31:52 +01:00
|
|
|
|
2007-12-11 13:19:30 +01:00
|
|
|
Requires: make
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
CMake is a cross-platform, open-source make system
|
|
|
|
|
|
|
|
%prep
|
2013-10-09 10:59:14 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2012-11-02 15:31:52 +01:00
|
|
|
%patch2
|
2013-12-09 10:19:20 +01:00
|
|
|
%patch3 -p1
|
2014-02-18 05:33:36 +01:00
|
|
|
%patch4 -p1
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
2007-07-23 19:55:10 +02:00
|
|
|
export CFLAGS="$CXXFLAGS"
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--datadir=/share/%{name} \
|
|
|
|
--docdir=/share/doc/packages/%{name} \
|
|
|
|
--mandir=/share/man \
|
2012-11-02 15:31:52 +01:00
|
|
|
%if 0%{?suse_version} && !0%{?sles_version}
|
2008-05-07 00:25:59 +02:00
|
|
|
--system-libs \
|
2011-04-05 12:51:42 +02:00
|
|
|
%else
|
|
|
|
--system-curl \
|
|
|
|
--system-expat \
|
|
|
|
--system-zlib \
|
|
|
|
--system-bzip2 \
|
|
|
|
--no-system-libarchive \
|
|
|
|
%endif
|
2010-05-25 18:31:48 +02:00
|
|
|
--parallel=0%jobs \
|
|
|
|
--no-qt-gui
|
2011-09-19 21:29:30 +02:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%install
|
2007-07-23 19:55:10 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
2010-05-25 18:31:48 +02:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/cmake
|
2007-07-23 19:55:10 +02:00
|
|
|
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
|
2010-07-21 14:27:51 +02:00
|
|
|
cp ChangeLog.manual %{buildroot}/usr/share/doc/packages/%{name}/Changelog
|
2013-08-16 11:35:44 +02: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 15:31:52 +01:00
|
|
|
|
2013-09-11 14:07:26 +02:00
|
|
|
%if 0%{?suse_version} > 1010
|
2013-08-16 11:35:44 +02:00
|
|
|
%fdupes %{buildroot}/usr/share/cmake
|
2010-07-21 14:27:51 +02:00
|
|
|
%endif
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-08-16 11:35:44 +02:00
|
|
|
%{_sysconfdir}/rpm/macros.cmake
|
2010-05-25 18:31:48 +02:00
|
|
|
%{_bindir}/cpack
|
|
|
|
%{_bindir}/cmake
|
|
|
|
%{_bindir}/ctest
|
|
|
|
%{_bindir}/ccmake
|
|
|
|
%{_datadir}/cmake
|
2010-07-21 14:27:51 +02:00
|
|
|
%{_libdir}/cmake
|
2011-10-14 14:45:21 +02:00
|
|
|
%{_datadir}/aclocal/cmake.m4
|
2010-07-21 14:27:51 +02:00
|
|
|
%doc %{_datadir}/doc/packages/%{name}
|
2010-05-25 18:31:48 +02:00
|
|
|
%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.*
|
2007-12-11 13:19:30 +01:00
|
|
|
|
2007-03-29 12:01:34 +02:00
|
|
|
%changelog
|