2013-10-09 21:56:22 +00:00
|
|
|
%global pypi_name jsonpatch
|
|
|
|
%global github_name python-json-patch
|
2013-10-11 22:15:28 +00:00
|
|
|
%global commit f6f3cd235337209fc96b71316215a40d1cd3026c
|
2013-10-09 21:56:22 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2013-10-11 22:15:28 +00:00
|
|
|
Version: 1.2
|
2014-07-31 15:14:44 +00:00
|
|
|
Release: 4%{?dist}
|
2013-10-09 21:56:22 +00:00
|
|
|
Summary: Applying JSON Patches in Python
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/stefankoegl/%{github_name}
|
2013-10-11 22:15:28 +00:00
|
|
|
#Source0: https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
# pypi tarball does not contain README.md and tests.py
|
2013-10-09 21:56:22 +00:00
|
|
|
Source0: https://github.com/stefankoegl/%{github_name}/archive/%{commit}/%{github_name}-%{version}-%{shortcommit}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-jsonpointer
|
2013-10-14 22:07:01 +00:00
|
|
|
Requires: python-jsonpointer
|
2013-10-09 21:56:22 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Library to apply JSON Patches according to RFC 6902.
|
|
|
|
|
|
|
|
%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
|
2014-07-31 15:14:44 +00:00
|
|
|
%doc README.md
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
2013-10-09 21:56:22 +00:00
|
|
|
%{python_sitelib}/%{pypi_name}.py*
|
|
|
|
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%changelog
|
2014-07-31 15:14:44 +00:00
|
|
|
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 1.2-4
|
|
|
|
- fix license handling
|
|
|
|
|
2014-06-07 20:59:09 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-10-14 22:07:01 +00:00
|
|
|
* Tue Oct 15 2013 Alan Pevec <apevec@gmail.com> - 1.2-2
|
|
|
|
- add runtime dep on jsonpointer
|
|
|
|
|
2013-10-11 22:15:28 +00:00
|
|
|
* Fri Oct 11 2013 Alan Pevec <apevec@gmail.com> - 1.2-1
|
|
|
|
- Update to 1.2
|
|
|
|
|
2013-10-09 21:56:22 +00:00
|
|
|
* Fri Sep 13 2013 Alan Pevec <apevec@gmail.com> - 1.1-2
|
|
|
|
- review feedback: move %%check section, add missing build requirements
|
|
|
|
|
|
|
|
* Mon Jul 01 2013 Alan Pevec <apevec@gmail.com> - 1.1-1
|
|
|
|
- Initial package.
|