forked from pool/cli11
This version improves support for alternative build systems, like Meson and Bazel. The single-include file now is in its own subdirectory. Several smaller fixes as well. + Meson: fixes, cleanups, and modernizations #1024 & #1025 + Support building with Bazel #1033 + Restore non-arch dependent path for the pkgconfig file #1012 + Add get_subcommand_no_throw #1016 + Move single file to single-include folder #1030 & #1036 + Fixed app.set_failure_message(...) -> app.failure_message(...) #1018 + Add IWYU pragmas #1008 + Fix internal header include paths #1011 + Improved clarity in RequiredError #1029 + Added ability to use lexical_cast overloads constrained with enable_if #1021 + Bug fixes in latest release related to environmental variable parsing from option groups and unrecognized fields in a config file #1005 - Packaging: + move cli11.pc to _datadir + change -devel package to build noarch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cli11?expand=0&rev=13
102 lines
2.6 KiB
RPMSpec
102 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package cli11
|
|
#
|
|
# Copyright (c) 2024 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: cli11
|
|
Version: 2.4.2
|
|
Release: 0
|
|
Summary: Command line parser for C++11
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/CLIUtils/CLI11
|
|
Source: %{name}-%{version}.tar.gz
|
|
BuildRequires: Catch2-devel
|
|
BuildRequires: boost-devel
|
|
BuildRequires: cmake >= 3.5
|
|
BuildRequires: doxygen
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: python3-devel
|
|
|
|
%description
|
|
CLI11 is a command line parser for C++11 and beyond that provides a
|
|
rich feature set.
|
|
|
|
%package devel
|
|
Summary: Development files for CLI11
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
CLI11 is a command line parser for C++11 and beyond that provides a
|
|
rich feature set. It is header only, and has a number of design
|
|
limits by choice:
|
|
|
|
* No completion of partial options (like --ve for --version,
|
|
if it were unambiguous)
|
|
* No wide strings/Unicode
|
|
|
|
%package doc
|
|
Summary: Documentation for CLI11
|
|
Group: Documentation/Other
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
This package contains documentation for CLI11
|
|
|
|
CLI11 is a command line parser for C++11 and beyond that provides a
|
|
rich feature set. It is header only, and has a number of design
|
|
limits by choice:
|
|
|
|
* No completion of partial options (like --ve for --version,
|
|
if it were unambiguous)
|
|
* No wide strings/Unicode
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
%if 0%{?sle_version} <= 150300 && 0%{?suse_version} <= 1500
|
|
-DCLI11_BUILD_TESTS:BOOL=FALSE \
|
|
%else
|
|
-DCLI11_BUILD_TESTS:BOOL=TRUE \
|
|
%endif
|
|
-DCLI11_BUILD_DOCS:BOOL=TRUE \
|
|
-DCLI11_BUILD_EXAMPLES:BOOL=FALSE
|
|
%cmake_build all docs
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc CHANGELOG.md
|
|
%dir %{_includedir}/CLI
|
|
%dir %{_includedir}/CLI/impl
|
|
%{_includedir}/CLI/*.hpp
|
|
%{_includedir}/CLI/impl/*.hpp
|
|
%dir %{_datadir}/cmake/CLI11/
|
|
%{_datadir}/cmake/CLI11/*.cmake
|
|
%{_datadir}/pkgconfig/CLI11.pc
|
|
|
|
%files doc
|
|
%doc build/docs/html/
|
|
|
|
%changelog
|