I've got the following:
%global goipath github.com/dustin/gomemcached
%global commit a2284a01c143e355985d192edf3b62a053747c70
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%gometa -f
%global common_description %{expand:
A memcached binary protocol toolkit for go.}
%global golicenses LICENSE
%global godocs README.markdown example
Name: %{goname}
Version: 0
Release: %autorelease -p
Summary: A memcached binary protocol toolkit for go
Which gives me:
Release: 0.1.20230224gita2284a0.fc39
Looks like 20230224 is coming from the date of the tarball. I want to
set the date to the date of the last upstream commit - 20160816.
https://docs.pagure.org/Fedora-Infra.rpmautospec/autorelease.html#traditional-versioning-with-part-of-the-upstream-version-information-in-the-release-fieldindicates that I should be able to use -s to set the <snapinfo> part of the release tag, so I do:
Release: %autorelease -p -s 20160816git%{shortcommit}
but that gives me:
Release: 0.1.20160816gita2284a0.20230224gita2284a0.fc39
So, how do I override the SCM date?
--
Orion Poplawski
he/him/his - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane [email protected]
Boulder, CO 80301 https://www.nwra.com/
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
