8
0
forked from pool/optional-lite
Files
optional-lite/optional-lite.spec
Jan Engelhardt a310a28cac Accepting request 1183263 from home:smolsheep:upgrades
I'm working on removing vendored libraries from newsboat and this is required. I want to maintain this here and in factory.

OBS-URL: https://build.opensuse.org/request/show/1183263
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/optional-lite?expand=0&rev=1
2024-07-01 08:27:26 +00:00

58 lines
1.7 KiB
RPMSpec

#
# 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