!2 [sync] PR-1: 增加range-v3源码包

From: @openeuler-sync-bot 
Reviewed-by: @anchuanxu 
Signed-off-by: @anchuanxu
This commit is contained in:
openeuler-ci-bot 2023-06-06 11:19:24 +00:00 committed by Gitee
commit 81e86e7bc7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 60 additions and 0 deletions

BIN
0.12.0.tar.gz Normal file

Binary file not shown.

60
range-v3.spec Normal file
View File

@ -0,0 +1,60 @@
%global debug_package %{nil}
Name: range-v3
Summary: Experimental range library for C++11/14/17
Version: 0.12.0
Release: 1
License: BSL-1.0
URL: https://github.com/ericniebler/%{name}
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
%description
Header-only %{summary}.
%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -p1
%build
mkdir build && cd build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DRANGES_ENABLE_WERROR:BOOL=OFF \
-DRANGES_MODULES:BOOL=OFF \
-DRANGES_NATIVE:BOOL=OFF \
-DRANGE_V3_DOCS:BOOL=OFF \
-DRANGE_V3_EXAMPLES:BOOL=OFF \
-DRANGE_V3_PERF:BOOL=OFF \
-DRANGE_V3_TESTS:BOOL=ON \
..
%make_build
%install
cd build
%make_install
%check
make test
%files devel
%doc README.md CREDITS.md TODO.md
%license LICENSE.txt
%exclude %{_includedir}/module.modulemap
%{_includedir}/{meta,range,concepts,std}
%{_libdir}/cmake/%{name}
%changelog
* Sta May 6 2023 will_niutao <niutao2@huawei.com> - 0.12.0-1
- Init for openEuler