Blame SPECS/pyelftools.spec

f9d604
# main package is archful to run tests everywhere but produces noarch packages
f9d604
%global         debug_package %{nil}
f9d604
f9d604
Summary:        Pure-Python library for parsing and analyzing ELF files
f9d604
Name:           pyelftools
f9d604
Version:        0.27
f9d604
Release:        4%{?dist}
f9d604
License:        Public Domain
f9d604
URL:            https://github.com/eliben/pyelftools
f9d604
Source0:        https://github.com/eliben/pyelftools/archive/v%{version}/%{name}-%{version}.tar.gz
f9d604
%global _description \
f9d604
Pure-Python library for parsing and analyzing ELF files\
f9d604
and DWARF debugging information.
f9d604
%description   %_description
f9d604
f9d604
%package     -n python3-%{name}
f9d604
Summary:	%{summary}
f9d604
# https://github.com/eliben/pyelftools/issues/180
f9d604
Provides:	bundled(python3-construct) = 2.6
f9d604
BuildRequires:  %{_bindir}/readelf
f9d604
BuildRequires:  python3-devel
f9d604
BuildRequires:  python3-setuptools
f9d604
BuildArch:      noarch
f9d604
%{?python_provide:%python_provide python3-%{name}}
f9d604
%description -n python3-%{name} %_description
f9d604
f9d604
%prep
f9d604
%setup -q
f9d604
%ifnarch x86_64
f9d604
rm test/external_tools/readelf
f9d604
%endif
f9d604
f9d604
%build
f9d604
%{py3_build}
f9d604
f9d604
%install
f9d604
%{py3_install}
f9d604
pushd %{buildroot}%{_bindir}
f9d604
mv readelf.py pyreadelf-%{python3_version}
f9d604
ln -s pyreadelf-%{python3_version} pyreadelf-3
f9d604
ln -s pyreadelf-3 pyreadelf
f9d604
popd
f9d604
f9d604
%check
f9d604
%{__python3} test/run_all_unittests.py
f9d604
%{__python3} test/run_examples_test.py
f9d604
# tests may fail because of differences in output-formatting
f9d604
# from binutils' readelf.  See:
f9d604
# https://github.com/eliben/pyelftools/wiki/Hacking-guide#tests
f9d604
%{__python3} test/run_readelf_tests.py || :
f9d604
f9d604
%files -n python3-%{name}
f9d604
%license LICENSE
f9d604
%doc CHANGES
f9d604
%{_bindir}/pyreadelf
f9d604
%{_bindir}/pyreadelf-%{python3_version}
f9d604
%{_bindir}/pyreadelf-3
f9d604
%{python3_sitelib}/elftools
f9d604
%{python3_sitelib}/pyelftools-*.egg-info
f9d604
f9d604
%changelog
f9d604
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.27-4
f9d604
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f9d604
  Related: rhbz#1991688
f9d604
f9d604
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.27-3
f9d604
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f9d604
f9d604
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f9d604
f9d604
* Fri Oct 30 2020 Dominik Mierzejewski <rpm@greysector.net> - 0.27-1
f9d604
- update to 0.27 (#1891845)
f9d604
- run readelf tests on all arches
f9d604
f9d604
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-4
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f9d604
f9d604
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.26-3
f9d604
- Rebuilt for Python 3.9
f9d604
f9d604
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-2
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f9d604
f9d604
* Tue Dec 17 2019 Dominik Mierzejewski <rpm@greysector.net> - 0.26-1
f9d604
- update to 0.26 (#1780153)
f9d604
- make main package archful to run tests on all arches
f9d604
  (pythonN-pyelftools subpackages are still noarch)
f9d604
- run readelf tests on x86_64 only for now
f9d604
- rename binaries to conform to Python packaging guidelines
f9d604
- enable python3 subpackage for EPEL7
f9d604
- declare bundled old construct module instead of needlessly requiring it
f9d604
f9d604
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.25-5
f9d604
- Rebuilt for Python 3.8.0rc1 (#1748018)
f9d604
f9d604
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.25-4
f9d604
- Rebuilt for Python 3.8
f9d604
f9d604
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-3
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f9d604
f9d604
* Tue Jun 11 2019 Terje Rosten <terje.rosten@ntnu.no> - 0.25-2
f9d604
- Still support Python 2 on Fedora 31
f9d604
f9d604
* Sun May 05 2019 Terje Rosten <terje.rosten@ntnu.no> - 0.25-1
f9d604
- 0.25
f9d604
- Use bundled construct as construct 2.9 is incompatible
f9d604
- Drop Python 2 stuff on el8 and Python 31 or newer
f9d604
f9d604
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f9d604
f9d604
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-3
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f9d604
f9d604
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24-2
f9d604
- Rebuilt for Python 3.7
f9d604
f9d604
* Sun Jun 17 2018 Terje Rosten <terje.rosten@ntnu.no> - 0.24-1
f9d604
- 0.24
f9d604
- some clean up
f9d604
- remove naked provide for Fedora 29 and later
f9d604
- switch to Python 3 for pyreadelf for Fedora 29 and later
f9d604
f9d604
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.22-0.16.git20130619.a1d9681
f9d604
- Update Python 2 dependency declarations to new packaging standards
f9d604
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f9d604
f9d604
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.15.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f9d604
f9d604
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22-0.14.git20130619.a1d9681
f9d604
- Python 2 binary package renamed to python2-pyelftools
f9d604
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
f9d604
f9d604
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.13.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f9d604
f9d604
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.12.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f9d604
f9d604
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.11.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f9d604
f9d604
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.22-0.10.git20130619.a1d9681
f9d604
- Rebuild for Python 3.6
f9d604
f9d604
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-0.9.git20130619.a1d9681
f9d604
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f9d604
f9d604
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.8.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f9d604
f9d604
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-0.7.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f9d604
f9d604
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-0.6.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f9d604
f9d604
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-0.5.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f9d604
f9d604
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-0.4.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f9d604
f9d604
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.22-0.3.git20130619.a1d9681
f9d604
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f9d604
f9d604
* Wed Oct 02 2013 Björn Esser <bjoern.esser@gmail.com> - 0.22-0.2.git20130619.a1d9681
f9d604
- adaptions for new Python-guidelines
f9d604
f9d604
* Fri Aug 16 2013 Björn Esser <bjoern.esser@gmail.com> - 0.22-0.1.git20130619.a1d9681
f9d604
- update to latest pre-release git snapshot
f9d604
- add python3-package
f9d604
- build on all arches to get some conclusion from testsuite,
f9d604
  but create noarch pkgs
f9d604
f9d604
* Sat Jun 08 2013 Terje Rosten <terje.rosten@ntnu.no> - 0.21-2
f9d604
- Remove bundled construct lib
f9d604
f9d604
* Thu May 09 2013 Terje Rosten <terje.rosten@ntnu.no> - 0.21-1
f9d604
- 0.21
f9d604
- Run test
f9d604
- Updated source url
f9d604
- Drop defattr
f9d604
f9d604
* Wed Jun 06 2012 Kushal Das <kushal@fedoraproject.org> 0.20-1
f9d604
- Intial package (#829676)