|
 |
7190785 |
%global pypi_name makeelf
|
|
 |
7190785 |
|
|
 |
7190785 |
Name: python-%{pypi_name}
|
|
 |
7190785 |
Version: 0.3.2
|
|
 |
7190785 |
Release: 1%{?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
|
|
 |
7190785 |
* Tue Mar 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.2-1
|
|
 |
7190785 |
- Initial package for Fedora
|