3 %bcond_without tests # build without tests
5 %ifnarch %{ix86} %{x8664}
9 Summary: Command-line JSON processor
13 License: MIT and ASL 2.0 and CC-BY and GPLv3
14 Group: Applications/Text
15 Source0: https://github.com/stedolan/jq/releases/download/%{name}-%{version}/jq-%{version}.tar.gz
16 # Source0-md5: 0933532b086bd8b6a41c1b162b1731f9
18 URL: https://stedolan.github.io/jq/
19 BuildRequires: autoconf
20 BuildRequires: automake
23 BuildRequires: libtool
24 BuildRequires: oniguruma-devel
26 BuildRequires: valgrind
28 Requires: %{name}-libs = %{version}-%{release}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 lightweight and flexible command-line JSON processor
34 jq is like sed for JSON data - you can use it to slice and filter and
35 map and transform structured data with the same ease that sed, awk,
36 grep and friends let you play with text.
38 It is written in portable C, and it has zero runtime dependencies.
40 jq can mangle the data format that you have into the one that you want
41 with very little effort, and the program to do so is often shorter and
42 simpler than you'd expect.
45 Summary: Shared libraries for jq
49 Shared libraries for jq.
52 Summary: Development files for %{name}
53 Requires: %{name}-libs = %{version}-%{release}
56 Development files for %{name}
64 %{__aclocal} -I config/m4
69 --disable-all-static \
70 --disable-silent-rules
74 # Docs already shipped in jq's tarball.
75 # In order to build the manual page, it
76 # is necessary to install rake, rubygem-ronn
77 # and do the following steps:
79 # # yum install rake rubygem-ronn
81 # $ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
82 # $ source $HOME/.rvm/scripts/rvm
93 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
97 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libjq.la
101 rm -rf $RPM_BUILD_ROOT
103 %post libs -p /sbin/ldconfig
104 %postun libs -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc README README.md AUTHORS COPYING
109 %attr(755,root,root) %{_bindir}/jq
110 %{_mandir}/man1/jq.1*
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libjq.so.*.*.*
115 %ghost %{_libdir}/libjq.so.1
118 %defattr(644,root,root,755)