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