mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-28 14:28:28 +00:00
fix(davs2): go back to using %len
This commit is contained in:
@@ -9,7 +9,7 @@ Summary: An open-source decoder of AVS2-P2/IEEE1857.4 video coding standard
|
|||||||
URL: https://github.com/pkuvcl/%{name}
|
URL: https://github.com/pkuvcl/%{name}
|
||||||
License: GPLv2
|
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
|
Source0: https://github.com/pkuvcl/%{name}/archive/%{commit0}/%{name}-%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
|
||||||
%else
|
%else
|
||||||
Source0: https://github.com/pkuvcl/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
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
|
%prep
|
||||||
# Use flat condition or it fails on EPEL 7
|
# Use flat condition or it fails on EPEL 7
|
||||||
%if %{commit0} != %nil
|
%if %len %{commit0} != 0
|
||||||
%autosetup -n %{name}-%{commit0}
|
%autosetup -n %{name}-%{commit0}
|
||||||
%else
|
%else
|
||||||
%autosetup
|
%autosetup
|
||||||
|
|||||||
Reference in New Issue
Block a user