tl-expected/tl-expected.spec

64 lines
1.7 KiB
RPMSpec

Name: tl-expected
Version: 1.1.0
Release: 1mamba
Summary: Single header implementation of 'std::expected' with functional-style extensions
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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}
%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 Mar 16 2023 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Thu Dec 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- package created using the webbuild interface