ocaml-ppx-enumerate/ocaml-ppx-enumerate.spec
2024-07-03 15:20:10 -06:00

60 lines
1.5 KiB
RPMSpec

# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
ExcludeArch: %{ix86}
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif
Name: ocaml-ppx-enumerate
Version: 0.17.0
Release: %autorelease
Summary: Generate a list containing all values of a finite type
License: MIT
URL: https://github.com/janestreet/ppx_enumerate
VCS: git:%{url}.git
Source: %{url}/archive/v%{version}/ppx_enumerate-%{version}.tar.gz
BuildRequires: ocaml >= 5.1.0
BuildRequires: ocaml-base-devel >= 0.17
BuildRequires: ocaml-dune >= 3.11.0
BuildRequires: ocaml-ppxlib-devel >= 0.28.0
BuildRequires: ocaml-ppxlib-jane-devel >= 0.17
%description
Ppx_enumerate is a ppx rewriter which generates a definition for the
list of all values of a type (for a type which has only finitely many
values).
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: ocaml-base-devel%{?_isa}
Requires: ocaml-ppxlib-devel%{?_isa}
Requires: ocaml-ppxlib-jane-devel%{?_isa}
%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.
%prep
%autosetup -n ppx_enumerate-%{version}
%build
%dune_build
%install
%dune_install
%check
%dune_check
%files -f .ofiles
%doc CHANGES.md README.md
%license LICENSE.md
%files devel -f .ofiles-devel
%changelog
%autochangelog