Hi, On Ter, 2015-06-16 at 20:52 -0700, Gerald B. Cox wrote: > > On Tue, Jun 16, 2015 at 3:16 PM, Sérgio Basto <sergio@xxxxxxxxxx> > wrote: > Also documented in > https://fedoraproject.org/wiki/Packaging:SourceURL#Troublesome_URLs > > > > > > > Relating to Github: > https://fedoraproject.org/wiki/Packaging:SourceURL#Github > > One thing to remember is the use of the snapshot guidelines; you'll > want to do that unless you are using a release tag commit. > > > Several ways to handle: one is to add: > > > %global checkout YYYYMMDDgit%shortcommit > (where YYYY = year, MM = month, DD day you pulled the commit) > > > There is a bit of discretion left to the packager to the ultimate > format of > %{checkout} - but I did a quick search and found most folks were using > the > format outlined above, so I figured go with the crowd. > > > then Release n.%{checkout}%{?dist} > > > finally in %changelog, don't forget to add the %{checkout} information > to your release version there or you'll get a mismatch. > > > Also, you need to manual state the information, i.e.: > n.n.n.YYYYMMDDgitnnnnnnnn - you'll get an error if you try to > actually use %{checkout} in %changelog. > > > I just went through all this, so it's fresh in my mind... ;-) > > > If anyone else has any recommendations on this, would appreciate > reading them. > I did : #https://github.com/rawstudio/rawstudio/commit/983bda1f0fa5fa86884381208274198a620f006e %global commit 983bda1f0fa5fa86884381208274198a620f006e %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: rawstudio Version: 2.1 Release: 0.1.20150511git%{shortcommit}%{?dist} Source0: https://github.com/rawstudio/rawstudio/archive/%{commit}/rawstudio-%{commit}.tar.gz %prep %setup -qn %{name}-%{commit} %changelog * Wed May 13 2015 my name and email - 2.1-0.1.20150511git983bda1 But in this package, needs Git Submodules , I used #https://github.com/klauspost/rawspeed/tree/8ea2a3a6c44ee1c4b370cdd6d7e4ead932fbd307 %global commit2 8ea2a3a6c44ee1c4b370cdd6d7e4ead932fbd307 %global shortcommit2 %(c=%{commit2}; echo ${c:0:7}) # cd plugins/load-rawspeed/rawspeed Source1: https://github.com/klauspost/rawspeed/archive/%{commit2}/rawspeed-%{commit2}.tar.gz %prep %setup -qn %{name}-%{commit} -a1 rmdir plugins/load-rawspeed/rawspeed mv rawspeed-%{commit2} plugins/load-rawspeed/rawspeed So document Github snapshot guidelines with Git Submodules, it would be awesome . Thanks, -- Sérgio M. B. -- packaging mailing list packaging@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/packaging