Update to 1.9
Resolves: rhbz#1136281
This commit is contained in:
parent
e3b5f6528f
commit
6f76b31d31
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/python-json-pointer-1.0-c1ec3df.tar.gz
|
/python-json-pointer-1.0-c1ec3df.tar.gz
|
||||||
|
/jsonpointer-1.9.tar.gz
|
||||||
|
@ -1,21 +1,18 @@
|
|||||||
%global pypi_name jsonpointer
|
%global pypi_name jsonpointer
|
||||||
%global github_name python-json-pointer
|
%global github_name python-json-pointer
|
||||||
%global commit c1ec3dfd171b242e23b3fe078a99f0e23fb0c6ea
|
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
||||||
|
|
||||||
%if 0%{?fedora} > 12
|
%if 0%{?fedora} > 12
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.0
|
Version: 1.9
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Resolve JSON Pointers in Python
|
Summary: Resolve JSON Pointers in Python
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/stefankoegl/%{github_name}
|
URL: https://github.com/stefankoegl/%{github_name}
|
||||||
# pypi tarball does not contain COPYING
|
Source0: https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||||
Source0: https://github.com/stefankoegl/%{github_name}/archive/%{commit}/%{github_name}-%{version}-%{shortcommit}.tar.gz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
@ -34,7 +31,7 @@ Library to resolve JSON Pointers according to RFC 6901.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{github_name}-%{commit}
|
%setup -q -n %{pypi_name}-%{version}
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -ar . %{py3dir}
|
cp -ar . %{py3dir}
|
||||||
@ -70,6 +67,7 @@ popd
|
|||||||
%doc README.md AUTHORS
|
%doc README.md AUTHORS
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%{_bindir}/jsonpointer
|
||||||
%{python_sitelib}/%{pypi_name}.py*
|
%{python_sitelib}/%{pypi_name}.py*
|
||||||
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user