Blame SPECS/jq.spec

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