pyelftools/pyelftools.spec

61 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2019-12-05 21:03:35 +08:00
Name: pyelftools
2020-01-16 16:44:13 +08:00
Version: 0.25
Release: 4
2019-12-05 21:03:35 +08:00
License: Public Domain
2020-01-16 16:44:13 +08:00
Summary: Pure-Python library for parsing and analyzing ELF files
2019-12-05 21:03:35 +08:00
URL: https://github.com/eliben/pyelftools
Source0: https://files.pythonhosted.org/packages/source/p/pyelftools/pyelftools-%{version}.tar.gz
2020-01-16 16:44:13 +08:00
2020-11-17 16:17:53 +08:00
BuildRequires: python3-devel python3-setuptools
2019-12-05 21:03:35 +08:00
BuildArch: noarch
Patch0001: 0001-ARMAttribute-fix-access-to-structs-stream-and-nul-20.patch
2019-12-05 21:03:35 +08:00
%description
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
%{?python_provide:%python_provide python3-pyelftools}
%description -n python3-pyelftools
This package provides a python library for parsing and
analyzing ELF files and DWARF debugging information.
%prep
%autosetup -p1
%build
%{py3_build}
%install
%{py3_install}
mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/pyreadelf
%check
%{__python3} test/run_all_unittests.py
%{__python3} test/run_examples_test.py
%{__python3} test/run_readelf_tests.py || :
%files -n python3-pyelftools
%doc CHANGES LICENSE
%{_bindir}/pyreadelf
2020-01-16 16:44:13 +08:00
%{python3_sitelib}/elftools
%{python3_sitelib}/pyelftools-*.egg-info
2019-12-05 21:03:35 +08:00
%changelog
* Thu Jan 11 2024 liubo <liubo1@xfusion.com> - 0.25-4
- ARMAttribute: fix access to structs, stream and nul
2020-11-17 16:17:53 +08:00
* Mon Nov 16 2020 baizhonggui<baizhonggui@huawei.com> - 0.25-3
- Drop Python 2 subpackage
2020-01-16 16:44:13 +08:00
* Thu Jan 16 2020 wanjiankang<wanjiankang@huawei.com> - 0.25-2
- update to 0.25-2
2019-12-05 21:03:35 +08:00
* Tue Dec 2 2019 likexin<likexin4@huawei.com> - 0.24-4
- Package init
2020-01-16 16:44:13 +08:00