Blob Blame History Raw
%bcond_with tests  # disable tests unless upt is available

%global srcname upt-pypi

Name:		python-upt-pypi	
Version:	0.4
Release:	5%{?dist}
Summary:	PyPI front-end for upt

License:	BSD
URL:		https://framagit.org/upt/upt-pypi
Source0:	%pypi_source
BuildArch:	noarch

%description
PyPi front-end for upt

%package -n python%{python3_pkgversion}-%{srcname}
Summary:	PyPI front-end for upt
%{?python_provide:%python_provide python3-%{srcname}}

BuildRequires: python%{python3_pkgversion}-devel
Requires:	python%{python3_pkgversion}-requests
Requires:	upt

%description -n python%{python3_pkgversion}-%{srcname}
PyPi 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}
%doc README.md CHANGELOG
%license LICENSE
%{python3_sitelib}/upt_pypi-*.egg-info
%{python3_sitelib}/upt_pypi/

%changelog
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.4-3
- Rebuilt for Python 3.9

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Sun Sep 29 2019 Jeremy Bertozzi <jeremy.bertozzi@gmail.com> - 0.4-1
- Initial package