2018-12-04 17:25:01 +00:00
committed by Git OBS Bridge
parent b3d2f4e189
commit 2c48f9a861

View File

@@ -16,23 +16,21 @@
# #
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-uritemplate Name: python-uritemplate
Version: 3.0.0 Version: 3.0.0
Release: 0 Release: 0
Summary: URI Template Expansison Summary: URI Template Expansison
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/uritemplate URL: https://pypi.python.org/pypi/uritemplate
Source: https://files.pythonhosted.org/packages/source/u/uritemplate/uritemplate-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/uritemplate/uritemplate-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module simplejson} BuildRequires: %{python_module simplejson}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-simplejson Requires: python-simplejson
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -58,8 +56,8 @@ $python tests/test_uritemplate.py
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE LICENSE.*
%doc AUTHORS.rst HISTORY.rst LICENSE LICENSE.* README.rst %doc AUTHORS.rst HISTORY.rst README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog