diff --git a/python-uritemplate.spec b/python-uritemplate.spec new file mode 100644 index 0000000000000000000000000000000000000000..7ceff9c919ad5e27e8ce68902f8abf7901def635 --- /dev/null +++ b/python-uritemplate.spec @@ -0,0 +1,61 @@ +%global modname uritemplate +%global altname uritemplate.py + +%global _docdir_fmt %{name} + +#%%if 0%{?rhel} >= 8 +%bcond_with pytests +#%%else +#%%bcond_without pytests +#%%endif + +Name: python-%{modname} +Version: 3.0.0 +Release: 10%{?dist} +Summary: Simple python library to deal with URI Templates (RFC 6570) + +License: BSD +URL: https://%{modname}.readthedocs.io +Source0: https://github.com/sigmavirus24/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{summary}. + +%package -n python3-%{modname} +Summary: %{summary} +Conflicts: python3-uri-templates +%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python3-%{altname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest + +%description -n python3-%{modname} +%{summary}. + +Python 3 version. + +%prep +%autosetup -n uritemplate-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +#py.test-%{python3_version} -v +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v + +%files -n python3-%{modname} +%license LICENSE +%doc HISTORY.rst README.rst +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ + +%changelog +* Fri Oct 30 2020 jiangxinyu - 3.0.0-10 +- Init python3-uritemplate project diff --git a/uritemplate-3.0.0.tar.gz b/uritemplate-3.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2cee2ad3f7063c5d039bd0ba33c67ed4ea1a9490 Binary files /dev/null and b/uritemplate-3.0.0.tar.gz differ