2020-07-22 14:47:47 +08:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: PEGTL
|
2023-09-15 11:16:35 +08:00
|
|
|
Version: 3.2.7
|
|
|
|
|
Release: 1
|
2020-07-22 14:47:47 +08:00
|
|
|
Summary: Parsing Expression Grammar Template Library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/taocpp/PEGTL/
|
|
|
|
|
Source0: https://github.com/taocpp/%{name}/archive/%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
2023-09-15 11:16:35 +08:00
|
|
|
BuildRequires: make cmake
|
2021-08-02 11:37:28 +08:00
|
|
|
|
2020-07-22 14:47:47 +08:00
|
|
|
%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
|
2021-08-02 11:37:28 +08:00
|
|
|
%setup -q -n %{name}-%{version}
|
2023-09-15 11:16:35 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake \
|
|
|
|
|
-DPEGTL_INSTALL_DOC_DIR:PATH=%{_defaultdocdir}/pegtl \
|
|
|
|
|
-DPEGTL_INSTALL_CMAKE_DIR:PATH=%{_datadir}/cmake/Modules \
|
|
|
|
|
-DPEGTL_BUILD_EXAMPLES:BOOL=OFF \
|
|
|
|
|
-DPEGTL_BUILD_TESTS:BOOL=ON
|
|
|
|
|
|
|
|
|
|
%make_build
|
2020-07-22 14:47:47 +08:00
|
|
|
|
|
|
|
|
%check
|
2023-09-15 11:16:35 +08:00
|
|
|
/usr/bin/ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags}
|
2020-07-22 14:47:47 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-09-15 11:16:35 +08:00
|
|
|
%make_install
|
|
|
|
|
rm %{buildroot}%{_defaultdocdir}/pegtl/LICENSE
|
2020-07-22 14:47:47 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc README.md doc/
|
|
|
|
|
%license LICENSE
|
2023-09-15 11:16:35 +08:00
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_datadir}/cmake/Modules
|
|
|
|
|
|
2020-07-22 14:47:47 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-09-15 11:16:35 +08:00
|
|
|
* Thu Sep 14 2023 liyanan <thistleslyn@163.com> - 3.2.7-1
|
|
|
|
|
- update to 3.2.7
|
|
|
|
|
|
2021-08-02 11:37:28 +08:00
|
|
|
* Mon Aug 2 2021 Shenmei Tu <tushenmei@huawei.com> - 2.8.0-3
|
|
|
|
|
- bugfix-gcc-10.patch
|
|
|
|
|
|
2020-07-22 14:47:47 +08:00
|
|
|
* Sat Jul 18 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 2.8.0-2
|
|
|
|
|
- Package init
|