From Mageia wiki
Summary
RPM spec files currently have no easy way of retrieving source code from an SVN or GIT repository, and to do so involves comments and messy wget scripts. The proposal is to create a syntax within the RPM spec file so that spectool can
- automatically retrieve source from an SVN or GIT repository.
- automatically download a gz/bz2 archive and repack it as xz
- if all else fails then spectool should be able to run a download script in the spec file
In addition, it would be nice to integrate this with bm of iurt
Tags
Spectools now includes the following three tags. These tags appear as comments to insure backward compatibility.
#SourceGet: #PatchGet: #SourceRoot:
The tags can have numbers added to the end (i.e. #SourceGet0:)
SourceGet will behave as follows:
- if it is a git address it will run git-archive and then download a tarball to source file
- if it is a svn address it will run svn export and download a tarball to the source file
- if it is a URL it will download the URL and then dump the contents to the source file name
- otherwise it will run the script of comments in the script get line
To Do
Add autonegotiation. Most files are online as gzip, but it would be nice to allow auto conversion to .xz
Owner
- Email:joequant gmail dot com
Current status
Software / Packages Dependencies
- spectool