From 22512cbd61527fb599dc8d17cf1a19d851697959 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 13 Nov 2023 13:57:14 -0500 Subject: [PATCH] Fix RHEL build The RHEL rust macros do not currently support automatic license detection. While work is underway to bring them in sync, librsvg2 needs to be buildable in the meantime. --- librsvg2.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/librsvg2.spec b/librsvg2.spec index 2cd9d60..c851c11 100644 --- a/librsvg2.spec +++ b/librsvg2.spec @@ -133,8 +133,10 @@ export CARGO="%__cargo" --enable-vala %make_build +%if %{undefined rhel} %cargo_license_summary %{cargo_license} > LICENSE.dependencies +%endif %install %make_install @@ -157,7 +159,9 @@ rm -f %{buildroot}%{_pkgdocdir}/COMPILING.md %files %doc code-of-conduct.md NEWS README.md %license COPYING.LIB +%if %{undefined rhel} %license LICENSE.dependencies +%endif %{_libdir}/librsvg-2.so.* %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib