From 73ad2ccb26e9df02de2b1a5ef52481f5b41fb915 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 6 Aug 2025 12:06:38 +0000 Subject: automatic import of cli11 --- .gitignore | 1 + cli11.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 cli11.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a9e2397 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/cli11-2.2.0.tar.gz diff --git a/cli11.spec b/cli11.spec new file mode 100644 index 0000000..3532571 --- /dev/null +++ b/cli11.spec @@ -0,0 +1,87 @@ +%global _docdir_fmt %{name}-devel + +Name: cli11 +Version: 2.2.0 +Release: 1 +Summary: Command line parser for C++11 + +License: BSD +URL: https://github.com/CLIUtils/CLI11 +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: boost-devel +BuildRequires: cmake +BuildRequires: catch2-static +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: python3-devel + +%description +CLI11 is a command line parser for C++11 and beyond that provides a +rich feature set with a simple and intuitive interface. + +%package devel +Summary: Command line parser for C++11 +Provides: %{name}-static = %{version}-%{release} + +%description devel +CLI11 is a command line parser for C++11 and beyond that provides a +rich feature set with a simple and intuitive interface. + +%package docs +Summary: Documentation for CLI11 + +%description docs +Documentation for CLI11. + +%prep +%autosetup -p1 -n CLI11-%{version} + +# Alter the icon path in README.md for the installed paths +sed -i.orig 's,\./docs,.,' README.md +touch -r README.md.orig README.md +rm README.md.orig + +%build +CXXFLAGS='%{build_cxxflags} -DCLI11_OPTIONAL -DCLI11_STD_OPTIONAL=1' +%cmake \ + -DCLI11_BUILD_DOCS:BOOL=TRUE \ + -DCLI11_BUILD_TESTS:BOOL=TRUE \ + -DCMAKE_CXX_STANDARD=17 +%cmake_build + +# Build the documentation +%cmake_build --target docs + +%install +%cmake_install + +%check +%ctest + +%files devel +%doc CHANGELOG.md README.md docs/CLI11_300.png +%license LICENSE +%{_includedir}/CLI/ +%{_datadir}/cmake/CLI11/ +%{_datadir}/pkgconfig/CLI11.pc + +%files docs +%doc %{_vpath_builddir}/docs/html +%doc docs/CLI11.svg docs/CLI11_100.png + +%changelog +* Tue Aug 5 2025 mimanchiok - 2.2.0-1 +- Update to 2.2.0 + +* Wed Dec 15 2021 jiangxinyu - 1.8.0-3 +- Remove the release suffix + +* Fri Oct 8 2021 gaochong - 1.8.0-2 +- remove google testcase + +* Fri Oct 8 2021 gaochong - 1.8.0-1 +- Initial RPM diff --git a/sources b/sources new file mode 100644 index 0000000..8332b3d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +f0b70187eadf05a23257ac1d17c9a0e3 cli11-2.2.0.tar.gz -- cgit v1.2.3