You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using rpmbuild to create Python RPMs based on a local tarball. I would receive this somewhat cryptic error:
error: File /home/makerpm/rpmbuild/SOURCES: Is a directory
After digging through the rpmbuild code for hints, it turned out that where py2pack (which I used for generating spec files) produced a spec file header of:
It was not obvious to me that the name of the tarball in fact needed to be in the external URL when I was building everything locally. I'd like to suggest a more explicit error if the version / tarball name cannot be extracted from the Source field.
The text was updated successfully, but these errors were encountered:
I was using rpmbuild to create Python RPMs based on a local tarball. I would receive this somewhat cryptic error:
error: File /home/makerpm/rpmbuild/SOURCES: Is a directory
After digging through the rpmbuild code for hints, it turned out that where py2pack (which I used for generating spec files) produced a spec file header of:
Source: https://files.pythonhosted.org/packages/source/m/mixbox/
I needed:
Source: https://files.pythonhosted.org/packages/source/m/mixbox/mixbox-%{version}.tar.gz
It was not obvious to me that the name of the tarball in fact needed to be in the external URL when I was building everything locally. I'd like to suggest a more explicit error if the version / tarball name cannot be extracted from the Source field.
The text was updated successfully, but these errors were encountered: