pyelftools/pyelftools.spec

67 lines
1.8 KiB
RPMSpec
Raw Normal View History

2022-06-15 11:18:36 +08:00
%global debug_package %{nil}
2019-12-05 21:03:35 +08:00
Name: pyelftools
2022-11-20 19:56:57 +08:00
Version: 0.29
2022-06-15 11:18:36 +08:00
Release: 1
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
2022-06-15 11:18:36 +08:00
Source0: https://github.com/eliben/pyelftools/archive/v%{version}/%{name}-%{version}.tar.gz
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
2022-06-15 11:18:36 +08:00
Provides: bundled(python3-construct) = 2.6
BuildRequires: python3-devel python3-setuptools
BuildArch: noarch
2019-12-05 21:03:35 +08:00
Summary: Parsing ELF and DWARF in Python
%{?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
2022-06-15 11:18:36 +08:00
%license LICENSE
%doc CHANGES
2019-12-05 21:03:35 +08:00
%{_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
2022-11-20 19:56:57 +08:00
* Fri Nov 04 2022 hua <dchang@zhixundn.com> - 0.29-1
- upgrade version to 0.29
2022-06-15 11:18:36 +08:00
* Wed Jun 15 2022 duyiwei <duyiwei@kylinos.cn> - 0.27-1
- upgrade version to 0.27
2022-01-29 10:59:34 +08:00
* Sat Jan 29 2022 caodongxia <caodongxia@huawei.com> - 0.25-4
- fix collections import MutableMapping
2020-11-02 09:46:22 +08:00
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 0.25-3
- delete python2 modules
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