diff --git python-parsley/python-parsley.spec python-parsley/python-parsley.spec.tmp index f79ef4376f..ea63f52c58 100644 --- python-parsley/python-parsley.spec +++ python-parsley/python-parsley.spec.tmp @@ -2,7 +2,7 @@ %global lowname parsley Name: python-parsley Version: 1.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Parsing and pattern matching made easy License: MIT URL: https://launchpad.net/parsley @@ -12,26 +12,34 @@ BuildRequires: python2-devel BuildRequires: python-twisted BuildRequires: python-sphinx -%description -A parser generator library based on OMeta, and other useful parsing tools. -Parsley is a parsing library for people who find parsers scary or -annoying. I wrote it because I wanted to parse a programming language, -and tools like PLY or ANTLR or Bison were very hard to understand and -integrate into my Python code. Most parser generators are based on LL -or LR parsing algorithms that compile to big state machine -tables. It was like I had to wake up a different section of my brain -to understand or work on grammar rules. - -Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so -each expression in the grammar rules works like a Python -expression. In particular, alternatives are evaluated in order, unlike -table-driven parsers such as yacc, bison or PLY. - -Parsley is an implementation of OMeta, an object-oriented -pattern-matching language developed by Alessandro Warth at -thesis, which provides a detailed description of OMeta: +%global _description\ +A parser generator library based on OMeta, and other useful parsing tools.\ +Parsley is a parsing library for people who find parsers scary or\ +annoying. I wrote it because I wanted to parse a programming language,\ +and tools like PLY or ANTLR or Bison were very hard to understand and\ +integrate into my Python code. Most parser generators are based on LL\ +or LR parsing algorithms that compile to big state machine\ +tables. It was like I had to wake up a different section of my brain\ +to understand or work on grammar rules.\ +\ +Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so\ +each expression in the grammar rules works like a Python\ +expression. In particular, alternatives are evaluated in order, unlike\ +table-driven parsers such as yacc, bison or PLY.\ +\ +Parsley is an implementation of OMeta, an object-oriented\ +pattern-matching language developed by Alessandro Warth at\ +thesis, which provides a detailed description of OMeta:\ http://www.vpri.org/pdf/tr2008003_experimenting.pdf +%description %_description + +%package -n python2-parsley +Summary: %summary +%{?python_provide:%python_provide python2-parsley} + +%description -n python2-parsley %_description + %prep %setup -q -n %{oname}-%{version} rm -rf *.egg* @@ -62,7 +70,7 @@ cp -a %{_builddir}/%{oname}-%{version}/doc/_build/man/%{lowname}.1* %{buildroot} # %{__python2} -m unittest -v test_runtime # popd -%files +%files -n python2-parsley %doc LICENSE NEWS README %{_mandir}/man1/%{lowname}.1* %{python2_sitelib}/%{oname}-%{version}-py2.7.egg-info @@ -71,6 +79,10 @@ cp -a %{_builddir}/%{oname}-%{version}/doc/_build/man/%{lowname}.1* %{buildroot} %{python2_sitelib}/terml/ %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 1.3-6 +- Python 2 binary package renamed to python2-parsley + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild