summaryrefslogtreecommitdiff
path: root/libexpected-dev.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-24 01:44:29 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-24 01:44:29 +0000
commit8f7b2dc183767fd29f369e46d51921d2ceeaddd1 (patch)
tree9b34159c836ec889b274249f1cbe1b6e3c6cb833 /libexpected-dev.spec
parentb6a510c4020c065efa143d8604f4db3da2ed5c15 (diff)
automatic import of libexpected-devopeneuler24.03_LTS_SP3
Diffstat (limited to 'libexpected-dev.spec')
-rw-r--r--libexpected-dev.spec44
1 files changed, 44 insertions, 0 deletions
diff --git a/libexpected-dev.spec b/libexpected-dev.spec
new file mode 100644
index 0000000..c211ec1
--- /dev/null
+++ b/libexpected-dev.spec
@@ -0,0 +1,44 @@
+%global debug_package %{nil}
+
+Name: libexpected-dev
+Version: 1.3.1
+Release: 1%{?dist}
+Summary: C++11/14/17 std::expected with functional-style extensions
+
+License: CC0-1.0
+URL: https://github.com/TartanLlama/expected
+Source0: https://github.com/TartanLlama/expected/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+BuildArch: noarch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+
+%description
+tl::expected is a single-header implementation of std::expected with
+functional-style extensions. It is proposed as the preferred way to represent
+an object which will either have an expected value, or an unexpected value
+giving information about why something failed. This implementation provides
+utilities such as map, map_error, and_then, and or_else to make coding with
+expected cleaner.
+
+%prep
+%autosetup -p1
+
+%build
+mkdir -p build && cd build && %cmake .. -DBUILD_TESTING=OFF -DEXPECTED_BUILD_TESTS=OFF && %make_build
+
+%install
+cd build && DESTDIR=%{buildroot} cmake --install .
+
+%files
+%license COPYING
+%doc README.md
+%{_includedir}/tl/
+%{_datadir}/cmake/tl-expected/
+
+%changelog
+* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 1.3.1-1
+- Initial package