https://bugzilla.redhat.com/show_bug.cgi?id=1935379
Robert-André Mauchin 🐧 <zebob.m(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zebob.m(a)gmail.com
Doc Type|--- |If docs needed, set a value
--- Comment #1 from Robert-André Mauchin 🐧 <zebob.m(a)gmail.com> ---
- Why don't youu define the full commit like this:
%global commit0 627468b537befb16c0d04e426450b2fe7eb85c9f
%global shortcommit0 %(c=%{commit}; echo ${c:0:7})
%global date0 20170903
- This is the opposite: date first, then short commit:
Release: 0.1.%{date0}git%{shortcommit0}%{?dist}
[…]
%changelog
* Thu Mar 04 2021 Raphael Groner <raphgro(a)fedoraproject.org> -
0-0.1.20170903git627468b
- Initial package
- Use then
%prep
%autosetup -n %{name}-%{commit0}
- Use a better name for the archive:
Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
- date should be the date you took the snapshot not the date of the commit
--
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