stop building the man page on ARM, no pandoc
This commit is contained in:
parent
ada46d13df
commit
b2e7f60974
@ -2,7 +2,7 @@
|
||||
|
||||
Name: %{pkg_name}
|
||||
Version: 0.3.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Tool for checking common errors in POSIX shell scripts
|
||||
|
||||
License: AGPLv3+
|
||||
@ -19,7 +19,11 @@ BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-parsec-devel
|
||||
BuildRequires: ghc-regex-compat-devel
|
||||
# End cabal-rpm deps
|
||||
|
||||
# currently no pandoc on arm (bug #992430)
|
||||
%ifnarch %{arm}
|
||||
BuildRequires: pandoc
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
@ -60,33 +64,28 @@ This package provides the Haskell %{name} library development files.
|
||||
%setup -q -n shellcheck-%{version}
|
||||
|
||||
# workaround until the tarball root directory becomes %%{name}-%%{version}
|
||||
# see also "cd %%{_builddir}/%%{name}-%%{version}" in other sections
|
||||
ln -s shellcheck-%{version} ../%{name}-%{version}
|
||||
|
||||
cat >Setup.hs <<EOF
|
||||
import Distribution.Simple
|
||||
|
||||
main = defaultMain
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
%ghc_lib_build
|
||||
|
||||
# currently no pandoc on arm (bug #992430)
|
||||
%ifnarch %{arm}
|
||||
make shellcheck.1
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
%ghc_lib_install
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -t %{buildroot}%{_mandir}/man1 shellcheck.1
|
||||
# currently no pandoc on arm (bug #992430)
|
||||
%ifnarch %{arm}
|
||||
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
||||
%endif
|
||||
|
||||
|
||||
%check
|
||||
cd %{_builddir}/%{name}-%{version}
|
||||
make .tests
|
||||
|
||||
|
||||
@ -102,7 +101,11 @@ make .tests
|
||||
%doc LICENSE
|
||||
%doc README
|
||||
%{_bindir}/shellcheck
|
||||
|
||||
# currently no pandoc on arm (bug #992430)
|
||||
%ifnarch %{arm}
|
||||
%{_mandir}/man1/shellcheck.1*
|
||||
%endif
|
||||
|
||||
|
||||
%files -n ghc-%{name} -f ghc-%{name}.files
|
||||
@ -116,6 +119,11 @@ make .tests
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Feb 09 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-3
|
||||
- removed Setup.hs, now available upstream
|
||||
- stop building the man page on ARM, no pandoc (bug #992430)
|
||||
- simpler workaroudn for bug #1052117
|
||||
|
||||
* Wed Feb 05 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-2
|
||||
- build and install the man page
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user