File expected-lite.spec of Package expected-lite
%define soname 0
%define debug_package %{nil}
Name: expected-lite
Version: 0.9.0
Release: 1
Summary: Expected objects in C++11 and later in a single-file header-only library
Group: Development/Libraries/C and C++
License: BSL-1.0
URL: https://github.com/martinmoene/expected-lite
Source0: expected-lite-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: cmake
BuildRequires: gcc-c++
%description
Expected objects in C++11 and later in a single-file header-only library
%package -n lib%{name}-devel
Summary: Headers and development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name}%{soname} = %{version}
%description -n lib%{name}-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n expected-lite-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
%clean
%files
%defattr(-,root,root,-)
%doc README.md LICENSE.txt Notes.md
%files -n lib%{name}-devel
%defattr(-,root,root,-)
%{_includedir}/nonstd
%{_libdir}/cmake/*/*.cmake
%changelog