python-uritemplate/python-uritemplate.spec
Robert Schweikert 528e23b971 - Update to version 3.0.0 (bsc#1002895)
+ No upstream change entry for 2.0 -> 3.0
- From 2.0.0
  + Merge uritemplate.py into uritemplate
  + Relicense uritemplate.py as Apache 2 and BSD
- From 1.0.1
  + Fix some minor packaging problems
- From 1.0.0
  + Fix handling of Unicode values on Python 2.6 and 2.7 for urllib.quote.
  + Confirm public stable API via version number.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-uritemplate?expand=0&rev=4
2016-10-27 15:54:33 +00:00

59 lines
1.8 KiB
RPMSpec

#
# spec file for package python-uritemplate
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-uritemplate
Version: 3.0.0
Release: 0
Summary: URI Template Expansison
License: Apache-2.0
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/uritemplate
Source0: uritemplate-%{version}.tar.gz
Requires: python-simplejson
BuildRequires: python-setuptools
BuildRequires: python-simplejson
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
This is a Python implementation of RFC6570, URI Template, and can expand
templates up to and including Level 4 in that specification
%prep
%setup -q -n uritemplate-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/*
%changelog