Blame SPECS/jq.spec

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