diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitignore diff --git a/python-upt-cpan.spec b/python-upt-cpan.spec new file mode 100644 index 0000000..b241af2 --- /dev/null +++ b/python-upt-cpan.spec @@ -0,0 +1,56 @@ +%bcond_with tests # requires internet access + +%global srcname upt-cpan + +Name: python-upt-cpan +Version: 0.5 +Release: 2%{?dist} +Summary: CPAN front-end for upt + +License: BSD +URL: https://framagit.org/upt/upt-cpan +Source0: %pypi_source +BuildArch: noarch + +%description +CPAN front-end for upt. + +%package -n python%{python3_pkgversion}-%{srcname} +Summary: CPAN front-end for upt +%{?python_provide:%python_provide python3-%{srcname}} + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-requests-mock +%if %{with tests} +BuildRequires: upt +%endif + +%description -n python%{python3_pkgversion}-%{srcname} +CPAN 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_cpan-*.egg-info/ +%{python3_sitelib}/upt_cpan/ + +%changelog +* Wed Nov 27 2019 Jeremy Bertozzi - 0.5-2 +- Remove 'requires' tags + +* Sun Sep 29 2019 Jeremy Bertozzi - 0.5-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sources