%bcond_with tests # disable tests unless upt is available %global srcname upt-rubygems Name: python-upt-rubygems Version: 0.2 Release: 4%{?dist} Summary: RubyGems front-end for upt License: BSD URL: https://framagit.org/upt/upt-rubygems Source0: %pypi_source BuildArch: noarch %description RubyGems front-end for upt. %package -n python%{python3_pkgversion}-%{srcname} Summary: RubyGems front-end for upt %{?python_provide:%python_provide python3-%{srcname}} BuildRequires:python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-requests-mock Requires: python%{python3_pkgversion}-requests Requires: python%{python3_pkgversion}-semver Requires: upt %description -n python%{python3_pkgversion}-%{srcname} RubyGems front-end for upt. %prep %setup -q -n %{srcname}-%{version} %build %py3_build %install %py3_install %if %{with tests} %check PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m unittest %endif %files -n python%{python3_pkgversion}-%{srcname} %{python3_sitelib}/upt_rubygems-*.egg-info/ %doc README.md CHANGELOG %license LICENSE %{python3_sitelib}/upt_rubygems/ %changelog * Wed Jul 29 2020 Fedora Release Engineering - 0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 0.2-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jun 29 2019 Jeremy Bertozzi - 0.2-1 - Initial package