8
0
forked from pool/optional-lite
Files
optional-lite/optional-lite.spec

58 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package optional-lite
#
# Copyright (c) 2020 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/
#
Name: optional-lite
Version: 3.6.0
Release: 0
Summary: A C++17-like optional, a nullable object for C++98, C++11 and later
License: BSL-1.0
URL: https://github.com/martinmoene/optional-lite
Source: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
optional lite: A single-file header-only version of a C++17-like optional, a nullable object for C++98, C++11 and later.
%package devel
Summary: A single-file header-only version of a C++17-like optional
Group: Development/Libraries/C and C++
Requires: libstdc++-devel
%description devel
Development files for a header-only library
of a C++17-like optional, a nullable object for C++98, C++11 and later.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%files devel
%license LICENSE.txt
%doc CHANGES.txt README.md
%{_includedir}/nonstd/
%{_libdir}/cmake/optional-lite/
%changelog