## 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-ipaddr Version: 5.6.1 Release: %autorelease Summary: A library for manipulation of IP (and MAC) address representations License: ISC URL: https://github.com/mirage/ocaml-ipaddr VCS: git:%{url}.git Source0: %{url}/archive/v%{version}/ocaml-ipaddr-%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-dune # Tests BuildRequires: ocaml-ounit2-devel BuildRequires: ocaml-ppx-sexp-conv-devel %description Features: * Depends only on sexplib (conditionalization under consideration) * ounit2-based tests * IPv4 and IPv6 support * IPv4 and IPv6 CIDR prefix support * IPv4 and IPv6 [CIDR-scoped address](http://tools.ietf.org/html/rfc4291#section-2.3) support * `Ipaddr.V4` and `Ipaddr.V4.Prefix` modules are `Map.OrderedType` * `Ipaddr.V6` and `Ipaddr.V6.Prefix` modules are `Map.OrderedType` * `Ipaddr` and `Ipaddr.Prefix` modules are `Map.OrderedType` * `Ipaddr_unix` in findlib subpackage `ipaddr.unix` provides compatibility with the standard library `Unix` module `Ipaddr_top` in findlib subpackage * `ipaddr.top` provides top-level pretty printers (requires compiler-libs default since OCaml 4.0) * IP address scope classification * IPv4-mapped addresses in IPv6 (::ffff:0:0/96) are an embedding of IPv4 * MAC-48 (Ethernet) address support * `Macaddr` is a `Map.OrderedType` * All types have sexplib serializers/deserializer %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-ipaddr-%{version} %build %dune_build %install %dune_install -s %check %dune_check %files -f .ofiles-ipaddr %doc README.md %license LICENSE.md %dir %{ocamldir}/ipaddr/ %{ocamldir}/ipaddr/META %files devel -f .ofiles-ipaddr-devel %{ocamldir}/ipaddr/dune-package %{ocamldir}/ipaddr/opam %changelog ## START: Generated by rpmautospec * Mon Jan 12 2026 John Doe - 5.6.1-1 - Uncommitted changes ## END: Generated by rpmautospec