Flavio Percoco c0e0bc2
Name:           jq
b9834a0
Version:        1.5
5bbe8ba
Release:        3%{?dist}
Flavio Percoco c0e0bc2
Summary:        Command-line JSON processor
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
License:        MIT and ASL 2.0 and CC-BY and GPLv3
Flavio Percoco c0e0bc2
URL:            http://stedolan.github.io/jq/
b9834a0
Source0:        https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
BuildRequires:  flex
Flavio Percoco c0e0bc2
BuildRequires:  bison
b9834a0
BuildRequires:  oniguruma-devel
Flavio Percoco c0e0bc2
f48ff99
%ifnarch s390
Flavio Percoco c0e0bc2
BuildRequires:  valgrind
Flavio Percoco c0e0bc2
%endif
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
%description
Flavio Percoco c0e0bc2
lightweight and flexible command-line JSON processor
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
 jq is like sed for JSON data – you can use it to slice
Flavio Percoco c0e0bc2
 and filter and map and transform structured data with
Flavio Percoco c0e0bc2
 the same ease that sed, awk, grep and friends let you
Flavio Percoco c0e0bc2
 play with text.
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
 It is written in portable C, and it has zero runtime
Flavio Percoco c0e0bc2
 dependencies.
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
 jq can mangle the data format that you have into the
Flavio Percoco c0e0bc2
 one that you want with very little effort, and the
Flavio Percoco c0e0bc2
 program to do so is often shorter and simpler than
Flavio Percoco c0e0bc2
 you'd expect.
Flavio Percoco c0e0bc2
b9834a0
%package devel
b9834a0
Summary:	Development files for %{name}
b9834a0
Requires:	%{name}%{?_isa} = %{version}-%{release}
b9834a0
b9834a0
%description devel
b9834a0
Development files for %{name}
b9834a0
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
%prep
Flavio Percoco c0e0bc2
%setup -qn %{name}-%{version}
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
%build
b9834a0
%configure --disable-static
Flavio Percoco c0e0bc2
make %{?_smp_mflags}
Flavio Percoco c0e0bc2
# Docs already shipped in jq's tarball.
Flavio Percoco c0e0bc2
# In order to build the manual page, it
Flavio Percoco c0e0bc2
# is necessary to install rake, rubygem-ronn
Flavio Percoco c0e0bc2
# and do the following steps:
Flavio Percoco c0e0bc2
#
Flavio Percoco c0e0bc2
# # yum install rake rubygem-ronn
Flavio Percoco c0e0bc2
# $ cd docs/
Flavio Percoco c0e0bc2
# $ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
Flavio Percoco c0e0bc2
# $ source $HOME/.rvm/scripts/rvm
Flavio Percoco c0e0bc2
# $ bundle install
Flavio Percoco c0e0bc2
# $ cd ..
Flavio Percoco c0e0bc2
# $ ./configure
Flavio Percoco c0e0bc2
# $ make real_docs
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
%install
Flavio Percoco c0e0bc2
make DESTDIR=%{buildroot} install
b9834a0
find %{buildroot} -name '*.la' -exec rm -f {} ';'
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
%check
Flavio Percoco c0e0bc2
# Valgrind used, so restrict architectures for check
Flavio Percoco c0e0bc2
%ifarch %{ix86} x86_64
Flavio Percoco c0e0bc2
make check
Flavio Percoco c0e0bc2
%endif
Flavio Percoco c0e0bc2
b9834a0
%post -p /sbin/ldconfig
b9834a0
b9834a0
%postun -p /sbin/ldconfig
b9834a0
Flavio Percoco c0e0bc2
%files
Flavio Percoco c0e0bc2
%{_bindir}/%{name}
b9834a0
%{_libdir}/libjq.so.*
Flavio Percoco c0e0bc2
%{_datadir}/man/man1/jq.1.gz
Flavio Percoco c0e0bc2
%{_datadir}/doc/jq/AUTHORS
Flavio Percoco c0e0bc2
%{_datadir}/doc/jq/COPYING
Flavio Percoco c0e0bc2
%{_datadir}/doc/jq/README
Flavio Percoco c0e0bc2
%{_datadir}/doc/jq/README.md
Flavio Percoco c0e0bc2
b9834a0
%files devel
b9834a0
%{_includedir}/jq.h
b9834a0
%{_includedir}/jv.h
b9834a0
%{_libdir}/libjq.so
b9834a0
b9834a0
Flavio Percoco c0e0bc2
%changelog
f48ff99
* Sun Mar 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-3
f48ff99
- valgrind on all but s390
f48ff99
06575f9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
06575f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06575f9
b9834a0
* Tue Aug 25 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.5-1
b9834a0
- Upstream 1.5.0
b9834a0
f2574ea
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
f2574ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2574ea
ac8998e
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
ac8998e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ac8998e
a89f4ed
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
a89f4ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a89f4ed
Flavio Percoco c0e0bc2
* Thu Oct 24 2013 Flavio Percoco <flavio@redhat.com> - 1.3-2
Flavio Percoco c0e0bc2
- Added check, manpage
Flavio Percoco c0e0bc2
Flavio Percoco c0e0bc2
* Fri Oct 18 2013 Flavio Percoco <flavio@redhat.com> - 1.3-1
Flavio Percoco c0e0bc2
- Initial package release.