[packages/rapidyaml] - new

baggins baggins at pld-linux.org
Sat Oct 24 00:35:27 CEST 2026


commit 4ccd7a11fc2e5f1320cb5de8f6fe8396cfde7cef
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 24 00:34:58 2026 +0200

    - new

 rapidyaml.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)
---
diff --git a/rapidyaml.spec b/rapidyaml.spec
new file mode 100644
index 0000000..fe9fa25
--- /dev/null
+++ b/rapidyaml.spec
@@ -0,0 +1,94 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+#
+Summary:	ryml is a C++ library to parse and emit YAML
+Name:		rapidyaml
+Version:	0.16.0
+Release:	0.1
+License:	MIT
+Group:		Libraries
+Source0:	https://github.com/biojppm/rapidyaml/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	405851934758fac31bf128b6b59bd7d8
+URL:		https://github.com/biojppm/rapidyaml
+BuildRequires:	cmake
+BuildRequires:	ninja
+#BuildRequires:	c4core
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Rapidyanl or ryml, for short is a C++ library to parse and emit YAML,
+and do it fast, on everything from x64 to bare-metal chips without
+operating system.
+
+The library is fully conformant to the YAML 1.2 spec, and passes 100%
+of the cases in the YAML test suite. The parser is state-machine based
+and not recursive. No known vulnerabilities exist. The code is robust
+and extremely tested and fuzzed.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package apidocs
+Summary:	API documentation for %{name} library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki %{name}
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for %{name} library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki %{name}.
+
+%prep
+%setup -q
+
+%build
+%cmake -B build \
+	-G Ninja \
+	-DRYML_WITH_TAB_TOKENS:BOOL=ON
+
+%ninja_build -C build
+
+%if %{with apidocs}
+make -C doc html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_libdir}/libryml.so.*.*.*
+%ghost %{_libdir}/libryml.so.0.16
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libryml.so
+%{_includedir}/ryml*.hpp
+%{_libdir}/cmake/ryml
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rapidyaml.git/commitdiff/4ccd7a11fc2e5f1320cb5de8f6fe8396cfde7cef



More information about the pld-cvs-commit mailing list