From 71907859b54c8c96aaafee5870d401cce3e6ce41 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mar 26 2020 16:09:03 +0000 Subject: * Tue Mar 03 2020 Fabian Affolter - 0.3.2-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63e26dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/makeelf-0.3.2.tar.gz diff --git a/python-makeelf.spec b/python-makeelf.spec new file mode 100644 index 0000000..5dd866a --- /dev/null +++ b/python-makeelf.spec @@ -0,0 +1,61 @@ +%global pypi_name makeelf + +Name: python-%{pypi_name} +Version: 0.3.2 +Release: 1%{?dist} +Summary: ELF reader-writer library + +License: GPLv3+ +URL: https://github.com/v3l0c1r4pt0r/makeelf +Source0: %{pypi_source} +BuildArch: noarch + +%description +MakeELF is a Python library to parse, modify and create ELF binaries. It +provides following features: + +- easy to use, standard Python interface +- reading existing ELF files to Python representation +- modification of every aspect of ELF format structures +- ability to skip any validation to test other parsers for potential errors +- creating new valid ELF files with just one step + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +MakeELF is a Python library to parse, modify and create ELF binaries. It +provides following features: + +- easy to use, standard Python interface +- reading existing ELF files to Python representation +- modification of every aspect of ELF format structures +- ability to skip any validation to test other parsers for potential errors +- creating new valid ELF files with just one step + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove shebang +sed -i -e '/^#!\//, 1d' {*/*.py,*/*/*.py} +# Fix encoding +sed -i "s|\r||g" README.txt + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.txt +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info + +%changelog +* Tue Mar 03 2020 Fabian Affolter - 0.3.2-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..0a46bae --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (makeelf-0.3.2.tar.gz) = 8e7e50f692cedf24ee9a9ded37dafe2de0042fdff08d536b9d6620eda387cd01e31715297d2a53b616a0b241b9af9fa4a1f43faf3def38ac9c01305d9f826bc2