Initial import.

This commit is contained in:
Alan Pevec 2013-09-12 20:38:31 +02:00
parent a03b3887fa
commit d6ce8581b3
3 changed files with 46 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/python-json-pointer-1.0-c1ec3df.tar.gz

44
python-jsonpointer.spec Normal file
View File

@ -0,0 +1,44 @@
%global pypi_name jsonpointer
%global github_name python-json-pointer
%global commit c1ec3dfd171b242e23b3fe078a99f0e23fb0c6ea
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: python-%{pypi_name}
Version: 1.0
Release: 2%{?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
BuildArch: noarch
BuildRequires: python2-devel
%description
Library to resolve JSON Pointers according to RFC 6901.
%prep
%setup -qn %{github_name}-%{commit}
%build
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot}
%check
%{__python} tests.py
%files
%doc README.md COPYING AUTHORS
%{python_sitelib}/%{pypi_name}.py*
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Thu Sep 05 2013 Alan Pevec <apevec@gmail.com> - 1.0-2
- add AUTHORS to docs
* Mon Jul 01 2013 Alan Pevec <apevec@gmail.com> - 1.0-1
- Initial package.

View File

@ -0,0 +1 @@
ee4fbcaf289e5be31ffd45242a8e38bf python-json-pointer-1.0-c1ec3df.tar.gz