Skip to content

Commit

Permalink
add if in main section
Browse files Browse the repository at this point in the history
  • Loading branch information
say-paul committed Jul 18, 2023
1 parent 1612c97 commit 7e5493e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion greenboot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ License: LGPLv2+
URL: %{forgeurl}
Source: %{forgesource}

%if ! 0%{?with_packit}
%if "%{?commit}" != ""
Source1: %{name}-%{commit}-vendor.tar.gz
%else
Source1: %{name}-%{version}-vendor.tar.gz
%endif
%endif

ExcludeArch: s390x i686 %{power64}

Expand Down Expand Up @@ -158,7 +160,7 @@ Requires: jq

%prep
%forgeautosetup
# %if 1%{?with_packit}
# %if ! 0%{?with_packit}
tar xvf %{SOURCE1}
# %else
# %autosetup -n %{archivename} -D -T -a 1
Expand Down

0 comments on commit 7e5493e

Please sign in to comment.