blob: 35325715fdb8b5289d3dc8321fdd2eb715de3594 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
|