From 5ce9ead428798835bca4b322bb698a2e7ff18438 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:34:10 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.0-1mamba;Thu Dec 24 2020] --- README.md | 2 ++ tl-expected.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 tl-expected.spec diff --git a/README.md b/README.md index b51f64d..4e1d3fc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # tl-expected +Single header implementation of `std::expected` with functional-style extensions. + diff --git a/tl-expected.spec b/tl-expected.spec new file mode 100644 index 0000000..5dcd58a --- /dev/null +++ b/tl-expected.spec @@ -0,0 +1,61 @@ +Name: tl-expected +Version: 1.0.0 +Release: 1mamba +Summary: Single header implementation of 'std::expected' with functional-style extensions +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/TartanLlama/expected +Source: https://github.com/TartanLlama/expected.git/v%{version}/expected-%{version}.tar.bz2 +License: CC0 1.0 Universal +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Single header implementation of `std::expected` with functional-style extensions. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} + +%description devel +This package contains header files for developing applications that use %{name}. + +#% debug_package + +%prep +%setup -q -n expected-%{version} + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/tl +%{_includedir}/tl/expected.hpp +%dir %{_datadir}/cmake/tl-expected +%{_datadir}/cmake/tl-expected/tl-expected*.cmake +%doc COPYING + +%changelog +* Thu Dec 24 2020 Silvan Calarco 1.0.0-1mamba +- package created using the webbuild interface