From 9a9bd57a7d10fad35ab0a28fd6876d474fbb69ff Mon Sep 17 00:00:00 2001 From: sadlerm4 Date: Fri, 14 Feb 2025 19:39:40 +1100 Subject: [PATCH] fix(davs2): go back to using %len --- anda/lib/davs2/davs2.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anda/lib/davs2/davs2.spec b/anda/lib/davs2/davs2.spec index 8015f78e8d..c89632dde4 100644 --- a/anda/lib/davs2/davs2.spec +++ b/anda/lib/davs2/davs2.spec @@ -9,7 +9,7 @@ Summary: An open-source decoder of AVS2-P2/IEEE1857.4 video coding standard URL: https://github.com/pkuvcl/%{name} License: GPLv2 -%if %{commit0} != %nil +%if %len %{commit0} != 0 Source0: https://github.com/pkuvcl/%{name}/archive/%{commit0}/%{name}-%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz %else Source0: https://github.com/pkuvcl/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -44,7 +44,7 @@ This package contains the shared library development files. %prep # Use flat condition or it fails on EPEL 7 -%if %{commit0} != %nil +%if %len %{commit0} != 0 %autosetup -n %{name}-%{commit0} %else %autosetup