Subpackage python2-ply has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
This commit is contained in:
parent
c2f4912b62
commit
61e907b722
@ -1,7 +1,3 @@
|
|||||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Ensure that pycparser uses the same YACC __tabversion__ as python-ply
|
# Ensure that pycparser uses the same YACC __tabversion__ as python-ply
|
||||||
# package to prevent "yacc table file version is out of date" problem.
|
# package to prevent "yacc table file version is out of date" problem.
|
||||||
%define ply_version %(LC_ALL=C rpm -q --qf '%%{VERSION}' python3-ply | grep -Eo '^[^.]+\.[^.]+')
|
%define ply_version %(LC_ALL=C rpm -q --qf '%%{VERSION}' python3-ply | grep -Eo '^[^.]+\.[^.]+')
|
||||||
@ -9,7 +5,7 @@
|
|||||||
Name: python-pycparser
|
Name: python-pycparser
|
||||||
Summary: C parser and AST generator written in Python
|
Summary: C parser and AST generator written in Python
|
||||||
Version: 2.14
|
Version: 2.14
|
||||||
Release: 22%{?dist}
|
Release: 23%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://github.com/eliben/pycparser
|
URL: http://github.com/eliben/pycparser
|
||||||
Source0: http://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz
|
Source0: http://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz
|
||||||
@ -27,35 +23,18 @@ Patch100: pycparser-2.10-ply.patch
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
# for unit tests
|
# for unit tests
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: python2-ply >= 3.6
|
|
||||||
BuildRequires: cpp
|
BuildRequires: cpp
|
||||||
|
BuildRequires: python3-ply
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
|
||||||
# for unit tests
|
|
||||||
BuildRequires: python3-ply
|
|
||||||
%endif # if with_python3
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pycparser is a complete parser for the C language, written in pure Python.
|
pycparser is a complete parser for the C language, written in pure Python.
|
||||||
It is a module designed to be easily integrated into applications that
|
It is a module designed to be easily integrated into applications that
|
||||||
need to parse C source code.
|
need to parse C source code.
|
||||||
|
|
||||||
%package -n python2-pycparser
|
|
||||||
Summary: C parser and AST generator written in Python
|
|
||||||
Requires: python2-ply = %{ply_version}
|
|
||||||
%{?python_provide:%python_provide python2-pycparser}
|
|
||||||
|
|
||||||
%description -n python2-pycparser
|
|
||||||
pycparser is a complete parser for the C language, written in pure Python.
|
|
||||||
It is a module designed to be easily integrated into applications that
|
|
||||||
need to parse C source code.
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-pycparser
|
%package -n python3-pycparser
|
||||||
Summary: C parser and AST generator written in Python
|
Summary: C parser and AST generator written in Python
|
||||||
Requires: python3-ply = %{ply_version}
|
Requires: python3-ply = %{ply_version}
|
||||||
@ -65,7 +44,6 @@ Requires: python3-ply = %{ply_version}
|
|||||||
pycparser is a complete parser for the C language, written in pure Python.
|
pycparser is a complete parser for the C language, written in pure Python.
|
||||||
It is a module designed to be easily integrated into applications that
|
It is a module designed to be easily integrated into applications that
|
||||||
need to parse C source code.
|
need to parse C source code.
|
||||||
%endif # if with_python3
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pycparser-release_v%{version}
|
%setup -q -n pycparser-release_v%{version}
|
||||||
@ -76,51 +54,32 @@ need to parse C source code.
|
|||||||
rm -rf pycparser/ply
|
rm -rf pycparser/ply
|
||||||
|
|
||||||
# examples
|
# examples
|
||||||
%{__python2} %{SOURCE1} examples
|
%{__python3} %{SOURCE1} examples
|
||||||
dos2unix LICENSE
|
dos2unix LICENSE
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
pushd build/lib/pycparser
|
|
||||||
%{__python2} _build_tables.py
|
|
||||||
popd
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
pushd build/lib/pycparser
|
pushd build/lib/pycparser
|
||||||
%{__python3} _build_tables.py
|
%{__python3} _build_tables.py
|
||||||
popd
|
popd
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} tests/all_tests.py
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{__python3} tests/all_tests.py
|
%{__python3} tests/all_tests.py
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%files -n python2-pycparser
|
|
||||||
%license LICENSE
|
|
||||||
%doc examples
|
|
||||||
%{python2_sitelib}/pycparser/
|
|
||||||
%{python2_sitelib}/pycparser-*.egg-info
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-pycparser
|
%files -n python3-pycparser
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc examples
|
%doc examples
|
||||||
%{python3_sitelib}/pycparser/
|
%{python3_sitelib}/pycparser/
|
||||||
%{python3_sitelib}/pycparser-*.egg-info
|
%{python3_sitelib}/pycparser-*.egg-info/
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 2.14-23
|
||||||
|
- Subpackage python2-ply has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.14-22
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.14-22
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user