https://bugzilla.redhat.com/show_bug.cgi?id=1935610
--- Comment #1 from Robert-André Mauchin 🐧 <zebob.m(a)gmail.com> ---
- You can use %set_build_flags instead of:
export CFLAGS="%{optflags}"
export LDFLAGS="%{__global_ldflags}"
- You can't use master for the archive as it will change with new commit. You
should instead define the commit you want packaged:
%global commit 57bc98c139d13f1f79404c72445193e8fcdfcc60
%global snapshotdate 20210316
%global shortcommit %(c=%{commit}; echo ${c:0:7})
[…]
Release: 0.1%{snapshotdate}git%{shortcommit}%{?dist}
[…]
Source0: %url/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
[…]
%autosetup -n %{name}-%{commit}
[…]
* Wed Mar 3 2021 msoodb <masoud.bolhassani(a)gmail.com> -
0-0.1.20210316git57bc98c
- Release should start at 0.1 for a prerelease
- Remove trailing spaces
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component