代码拉取完成,页面将自动刷新
Name: jq
Version: 1.7.1
Release: 4
Summary: A lightweight and flexible command-line JSON processor
License: MIT AND ICU AND CC-BY-3.0
URL: https://jqlang.org/
Source0: https://github.com/jqlang/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
Patch0: CVE-2024-53427-pre.patch
Patch1: CVE-2024-53427.patch
Patch2: CVE-2024-23337.patch
BuildRequires: make flex bison gcc chrpath oniguruma-devel
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
%description
jq is a lightweight and flexible command-line JSON processor.
you can use it to slice and filter and map and transform structured data.
It is written in portable C, and it has zero runtime dependencies.
it can mangle the data format that you have into the one that you want.
%package devel
Summary: Development files for jq
Requires: jq = %{version}-%{release}
%description devel
Development files for jq.
%package_help
%prep
%autosetup -n jq-%{version} -p1
%build
%configure --disable-static
%make_build
%install
%make_install
%delete_la_and_a
rm -fr %{buildroot}%{_docdir}
chrpath -d %{buildroot}%{_bindir}/%{name}
%check
%if %{?_with_check:1}%{!?_with_check:0}
%ifarch x86_64
make check
%endif
%endif
%files
%license COPYING
%doc AUTHORS
%{_bindir}/jq
%{_libdir}/libjq.so.*
%files devel
%{_includedir}/*.h
%{_libdir}/libjq.so
%{_libdir}/pkgconfig/libjq.pc
%files help
%doc README.md NEWS.md
%{_mandir}/man1/jq.1*
%changelog
* Thu May 22 2025 Funda Wang <fundawang@yeah.net> - 1.7.1-4
- fix CVE-2024-23337
* Fri Mar 07 2025 yaoxin <1024769339@qq.com> - 1.7.1-3
- Fix CVE-2024-53427
* Mon Sep 09 2024 laokz <zhangkai@iscas.ac.cn> - 1.7.1-2
- Let valgrind depend on system arch macro
* Wed Jul 24 2024 dillon chen <dillon.chen@gmail.com> - 1.7.1-1
- Upgrade to 1.7.1
* Mon May 30 2022 Chenyx <chenyixiong3@huawei.com> - 1.6-3
- License compliance rectification
* Mon Aug 30 2021 lingsheng <lingsheng@huawei.com> - 1.6-2
- Support binary strings preserve UTF-8 and UTF-16 errors
* Wed Aug 25 2021 wangyue <wangyue92@huawei.com> - 1.6-1
- Upgrade to 1.6
* Thu Jun 03 2021 wulei <wulei80@huawei.com> - 1.5-18
- fixes failed: no acceptable C compiler found in $PATH
* Sat Mar 21 2020 yanglijin <yanglijin@huawei.com> -1.5-17
- close check
* Tue Mar 17 2020 likexin <likexin4@huawei.com> -1.5-16
- fix up cve-2016-4074
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5-15
- Delete unndeeded build requires
* Tue Dec 31 2019 zhujunhao <zhujunhao5@huawei.com> - 1.5-14
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。