Browse code

Bug : 1848052 add package jq

Change-Id: I7d76790c9d317f6b9d5c85005135559542254e56
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2683
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

harishspqr authored on 2017/05/16 06:57:10
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:       jq is a lightweight and flexible command-line JSON processor.
1
+Name:          jq
2
+Version:       1.5
3
+Release:       1%{?dist}
4
+Group:         Applications/System
5
+Vendor:        VMware, Inc.
6
+License:       MIT
7
+URL:           https://github.com/stedolan/jq
8
+Source0:       https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
9
+%define sha1 jq=6eef3705ac0a322e8aa0521c57ce339671838277
10
+Distribution:  Photon
11
+
12
+%description
13
+jq is a lightweight and flexible command-line JSON processor.
14
+
15
+%package devel
16
+Summary:    Development files for jq
17
+Group:      Development/Libraries
18
+Requires:   %{name} = %{version}-%{release}
19
+
20
+%description devel
21
+Development files for jq
22
+
23
+%prep
24
+%setup -q
25
+
26
+%build
27
+./configure \
28
+    --prefix=%{_prefix} \
29
+    --disable-static
30
+make %{?_smp_mflags}
31
+
32
+%install
33
+make DESTDIR=%{buildroot} install
34
+find %{buildroot} -name '*.la' -delete
35
+
36
+%check
37
+make check
38
+
39
+%post -p /sbin/ldconfig
40
+
41
+%postun -p /sbin/ldconfig
42
+
43
+%clean
44
+rm -rf %{buildroot}/*
45
+
46
+%files
47
+%{_bindir}/*
48
+%{_datadir}/*
49
+%{_libdir}/libjq.so.*
50
+
51
+%files devel
52
+%{_libdir}/libjq.so
53
+%{_includedir}/*
54
+
55
+%changelog
56
+*  Mon May 15 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5-1
57
+-  Initial version
... ...
@@ -169,6 +169,7 @@
169 169
         "audit",
170 170
         "libcap-ng",
171 171
         "tcp_wrappers",
172
+        "jq",
172 173
         "apr-util-ldap",
173 174
         "apr-util-pgsql",
174 175
         "apr-util-sqlite",