Compare commits
10 Commits
a3abd932f2
...
41e38cde40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41e38cde40 | ||
|
|
b70ad54221 | ||
|
|
52a20402be | ||
|
|
275660140c | ||
|
|
f854a8b6c4 | ||
|
|
1a076e6f49 | ||
|
|
137071a0a7 | ||
|
|
6149571b25 | ||
|
|
add3e38f4f | ||
|
|
318130c470 |
30
cmake.spec
30
cmake.spec
@ -1,3 +1,4 @@
|
||||
%define debug_package %{nil}
|
||||
%bcond_with bootstrap
|
||||
%bcond_without ncurses
|
||||
%bcond_without sphinx
|
||||
@ -10,11 +11,11 @@
|
||||
|
||||
Name: cmake
|
||||
Version: 3.16.5
|
||||
Release: 1
|
||||
Release: 6
|
||||
Summary: Cross-platform make system
|
||||
License: BSD and MIT and zlib
|
||||
URL: http://www.cmake.org
|
||||
Source0: http://www.cmake.org/files/v3.12/cmake-%{version}.tar.gz
|
||||
Source0: http://www.cmake.org/files/v3.16/cmake-%{version}.tar.gz
|
||||
Source1: cmake-init.el
|
||||
Source2: macros.cmake
|
||||
Source3: cmake.attr
|
||||
@ -37,11 +38,12 @@ BuildRequires: python3-sphinx
|
||||
%endif
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: bzip2-devel curl-devel expat-devel jsoncpp-devel libarchive-devel
|
||||
BuildRequires: libuv-devel rhash-devel xz-devel zlib-devel cmake-rpm-macros
|
||||
BuildRequires: rhash-devel xz-devel zlib-devel cmake-rpm-macros
|
||||
%endif
|
||||
|
||||
Requires: cmake-data = %{version}-%{release} cmake-rpm-macros = %{version}-%{release}
|
||||
Requires: cmake-filesystem = %{version}-%{release}
|
||||
Requires: cmake-help = %{version}-%{release}
|
||||
Provides: cmake3 = %{version}-%{release} bundled(md5-deutsch) bundled(kwsys)
|
||||
|
||||
%description
|
||||
@ -103,13 +105,14 @@ sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov
|
||||
sed '1c #!%{__python3}' %{SOURCE5} > cmake.req
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags}"
|
||||
export CFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
|
||||
export CXXFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
|
||||
export LDFLAGS="%{?__global_ldflags}"
|
||||
mkdir build
|
||||
pushd build
|
||||
../bootstrap --prefix=%{_prefix} --datadir=/share/cmake \
|
||||
--docdir=/share/doc/cmake --mandir=/share/man \
|
||||
--no-system-libuv \
|
||||
--%{?with_bootstrap:no-}system-libs \
|
||||
--parallel=`/usr/bin/getconf _NPROCESSORS_ONLN` \
|
||||
%if %{with sphinx}
|
||||
@ -202,6 +205,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%{_datadir}/bash-completion
|
||||
%{_emacs_sitelispdir}/cmake
|
||||
%{_emacs_sitestartdir}/cmake-init.el
|
||||
%exclude %{_datadir}/cmake/Templates/Windows/Windows_TemporaryKey.pfx
|
||||
|
||||
%files filesystem -f data_dirs.mf -f lib_dirs.mf
|
||||
|
||||
@ -230,6 +234,22 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%exclude %{_pkgdocdir}/Copyright.txt
|
||||
|
||||
%changelog
|
||||
* Fri Feb 2 2024 liyanan <liyanan61@h-partners.com> - 3.16.5-6
|
||||
- Remove Windows_TemporaryKey.pfx
|
||||
|
||||
* Mon Mar 22 2021 lirui <lirui130@huawei.com> - 3.16.5-5
|
||||
- Remove the -g option and the debug package
|
||||
- add the -s option
|
||||
|
||||
* Thu Dec 10 2020 wangchen <wangchen137@huawei.com> - 3.16.5-4
|
||||
- Correct invalid Source0
|
||||
|
||||
* Fri Nov 06 2020 huanghaitao <huanghaitao8@huawei.com> - 3.16.5-3
|
||||
- Make help package required by cmake
|
||||
|
||||
* Wed Aug 5 2020 hanxinke <hanxinke@huawei.com> - 3.16.5-2
|
||||
- use cmake-provided libuv library
|
||||
|
||||
* Tue Jul 28 2020 fangxiuning <fangxiuning@huawei.com> - 3.16.5-1
|
||||
- Update version to 3.16.5
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user