#122 fedpkg srpm should work without git
Opened 12 years ago by vondruch. Modified 5 years ago

Hello,

I would like to be able to use "fedpkg --dist=rawhide srpm" outside of git repository. Let me explain. I am doing package review and I have following directory content:

{{{
$ ls
rdoc-3.8.gem rubygem-rdoc-remove-isolate.patch rubygem-rdoc.spec
}}}

I.e. everything to build SRPM. However, trying to build SRPM using fedpkg fails:

{{{
$ fedpkg --dist=rawhide srpm
Could not make an srpm: /home/vondruch/fedora-reviews/rubygem-rdoc is not a valid repo
}}}

So lets try to satisfy fedpkg needs:

{{{
$ git init
Initialized empty Git repository in /home/vondruch/fedora-reviews/rubygem-rdoc/.git/

$ fedpkg --dist=rawhide srpm
Could not make an srpm: /home/vondruch/fedora-reviews/rubygem-rdoc is not a valid repo: [Errno 2] No such file or directory: '/home/vondruch/fedora-reviews/rubygem-rdoc/sources'
}}}

Hm, ok, missing sources, so lets create one:

{{{
$ touch sources

$ fedpkg --dist=rawhide srpm
Zapsáno: /home/vondruch/fedora-reviews/rubygem-rdoc/rubygem-rdoc-3.8-1.fc16.src.rpm
}}}

And now, it creates SRPM just fine. So the dependency would be from end user point of view easily removed, while I understand you might disagree from developers POV :)


Still an issue in fedpkg-1.35-1.fc28.noarch. There should be no git repo needed for a scratch build off srpm.

Login to comment on this ticket.

Metadata