diff --git a/cli11-2.2.0.tar.gz b/cli11-2.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..58c912141164a5c0f0139bfa91343fefe151d525 Binary files /dev/null and b/cli11-2.2.0.tar.gz differ diff --git a/cli11.spec b/cli11.spec new file mode 100644 index 0000000000000000000000000000000000000000..35325715fdb8b5289d3dc8321fdd2eb715de3594 --- /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/cli11.src.rpm b/cli11.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..48654958a0b3fde3fb24c6566bd4b9cd9c6e31b5 Binary files /dev/null and b/cli11.src.rpm differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..6d711be8ec2b5ca77c4544062445f2a9c79e89c3 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +cli11-2.2.0.tar.gz +cli11.spec