[Mageia-dev] [RPM] cauldron core/release kphotoalbum-0-1.mga2

Balcaen John mikala at mageia.org
Sat Sep 10 02:22:32 CEST 2011

Le Vendredi 9 Septembre 2011 23:42:46 Florian Hubold a écrit :
> > like %_kde_applicationsdir or %_kde_appsdir
> > Regarding the %mkrel if you're using a git tarball it could be
> > nice to have it announced in the file name
> > something for release like %mkrel -c git %git should do the trick
> Interesting. What does %mkrel -c git do?
It's interressing for git/svn snapshot so you can get a srpm like this 
for exemple :
version here is 1.0 & the Release is set to %mkrel -c git %gitdate

> Isn't there a problem when using git commit hashes as they are random,
> unsorted, and shouldn't be used in a version comparison?
Yep i forgot to mention that it's better to use the date of the snapshot 
instead of the commit hash (which can still be available somewhere in 
the spec for memory).

> See f.ex. this thread:
> http://lists.mandriva.com/cooker/2011-03/msg00009.php
> Although i didn't look at the SPEC at all ...

No you're right, the %git macro here is not correct :p

Balcaen John

More information about the Mageia-dev mailing list