From cdd77ad4aae03b0c1c43116d3c54c8866c26822f8b6ca537239ce5bd6ac9d06d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 23 Sep 2023 20:21:21 +0000 Subject: [PATCH] Separate %name per @FLAVOR@ OBS-URL: https://build.opensuse.org/package/show/graphics/libjxl?expand=0&rev=31 --- libjxl.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libjxl.spec b/libjxl.spec index f6fa457..ee414f8 100644 --- a/libjxl.spec +++ b/libjxl.spec @@ -1,5 +1,5 @@ # -# spec file for package libjxl +# spec file for package libjxl-gtk # # Copyright (c) 2023 SUSE LLC # @@ -16,11 +16,12 @@ # -Name: libjxl %define lname libjxl0_8 %if "@BUILD_FLAVOR@" == "gtk" +Name: libjxl-gtk %bcond_without gtk %else +Name: libjxl %bcond_with gtk %endif Version: 0.8.2 @@ -106,7 +107,7 @@ This package provides a thumbnailer to render for JPEG XL file thumbnails, for example, on file-browsers. %prep -%setup -a2 +%setup -n libjxl-%version -a2 mv skcms third_party/ %build