11 Star 0 Fork 9

src-openEuler/yajl
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yajl.spec 3.41 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-08-23 16:14 +08:00 . fix build with cmake 4
%undefine __cmake_in_source_build
%global _vpath_builddir build
Name: yajl
Version: 2.1.0
Release: 25
Summary: Yet Another JSON Library
License: ISC
URL: https://github.com/lloyd/yajl
Source0: https://github.com/lloyd/yajl/archive/refs/tags/%{version}.tar.gz
Patch1: 0001-yajl-2.1.0-pkgconfig-location.patch
Patch2: 0002-yajl-2.1.0-pkgconfig-includedir.patch
Patch3: 0003-yajl-2.1.0-test-location.patch
Patch4: 0004-yajl-2.1.0-dynlink-binaries.patch
Patch5: 0005-yajl-2.1.0-fix-memory-leak.patch
Patch6: 0006-fix-memory-leak-of-ctx-root.patch
Patch7: 0007-add-cmake-option-for-test-and-binary.patch
Patch8: backport-CVE-2022-24795.patch
Patch9: yajl-assert-error-when-memory-allocation-failed.patch
Patch10: backport-Fix-for-CVE-2017-16516.patch
Patch11: yajl-allow-build-with-CMake-4.0.0.patch
BuildRequires: gcc
BuildRequires: cmake >= 3.4
%description
yajl is a small event-driven JSON parser written in ANSI C, and a small
validating JSON generator.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Conflicts: yajl < 2.1.0-21
%description devel
This package provides the libraries and includes
necessary for developing against the yajl library.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%check
cd test
(cd parsing && ./run_tests.sh)
(cd api && ./run_tests.sh)
%files
%license COPYING
%doc README ChangeLog TODO
%{_bindir}/json_reformat
%{_bindir}/json_verify
%{_libdir}/libyajl.so.*
%files devel
%{_includedir}/yajl
%{_libdir}/libyajl.so
%{_libdir}/libyajl_s.a
%{_libdir}/pkgconfig/yajl.pc
%changelog
* Sat Aug 23 2025 Funda Wang <fundawang@yeah.net> - 2.1.0-25
- fix build with cmake 4
* Fri Jan 24 2025 fuanan <fuanan3@h-partners.com> - 2.1.0-24
- revert to the original test case
* Tue Jan 14 2025 pengjian <pengjian23@mails.ucas.ac.cn> - 2.1.0-23
- fix CVE-2017-16516
* Fri Dec 13 2024 fuanan <fuanan3@h-partners.com> - 2.1.0-22
- fix test failure
* Mon Nov 04 2024 Funda Wang <fundawang@yeah.net> - 2.1.0-21
- adopt to new cmake macro
* Wed Nov 16 2022 fuanan <fuanan3@h-partners.com> - 2.1.0-20
- Modify Source0
* Thu Sep 22 2022 panxiaohe <panxh.life@foxmail.com> - 2.1.0-19
- modify URL
* Fri Sep 9 2022 panxiaohe <panxh.life@foxmail.com> - 2.1.0-18
- assert error when memory allocation failed
* Fri Sep 9 2022 panxiaohe <panxh.life@foxmail.com> - 2.1.0-17
- fix CVE-2022-24795
* Wed Jun 8 2022 haozi007 <liuhao27@h-partners.com> - 2.1.0-16
- add index for patch and add cmake options
* Sat Feb 12 2022 fuanan <fuanan3@h-partners.com> - 2.1.0-15
- fix memory leaks in yajl_tree_parse
* Tue Jun 8 2021 panxiaohe<panxiaohe@huawei.com> - 2.1.0-14
- add gcc to BuildRequires
* Wed Sep 9 2020 wangchen<wangchen137@huawei.com> - 2.1.0-13
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify the URL of Source0
* Sat Aug 31 2019 dongjian<dongjian13@huawei.com> - 2.1.0-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: modify summary and some structures
* Tue Aug 20 2019 fangyufa<fangyufa1@huawei.com> - 2.1.0-11.h3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: modify name of patch
* Fri Aug 09 2019 fangyufa<fangyufa1@huawei.com> - 2.1.0-11.h2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add head info of patch
* Thu Aug 01 2019 shenyangyang <shenyangyang4@huawei.com> - 2.1.0-11.h1
- Package Initialization
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/yajl.git
git@gitee.com:src-openeuler/yajl.git
src-openeuler
yajl
yajl
master

搜索帮助