From d996258e290ef00124bfd431378f9d007ba8718d Mon Sep 17 00:00:00 2001 From: Leon Wang Date: Thu, 22 Dec 2022 11:13:35 +0800 Subject: [PATCH] Fix rpm-config hard code problem --- ocaml.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ocaml.spec b/ocaml.spec index c7a055a..3ed9b09 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -13,7 +13,7 @@ Name: ocaml Version: 4.13.1 -Release: 2 +Release: 3 Summary: OCaml compiler and programming environment License: LGPL-2.1-only URL: http://www.ocaml.org @@ -26,7 +26,7 @@ Patch0003: 0003-configure-Remove-incorrect-assumption-about-cross-co.patch BuildRequires: gcc binutils-devel ncurses-devel gdbm-devel gawk perl-interpreter BuildRequires: util-linux chrpath autoconf annobin make -Requires: gcc util-linux openEuler-rpm-config +Requires: gcc util-linux %{_vendor}-rpm-config Provides: bundled(md5-plumb) ocaml(runtime) = %{version} Provides: ocaml(compiler) = %{version} @@ -101,7 +101,7 @@ make -j1 all ||: make install DESTDIR=$RPM_BUILD_ROOT perl -pi -e "s|^%{buildroot}||" %{buildroot}%{_libdir}/ocaml/ld.conf -echo %{version} > %{buildroot}%{_libdir}/ocaml/openEuler-ocaml-release +echo %{version} > %{buildroot}%{_libdir}/ocaml/%{_vendor}-ocaml-release chrpath --delete %{buildroot}%{_libdir}/ocaml/stublibs/*.so @@ -201,7 +201,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata %dir %{_libdir}/ocaml/threads %{_libdir}/ocaml/threads/*.cmi %{_libdir}/ocaml/threads/*.cma -%{_libdir}/ocaml/openEuler-ocaml-release +%{_libdir}/ocaml/%{_vendor}-ocaml-release #ocamldoc @@ -234,6 +234,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata %{_mandir}/man3/* %changelog +* Thu Dec 22 2022 wanglin - 4.13.1-3 +- Fix rpm-config hard code problem + * Mon Nov 14 2022 zhaozhen - 4.13.1-2 - loongarch64 does not support native_compiler -- Gitee