From 5ae96f934c598b05ab75e35bc98b88b9ec65e50f Mon Sep 17 00:00:00 2001 From: wang_yue111 <648774160@qq.com> Date: Fri, 11 Sep 2020 16:02:40 +0800 Subject: [PATCH] Remove python2-pyelftools --- pyelftools.spec | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/pyelftools.spec b/pyelftools.spec index a7513a9..b70c5c2 100644 --- a/pyelftools.spec +++ b/pyelftools.spec @@ -1,27 +1,18 @@ Name: pyelftools Version: 0.25 -Release: 2 +Release: 3 License: Public Domain Summary: Pure-Python library for parsing and analyzing ELF files URL: https://github.com/eliben/pyelftools Source0: https://files.pythonhosted.org/packages/source/p/pyelftools/pyelftools-%{version}.tar.gz -BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools +BuildRequires: python3-devel python3-setuptools BuildArch: noarch %description This package provides a python library for parsing and analyzing ELF files and DWARF debugging information. - -%package -n python2-pyelftools -Summary: Parsing ELF and DWARF in Python -Requires: python2-construct -%{?python_provide:%python_provide python2-pyelftools} -%description -n python2-pyelftools -This package provides a python library for parsing and -analyzing ELF files and DWARF debugging information. - %package -n python3-pyelftools Summary: Parsing ELF and DWARF in Python Requires: python3-construct @@ -34,30 +25,17 @@ analyzing ELF files and DWARF debugging information. %autosetup -p1 %build -%{py2_build} %{py3_build} %install -%{py2_install} -mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/py2readelf %{py3_install} mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/pyreadelf %check -%{__python2} test/run_all_unittests.py -%{__python2} test/run_examples_test.py -%{__python2} test/run_readelf_tests.py || : %{__python3} test/run_all_unittests.py %{__python3} test/run_examples_test.py %{__python3} test/run_readelf_tests.py || : -%files -n python2-pyelftools -%doc CHANGES LICENSE -%{_bindir}/py2readelf -%{python2_sitelib}/elftools -%{python2_sitelib}/pyelftools-*.egg-info - - %files -n python3-pyelftools %doc CHANGES LICENSE %{_bindir}/pyreadelf @@ -66,6 +44,9 @@ mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/pyreadelf %changelog +* Fri 11 Sep 2020 wangyue - 0.25-3 +- Remove python2-pyelftools + * Thu Jan 16 2020 wanjiankang - 0.25-2 - update to 0.25-2 -- Gitee