summaryrefslogtreecommitdiff
path: root/cli11.spec
diff options
context:
space:
mode:
Diffstat (limited to 'cli11.spec')
-rw-r--r--cli11.spec87
1 files changed, 87 insertions, 0 deletions
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 <mimanchiok@qq.com> - 2.2.0-1
+- Update to 2.2.0
+
+* Wed Dec 15 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 1.8.0-3
+- Remove the release suffix
+
+* Fri Oct 8 2021 gaochong <gaochong@uniontech.com> - 1.8.0-2
+- remove google testcase
+
+* Fri Oct 8 2021 gaochong <gaochong@uniontech.com> - 1.8.0-1
+- Initial RPM