From 005345a64fd1eb4ee72f3c3e2947a2eec04f714e Mon Sep 17 00:00:00 2001 From: Daniel Kopecek Date: Fri, 15 Jul 2016 15:31:45 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + PEGTL.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 50 insertions(+) create mode 100644 PEGTL.spec diff --git a/.gitignore b/.gitignore index e69de29..1fad765 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.3.1.tar.gz diff --git a/PEGTL.spec b/PEGTL.spec new file mode 100644 index 0000000..2f7023b --- /dev/null +++ b/PEGTL.spec @@ -0,0 +1,48 @@ +%global debug_package %{nil} + +Name: PEGTL +Version: 1.3.1 +Release: 1%{?dist} +Summary: Parsing Expression Grammar Template Library +Group: Development/Libraries +License: MIT +URL: https://github.com/ColinH/%{name}/ +Source0: https://github.com/ColinH/%{name}/archive/%{version}.tar.gz + +BuildRequires: /usr/bin/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} +Group: Development/Libraries +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} +find pegtl.hh pegtl/ -type f -exec install -D -p -m 0644 "{}" "%{buildroot}%{_includedir}/{}" \; + +%files devel +%doc README.md examples/ +%license LICENSE +%{_includedir}/pegtl.hh +%{_includedir}/pegtl + +%changelog +* Thu Jul 14 2016 Daniel Kopecek - 1.3.1-1 +- Initial package diff --git a/sources b/sources index e69de29..6789984 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0d55b3233f7a4737a5c03ab039920bbe 1.3.1.tar.gz