From 221a308b4afee37d09dd6b12ef19147630953b56 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 5 Jul 2016 21:18:48 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + python-uritemplate.spec | 77 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 python-uritemplate.spec diff --git a/.gitignore b/.gitignore index e69de29..8c48834 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/uritemplate-0.3.0.tar.gz diff --git a/python-uritemplate.spec b/python-uritemplate.spec new file mode 100644 index 0000000..21e9ef0 --- /dev/null +++ b/python-uritemplate.spec @@ -0,0 +1,77 @@ +%global modname uritemplate +%global altname uritemplate.py + +%global _docdir_fmt %{name} + +Name: python-%{modname} +Version: 0.3.0 +Release: 1%{?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 python2-%{modname} +Summary: %{summary} +Conflicts: python2-uri-templates +%{?python_provide:%python_provide python2-%{modname}} +%{?python_provide:%python_provide python2-%{altname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest + +%description -n python2-%{modname} +%{summary}. + +Python 2 version. + +%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 +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +py.test-%{python2_version} -v +py.test-%{python3_version} -v + +%files -n python2-%{modname} +%license LICENSE +%doc HISTORY.rst README.rst +%{python2_sitelib}/%{altname}-*.egg-info +%{python2_sitelib}/%{modname}/ + +%files -n python3-%{modname} +%license LICENSE +%doc HISTORY.rst README.rst +%{python3_sitelib}/%{altname}-*.egg-info +%{python3_sitelib}/%{modname}/ + +%changelog +* Wed Jun 29 2016 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources index e69de29..652b5b0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +00f5354b9cc585905d2843778c9843fe uritemplate-0.3.0.tar.gz