# Created by pyp2rpm-3.3.8 %global pypi_name erl_terms %global pypi_version 0.1.5 Name: python-%{pypi_name} Version: %{pypi_version} Release: 3%{?dist} Summary: Erlang term read library License: BSD-2-Clause-FreeBSD URL: https://github.com/machinezone/python_etf Source0: %{pypi_source} # Points to: Commits on Apr 16, 2018 Source1: https://raw.githubusercontent.com/machinezone/python_etf/9337b6385d63b79513ed5411b81491bd12a7a3cf/LICENSE Source2: https://github.com/machinezone/python_etf/blob/9337b6385d63b79513ed5411b81491bd12a7a3cf/README.md Patch0: python-erl_terms-Remove-use_2to3.patch BuildArch: noarch BuildRequires: /usr/bin/git BuildRequires: python3-devel BuildRequires: python3dist(nose) BuildRequires: python3dist(parsimonious) >= 0.7 BuildRequires: python3dist(setuptools) %description Erlang term library implemented in pure Python %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Provides: python3dist(erl_terms) Requires: python3dist(parsimonious) >= 0.7 %description -n python3-%{pypi_name} Erlang term library implemented in pure Python %prep %autosetup -S git -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info sed -i 's/parsimonious==/parsimonious>=/g' setup.py # Install LICENSE and README.md filees install -p -m 0666 %{SOURCE1} %{SOURCE2} . %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %changelog * Thu Jul 31 2025 Damian Wrobel - 0.1.5-3 - Disable tests * Thu Jul 31 2025 Damian Wrobel - 0.1.5-2 - Add license and readme. - Add patch to fix build error on Fedora * Tue Jul 29 2025 ansible - 0.1.5-1 - Initial package.