From 508683ce2bdded7a994f52cdf7497e1e3e7e216d Mon Sep 17 00:00:00 2001 From: yueyuankun Date: Mon, 15 Apr 2024 14:29:42 +0800 Subject: [PATCH] add vendor, compliant with specifications --- ocaml.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ocaml.spec b/ocaml.spec index 45147c1..c787b22 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -1,3 +1,5 @@ +%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler} + %ifnarch loongarch64 %global native_compiler 1 %else @@ -26,7 +28,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} @@ -114,7 +116,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 @@ -213,7 +215,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 @@ -248,6 +250,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata %{_mandir}/man3/* %changelog +* Mon Apr 15 2024 yueyuankun - 4.14.1-3 +- modify spec, add vendor + * Tue Apr 02 2024 yaoxin - 4.14.1-2 - Support ccache compile to fix build error -- Gitee