forked from pool/cmake
ba5c0f0076
Update to 3.0.0~rc1 (i'm guessing this one will need a staging for sure ;-) OBS-URL: https://build.opensuse.org/request/show/224366 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=141
109 lines
2.9 KiB
RPMSpec
109 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package cmake
|
|
#
|
|
# Copyright (c) 2014 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
|
|
Version: 3.0.0~rc1
|
|
Release: 0
|
|
%define rversion 3.0.0-rc1
|
|
Url: http://www.cmake.org/
|
|
Source0: http://www.cmake.org/files/v3.0/%{name}-%{rversion}.tar.gz
|
|
Source1: cmake.macros
|
|
Source2: opensuse_rules.cmake
|
|
Patch2: cmake-fix-ruby-test.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}
|
|
%if 0%{?suse_version} > 1010
|
|
BuildRequires: fdupes
|
|
%endif
|
|
%if 0%{?sles_version} != 10
|
|
BuildRequires: libarchive-devel
|
|
%endif
|
|
BuildRequires: libexpat-devel
|
|
%else
|
|
BuildRequires: expat-devel
|
|
%endif
|
|
BuildRequires: curl-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
Requires: make
|
|
|
|
%description
|
|
CMake is a cross-platform, open-source make system
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{rversion}
|
|
%patch2 -p1
|
|
|
|
%build
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
export CFLAGS="$CXXFLAGS"
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--datadir=/share/%{name} \
|
|
--docdir=/share/doc/packages/%{name} \
|
|
--mandir=/share/man \
|
|
%if 0%{?suse_version} && !0%{?sles_version}
|
|
--system-libs \
|
|
%else
|
|
--system-curl \
|
|
--system-expat \
|
|
--system-zlib \
|
|
--system-bzip2 \
|
|
--no-system-libarchive \
|
|
%endif
|
|
--parallel=0%jobs \
|
|
--no-qt-gui
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
mkdir -p %{buildroot}%{_libdir}/cmake
|
|
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
|
|
# 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
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
%fdupes %{buildroot}/usr/share/cmake
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/rpm/macros.cmake
|
|
%{_bindir}/cpack
|
|
%{_bindir}/cmake
|
|
%{_bindir}/ctest
|
|
%{_bindir}/ccmake
|
|
%{_datadir}/cmake
|
|
%{_libdir}/cmake
|
|
%{_datadir}/aclocal/cmake.m4
|
|
%doc %{_datadir}/doc/packages/%{name}
|
|
|
|
%changelog
|