Blame SPECS/jq.spec

d7ece4
Name:           jq
d7ece4
Version:        1.6
116425
Release:        12%{?dist}
d7ece4
Summary:        Command-line JSON processor
d7ece4
d7ece4
License:        MIT and ASL 2.0 and CC-BY and GPLv3
d7ece4
URL:            http://stedolan.github.io/jq/
d7ece4
Source0:        https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
116425
# Backport of PR#1752 for RHBZ#2008979
116425
Patch0:         jq-decimal-literal-number.patch
d7ece4
d7ece4
BuildRequires:  gcc
d7ece4
BuildRequires:  flex
d7ece4
BuildRequires:  bison
d7ece4
BuildRequires:  oniguruma-devel
116425
BuildRequires:  chrpath
d7ece4
d7ece4
%ifarch %{valgrind_arches}
d7ece4
BuildRequires:  valgrind
d7ece4
%endif
d7ece4
BuildRequires: make
116425
BuildRequires: autoconf
116425
BuildRequires: automake
116425
BuildRequires: libtool
d7ece4
d7ece4
d7ece4
%description
d7ece4
lightweight and flexible command-line JSON processor
d7ece4
116425
jq is like sed for JSON data – you can use it to slice
116425
and filter and map and transform structured data with
116425
the same ease that sed, awk, grep and friends let you
116425
play with text.
d7ece4
116425
It is written in portable C, and it has zero runtime
116425
dependencies.
d7ece4
116425
jq can mangle the data format that you have into the
116425
one that you want with very little effort, and the
116425
program to do so is often shorter and simpler than
116425
you'd expect.
d7ece4
d7ece4
%package devel
d7ece4
Summary:	Development files for %{name}
d7ece4
Requires:	%{name}%{?_isa} = %{version}-%{release}
d7ece4
d7ece4
%description devel
d7ece4
Development files for %{name}
d7ece4
d7ece4
d7ece4
%prep
116425
%autosetup -n %{name}-%{version} -p1
d7ece4
d7ece4
%build
116425
autoreconf -if
d7ece4
%configure --disable-static
d7ece4
make %{?_smp_mflags}
d7ece4
# Docs already shipped in jq's tarball.
d7ece4
# In order to build the manual page, it
d7ece4
# is necessary to install rake, rubygem-ronn
d7ece4
# and do the following steps:
d7ece4
#
d7ece4
# # yum install rake rubygem-ronn
d7ece4
# $ cd docs/
d7ece4
# $ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
d7ece4
# $ source $HOME/.rvm/scripts/rvm
d7ece4
# $ bundle install
d7ece4
# $ cd ..
d7ece4
# $ ./configure
d7ece4
# $ make real_docs
d7ece4
d7ece4
%install
d7ece4
make DESTDIR=%{buildroot} install
d7ece4
find %{buildroot} -name '*.la' -exec rm -f {} ';'
116425
chrpath --delete %{buildroot}/usr/bin/jq
d7ece4
d7ece4
%check
d7ece4
# Valgrind used, so restrict architectures for check
d7ece4
%ifarch %{ix86} x86_64
d7ece4
make check
d7ece4
%endif
d7ece4
d7ece4
%ldconfig_scriptlets
d7ece4
d7ece4
%files
d7ece4
%{_bindir}/%{name}
d7ece4
%{_libdir}/libjq.so.*
d7ece4
%{_datadir}/man/man1/jq.1.gz
d7ece4
%{_datadir}/doc/jq/AUTHORS
d7ece4
%{_datadir}/doc/jq/COPYING
d7ece4
%{_datadir}/doc/jq/README
d7ece4
%{_datadir}/doc/jq/README.md
d7ece4
d7ece4
%files devel
d7ece4
%{_includedir}/jq.h
d7ece4
%{_includedir}/jv.h
d7ece4
%{_libdir}/libjq.so
d7ece4
d7ece4
d7ece4
%changelog
116425
* Mon Nov 15 2021 Tomas Halman <thalman@redhat.com>
116425
- Strip rpath from jq binary
116425
  Related: rhbz#2008983
116425
116425
* Wed Sep 29 2021 Davide Cavalca <dcavalca@centosproject.org> - 1.6-10
116425
- Backport PR#1752 to fix an integer logic issue
116425
  Resolves: rhbz#2008983
116425
d7ece4
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6-9
d7ece4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d7ece4
  Related: rhbz#1991688
d7ece4
d7ece4
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.6-8
d7ece4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d7ece4
d7ece4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-7
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d7ece4
d7ece4
* Sat Dec 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6-6
d7ece4
- Use correct valgrind_arches macro to check for valgrind.
d7ece4
d7ece4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-5
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d7ece4
d7ece4
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-4
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d7ece4
d7ece4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d7ece4
d7ece4
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d7ece4
d7ece4
* Thu Nov 08 2018 David Fetter <david@fetter.org> - 1.6-1
d7ece4
- Upstream 1.6.0
d7ece4
d7ece4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-13
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d7ece4
d7ece4
* Sun Apr 01 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-12
d7ece4
- Rebuild against oniguruma 6.8.1
d7ece4
d7ece4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d7ece4
d7ece4
* Wed Feb 07 2018 Lon Hohberger <lon@fedoraproject.org> - 1.5-10
d7ece4
- Fix CVE 2015-8863
d7ece4
d7ece4
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5-9
d7ece4
- Switch to %%ldconfig_scriptlets
d7ece4
d7ece4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d7ece4
d7ece4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-7
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d7ece4
d7ece4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-6
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d7ece4
d7ece4
* Sun Oct 30 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-5
d7ece4
- Rebuild for oniguruma 6.1.1
d7ece4
d7ece4
* Mon Jul 18 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-4
d7ece4
- Rebuild for oniguruma 6
d7ece4
d7ece4
* Sun Mar 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-3
d7ece4
- valgrind on all but s390
d7ece4
d7ece4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d7ece4
d7ece4
* Tue Aug 25 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.5-1
d7ece4
- Upstream 1.5.0
d7ece4
d7ece4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d7ece4
d7ece4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d7ece4
d7ece4
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
d7ece4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d7ece4
d7ece4
* Thu Oct 24 2013 Flavio Percoco <flavio@redhat.com> - 1.3-2
d7ece4
- Added check, manpage
d7ece4
d7ece4
* Fri Oct 18 2013 Flavio Percoco <flavio@redhat.com> - 1.3-1
d7ece4
- Initial package release.