cabal-rpm
cabal-rpm copied to clipboard
cblrpm no longer supports tarball argument
Seeing this when trying to package a local .tar.gz of a nonpublished cabal package:
ricky@t520 ⚡53% ~/haskellspecs$ ls | grep rcbot-1.0.0
rcbot-1.0.0.tar.gz
ricky@t520 ⚡53% ~/haskellspecs$ cblrpm srpm rcbot-1.0.0.tar.gz
cabal: The file does not exist 'rcbot-1.0.0.tar.gz'.
cblrpm: user error ("cabal unpack -v0 rcbot-1.0.0.tar.gz" failed with status 1)
Ok, let me think: current git uses the rpmbuild defaults: ie looks in ~/rpmbuild/SOURCES/ (iirc), unless it is a .git dir.
I guess I'll change it to also check the cwd.
At least I assume that's what is going on: though it should be copying the tarball to the right dir.
(Okay, I missed nonpublished...)
Ah I guess the actual problem is that cblrpm currently does not accept a tarball argument, though I am planning to add back support for it.
Workaround is to explode the tarball and run cblrpm on that directory.
Ok, that will work for now.