diff --git a/.gitignore b/.gitignore index 106db3d..8386607 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /python-json-pointer-1.0-c1ec3df.tar.gz +/jsonpointer-1.9.tar.gz diff --git a/python-jsonpointer.spec b/python-jsonpointer.spec index 6f871b1..f876361 100644 --- a/python-jsonpointer.spec +++ b/python-jsonpointer.spec @@ -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 diff --git a/sources b/sources index fe57737..8c8b8c6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ee4fbcaf289e5be31ffd45242a8e38bf python-json-pointer-1.0-c1ec3df.tar.gz +c4d3f28e72ba77062538d1c0864c40a9 jsonpointer-1.9.tar.gz