Update to 1.9

Resolves: rhbz#1136281
This commit is contained in:
Alan Pevec 2015-08-06 18:31:17 +02:00
parent e3b5f6528f
commit 6f76b31d31
3 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/python-json-pointer-1.0-c1ec3df.tar.gz
/jsonpointer-1.9.tar.gz

View File

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

View File

@ -1 +1 @@
ee4fbcaf289e5be31ffd45242a8e38bf python-json-pointer-1.0-c1ec3df.tar.gz
c4d3f28e72ba77062538d1c0864c40a9 jsonpointer-1.9.tar.gz