7190785
%global pypi_name makeelf
7190785
7190785
Name:           python-%{pypi_name}
7190785
Version:        0.3.2
f1caf91
Release:        10%{?dist}
7190785
Summary:        ELF reader-writer library
7190785
7190785
License:        GPLv3+
7190785
URL:            https://github.com/v3l0c1r4pt0r/makeelf
7190785
Source0:        %{pypi_source}
7190785
BuildArch:      noarch
7190785
7190785
%description
7190785
MakeELF is a Python library to parse, modify and create ELF binaries. It
7190785
provides following features:
7190785
7190785
- easy to use, standard Python interface
7190785
- reading existing ELF files to Python representation
7190785
- modification of every aspect of ELF format structures
7190785
- ability to skip any validation to test other parsers for potential errors
7190785
- creating new valid ELF files with just one step
7190785
7190785
%package -n     python3-%{pypi_name}
7190785
Summary:        %{summary}
7190785
7190785
BuildRequires:  python3-devel
7190785
BuildRequires:  python3-setuptools
7190785
%{?python_provide:%python_provide python3-%{pypi_name}}
7190785
7190785
%description -n python3-%{pypi_name}
7190785
MakeELF is a Python library to parse, modify and create ELF binaries. It
7190785
provides following features:
7190785
7190785
- easy to use, standard Python interface
7190785
- reading existing ELF files to Python representation
7190785
- modification of every aspect of ELF format structures
7190785
- ability to skip any validation to test other parsers for potential errors
7190785
- creating new valid ELF files with just one step
7190785
7190785
%prep
7190785
%autosetup -n %{pypi_name}-%{version}
7190785
# Remove shebang
7190785
sed -i -e '/^#!\//, 1d' {*/*.py,*/*/*.py}
7190785
# Fix encoding
7190785
sed -i "s|\r||g" README.txt
7190785
7190785
%build
7190785
%py3_build
7190785
7190785
%install
7190785
%py3_install
7190785
7190785
%files -n python3-%{pypi_name}
7190785
%license LICENSE
7190785
%doc README.txt
7190785
%{python3_sitelib}/%{pypi_name}/
7190785
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
7190785
7190785
%changelog
f1caf91
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-10
f1caf91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f1caf91
d53dca2
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-9
d53dca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
d53dca2
7c4c5c0
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3.2-8
7c4c5c0
- Rebuilt for Python 3.11
7c4c5c0
fa431a6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-7
fa431a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
fa431a6
db781c6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-6
db781c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
db781c6
6a481ca
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.2-5
6a481ca
- Rebuilt for Python 3.10
6a481ca
87f148f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
87f148f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
87f148f
ce3e55a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
ce3e55a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ce3e55a
d04b57e
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.3.2-2
d04b57e
- Rebuilt for Python 3.9
d04b57e
7190785
* Tue Mar 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.2-1
7190785
- Initial package for Fedora