PEGTL/PEGTL.spec
2020-07-22 14:47:47 +08:00

50 lines
1.2 KiB
RPMSpec

%global debug_package %{nil}
Name: PEGTL
Version: 2.8.0
Release: 2
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++
BuildRequires: make
%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
%setup -q -n %{name}-%{version}
%check
make
%install
install -d -m 0755 %{buildroot}%{_includedir}
pushd include/
cp -R tao/ %{buildroot}%{_includedir}
popd
%files devel
%doc README.md doc/
%license LICENSE
%{_includedir}/tao/pegtl.hpp
%{_includedir}/tao/pegtl
%changelog
* Sat Jul 18 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 2.8.0-2
- Package init