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 : libkvkontakte-1.0-0.git.20110908.mga2.src.rpm 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
