blob: 708bae010264a207cbda5fad77c0dda501f97f20 (
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
|
%global debug_package %{nil}
Name: PEGTL
Version: 2.8.3
Release: 1
Summary: Parsing Expression Grammar Template Library
License: MIT
URL: https://github.com/taocpp/%{name}
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch: PEGTL-compiler-warning.patch
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: ninja-build
%description
The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency
C++11 header-only library for creating parsers according to a Parsing
Expression Grammar (PEG).
%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}
Provides: %{name} = %{version}-%{release}
Requires: libstdc++-devel
%description devel
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.
%prep
%autosetup -p1
%build
%cmake \
-DPEGTL_INSTALL_INCLUDE_DIR:PATH='%{_includedir}' \
-DPEGTL_INSTALL_DOC_DIR:PATH='%{_pkgdocdir}' \
-DPEGTL_INSTALL_CMAKE_DIR:PATH='%{_datadir}/cmake/pegtl' \
-GNinja
%cmake_build
%install
%cmake_install
rm -rv %{buildroot}%{_pkgdocdir}
%check
%ctest
%files devel
%doc README.md doc/
%license LICENSE
%{_includedir}/tao/pegtl.hpp
%{_includedir}/tao/pegtl/
%{_datadir}/cmake/pegtl/
%changelog
* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 2.8.3-1
- downgrade 2.8.3
* Wed Jan 01 2025 Funda Wang <fundawang@yeah.net> - 3.2.8-1
- update to 3.2.8
* Mon Nov 04 2024 Funda Wang <fundawang@yeah.net> - 3.2.7-3
- adopt to cmake macro change
* Mon Oct 28 2024 Funda Wang <fundawang@yeah.net> - 3.2.7-2
- adopt to cmake macro change
* Thu Sep 14 2023 liyanan <thistleslyn@163.com> - 3.2.7-1
- update to 3.2.7
* Mon Aug 2 2021 Shenmei Tu <tushenmei@huawei.com> - 2.8.0-3
- bugfix-gcc-10.patch
* Sat Jul 18 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 2.8.0-2
- Package init
|