%undefine _package_note_flags %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif Name: ocaml-result Version: 1.5 Release: 15%{?dist} Summary: Compat result type %global libname %(echo %{name} | sed -e 's/^ocaml-//') License: BSD URL: https://github.com/janestreet/result/ Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-dune >= 1.0 %description Projects that want to use the new result type defined in OCaml >= 4.03 while staying compatible with older versions of OCaml should use the Result module defined in this library. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %autosetup -n %{libname}-%{version} %build dune build %{?_smp_mflags} %install dune install --destdir=%{buildroot} # We install the documentation with the doc macro rm -fr %{buildroot}%{_prefix}/doc %ifarch %{ocaml_native_compiler} # Add missing executable bits find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+ %endif %check dune runtest %files %doc CHANGES.md README.md %license LICENSE.md %dir %{_libdir}/ocaml/%{libname}/ %{_libdir}/ocaml/%{libname}/META %{_libdir}/ocaml/%{libname}/%{libname}.cma %{_libdir}/ocaml/%{libname}/%{libname}.cmi %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/%{libname}/%{libname}.cmxs %endif %files devel %license LICENSE.md %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/%{libname}/%{libname}.a %{_libdir}/ocaml/%{libname}/%{libname}.cmxa %{_libdir}/ocaml/%{libname}/%{libname}.cmx %endif # There's no .mli file, so I believe we should distribute this. %{_libdir}/ocaml/%{libname}/%{libname}.ml %{_libdir}/ocaml/%{libname}/%{libname}.cmt %{_libdir}/ocaml/%{libname}/dune-package %{_libdir}/ocaml/%{libname}/opam %changelog * Tue Jan 24 2023 Richard W.M. Jones - 1.5-15 - Rebuild OCaml packages for F38 * Thu Jan 19 2023 Fedora Release Engineering - 1.5-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jun 18 2022 Richard W.M. Jones - 1.5-12 - OCaml 4.14.0 rebuild * Fri Feb 04 2022 Richard W.M. Jones - 1.5-11 - OCaml 4.13.1 rebuild to remove package notes * Thu Jan 20 2022 Fedora Release Engineering - 1.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Oct 04 2021 Richard W.M. Jones - 1.5-9 - OCaml 4.13.1 build * Thu Jul 22 2021 Fedora Release Engineering - 1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 19 2021 Jerry James - 1.5-7 - Move META to the main package * Mon Mar 1 2021 Richard W.M. Jones - 1.5-7 - OCaml 4.12.0 build * Tue Jan 26 2021 Fedora Release Engineering - 1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 01 2020 Richard W.M. Jones - 1.5-5 - OCaml 4.11.1 rebuild * Fri Aug 21 2020 Richard W.M. Jones - 1.5-4 - OCaml 4.11.0 rebuild * Sat Aug 01 2020 Fedora Release Engineering - 1.5-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 15 2020 Jerry James - 1.5-1 - Version 1.5 * Tue May 05 2020 Richard W.M. Jones - 1.2-26 - Bump release and rebuild. * Mon May 04 2020 Richard W.M. Jones - 1.2-25 - OCaml 4.11.0+dev2-2020-04-22 rebuild * Tue Apr 21 2020 Richard W.M. Jones - 1.2-24 - OCaml 4.11.0 pre-release attempt 2 * Fri Apr 17 2020 Richard W.M. Jones - 1.2-23 - Bump release and rebuild. * Fri Apr 17 2020 Richard W.M. Jones - 1.2-22 - OCaml 4.11.0 pre-release * Thu Apr 02 2020 Richard W.M. Jones - 1.2-21 - Update all OCaml dependencies for RPM 4.16. * Wed Feb 26 2020 Richard W.M. Jones - 1.2-20 - Bump release and rebuild. * Wed Feb 26 2020 Richard W.M. Jones - 1.2-19 - OCaml 4.10.0 final. * Wed Jan 29 2020 Fedora Release Engineering - 1.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 19 2020 Richard W.M. Jones - 1.2-17 - Bump release and rebuild. * Sun Jan 19 2020 Richard W.M. Jones - 1.2-16 - OCaml 4.10.0+beta1 rebuild. * Thu Jan 09 2020 Richard W.M. Jones - 1.2-15 - OCaml 4.09.0 for riscv64 * Fri Dec 06 2019 Richard W.M. Jones - 1.2-14 - OCaml 4.09.0 (final) rebuild. * Fri Aug 16 2019 Richard W.M. Jones - 1.2-13 - OCaml 4.08.1 (final) rebuild. * Wed Jul 31 2019 Richard W.M. Jones - 1.2-12 - OCaml 4.08.1 (rc2) rebuild. * Thu Jul 25 2019 Fedora Release Engineering - 1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Richard W.M. Jones - 1.2-10 - OCaml 4.08.0 (final) rebuild. * Mon Apr 29 2019 Richard W.M. Jones - 1.2-9 - OCaml 4.08.0 (beta 3) rebuild. * Fri Feb 01 2019 Fedora Release Engineering - 1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 11 2018 Richard W.M. Jones - 1.2-6 - OCaml 4.07.0 (final) rebuild. * Wed Jun 20 2018 Richard W.M. Jones - 1.2-5 - OCaml 4.07.0-rc1 rebuild. * Thu Feb 08 2018 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Dec 02 2017 Richard W.M. Jones - 1.2-3 - OCaml 4.06.0 rebuild. * Mon Sep 11 2017 Ben Rosser 1.2-2 - Disable debuginfo generation, as it fails on Rawhide. - Move .ml file to devel package (as there is no .mli file). * Sat Sep 02 2017 Ben Rosser 1.2-1 - Initial package.