'brp-remove-la-files' handles removal of .la files automatically on
Fedora 36+.  This is causing a warning:

  RPM build warnings:
     File not found: /<...>/BUILDROOT/usr/lib64/*.la

It's coming form the 'exclude' clauses for the devel package that
expect the excluded files to exist.

Let's just remove the files explicitly to avoid making the exclusion
conditional based on the Fedora or RHEL version.

Signed-off-by: Ilya Maximets <[email protected]>
---
 rhel/openvswitch-fedora.spec.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 90dff5162..5e2e3180c 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -266,6 +266,8 @@ install -p -D -m 0755 \
 
 # remove unpackaged files
 rm -f $RPM_BUILD_ROOT%{_bindir}/ovs-parse-backtrace
+# Remove .la files, if present (automatic with %__brp_remove_la_files on f36+).
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %check
 %if %{with check}
@@ -427,7 +429,6 @@ fi
 %{_libdir}/pkgconfig/*.pc
 %{_includedir}/openvswitch/*
 %{_includedir}/openflow/*
-%exclude %{_libdir}/*.la
 %exclude %{_libdir}/*.a
 
 %if 0%{?rhel} > 7 || (0%{?fedora} > 28 && 0%{?fedora} < 41)
-- 
2.52.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to