The package rpms/ocaml-linenoise.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/ocaml-linenoise.git/commit/?id=8f86a....
Change: +ExcludeArch: %{ix86}
Thanks.
Full change: ============
commit 8f86a10bb803f8c2af7ad8516cc890a94b21db24 Author: U2FsdGVkX1 U2FsdGVkX1@gmail.com Date: Thu Feb 27 23:28:52 2025 +0800
Version 1.5.1
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3ff8c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/linenoise-v1.5.1.tar.gz diff --git a/README.md b/README.md index 9fd69a8..aa987ac 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # ocaml-linenoise
-The ocaml-linenoise package +Self-contained OCaml bindings to linenoise, easy high level readline functionality in OCaml diff --git a/ocaml-linenoise.spec b/ocaml-linenoise.spec new file mode 100644 index 0000000..9e5292f --- /dev/null +++ b/ocaml-linenoise.spec @@ -0,0 +1,52 @@ +Name: ocaml-linenoise +Version: 1.5.1 +Release: %autorelease +Summary: OCaml bindings to linenoise + +License: BSD-3-Clause +URL: https://github.com/ocaml-community/%%7Bname%7D +Source0: https://github.com/ocaml-community/%%7Bname%7D/archive/v%%7Bversion%7D/linen... + +# Unbundle linenoise +Patch0: unbundle-linenoise.patch + +# OCaml packages not built on i686 since OCaml 5 / Fedora 39. +ExcludeArch: %{ix86} + +BuildRequires: ocaml >= 4.03 +BuildRequires: ocaml-dune >= 1.1 +BuildRequires: linenoise-devel + +%description +Self-contained OCaml bindings to linenoise. + +%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 ocaml-linenoise-%{version} -p1 + +# Ensure the bundled linenoise sources are not used in the build +rm src/linenoise_src.* + +%build +%dune_build + +%install +%dune_install + +%check +%dune_check + +%files -f .ofiles +%doc README.md CHANGES.md + +%files devel -f .ofiles-devel + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..9340e2b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (linenoise-v1.5.1.tar.gz) = 69e9de91990ad21bf8f9d8a5c4b43ae6371b05193549052b160117ac190335cfb17a9b65f9518148ec536fcde43b8631918bd8a0ab65e48b1625877e17e711f7 diff --git a/unbundle-linenoise.patch b/unbundle-linenoise.patch new file mode 100644 index 0000000..a44fdd0 --- /dev/null +++ b/unbundle-linenoise.patch @@ -0,0 +1,20 @@ +--- ocaml-linenoise-1.5.1/src/dune.orig 2024-03-20 13:12:17.000000000 -0600 ++++ ocaml-linenoise-1.5.1/src/dune 2024-07-11 15:09:38.626734392 -0600 +@@ -5,4 +5,5 @@ + (modules LNoise) + (wrapped false) + (flags :standard -warn-error -3) +- (c_names linenoise_src linenoise_stubs)) ++ (c_library_flags -llinenoise) ++ (c_names linenoise_stubs)) +--- ocaml-linenoise-1.5.1/src/linenoise_stubs.c.orig 2024-03-20 13:12:17.000000000 -0600 ++++ ocaml-linenoise-1.5.1/src/linenoise_stubs.c 2024-07-11 16:07:07.321358220 -0600 +@@ -8,7 +8,7 @@ + #include <errno.h> + #include <assert.h> + +-#include "linenoise_src.h" ++#include <linenoise.h> + + // Ripped from ctypes + #define Val_none Val_int(0)
arch-excludes@lists.fedoraproject.org