|
|
|
@ -1,31 +1,25 @@
|
|
|
|
|
%ifnarch %{ocaml_native_compiler}
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
|
|
|
|
|
%global srcname ppx-deriving
|
|
|
|
|
%global upname ppx_deriving
|
|
|
|
|
%global giturl https://github.com/ocaml-ppx/ppx_deriving
|
|
|
|
|
|
|
|
|
|
Name: ocaml-%{srcname}
|
|
|
|
|
Version: 4.5
|
|
|
|
|
Release: 4%{?dist}.rvre2
|
|
|
|
|
Name: ocaml-ppx-deriving
|
|
|
|
|
Version: 6.0.2
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Type-driven code generation for OCaml
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/ocaml-ppx/%{upname}
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz
|
|
|
|
|
URL: https://ocaml-ppx.github.io/ppx_deriving/
|
|
|
|
|
VCS: git:%{giturl}.git
|
|
|
|
|
Source: %{giturl}/archive/v%{version}/ppx_deriving-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ocaml >= 4.02.2
|
|
|
|
|
BuildRequires: ocaml-cppo
|
|
|
|
|
BuildRequires: ocaml >= 4.05.0
|
|
|
|
|
BuildRequires: ocaml-cppo >= 1.1.0
|
|
|
|
|
BuildRequires: ocaml-dune >= 1.6.3
|
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
|
BuildRequires: ocaml-migrate-parsetree-devel
|
|
|
|
|
BuildRequires: ocaml-odoc
|
|
|
|
|
BuildRequires: ocaml-ounit-devel
|
|
|
|
|
BuildRequires: ocaml-ppxfind
|
|
|
|
|
BuildRequires: ocaml-ppx-tools-devel >= 4.02.3
|
|
|
|
|
|
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1896793
|
|
|
|
|
Requires: ocaml-result-devel
|
|
|
|
|
BuildRequires: ocaml-ppx-derivers-devel
|
|
|
|
|
BuildRequires: ocaml-ppxlib-devel >= 0.32.0
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Deriving is a library simplifying type-driven code generation on OCaml.
|
|
|
|
@ -35,46 +29,21 @@ map (iter), fold (iter), make, yojson, and protobuf.
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: ocaml-migrate-parsetree-devel%{?_isa}
|
|
|
|
|
Requires: ocaml-ppx-tools-devel%{?_isa}
|
|
|
|
|
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}.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{upname}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
# Work around name change for ounit
|
|
|
|
|
sed -i 's/oUnit/ounit2/g' src_test/*/dune
|
|
|
|
|
%autosetup -n ppx_deriving-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
dune build %{?_smp_mflags}
|
|
|
|
|
dune build %{?_smp_mflags} @doc
|
|
|
|
|
%dune_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
dune install --destdir=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# We do not want the dune markers
|
|
|
|
|
find _build/default/_doc/_html -name .dune-keep -delete
|
|
|
|
|
|
|
|
|
|
# We do not want the ml files
|
|
|
|
|
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
%dune_install
|
|
|
|
|
|
|
|
|
|
# Help the debuginfo generator find the source files
|
|
|
|
|
cd _build/default
|
|
|
|
@ -93,66 +62,133 @@ ln -s ../../src_plugins/show/ppx_deriving_show.cppo.ml
|
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
dune runtest
|
|
|
|
|
%dune_check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%files -f .ofiles
|
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/api/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/create/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/enum/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/eq/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/fold/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/iter/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/make/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/map/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/ord/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/runtime/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/show/
|
|
|
|
|
%dir %{_libdir}/ocaml/%{upname}/std/
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/META
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/ppx_deriving
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cma
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmi
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmxs
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/dune-package
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/opam
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.a
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmx
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmxa
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmt
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.cmti
|
|
|
|
|
%{_libdir}/ocaml/%{upname}/*/*.mli
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc _build/default/_doc/_html/
|
|
|
|
|
%doc _build/default/_doc/_mlds/
|
|
|
|
|
%doc _build/default/_doc/_odoc/
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%files devel -f .ofiles-devel
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Apr 25 2021 David Abdurachmanov <david.abdurachmanov@sifive.com> - 4.5-4.rvre2
|
|
|
|
|
- Rebuilt for Fedora RISCV, no changes
|
|
|
|
|
* Mon Aug 5 2024 Jerry James <loganjerry@gmail.com> - 6.0.2-6
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.33.0
|
|
|
|
|
|
|
|
|
|
* Sun Apr 25 2021 David Abdurachmanov <david.abdurachmanov@sifive.com> - 4.5-4.rvre1
|
|
|
|
|
- Rebuilt for Fedora RISCV, no changes
|
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Apr 25 2021 David Abdurachmanov <david.abdurachmanov@sifive.com> - 4.5-4.rvre0
|
|
|
|
|
- Rebuilt for Fedora RISCV, no changes
|
|
|
|
|
* Fri Jun 28 2024 Jerry James <loganjerry@gmail.com> - 6.0.2-4
|
|
|
|
|
- Rebuild for ocaml-sexplib0 0.17.0
|
|
|
|
|
|
|
|
|
|
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 6.0.2-3
|
|
|
|
|
- OCaml 5.2.0 ppc64le fix
|
|
|
|
|
|
|
|
|
|
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 6.0.2-2
|
|
|
|
|
- OCaml 5.2.0 for Fedora 41
|
|
|
|
|
|
|
|
|
|
* Mon May 27 2024 Jerry James <loganjerry@gmail.com> - 6.0.2-1
|
|
|
|
|
- Version 6.0.2
|
|
|
|
|
|
|
|
|
|
* Tue May 7 2024 Jerry James <loganjerry@gmail.com> - 6.0.1-1
|
|
|
|
|
- Version 6.0.1
|
|
|
|
|
- Drop all patches
|
|
|
|
|
|
|
|
|
|
* Fri Feb 2 2024 Jerry James <loganjerry@gmail.com> - 5.2.1-28
|
|
|
|
|
- Rebuild for changed ocamlx hashes
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-27
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-26
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-25
|
|
|
|
|
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-24
|
|
|
|
|
- OCaml 5.1.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-23
|
|
|
|
|
- OCaml 5.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-21
|
|
|
|
|
- OCaml 5.0 rebuild for Fedora 39
|
|
|
|
|
|
|
|
|
|
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 5.2.1-20
|
|
|
|
|
- Add upstream patches for OCaml 5.0 compatibility
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-19
|
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 1 2022 Jerry James <loganjerry@gmail.com> - 5.2.1-17
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.28.0
|
|
|
|
|
|
|
|
|
|
* Thu Aug 18 2022 Jerry James <loganjerry@gmail.com> - 5.2.1-16
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.27.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 20 2022 Jerry James <loganjerry@gmail.com> - 5.2.1-14
|
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
|
|
|
|
|
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-14
|
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Feb 28 2022 Jerry James <loganjerry@gmail.com> - 5.2.1-13
|
|
|
|
|
- Bump and rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-12
|
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 27 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-10
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.24.0
|
|
|
|
|
|
|
|
|
|
* Tue Nov 30 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-9
|
|
|
|
|
- Rebuild for ocaml-base 0.15.0
|
|
|
|
|
|
|
|
|
|
* Tue Oct 05 2021 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-8
|
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
|
|
|
|
|
* Wed Sep 1 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-7
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.23.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-6
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.22.2
|
|
|
|
|
|
|
|
|
|
* Thu Jul 29 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-5
|
|
|
|
|
- Rebuild for changed ocamlx(Dynlink)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 22 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-3
|
|
|
|
|
- Rebuild for ocaml-ppxlib 0.22.1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 1 23:22:46 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 5.2.1-2
|
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
|
|
|
|
|
* Sat Feb 20 2021 Jerry James <loganjerry@gmail.com> - 5.2.1-1
|
|
|
|
|
- Version 5.2.1
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 7 2020 Jerry James <loganjerry@gmail.com> - 5.1-1
|
|
|
|
|
- Version 5.1
|
|
|
|
|
|
|
|
|
|
* Sat Nov 14 2020 Jerry James <loganjerry@gmail.com> - 4.5-4
|
|
|
|
|
- Add runtime requirement on ocaml-result-devel (bz 1896793)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 02 2020 Richard W.M. Jones <rjones@redhat.com> - 4.5-3.1
|
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
|
|
|
|
|
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 4.5-3
|
|
|
|
|
- OCaml 4.11.1 rebuild
|
|
|
|
|
|
|
|
|
|