From 4f47d8f7cc61e956f2858383d6fbbd965d33ad9a Mon Sep 17 00:00:00 2001 From: Jeremy Bertozzi Date: Oct 05 2019 12:53:10 +0000 Subject: Initial import (#1756907) Signed-off-by: Jeremy Bertozzi --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3858b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/upt-pypi-0.4.tar.gz +.gitignore diff --git a/python-upt-pypi.spec b/python-upt-pypi.spec new file mode 100644 index 0000000..d187345 --- /dev/null +++ b/python-upt-pypi.spec @@ -0,0 +1,52 @@ +%bcond_with tests # disable tests unless upt is available + +%global srcname upt-pypi + +Name: python-upt-pypi +Version: 0.4 +Release: 1%{?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 +* Sun Sep 29 2019 Jeremy Bertozzi - 0.4-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..8a6ef3a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (upt-pypi-0.4.tar.gz) = e5a20e5f0f48e83bad3515ee92639e2d8948616401293c323533460d7cda32d763612b135c718f17f42d7addb5398552e8115079ed92a4c2c00a7dd39afa9db2