Blame python-freecell_solver.spec

2508a7
# Created by pyp2rpm-3.3.2
2508a7
%global pypi_name freecell_solver
2508a7
2508a7
Name:           python-%{pypi_name}
2508a7
Version:        0.2.3
3c8083
Release:        4%{?dist}
2508a7
Summary:        Freecell Solver Python bindings
2508a7
2508a7
License:        MIT
2508a7
URL:            https://fc-solve.shlomifish.org/
2508a7
Source0:        https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
2508a7
BuildArch:      noarch
2508a7
2508a7
BuildRequires:  python3-devel
2508a7
BuildConflicts: python3dist(coverage) = 4.4
2508a7
BuildRequires:  python3dist(coverage) >= 4.0
2508a7
BuildRequires:  python3dist(hacking) >= 0.12.0
2508a7
BuildRequires:  python3dist(openstackdocstheme)
2508a7
BuildRequires:  python3dist(oslotest) >= 1.10.0
2508a7
BuildRequires:  python3dist(pbr)
2508a7
BuildRequires:  python3dist(pbr) >= 2.0
2508a7
BuildRequires:  python3dist(python-subunit) >= 0.0.18
2508a7
BuildRequires:  python3dist(setuptools)
2508a7
BuildRequires:  python3dist(testtools) >= 1.4.0
2508a7
BuildRequires:  python3dist(sphinx)
2508a7
2508a7
%description
2508a7
Python bindings for Freecell Solver using cffi.
2508a7
2508a7
%package -n     python3-%{pypi_name}
2508a7
Summary:        %{summary}
2508a7
%{?python_provide:%python_provide python3-%{pypi_name}}
2508a7
2508a7
Requires:       python3dist(pbr) >= 2.0
2508a7
%description -n python3-%{pypi_name}
2508a7
Python bindings for Freecell Solver using cffi.
2508a7
2508a7
%package -n python-%{pypi_name}-doc
2508a7
Summary:        freecell_solver documentation
2508a7
%description -n python-%{pypi_name}-doc
2508a7
Documentation for freecell_solver
2508a7
2508a7
%prep
2508a7
%autosetup -n %{pypi_name}-%{version}
2508a7
# Remove bundled egg-info
2508a7
rm -rf %{pypi_name}.egg-info
2508a7
2508a7
%build
2508a7
%py3_build
2508a7
# generate html docs
2508a7
PYTHONPATH=${PWD} sphinx-build-3 doc/source html
2508a7
# remove the sphinx-build leftovers
2508a7
rm -rf html/.{doctrees,buildinfo}
2508a7
2508a7
%install
2508a7
%py3_install
2508a7
2508a7
%files -n python3-%{pypi_name}
2508a7
%license LICENSE
2508a7
%doc README.rst doc/source/readme.rst
2508a7
%{python3_sitelib}/%{pypi_name}
2508a7
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2508a7
2508a7
%files -n python-%{pypi_name}-doc
2508a7
%doc html
2508a7
%license LICENSE
2508a7
2508a7
%changelog
3c8083
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-4
3c8083
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3c8083
34e993
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-3
34e993
- Rebuilt for Python 3.8.0rc1 (#1748018)
34e993
19b145
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-2
19b145
- Rebuilt for Python 3.8
19b145
2508a7
* Thu Aug 01 2019 Shlomi Fish <shlomif@shlomifish.org> - 0.2.3-1
2508a7
- Initial package.