%global pypi_name minidump Name: python-%{pypi_name} Version: 0.0.6 Release: 2%{?dist} Summary: A Python library to parse and read Microsoft minidump file format License: MIT URL: https://github.com/skelsec/minidump Source0: %pypi_source Source1: https://raw.githubusercontent.com/skelsec/minidump/master/LICENSE BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %description A Python library to parse and read Microsoft minidump file format. Can create minidumps on Windows machines using the windows API (implemented with ctypes). %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A Python library to parse and read Microsoft minidump file format. Can create minidumps on Windows machines using the windows API (implemented with ctypes). %package -n %{pypi_name} Summary: %{summary} Requires: python3-%{pypi_name} %description -n %{pypi_name} Command line tools for the Microsoft minidump file format. %prep %autosetup -n %{pypi_name}-%{version} # Remove shebangs sed -i -e '/^#!\//, 1d' %{pypi_name}/{*.py,*/*.py} # Add LICENSE file cp -a %{SOURCE1} LICENSE # Fix line endings sed -i "s|\r||g" README.md %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.md %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}*.egg-info %files -n %{pypi_name} %doc README.md %license LICENSE %{_bindir}/%{pypi_name} %changelog * Fri Jul 26 2019 Fedora Release Engineering - 0.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 15 2019 Fabian Affolter - 0.0.6-1 - Initial package for Fedora