## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 packages not built on i686 since OCaml 5 / Fedora 39. ExcludeArch: %{ix86} %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-cstruct Version: 6.2.0 Release: %autorelease Summary: Access C-like structures directly from OCaml License: ISC URL: https://github.com/mirage/ocaml-cstruct VCS: git:%{url}.git Source0: %{url}/archive/v%{version}/ocaml-cstruct-%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-dune BuildRequires: ocaml-fmt-devel # Tests BuildRequires: ocaml-alcotest-devel BuildRequires: ocaml-crowbar-devel %description Cstruct is a library and syntax extension to make it easier to access C-like structures directly from OCaml. It supports both reading and writing to these structures, and they are accessed via the Bigarray module. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains files for developing applications that use %{name}. %prep %autosetup -n ocaml-cstruct-%{version} %build %dune_build %install %dune_install -s %check %dune_check %files -f .ofiles-cstruct %doc README.md %license LICENSE.md %dir %{ocamldir}/cstruct/ %{ocamldir}/cstruct/META %files devel -f .ofiles-cstruct-devel %{ocamldir}/cstruct/dune-package %{ocamldir}/cstruct/opam %changelog ## START: Generated by rpmautospec * Mon Jan 12 2026 John Doe - 6.2.0-1 - Uncommitted changes ## END: Generated by rpmautospec