# Created by pyp2rpm-3.3.2 %global pypi_name serpent Name: python-%{pypi_name} Version: 1.27 Release: 1%{?dist} Summary: Serialization based on ast.literal_eval License: MIT URL: None Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-enum34 BuildRequires: python2-setuptools BuildRequires: python2-pip %(pip install --user setuptools --upgrade > /dev/null) %description Serpent is a simple serialization library based on ast.literal_eval.Because it only serializes literals and recreates the objects using ast.literal_eval(), the serialized data is safe to transport to other machines (over the network for instance) and de-serialize it there.*There is also a Java and a .NET (C) implementation available. This allows for easy data transfer between the various... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} Serpent is a simple serialization library based on ast.literal_eval.Because it only serializes literals and recreates the objects using ast.literal_eval(), the serialized data is safe to transport to other machines (over the network for instance) and de-serialize it there.*There is also a Java and a .NET (C) implementation available. This allows for easy data transfer between the various... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %install %py2_install %check %{__python2} setup.py test %files -n python2-%{pypi_name} %license LICENSE %doc README.md %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}.py %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Tue Nov 20 2018 Cloud User - 1.27-1 - Initial package.