# Created by pyp2rpm-3.3.5
%global pypi_name biplist

Name:           python-%{pypi_name}
Version:        1.0.3
Release:        1%{?dist}
Summary:        biplist is a library for reading/writing binary plists

License:        BSD
URL:            https://bitbucket.org/wooster/biplist
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(coverage)
BuildRequires:  python3dist(nose)
BuildRequires:  python3dist(setuptools)

%description
biplist is a binary plist parser/generator for Python.Binary Property List
(plist) files provide a faster and smaller serialization format for property
lists on OS X. This is a library for generating binary plists which can be read
by OS X, iOS, or other clients.This module requires Python 2.6 or higher or
Python 3.4 or higher.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
biplist is a binary plist parser/generator for Python.Binary Property List
(plist) files provide a faster and smaller serialization format for property
lists on OS X. This is a library for generating binary plists which can be read
by OS X, iOS, or other clients.This module requires Python 2.6 or higher or
Python 3.4 or higher.


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

%changelog
* Mon Nov 23 2020 Mattias Ohlsson <mattias.ohlsson@inprose.com> - 1.0.3-1
- Initial package.