[ShellCheck] build and install the man page
Dridi Boukelmoune
dridi at fedoraproject.org
Wed Feb 5 06:42:29 UTC 2014
commit ada46d13df9f5b318e87667da0f3bdc804158dd2
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Wed Feb 5 07:26:05 2014 +0100
build and install the man page
ShellCheck.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
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 <dridi.boukelmoune at gmail.com> - 0.3.1-2
+- build and install the man page
+
* Tue Feb 04 2014 Dridi <dridi.boukelmoune at gmail.com> - 0.3.1-1
- bumped to version 0.3.1
- added a workaround for the Fedora haskell toolchain (bug #1052117)
More information about the scm-commits
mailing list