summaryrefslogtreecommitdiff
path: root/PEGTL.spec
diff options
context:
space:
mode:
Diffstat (limited to 'PEGTL.spec')
-rw-r--r--PEGTL.spec77
1 files changed, 77 insertions, 0 deletions
diff --git a/PEGTL.spec b/PEGTL.spec
new file mode 100644
index 0000000..708bae0
--- /dev/null
+++ b/PEGTL.spec
@@ -0,0 +1,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