2020-07-05 18:05:47 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
%global _vpath_builddir build
|
|
|
|
|
2009-12-09 23:05:44 +00:00
|
|
|
Name: yajl
|
2014-04-28 10:34:40 +00:00
|
|
|
Version: 2.1.0
|
2024-06-24 16:31:27 +00:00
|
|
|
Release: 24%{?dist}
|
2009-12-09 23:05:44 +00:00
|
|
|
Summary: Yet Another JSON Library (YAJL)
|
|
|
|
|
2012-08-06 13:16:37 +00:00
|
|
|
License: ISC
|
2009-12-09 23:05:44 +00:00
|
|
|
URL: http://lloyd.github.com/yajl/
|
|
|
|
|
|
|
|
#
|
|
|
|
# NB, upstream does not provide pre-built tar.gz downloads. Instead
|
|
|
|
# they make you use the 'on the fly' generated tar.gz from GITHub's
|
|
|
|
# web interface
|
|
|
|
#
|
|
|
|
# The Source0 for any version is obtained by a URL
|
|
|
|
#
|
2014-04-28 10:34:40 +00:00
|
|
|
# https://github.com/lloyd/yajl/releases/tag/2.1.0
|
2009-12-09 23:05:44 +00:00
|
|
|
#
|
2014-04-28 10:34:40 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2009-12-09 23:05:44 +00:00
|
|
|
|
2023-07-10 13:08:37 +00:00
|
|
|
# Patches managed at https://github.com/berrange/yajl/tree/fedora-dist-git
|
|
|
|
Patch: 0001-pkg-config-file-should-be-in-lib-dir-not-shared-data.patch
|
|
|
|
Patch: 0002-pkg-config-include-dir-should-not-have-the-yajl-suff.patch
|
|
|
|
Patch: 0003-fix-patch-to-test-files-to-take-account-of-vpath.patch
|
|
|
|
Patch: 0004-drop-bogus-_s-suffix-from-yajl-dynamic-library.patch
|
2023-07-10 13:16:22 +00:00
|
|
|
Patch: 0005-Fix-for-CVE-2017-16516.patch
|
2023-07-10 13:17:15 +00:00
|
|
|
Patch: 0006-Fix-CVE-2022-24795.patch
|
2023-07-10 13:18:30 +00:00
|
|
|
Patch: 0007-yajl-fix-memory-leak-problem.patch
|
|
|
|
Patch: 0008-fix-memory-leaks.patch
|
2023-07-10 13:08:37 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
2009-12-09 23:05:44 +00:00
|
|
|
BuildRequires: cmake
|
2023-07-10 13:08:37 +00:00
|
|
|
BuildRequires: git
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries, includes, etc to develop with YAJL
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Yet Another JSON Library. YAJL is a small event-driven
|
|
|
|
(SAX-style) JSON parser written in ANSI C, and a small
|
|
|
|
validating JSON generator.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Yet Another JSON Library. YAJL is a small event-driven
|
|
|
|
(SAX-style) JSON parser written in ANSI C, and a small
|
|
|
|
validating JSON generator.
|
|
|
|
|
|
|
|
This sub-package provides the libraries and includes
|
|
|
|
necessary for developing against the YAJL library
|
|
|
|
|
|
|
|
%prep
|
2023-07-10 13:08:37 +00:00
|
|
|
%autosetup -S git_am
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# NB, we are not using upstream's 'configure'/'make'
|
|
|
|
# wrapper, instead we use cmake directly to better
|
|
|
|
# align with Fedora standards
|
2020-07-05 18:05:47 +00:00
|
|
|
%cmake
|
|
|
|
%cmake_build
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-07-05 18:05:47 +00:00
|
|
|
%cmake_install
|
2010-12-17 16:33:47 +00:00
|
|
|
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
# No static libraries
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libyajl_s.a
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd test
|
2014-04-28 10:34:40 +00:00
|
|
|
(cd parsing && ./run_tests.sh)
|
|
|
|
(cd api && ./run_tests.sh)
|
2009-12-09 23:05:44 +00:00
|
|
|
|
2018-02-03 16:43:32 +00:00
|
|
|
%ldconfig_scriptlets
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
%files
|
2018-02-03 16:43:32 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README TODO
|
2009-12-09 23:05:44 +00:00
|
|
|
%{_bindir}/json_reformat
|
|
|
|
%{_bindir}/json_verify
|
2011-11-10 16:23:26 +00:00
|
|
|
%{_libdir}/libyajl.so.2
|
|
|
|
%{_libdir}/libyajl.so.2.*
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/yajl
|
|
|
|
%{_includedir}/yajl/yajl_common.h
|
|
|
|
%{_includedir}/yajl/yajl_gen.h
|
|
|
|
%{_includedir}/yajl/yajl_parse.h
|
2011-11-10 16:23:26 +00:00
|
|
|
%{_includedir}/yajl/yajl_tree.h
|
2010-12-17 16:33:47 +00:00
|
|
|
%{_includedir}/yajl/yajl_version.h
|
2009-12-09 23:05:44 +00:00
|
|
|
%{_libdir}/libyajl.so
|
2012-08-06 13:14:00 +00:00
|
|
|
%{_libdir}/pkgconfig/yajl.pc
|
2009-12-09 23:05:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-06-24 16:31:27 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.1.0-24
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-27 10:37:17 +00:00
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-22 19:26:39 +00:00
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-10 13:08:37 +00:00
|
|
|
* Mon Jul 10 2023 Daniel P. Berrangé <berrange@redhat.com> - 2.1.0-21
|
|
|
|
- Switch to using git for managing patches
|
2023-07-10 13:16:22 +00:00
|
|
|
- Fix potential buffer overread (CVE-2017-16516)
|
2023-07-10 13:17:15 +00:00
|
|
|
- Fix integer overflow leading to heap corruption (CVE-2022-24795)
|
2023-07-10 13:18:30 +00:00
|
|
|
- Fix multiple memory leaks (CVE-2023-33460)
|
2023-07-10 13:08:37 +00:00
|
|
|
|
2023-01-21 08:01:01 +00:00
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-23 13:41:02 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-22 05:38:28 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 22:04:53 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-28 00:29:46 +00:00
|
|
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 15:10:59 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-31 05:03:12 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-27 04:45:33 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-03 12:55:41 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 09:40:07 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-09 22:13:23 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-03 16:43:32 +00:00
|
|
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.0-9
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-08-03 11:04:09 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 22:32:09 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 18:14:03 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-05 03:55:25 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-19 04:33:54 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-18 11:16:19 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 17:40:32 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-28 10:34:40 +00:00
|
|
|
* Mon Apr 28 2014 Daniel P. Berrange <berrange@redhat.com> - 2.1.0-1
|
|
|
|
- Update to 2.1.0 release (rhbz #1080935)
|
|
|
|
|
2013-08-04 09:27:50 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-15 04:08:41 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-06 13:14:00 +00:00
|
|
|
* Mon Aug 6 2012 Daniel P. Berrange <berrange@redhat.com> - 2.0.4-1
|
|
|
|
- Update to 2.0.4 release (rhbz #845777)
|
2012-08-06 13:16:37 +00:00
|
|
|
- Fix License tag to reflect change in 2.0.0 series from BSD to ISC
|
2012-08-06 13:14:00 +00:00
|
|
|
|
2012-07-22 07:32:30 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 09:24:10 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-10 16:23:26 +00:00
|
|
|
* Thu Nov 10 2011 Daniel P. Berrange <berrange@redhat.com> - 2.0.1-1
|
|
|
|
- Update to 2.0.1 release
|
|
|
|
|
2011-05-03 16:21:41 +00:00
|
|
|
* Tue May 3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1
|
|
|
|
- Update to 1.0.12 release
|
|
|
|
|
2010-12-17 16:33:47 +00:00
|
|
|
* Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1
|
|
|
|
- Update to 1.0.11 release
|
|
|
|
|
2010-01-11 17:27:54 +00:00
|
|
|
* Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3
|
|
|
|
- Fix ignoring of cflags (rhbz #547500)
|
|
|
|
|
2009-12-09 23:05:44 +00:00
|
|
|
* Tue Dec 8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2
|
|
|
|
- Change use of 'define' to 'global'
|
|
|
|
|
|
|
|
* Mon Dec 7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1
|
|
|
|
- Initial Fedora package
|