Blame SPECS/jq.spec

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