https://bugzilla.redhat.com/show_bug.cgi?id=1052117
--- Comment #7 from Jens Petersen petersen@redhat.com --- Sorry you also need:
=== diff --git a/ShellCheck.spec b/ShellCheck.spec index 8d8bffd..c010758 100644 --- a/ShellCheck.spec +++ b/ShellCheck.spec @@ -81,8 +81,8 @@ make shellcheck.1 cd %{_builddir}/%{name}-%{version} %ghc_lib_install
-mkdir -p %{buildroot}%{_mandir}/man1 -install -t %{buildroot}%{_mandir}/man1 shellcheck.1 +install -D -p -m 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 +
%check ===
to fix the manpage permission.
For a .cabal file example including test cases and even building a manpage I recommend looking at pandoc - it might be a bit long or do more than you need but I think it is a reasonable example.
http://hackage.haskell.org/package/pandoc -> http://hackage.haskell.org/package/pandoc-1.12.3.3/pandoc.cabal or https://github.com/jgm/pandoc/blob/master/pandoc.cabal