|
|
|
@ -1,24 +1,35 @@
|
|
|
|
|
# OCaml packages not built on i686 since OCaml 5 / Fedora 39.
|
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
|
|
|
|
|
%ifnarch %{ocaml_native_compiler}
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: ocaml-findlib
|
|
|
|
|
Version: 1.8.1
|
|
|
|
|
Release: 28%{?dist}
|
|
|
|
|
Version: 1.9.6
|
|
|
|
|
Release: 15%{?dist}
|
|
|
|
|
Summary: Objective CAML package manager and build helper
|
|
|
|
|
License: BSD
|
|
|
|
|
License: MIT
|
|
|
|
|
|
|
|
|
|
URL: http://projects.camlcity.org/projects/findlib.html
|
|
|
|
|
VCS: https://github.com/ocaml/ocamlfind
|
|
|
|
|
Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
# Fix the toolbox build with OCaml 5.x
|
|
|
|
|
Patch0: %{name}-toolbox.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: ocaml >= 4.02.0
|
|
|
|
|
BuildRequires: ocaml-labltk-devel
|
|
|
|
|
BuildRequires: ocaml-ocamlbuild-devel
|
|
|
|
|
#BuildRequires: ocaml-num-devel
|
|
|
|
|
BuildRequires: ocaml-ocamlbuild
|
|
|
|
|
BuildRequires: ocaml-compiler-libs
|
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
|
BuildRequires: ocaml-rpm-macros
|
|
|
|
|
BuildRequires: m4, ncurses-devel
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
Requires: ocaml
|
|
|
|
|
|
|
|
|
|
%global __ocaml_requires_opts -i Asttypes -i Parsetree
|
|
|
|
|
# Do not require ocaml-compiler-libs at runtime
|
|
|
|
|
%global __ocaml_requires_opts -i Asttypes -i Build_path_prefix_map -i Cmi_format -i Env -i Ident -i Identifiable -i Load_path -i Location -i Longident -i Misc -i Outcometree -i Parsetree -i Path -i Primitive -i Shape -i Subst -i Topdirs -i Toploop -i Type_immediacy -i Types -i Warnings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -27,7 +38,7 @@ Objective CAML package manager and build helper.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
@ -36,7 +47,24 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n findlib-%{version}
|
|
|
|
|
%autosetup -p1 -n findlib-%{version}
|
|
|
|
|
|
|
|
|
|
# Fix character encoding
|
|
|
|
|
iconv -f ISO8859-1 -t UTF-8 doc/README > doc/README.utf8
|
|
|
|
|
touch -r doc/README doc/README.utf8
|
|
|
|
|
mv doc/README.utf8 doc/README
|
|
|
|
|
|
|
|
|
|
# Fix the OCaml core man directory
|
|
|
|
|
sed -i 's,/usr/local/man,%{_mandir},' configure
|
|
|
|
|
|
|
|
|
|
# Configure bug? dynlink_subdir is the empty string
|
|
|
|
|
sed -i 's/\${dynlink_subdir}/dynlink/' configure
|
|
|
|
|
|
|
|
|
|
# Build an executable that is not damaged by stripping
|
|
|
|
|
sed -i 's/\(custom=\)-custom/\1-output-complete-exe/' configure
|
|
|
|
|
|
|
|
|
|
# Skip broken test for ocamlopt -g
|
|
|
|
|
sed -i '/^ocamlopt -g/d' configure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -50,9 +78,9 @@ cat src/findlib/ocaml_args.ml
|
|
|
|
|
-sitelib `ocamlc -where` \
|
|
|
|
|
-mandir %{_mandir} \
|
|
|
|
|
-with-toolbox
|
|
|
|
|
make all
|
|
|
|
|
%make_build all
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
make opt
|
|
|
|
|
%make_build opt
|
|
|
|
|
%endif
|
|
|
|
|
rm doc/guide-html/TIMESTAMP
|
|
|
|
|
|
|
|
|
@ -66,56 +94,140 @@ make install \
|
|
|
|
|
OCAMLFIND_BIN=%{_bindir} \
|
|
|
|
|
OCAMLFIND_MAN=%{_mandir}
|
|
|
|
|
|
|
|
|
|
# Remove spurious executable bits
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man{1,5}/*
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib/*.{cma,cmi,ml,mli,pattern}
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib/{META,Makefile*}
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_libdir}/ocaml/findlib/*.{a,cmxa}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ocaml_files
|
|
|
|
|
sed -i '/ocamlfind\.conf/d' .ofiles
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
|
|
%files -f .ofiles
|
|
|
|
|
%doc LICENSE doc/README
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ocamlfind.conf
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
%{_libdir}/ocaml/*/META
|
|
|
|
|
%{_libdir}/ocaml/topfind
|
|
|
|
|
%{_libdir}/ocaml/findlib
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.a
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.cmxa
|
|
|
|
|
%endif
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/*.mli
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/Makefile.config
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/make_wizard
|
|
|
|
|
%exclude %{_libdir}/ocaml/findlib/make_wizard.pattern
|
|
|
|
|
# Had to disable this in OCaml 4.06, unclear why.
|
|
|
|
|
#%%{_libdir}/ocaml/num-top
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%files devel -f .ofiles-devel
|
|
|
|
|
%doc LICENSE doc/README doc/guide-html
|
|
|
|
|
%ifarch %{ocaml_native_compiler}
|
|
|
|
|
%{_libdir}/ocaml/findlib/*.a
|
|
|
|
|
%{_libdir}/ocaml/findlib/*.cmxa
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/ocaml/findlib/*.mli
|
|
|
|
|
%{_libdir}/ocaml/findlib/Makefile.config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 11 2022 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-28
|
|
|
|
|
- Rebuild for EPEL
|
|
|
|
|
resolves: rhbz#2060850
|
|
|
|
|
* Wed Oct 30 2024 Troy Dawson <tdawson@redhat.com> - 1.9.6-15
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2024 Troy Dawson <tdawson@redhat.com> - 1.9.6-14
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.1-27
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-13
|
|
|
|
|
- OCaml 5.2.0 ppc64le fix
|
|
|
|
|
|
|
|
|
|
* Sat Aug 7 2021 Florian Weimer <fweimer@redhat.com> - 1.8.1-26
|
|
|
|
|
- Rebuild to pick up new build flags from redhat-rpm-config (#1984652)
|
|
|
|
|
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-12
|
|
|
|
|
- OCaml 5.2.0 for Fedora 41
|
|
|
|
|
|
|
|
|
|
* Wed Jun 23 2021 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-25
|
|
|
|
|
* Mon Jan 29 2024 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-11
|
|
|
|
|
- Bump and rebuild
|
|
|
|
|
resolves: rhbz#1975308
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.1-24
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-8
|
|
|
|
|
- OCaml 5.1.1 + s390x code gen fix for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Tue Dec 12 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-7
|
|
|
|
|
- OCaml 5.1.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-6
|
|
|
|
|
- OCaml 5.1 rebuild for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Wed Oct 4 2023 Jerry James <loganjerry@gmail.com> - 1.9.6-5
|
|
|
|
|
- Build an executable that is not damaged by stripping
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-4
|
|
|
|
|
- OCaml 5.0 rebuild for Fedora 39
|
|
|
|
|
|
|
|
|
|
* Mon Jul 10 2023 Jerry James <loganjerry@gmail.com> - 1.9.6-3
|
|
|
|
|
- OCaml 5.0.0 rebuild
|
|
|
|
|
- Verify the License is valid SPDX
|
|
|
|
|
- Fix natdynlink detection
|
|
|
|
|
- Add patch to fix toolbox build for OCaml 5.x
|
|
|
|
|
- Convert README to UTF-8
|
|
|
|
|
- Use new OCaml macros
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-2
|
|
|
|
|
- Rebuild OCaml packages for F38
|
|
|
|
|
|
|
|
|
|
* Mon Jan 23 2023 Richard W.M. Jones <rjones@redhat.com> - 1.9.6-1
|
|
|
|
|
- New upstream version 1.9.6
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 19 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.5-1
|
|
|
|
|
- New upstream version 1.9.5
|
|
|
|
|
|
|
|
|
|
* Sat Jun 18 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.4-2
|
|
|
|
|
- OCaml 4.14.0 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 08 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.4-1
|
|
|
|
|
- Update to findlib 1.9.4
|
|
|
|
|
|
|
|
|
|
* Fri Feb 04 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.3-2
|
|
|
|
|
- OCaml 4.13.1 rebuild to remove package notes
|
|
|
|
|
|
|
|
|
|
* Wed Jan 26 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.3-1
|
|
|
|
|
- Update to findlib 1.9.3
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Richard W.M. Jones <rjones@redhat.com> - 1.9.2-1
|
|
|
|
|
- Update to findlib 1.9.2
|
|
|
|
|
- Remove patch which has been applied upstream.
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 7 2022 Jerry James <loganjerry@gmail.com> - 1.9.1-4
|
|
|
|
|
- Fix labltk detection
|
|
|
|
|
- Change license from BSD to MIT
|
|
|
|
|
|
|
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.9.1-3
|
|
|
|
|
- Bump and rebuild for updated ocaml-labltk
|
|
|
|
|
|
|
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.9.1-2
|
|
|
|
|
- OCaml 4.13.1 build
|
|
|
|
|
|
|
|
|
|
* Mon Oct 04 2021 Richard W.M. Jones <rjones@redhat.com> - 1.9.1-1
|
|
|
|
|
- New upstream development version 1.9.1
|
|
|
|
|
|
|
|
|
|
* Tue Jul 27 2021 Richard W.M. Jones <rjones@redhat.com> - 1.9-3
|
|
|
|
|
- Rebuild for changed ocamlx(Dynlink)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Mar 15 2021 Richard W.M. Jones <rjones@redhat.com> - 1.9-1
|
|
|
|
|
- New upstream version 1.9.
|
|
|
|
|
|
|
|
|
|
* Mon Mar 15 2021 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-26
|
|
|
|
|
- Bump and rebuild for ELN broken deps.
|
|
|
|
|
|
|
|
|
|
* Mon Mar 1 2021 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-25
|
|
|
|
|
- Rebuild for updated ocaml-labltk
|
|
|
|
|
|
|
|
|
|
* Mon Mar 1 09:37:08 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-24
|
|
|
|
|
- OCaml 4.12.0 build
|
|
|
|
|
|
|
|
|
|
* Mon Feb 1 2021 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-23
|
|
|
|
|
- Bump and rebuild for updated ocaml Dynlink dependency.
|
|
|
|
|