Le blog de pingou - Tag - guake - CommentsLe blog de pingou, ses actualités sur Fedora, ses RPMs, ses tests, son Linux... :-)
Pingou's weblog, his fedora's news, his RPMs, his tests, his Linux... :-)2022-02-17T10:46:15+01:00pingouurn:md5:66db5ce1ed1a80cb2f424695b4bb7780DotclearIntroducing dgroc - pingouurn:md5:3326679785fa20e0fcde25af8103c7592014-03-26T18:41:57+01:002014-03-26T18:41:57+01:00pingou<p>Hi Miro,</p>
<p>The spec looks just like what you would use in Fedora.</p>
<p>It will not use any macro as it will override the current Release and Source0</p>
<p>For example<br />
Release: 2%{?dist}<br />
and<br />
Source0: <a href="http://subsurface.hohndel.org/downloads/Subsurface-%{version}.tgz" title="http://subsurface.hohndel.org/downloads/Subsurface-%{version}.tgz" rel="ugc nofollow">http://subsurface.hohndel.org/downl...</a></p>
<p>become:<br />
Release: 2.20140325gitdd0c995f%{?dist}<br />
and<br />
Source0: subsurface-dd0c995f.tar</p>
<p>The tricky part is really (imho) to change:<br />
%setup -q -n Subsurface-%{version}<br />
into<br />
%setup -q -n subsurface<br />
otherwise it won't build correctly.</p>
<p>Also note that for testing dgroc as a `--srpm-only` that just update the spec and build the source-rpm<br />
(you may want to change the git hash in the release after that to get it to build on copr)</p>Introducing dgroc - Miro Hrončokurn:md5:1ceb7671878b191a791272860552da642014-03-24T11:33:27+01:002014-03-26T18:28:46+01:00Miro Hrončok<p>Thanks, that's exactly what I want to script for myself for a long time. How the spec file looks, can I use some macros that would evaluate to git commit hash?</p>