%undefine _package_note_flags %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-ppx-deriving Version: 5.2.1 Release: 17%{?dist} Summary: Type-driven code generation for OCaml License: MIT URL: https://github.com/ocaml-ppx/ppx_deriving Source0: %{url}/archive/v%{version}/ppx_deriving-%{version}.tar.gz BuildRequires: ocaml >= 4.05.0 BuildRequires: ocaml-cppo BuildRequires: ocaml-dune >= 1.6.3 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ounit-devel BuildRequires: ocaml-ppx-derivers-devel BuildRequires: ocaml-ppxlib-devel >= 0.20.0 BuildRequires: ocaml-result-devel # See https://bugzilla.redhat.com/show_bug.cgi?id=1896793 Requires: ocaml-result-devel%{?_isa} %description Deriving is a library simplifying type-driven code generation on OCaml. It includes a set of useful plugins: show, eq, ord (eq), enum, iter, map (iter), fold (iter), make, yojson, and protobuf. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: ocaml-ppx-derivers-devel%{?_isa} Requires: ocaml-ppxlib-devel%{?_isa} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %autosetup -n ppx_deriving-%{version} %build %dune_build %install %dune_install # Help the debuginfo generator find the source files cd _build/default ln -s ../../src/ppx_deriving_main.cppo.ml ln -s ../../src/api/ppx_deriving.cppo.ml . ln -s ../../src/runtime/ppx_deriving_runtime.cppo.ml . ln -s ../../src_plugins/create/ppx_deriving_create.cppo.ml . ln -s ../../src_plugins/enum/ppx_deriving_enum.cppo.ml . ln -s ../../src_plugins/eq/ppx_deriving_eq.cppo.ml . ln -s ../../src_plugins/fold/ppx_deriving_fold.cppo.ml . ln -s ../../src_plugins/iter/ppx_deriving_iter.cppo.ml . ln -s ../../src_plugins/make/ppx_deriving_make.cppo.ml . ln -s ../../src_plugins/map/ppx_deriving_map.cppo.ml . ln -s ../../src_plugins/ord/ppx_deriving_ord.cppo.ml ln -s ../../src_plugins/show/ppx_deriving_show.cppo.ml cd - %check %dune_check %files -f .ofiles %doc CHANGELOG.md README.md %license LICENSE.txt %files devel -f .ofiles-devel %changelog * Tue Nov 1 2022 Jerry James - 5.2.1-17 - Rebuild for ocaml-ppxlib 0.28.0 * Thu Aug 18 2022 Jerry James - 5.2.1-16 - Rebuild for ocaml-ppxlib 0.27.0 * Fri Jul 22 2022 Fedora Release Engineering - 5.2.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 20 2022 Jerry James - 5.2.1-14 - Use new OCaml macros * Sun Jun 19 2022 Richard W.M. Jones - 5.2.1-14 - OCaml 4.14.0 rebuild * Mon Feb 28 2022 Jerry James - 5.2.1-13 - Bump and rebuild * Fri Feb 04 2022 Richard W.M. Jones - 5.2.1-12 - OCaml 4.13.1 rebuild to remove package notes * Thu Jan 20 2022 Fedora Release Engineering - 5.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 27 2021 Jerry James - 5.2.1-10 - Rebuild for ocaml-ppxlib 0.24.0 * Tue Nov 30 2021 Jerry James - 5.2.1-9 - Rebuild for ocaml-base 0.15.0 * Tue Oct 05 2021 Richard W.M. Jones - 5.2.1-8 - OCaml 4.13.1 build * Wed Sep 1 2021 Jerry James - 5.2.1-7 - Rebuild for ocaml-ppxlib 0.23.0 * Thu Jul 29 2021 Jerry James - 5.2.1-6 - Rebuild for ocaml-ppxlib 0.22.2 * Thu Jul 29 2021 Jerry James - 5.2.1-5 - Rebuild for changed ocamlx(Dynlink) * Thu Jul 22 2021 Fedora Release Engineering - 5.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 22 2021 Jerry James - 5.2.1-3 - Rebuild for ocaml-ppxlib 0.22.1 * Mon Mar 1 23:22:46 GMT 2021 Richard W.M. Jones - 5.2.1-2 - OCaml 4.12.0 build * Sat Feb 20 2021 Jerry James - 5.2.1-1 - Version 5.2.1 * Tue Jan 26 2021 Fedora Release Engineering - 5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 7 2020 Jerry James - 5.1-1 - Version 5.1 * Sat Nov 14 2020 Jerry James - 4.5-4 - Add runtime requirement on ocaml-result-devel (bz 1896793) * Tue Sep 01 2020 Richard W.M. Jones - 4.5-3 - OCaml 4.11.1 rebuild * Fri Aug 21 2020 Richard W.M. Jones - 4.5-2 - OCaml 4.11.0 rebuild * Wed Aug 5 2020 Jerry James - 4.5-1 - Version 4.5 - Drop upstreamed ppx_deriving-4.4.1-ocaml-4.11.patch * Sat Aug 01 2020 Fedora Release Engineering - 4.4.1-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 4.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 05 2020 Richard W.M. Jones - 4.4.1-4 - OCaml 4.11.0+dev2-2020-04-22 rebuild * Wed Apr 22 2020 Richard W.M. Jones - 4.4.1-3 - OCaml 4.11.0 pre-release attempt 2 * Sat Apr 04 2020 Richard W.M. Jones - 4.4.1-2 - Update all OCaml dependencies for RPM 4.16. * Tue Mar 10 2020 Jerry James - 4.4.1-1 - Initial RPM