[json_diff] Initial import of the src.rpm

Matej Cepl mcepl at fedoraproject.org
Tue Nov 22 17:20:05 UTC 2011


commit 695d91cd67d47d9d4ae8d2983d0d75a72051caad
Author: Matěj Cepl <mcepl at redhat.com>
Date:   Tue Nov 22 18:21:21 2011 +0100

    Initial import of the src.rpm

 .gitignore     |    1 +
 json_diff.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..28a5f6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/json_diff-0.9.2.tar.gz
diff --git a/json_diff.spec b/json_diff.spec
new file mode 100644
index 0000000..3fb5512
--- /dev/null
+++ b/json_diff.spec
@@ -0,0 +1,55 @@
+# sitelib for noarch packages, sitearch for others (remove the unneeded one)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           json_diff
+Version:        0.9.2
+Release:        1%{?dist}
+Summary:        Generates diff between two JSON files
+
+Group:          Applications/Text
+License:        MIT
+URL:            https://gitorious.org/json_diff/
+Source0:        http://mcepl.fedorapeople.org/scripts/json_diff-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+Requires:       python >= 2.4
+
+%description
+Compares two JSON files (http://json.org) and generates a new JSON file
+with the result. Allows exclusion of some keys from the comparison, or
+in other way to include only some keys.
+
+%prep
+%setup -q
+tr -d '\r' < README.txt > README
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+install -d %{buildroot}%{_bindir}
+chmod +x %{buildroot}%{python_sitelib}/json_diff.py
+ln -sf %{python_sitelib}/json_diff.py %{buildroot}%{_bindir}/json_diff
+
+%clean
+rm -rf %{buildroot}
+
+%check
+%{__python} test_json_diff.py -v
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{_bindir}/json_diff
+%{python_sitelib}/*
+
+%changelog
+* Mon Nov 21 2011 Matěj Cepl <mcepl at redhat.com> 0.9.2-1
+- New upstream release (EL-5 compatible)
+
+* Mon Nov 21 2011 'Matěj Cepl <mcepl at redhat.com>' - 0.9.1-1
+- The first attempt to package
diff --git a/sources b/sources
index e69de29..41f2a7c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+18ee9817bc86de0aaf7ddec15c2a9cb8  json_diff-0.9.2.tar.gz


More information about the scm-commits mailing list