[js-json] Add logic for building on EPEL 6
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Feb 24 16:34:49 UTC 2014
commit 38cef87ee8ccf7b83255de56715bed28b91c0e1c
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Feb 24 16:33:15 2014 +0000
Add logic for building on EPEL 6
js-json.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
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 <jamielinux at fedoraproject.org> - 20140204git3d7767b-3
+- add logic for building on EPEL 6
+
* Sun Feb 23 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 20140204git3d7767b-2
- install to %%{_jsdir}/json instead of %%{_jsdir}/js-json
More information about the scm-commits
mailing list