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