https://bugzilla.redhat.com/show_bug.cgi?id=1052117
Bug ID: 1052117 Summary: ShellCheck source dir is named shellcheck-version/ not ShellCheck-version/ Product: Fedora Version: rawhide Component: ShellCheck Assignee: dridi.boukelmoune@gmail.com Reporter: petersen@redhat.com QA Contact: extras-qa@fedoraproject.org CC: dridi.boukelmoune@gmail.com, haskell-devel@lists.fedoraproject.org
Description of problem: It is unfortunate the current source code dir of ShellCheck is named in lowercase while the package name is CamelCase. I assume this comes about because the project is called shellcheck on github... I think it would be good to point this out to the author. I think it might also be problematic if/when he ever wants to publish the package on Hackage.
Version: 0.2.0
Steps to Reproduce: 1. fedpkg prep 2. ls
Actual results: ShellCheck/shellcheck-0.2.0 ShellCheck/shellcheck-0.2.0/ShellCheck.cabal
Expected results: ShellCheck/ShellCheck-0.2.0 ShellCheck/ShellCheck-0.2.0/ShellCheck.cabal
Additional info: A simple temporary workaround would be to rename the dir in the spec file:
%prep %setup -q -n shellcheck-%{version} mv {shellcheck,ShellCheck}-%{version}
Then at least the Fedora Haskell "toolchain" scripts will be break when they hit ShellCheck. I don't think there is any offer Haskell cabal-based package in Fedora which has this problem.
Alternatively the upstream cabal package could be renamed to shellcheck but then the Fedora package should really be renamed accordingly. So easiest would be to make the upstream project/tarball name consistent with the package name.