Accepting request 493374 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uritemplate?expand=0&rev=4
This commit is contained in:
2017-06-01 14:31:11 +00:00
committed by Git OBS Bridge
3 changed files with 42 additions and 16 deletions

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon May 8 03:26:35 UTC 2017 - toddrme2178@gmail.com
- Re-download source tarball.
-------------------------------------------------------------------
Sun May 7 22:41:52 UTC 2017 - toddrme2178@gmail.com
- Source URL must be https.
-------------------------------------------------------------------
Mon May 1 16:24:14 UTC 2017 - toddrme2178@gmail.com
- Fix source URL.
- Implement single-spec version.
- Add tests.
- Add licenses and other documentation files.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 27 15:50:21 UTC 2016 - rjschwei@suse.com Thu Oct 27 15:50:21 UTC 2016 - rjschwei@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-uritemplate # spec file for package python-uritemplate
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,9 @@
# #
# Please submit bugfixes or comments via http://bugs.opensuse.org/ %bcond_without tests
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-uritemplate Name: python-uritemplate
Version: 3.0.0 Version: 3.0.0
Release: 0 Release: 0
@@ -26,16 +26,16 @@ 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
Source0: uritemplate-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/uritemplate/uritemplate-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module simplejson}
Requires: python-simplejson Requires: python-simplejson
BuildRequires: python-setuptools
BuildRequires: python-simplejson
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 BuildArch: noarch
%endif %python_subpackages
%description %description
This is a Python implementation of RFC6570, URI Template, and can expand This is a Python implementation of RFC6570, URI Template, and can expand
@@ -45,14 +45,22 @@ templates up to and including Level 4 in that specification
%setup -q -n uritemplate-%{version} %setup -q -n uritemplate-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %if %{with tests}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python tests/test_uritemplate.py
}
%endif
%files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst %doc AUTHORS.rst HISTORY.rst LICENSE LICENSE.* README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:733fef5b17c4d9bb86b52fcd5c97a008bfc2fcfdbc1d04a06b2e881935944b0e oid sha256:c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d
size 28388 size 30038