diff --git a/.python-jsonpatch.metadata b/.python-jsonpatch.metadata new file mode 100644 index 0000000..e806f08 --- /dev/null +++ b/.python-jsonpatch.metadata @@ -0,0 +1 @@ +684780b184dfd298a12d82779f9c6d31d1041b90 SOURCES/python-json-patch-1.2-f6f3cd2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 5231011..0000000 --- a/README.md +++ /dev/null @@ -1,8 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch -for CentOS-4, 5 or 6. If you find this file in a distro specific branch, it -means that no content has been checked in yet - -More information on how these git repositories are setup, is available at -http://wiki.centos.org/Sources diff --git a/SPECS/python-jsonpatch.spec b/SPECS/python-jsonpatch.spec new file mode 100644 index 0000000..a20ca7a --- /dev/null +++ b/SPECS/python-jsonpatch.spec @@ -0,0 +1,57 @@ +%global pypi_name jsonpatch +%global github_name python-json-patch +%global commit f6f3cd235337209fc96b71316215a40d1cd3026c +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-%{pypi_name} +Version: 1.2 +Release: 3%{?dist} +Summary: Applying JSON Patches in Python + +License: BSD +URL: https://github.com/stefankoegl/%{github_name} +#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 +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 +Requires: python-jsonpointer + +%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 +%doc README.md COPYING +%{python_sitelib}/%{pypi_name}.py* +%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Fri Apr 18 2014 Lokesh Mandvekar - 1.2-3 +- Rebuilt for RHEL-7 + +* Tue Oct 15 2013 Alan Pevec - 1.2-2 +- add runtime dep on jsonpointer + +* Fri Oct 11 2013 Alan Pevec - 1.2-1 +- Update to 1.2 + +* Fri Sep 13 2013 Alan Pevec - 1.1-2 +- review feedback: move %%check section, add missing build requirements + +* Mon Jul 01 2013 Alan Pevec - 1.1-1 +- Initial package.