Description of problem: I try to create an rpm package for pandoc-citeproc because Fedoras current version fails for me. In order to do so, I also need to create an rpm of xml-conduit. I read about Haskell package creation on https://fedoraproject.org/wiki/Packaging:Haskell and tried to create a spec file for xml-conduit with cabal rpm. The following happens: cabal-rpm is not able to unpack the tgz: [makerpm@L420 SOURCES]$ cabal-rpm spec xml-conduit-1.3.0.tar.gz cabal: The file does not exist 'xml-conduit-1.3.0.tar.gz'. cabal-rpm: user error ("cabal unpack -v0 xml-conduit-1.3.0.tar.gz" failed with status 1) But when I run cabal unpack manually, it works: [makerpm@L420 SOURCES]$ cabal unpack -v0 xml-conduit-1.3.0.tar.gz [makerpm@L420 SOURCES]$ ls -l xml-conduit-1.3.0 total 28 -rw-rw-r--. 1 makerpm makerpm 533 May 17 14:35 ChangeLog.md -rw-rw-r--. 1 makerpm makerpm 1368 May 17 14:35 LICENSE -rw-rw-r--. 1 makerpm makerpm 1170 May 17 14:35 README.md -rw-rw-r--. 1 makerpm makerpm 114 May 17 14:35 Setup.lhs drwxrwxr-x. 2 makerpm makerpm 4096 May 17 14:35 test drwxrwxr-x. 3 makerpm makerpm 4096 May 17 14:35 Text -rw-rw-r--. 1 makerpm makerpm 2648 May 17 14:35 xml-conduit.cabal When I then try to run cblrpm spec on the .cabal file itself, this happens: [makerpm@L420 xml-conduit-1.3.0]$ cblrpm spec xml-conduit.cabal cabal: The file does not exist 'xml-conduit.cabal'. cblrpm: user error ("cabal unpack -v0 xml-conduit.cabal" failed with status 1) Version-Release number of selected component (if applicable): 0.9.5 How reproducible: Always, see description. Steps to Reproduce: 1. 2. 3. Actual results: cabal-rpm fails Expected results: cabal-rpm should create a spec file. Additional info:
please just run "cabal spec xml-conduit" I may re-add tarball arg support in a future version of cabal-rpm perhaps but it is not a high priority currently (though in the TODO list). See https://github.com/juhp/cabal-rpm/issues/10
(In reply to Jens Petersen from comment #1) > please just run "cabal spec xml-conduit" sorry I meant "cabal-rpm spec xml-conduit".