build and install the man page

This commit is contained in:
Dridi Boukelmoune 2014-02-05 07:26:05 +01:00
parent 900c1f7712
commit ada46d13df
1 changed files with 11 additions and 1 deletions

View File

@ -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@gmail.com> - 0.3.1-2
- build and install the man page
* Tue Feb 04 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-1
- bumped to version 0.3.1
- added a workaround for the Fedora haskell toolchain (bug #1052117)