Am 26.11.2014 um 16:39 schrieb Dmitriy Perlow:
Steffen Sledz <sledz@dresearch-fe.de> Wed, 26 Nov 2014 16:46:48 +0300:
I hope i'm on the right ML with my problem. Please forgive me if not.
I need to write a specfile for use with openSUSE Build Service and have problems with the source fetching and versioning part.
The sources for the project are hosted at GitHub and i like to build a snapshot from the HEAD of the master branch.
So the package version should contain a (generated) numerical part which increments on each build and the (short) hash of the latest commit.
I believe that the tar_scm, set_version and recompress services are needed here. But i could not find a good tutorial or example for this.
https://build.opensuse.org/package/view_file/home:Reki:leechcraft:masterbran... is OK for me. Usually I just update "%define LEECHCRAFT_VERSION " from `git describe` and it triggers archive creating and builds starting.
Any questions?
Thanx. All the examples were very helpful. The rpm build is working now. :) Now i try the next step: deb packages I've the same problem here. What should i write to the Source: and Files: fields of the dsc file in case of source archives generated by tar_scm and recompress. Steffen -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org