From ada46d13df9f5b318e87667da0f3bdc804158dd2 Mon Sep 17 00:00:00 2001 From: Dridi Boukelmoune Date: Wed, 5 Feb 2014 07:26:05 +0100 Subject: [PATCH] build and install the man page --- ShellCheck.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ShellCheck.spec b/ShellCheck.spec index 873a238..8d8bffd 100644 --- a/ShellCheck.spec +++ b/ShellCheck.spec @@ -2,7 +2,7 @@ Name: %{pkg_name} Version: 0.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tool for checking common errors in POSIX shell scripts License: AGPLv3+ @@ -19,6 +19,7 @@ BuildRequires: ghc-mtl-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-regex-compat-devel # End cabal-rpm deps +BuildRequires: pandoc %description @@ -73,11 +74,16 @@ EOF cd %{_builddir}/%{name}-%{version} %ghc_lib_build +make shellcheck.1 + %install cd %{_builddir}/%{name}-%{version} %ghc_lib_install +mkdir -p %{buildroot}%{_mandir}/man1 +install -t %{buildroot}%{_mandir}/man1 shellcheck.1 + %check cd %{_builddir}/%{name}-%{version} @@ -96,6 +102,7 @@ make .tests %doc LICENSE %doc README %{_bindir}/shellcheck +%{_mandir}/man1/shellcheck.1* %files -n ghc-%{name} -f ghc-%{name}.files @@ -109,6 +116,9 @@ make .tests %changelog +* Wed Feb 05 2014 Dridi - 0.3.1-2 +- build and install the man page + * Tue Feb 04 2014 Dridi - 0.3.1-1 - bumped to version 0.3.1 - added a workaround for the Fedora haskell toolchain (bug #1052117)