## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 17; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # OCaml 5.5.2 rebuild %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-jsonm Version: 1.0.2 Release: %autorelease Summary: Non-blocking streaming JSON codec for OCaml License: ISC URL: https://erratique.ch/software/jsonm VCS: git:https://erratique.ch/repos/jsonm.git Source: https://github.com/dbuenzli/jsonm/archive/v%{version}/jsonm-%{version}.tar.gz # OCaml packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} BuildSystem: topkg BuildOption(build): --tests true BuildOption(build): --dev-pkg false BuildRequires: ocaml >= 4.05.0 BuildRequires: ocaml-compiler-libs BuildRequires: ocaml-findlib BuildRequires: ocaml-ocamlbuild BuildRequires: ocaml-rpm-macros BuildRequires: ocaml-topkg-devel >= 1.0.3 BuildRequires: ocaml-uutf-devel >= 1.0.0 %description Jsonm is an OCaml non-blocking streaming codec to decode and encode the JSON data format. It can process JSON text without blocking on IO and without a complete in-memory representation of the data. The uncut codec also processes whitespace and (non-standard) JSON with JavaScript comments. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %autosetup -n jsonm-%{version} %conf # Topkg does watermark replacements only if run inside a git checkout. Github # tarballs do not come with a .git directory. Therefore, we do the watermark # replacement manually. for fil in $(find . -type f); do sed -e 's,%%%%VERSION%%%%,v%{version},' \ -e 's,%%%%VERSION_NUM%%%%,%{version},' \ -i.orig $fil touch -r $fil.orig $fil rm $fil.orig done %files -f .ofiles %doc CHANGES.md README.md %license LICENSE.md %files devel -f .ofiles-devel %changelog ## START: Generated by rpmautospec * Thu Nov 19 2026 Jerry James - 1.0.2-17 - Uncommitted changes * Tue Sep 15 2026 Richard W.M. Jones - 1.0.2-16 - OCaml 5.5.1 rebuild * Thu Jul 16 2026 Fedora Release Engineering - 1.0.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jul 09 2026 Jerry James - 1.0.2-14 - OCaml 5.5.0 rebuild - Use the topkg declarative buildsystem * Fri Feb 20 2026 Richard W.M. Jones - 1.0.2-13 - OCaml 5.4.1 rebuild * Fri Jan 16 2026 Fedora Release Engineering - 1.0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Jan 13 2026 Jerry James - 1.0.2-11 - Reflow the description text * Tue Oct 14 2025 Richard W.M. Jones - 1.0.2-10 - OCaml 5.4.0 rebuild * Thu Jul 24 2025 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jul 12 2025 Jerry James - 1.0.2-8 - Rebuild to fix OCaml dependencies * Fri Mar 14 2025 Jerry James - 1.0.2-7 - Rebuild for ocaml-uutf 1.0.4 * Fri Jan 17 2025 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Jan 14 2025 Jerry James - 1.0.2-5 - Move configuration steps to %%conf * Thu Jan 09 2025 Jerry James - 1.0.2-4 - OCaml 5.3.0 rebuild for Fedora 42 * Fri Dec 27 2024 Jerry James - 1.0.2-3 - BR ocaml-compiler-libs for OCaml 5.3.0 * Thu Jul 18 2024 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jul 15 2024 Jerry James - 1.0.2-1 - Initial RPM ## END: Generated by rpmautospec