Blame SPECS/jq.spec

f22bb5
Name:           jq
f22bb5
Version:        1.5
f22bb5
Release:        12%{?dist}
f22bb5
Summary:        Command-line JSON processor
f22bb5
f22bb5
License:        MIT and ASL 2.0 and CC-BY and GPLv3
f22bb5
URL:            http://stedolan.github.io/jq/
f22bb5
Source0:        https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
f22bb5
Patch0:         CVE-2015-8863.patch
f22bb5
f22bb5
BuildRequires:  flex
f22bb5
BuildRequires:  bison
f22bb5
BuildRequires:  oniguruma-devel
f22bb5
f22bb5
%ifnarch s390x
f22bb5
BuildRequires:  valgrind
f22bb5
%endif
f22bb5
f22bb5
f22bb5
%description
f22bb5
lightweight and flexible command-line JSON processor
f22bb5
f22bb5
 jq is like sed for JSON data – you can use it to slice
f22bb5
 and filter and map and transform structured data with
f22bb5
 the same ease that sed, awk, grep and friends let you
f22bb5
 play with text.
f22bb5
f22bb5
 It is written in portable C, and it has zero runtime
f22bb5
 dependencies.
f22bb5
f22bb5
 jq can mangle the data format that you have into the
f22bb5
 one that you want with very little effort, and the
f22bb5
 program to do so is often shorter and simpler than
f22bb5
 you'd expect.
f22bb5
f22bb5
%package devel
f22bb5
Summary:	Development files for %{name}
f22bb5
Requires:	%{name}%{?_isa} = %{version}-%{release}
f22bb5
f22bb5
%description devel
f22bb5
Development files for %{name}
f22bb5
f22bb5
f22bb5
%prep
f22bb5
%setup -qn %{name}-%{version}
f22bb5
%patch0 -p2 -b .cve-2015-8863
f22bb5
f22bb5
%build
f22bb5
%configure --disable-static
f22bb5
make %{?_smp_mflags}
f22bb5
# Docs already shipped in jq's tarball.
f22bb5
# In order to build the manual page, it
f22bb5
# is necessary to install rake, rubygem-ronn
f22bb5
# and do the following steps:
f22bb5
#
f22bb5
# # yum install rake rubygem-ronn
f22bb5
# $ cd docs/
f22bb5
# $ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
f22bb5
# $ source $HOME/.rvm/scripts/rvm
f22bb5
# $ bundle install
f22bb5
# $ cd ..
f22bb5
# $ ./configure
f22bb5
# $ make real_docs
f22bb5
f22bb5
%install
f22bb5
make DESTDIR=%{buildroot} install
f22bb5
find %{buildroot} -name '*.la' -exec rm -f {} ';'
f22bb5
f22bb5
%check
f22bb5
# Valgrind used, so restrict architectures for check
f22bb5
%ifarch %{ix86} x86_64
f22bb5
make check
f22bb5
%endif
f22bb5
f22bb5
%ldconfig_scriptlets
f22bb5
f22bb5
%files
f22bb5
%{_bindir}/%{name}
f22bb5
%{_libdir}/libjq.so.*
f22bb5
%{_datadir}/man/man1/jq.1.gz
f22bb5
%{_datadir}/doc/jq/AUTHORS
f22bb5
%{_datadir}/doc/jq/COPYING
f22bb5
%{_datadir}/doc/jq/README
f22bb5
%{_datadir}/doc/jq/README.md
f22bb5
f22bb5
%files devel
f22bb5
%{_includedir}/jq.h
f22bb5
%{_includedir}/jv.h
f22bb5
%{_libdir}/libjq.so
f22bb5
f22bb5
f22bb5
%changelog
f22bb5
* Sat Aug 11 2018 Troy Dawson <tdawson@redhat.com>
f22bb5
- Fix typo: s390 -> s390x
f22bb5
- Related: bug#1614611
f22bb5
f22bb5
* Sun Apr 01 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-12
f22bb5
- Rebuild against oniguruma 6.8.1
f22bb5
f22bb5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f22bb5
f22bb5
* Wed Feb 07 2018 Lon Hohberger <lon@fedoraproject.org> - 1.5-10
f22bb5
- Fix CVE 2015-8863
f22bb5
f22bb5
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5-9
f22bb5
- Switch to %%ldconfig_scriptlets
f22bb5
f22bb5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f22bb5
f22bb5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-7
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f22bb5
f22bb5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-6
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f22bb5
f22bb5
* Sun Oct 30 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-5
f22bb5
- Rebuild for oniguruma 6.1.1
f22bb5
f22bb5
* Mon Jul 18 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-4
f22bb5
- Rebuild for oniguruma 6
f22bb5
f22bb5
* Sun Mar 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-3
f22bb5
- valgrind on all but s390
f22bb5
f22bb5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f22bb5
f22bb5
* Tue Aug 25 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.5-1
f22bb5
- Upstream 1.5.0
f22bb5
f22bb5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f22bb5
f22bb5
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f22bb5
f22bb5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
f22bb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f22bb5
f22bb5
* Thu Oct 24 2013 Flavio Percoco <flavio@redhat.com> - 1.3-2
f22bb5
- Added check, manpage
f22bb5
f22bb5
* Fri Oct 18 2013 Flavio Percoco <flavio@redhat.com> - 1.3-1
f22bb5
- Initial package release.