[packages/yyjson] new

atler atler at pld-linux.org
Mon Sep 1 01:38:12 CEST 2025


commit 1b9f88ad06d2bbabaed5dfba0c688b71a4614ce1
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Sep 1 01:37:37 2025 +0200

    new

 yyjson.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
---
diff --git a/yyjson.spec b/yyjson.spec
new file mode 100644
index 0000000..8b001ec
--- /dev/null
+++ b/yyjson.spec
@@ -0,0 +1,74 @@
+Summary:	The fastest JSON library in C
+Name:		yyjson
+Version:	0.12.0
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/ibireme/yyjson/releases
+Source0:	https://github.com/ibireme/yyjson/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	a0a4fe2ae717277125fdebc60630ddf1
+URL:		https://ibireme.github.io/yyjson/doc/doxygen/html/
+BuildRequires:	cmake >= 3.5
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A high performance JSON library written in ANSI C with following
+features:
+- Fast: can read or write gigabytes of JSON data per second on modern
+  CPUs.
+- Portable: complies with ANSI C (C89) for cross-platform
+  compatibility.
+- Strict: complies with RFC 8259 JSON standard, ensuring strict number
+  formats and UTF-8 validation.
+- Extendable: offers options to enable individual JSON5 features and
+  custom allocator.
+- Accuracy: can accurately read and write int64, uint64, and double
+  numbers.
+- Flexible: supports unlimited JSON nesting levels, \u0000 characters,
+  and non-null-terminated strings.
+- Manipulation: supports querying and modifying with JSON Pointer,
+  JSON Patch, and JSON Merge Patch.
+- Developer-Friendly: easy integration with just one .h and one .c
+  file.
+
+%package devel
+Summary:	Header files for yyjson library
+Group:		Development/Libraries
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for yyjson library.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%attr(755,root,root) %{_libdir}/libyyjson.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libyyjson.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libyyjson.so
+%{_libdir}/cmake/yyjson
+%{_includedir}/yyjson.h
+%{_pkgconfigdir}/yyjson.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yyjson.git/commitdiff/1b9f88ad06d2bbabaed5dfba0c688b71a4614ce1



More information about the pld-cvs-commit mailing list