diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00c693b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/freecell_solver-0.2.3.tar.gz diff --git a/python-freecell_solver.spec b/python-freecell_solver.spec new file mode 100644 index 0000000..c4b083d --- /dev/null +++ b/python-freecell_solver.spec @@ -0,0 +1,70 @@ +# Created by pyp2rpm-3.3.2 +%global pypi_name freecell_solver + +Name: python-%{pypi_name} +Version: 0.2.3 +Release: 1%{?dist} +Summary: Freecell Solver Python bindings + +License: MIT +URL: https://fc-solve.shlomifish.org/ +Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildConflicts: python3dist(coverage) = 4.4 +BuildRequires: python3dist(coverage) >= 4.0 +BuildRequires: python3dist(hacking) >= 0.12.0 +BuildRequires: python3dist(openstackdocstheme) +BuildRequires: python3dist(oslotest) >= 1.10.0 +BuildRequires: python3dist(pbr) +BuildRequires: python3dist(pbr) >= 2.0 +BuildRequires: python3dist(python-subunit) >= 0.0.18 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(testtools) >= 1.4.0 +BuildRequires: python3dist(sphinx) + +%description +Python bindings for Freecell Solver using cffi. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(pbr) >= 2.0 +%description -n python3-%{pypi_name} +Python bindings for Freecell Solver using cffi. + +%package -n python-%{pypi_name}-doc +Summary: freecell_solver documentation +%description -n python-%{pypi_name}-doc +Documentation for freecell_solver + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build +# generate html docs +PYTHONPATH=${PWD} sphinx-build-3 doc/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst doc/source/readme.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%files -n python-%{pypi_name}-doc +%doc html +%license LICENSE + +%changelog +* Thu Aug 01 2019 Shlomi Fish - 0.2.3-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..4e71a4a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (freecell_solver-0.2.3.tar.gz) = 9bd09e53ccf935f5796701728e473dd5f53b6b2c485deb82addef0a0bf728649399c5d29c68e579e26ab6222669d3de1e5bd7c08d53c4b757795bb594ef00004