forked from pool/range-v3
- update to 0.12.0: * NEW: views::chunk_by which, like the old views::group_by it replaces, * splits a range into a range-of-ranges, where adjacent elements satisfy a binary * predicate (#1648). [Note: Whereas views::group_by evaluated the predicate * between the current element and the first element in the chunk, views::chunk_by * evaluates the predicate between adjacent elements. -- end note] * NEW: constexpr all the algorithms that are constexpr in C++20's std::ranges * NEW: Fold algorithms from P2322 * NEW: ranges::unformatted_ostream_iterator * NEW: Support for the build2 build system * Implement P2328: relax the constraint on ranges::join_view * to support joining ranges of prvalue non-view ranges * Improved algorithm for ranges::linear_distribute * Renamed safe_subrange_t to borrowed_subrange_t * Extend ranges::to to support conversion to container-of-containers * views::enumerate can be a borrowed_view * ranges::upper_bound works in the presence of overloaded operator& * Input iterators are no longer required to be default-constructible * Bug fixes - drop fix-install.patch: upstream OBS-URL: https://build.opensuse.org/request/show/991155 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/range-v3?expand=0&rev=3
67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package range-v3
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define __builder ninja
|
|
Name: range-v3
|
|
Version: 0.12.0
|
|
Release: 0
|
|
Summary: Range library for C++14/17/20, basis for C++20's std::ranges
|
|
License: BSL-1.0
|
|
URL: https://github.com/ericniebler/range-v3
|
|
Source: %{url}/archive/%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: ninja
|
|
|
|
%description
|
|
Range library for C++14/17/20. This code was the basis of a formal proposal to add range support to the C++ standard library.
|
|
That proposal evolved through a Technical Specification, and finally into P0896R4 "The One Ranges Proposal"
|
|
which was merged into the C++20 working drafts in November 2018.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Provides: %{name}-static = %{version}
|
|
|
|
%description devel
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DRANGE_V3_TESTS=OFF \
|
|
-DRANGE_V3_DOCS=OFF \
|
|
-DRANGE_V3_EXAMPLES=OFF \
|
|
-DRANGES_MODULES=OFF
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
rm -f %{buildroot}%{_includedir}/module.modulemap
|
|
|
|
%files devel
|
|
%doc README.md CREDITS.md TODO.md
|
|
%license LICENSE.txt
|
|
%{_includedir}/{meta,range,concepts,std}
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
%changelog
|