Hello
I am using a Git URL for specifying the source tarbal of the poco package as below Source0: https://github.com/pocoproject/%%7Bname%7D/archive/%%7Bgittag0%7D.tar.gz#/%%...
1/ no file found rpmbuild/SOURCES/ The command below
/usr/bin/rpmbuild -bs --target noarch --nodeps poco.spec
fails because it does find the rpmbuild/SOURCES/poco-1.7.3.tar.gz
so I am wondering why rpmbuild does not or cannot download the poco-1.7.3.tar.gz itself?
2/ Help on the sources file Where can I found the documentation for specifying a GitHub path for the sources file?
TFAH
zos
On 05/17/2016 01:52 PM, zosrothko wrote:
Hello
I am using a Git URL for specifying the source tarbal of the poco package as below Source0: https://github.com/pocoproject/%%7Bname%7D/archive/%%7Bgittag0%7D.tar.gz#/%%...
1/ no file found rpmbuild/SOURCES/ The command below
/usr/bin/rpmbuild -bs --target noarch --nodeps poco.spec
fails because it does find the rpmbuild/SOURCES/poco-1.7.3.tar.gz
so I am wondering why rpmbuild does not or cannot download the poco-1.7.3.tar.gz itself?
Not sure, but you can use:
spectool -g poco.spec
to download the source.
2/ Help on the sources file Where can I found the documentation for specifying a GitHub path for the sources file?
https://fedoraproject.org/wiki/Packaging:SourceURL#Github
Le 17/05/2016 22:16, Orion Poplawski a écrit :
On 05/17/2016 01:52 PM, zosrothko wrote:
Hello
I am using a Git URL for specifying the source tarbal of the poco package as below Source0: https://github.com/pocoproject/%%7Bname%7D/archive/%%7Bgittag0%7D.tar.gz#/%%...
1/ no file found rpmbuild/SOURCES/ The command below
/usr/bin/rpmbuild -bs --target noarch --nodeps poco.spec
fails because it does find the rpmbuild/SOURCES/poco-1.7.3.tar.gz
so I am wondering why rpmbuild does not or cannot download the poco-1.7.3.tar.gz itself?
Not sure, but you can use:
spectool -g poco.spec
to download the source.
I know but koji do not run spectool before rpmbuild -bs is launched. I would like rpmbuild do the same as spectool if the tarball is not in SOURCES
2/ Help on the sources file Where can I found the documentation for specifying a GitHub path for the sources file?
That's not what I am looking for. This URL documents the Source block in the rp.spec. I am looking for the format of the rpm sources file
On Tue, 17 May 2016 22:35:54 +0200, zosrothko wrote:
spectool -g poco.spec
to download the source.
I know but koji do not run spectool before rpmbuild -bs is launched. I would like rpmbuild do the same as spectool if the tarball is not in SOURCES
That has never worked before, because rpmbuild does _not_ download the sources for you. You provide a complete src.rpm when building in koji.
On Tue, May 17, 2016 at 4:47 PM, Michael Schwendt mschwendt@gmail.com wrote:
On Tue, 17 May 2016 22:35:54 +0200, zosrothko wrote:
spectool -g poco.spec
to download the source.
I know but koji do not run spectool before rpmbuild -bs is launched. I would like rpmbuild do the same as spectool if the tarball is not in SOURCES
That has never worked before, because rpmbuild does _not_ download the sources for you. You provide a complete src.rpm when building in koji.
And there are compelling reasons not to download the sources dynamically. It only takes one poisoned intermediate proxy for the tarball you *expect* to be a very, very different tarball indeed. There was a big furor over this recently for the python modules over at pypi.org. People had been overriding the same source tarball with differnt contents so often that they decided to revise their URL scheme and broke *all* the old Python module URL's, relying on Python API used by pip and easy_setup for requesting particular releases to dynamically poll for and use the transmogrified URLs. And the new URL was based on the hash of the actual tarball, so it could not be predicted without a copy of the tarball.
I could not possibly make this stuff up, look at:
https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-pa...
On Tue, 17 May 2016, zosrothko wrote:
2/ Help on the sources file Where can I found the documentation for specifying a GitHub path for the sources file?
That's not what I am looking for. This URL documents the Source block in the rp.spec. I am looking for the format of the rpm sources file
The dist-git sources file is used for fetching source archives from the lookaside cache. It isn't possible to change it to fetch archives from GitHub. All source archives must be in the lookaside cache for official builds.
https://fedoraproject.org/wiki/Package_Source_Control#Lookaside_Cache
Scott
packaging@lists.fedoraproject.org