ee63770
# Created by pyp2rpm-3.3.2
ee63770
%global pypi_name pysol-cards
ee63770
ee63770
Name:           python-%{pypi_name}
ee63770
Version:        0.4.1
ee63770
Release:        1%{?dist}
ee63770
Summary:        Deal PySol FC Cards
ee63770
License:        MIT
ee63770
URL:            https://fc-solve.shlomifish.org/
ee63770
Source0:        %{pypi_source pysol_cards}
ee63770
BuildArch:      noarch
ee63770
ee63770
BuildRequires:  python3-devel
ee63770
BuildRequires:  python3dist(pbr) >= 2.0
ee63770
BuildRequires:  python3dist(setuptools)
ee63770
BuildRequires:  python3dist(six)
ee63770
ee63770
%description
ee63770
The pysol-cards python module allows the python developer to generate the
ee63770
initial deals of some PySol FC games.
ee63770
ee63770
%package -n     python3-%{pypi_name}
ee63770
Summary:        %{summary}
ee63770
%{?python_provide:%python_provide python3-%{pypi_name}}
ee63770
ee63770
%description -n python3-%{pypi_name}
ee63770
The pysol-cards python module allows the python developer to generate the
ee63770
initial deals of some PySol FC games.
ee63770
ee63770
%prep
ee63770
%autosetup -n pysol_cards-%{version}
ee63770
# Remove bundled egg-info
ee63770
rm -rf %{pypi_name}.egg-info
ee63770
sed -i '/^#! \/usr\/bin\/env python$/d' pysol_cards/*.py
ee63770
ee63770
%build
ee63770
%py3_build
ee63770
ee63770
%install
ee63770
# Must do the default python version install last because
ee63770
# the scripts in /usr/bin are overwritten with every setup.py install.
ee63770
%py3_install
ee63770
ee63770
%files -n python3-%{pypi_name}
ee63770
%license LICENSE
ee63770
%doc README.rst doc/source/readme.rst
ee63770
%{python3_sitelib}/pysol_cards
ee63770
%{python3_sitelib}/pysol_cards-%{version}-py?.?.egg-info
ee63770
ee63770
%changelog
ee63770
* Mon Mar 18 2019 Shlomi Fish <shlomif@cpan.org> 0.4.1-1
ee63770
- Initial Fedora package based on the Mageia one.