diff --git a/js-json.spec b/js-json.spec index c1e1df0..d9262cf 100644 --- a/js-json.spec +++ b/js-json.spec @@ -2,11 +2,15 @@ %global commit 3d7767b6b1f3da363c625ff54e63bbf20e9e83ac %global shortcommit %(c=%{commit}; echo ${c:0:7}) +%if 0%{?fedora} %global installdir %{_jsdir}/json +%else +%global installdir %{_datadir}/javascript +%endif Name: js-json Version: %{commitdate}git%{shortcommit} -Release: 2%{?dist} +Release: 3%{?dist} Summary: An implementation of JSON encoders/decoders in JavaScript Group: System Environment/Libraries @@ -16,8 +20,10 @@ Source0: https://github.com/douglascrockford/JSON-js/archive/%{commit}/% BuildArch: noarch +%if 0%{?fedora} BuildRequires: web-assets-devel Requires: web-assets-filesystem +%endif %description JSON is a light-weight, language independent, data interchange format. @@ -75,6 +81,9 @@ install -p -m0644 -D json_parse_state.js \ %changelog +* Sun Feb 23 2014 Jamie Nguyen - 20140204git3d7767b-3 +- add logic for building on EPEL 6 + * Sun Feb 23 2014 Jamie Nguyen - 20140204git3d7767b-2 - install to %%{_jsdir}/json instead of %%{_jsdir}/js-json