|
|
@ -2,34 +2,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name ShellCheck
|
|
|
|
%global pkg_name ShellCheck
|
|
|
|
|
|
|
|
|
|
|
|
# re-enable after QuickCheck code moved out of main src files
|
|
|
|
%bcond_without tests
|
|
|
|
# (see https://github.com/koalaman/shellcheck/issues/254)
|
|
|
|
|
|
|
|
#%%ifarch %(echo %%{ghc_arches_with_ghci} | sed -e s/armv7hl//)
|
|
|
|
|
|
|
|
#%%bcond_without tests
|
|
|
|
|
|
|
|
#%%else
|
|
|
|
|
|
|
|
#%%bcond_with tests
|
|
|
|
|
|
|
|
#%%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# disable all tests for now to avoid linking QuickCheck
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# disable profiling symbols
|
|
|
|
|
|
|
|
%global without_prof 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Version: 0.3.7
|
|
|
|
Version: 0.3.8
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Shell script analysis tool
|
|
|
|
Summary: Shell script analysis tool
|
|
|
|
|
|
|
|
|
|
|
|
License: AGPLv3+
|
|
|
|
License: GPLv3+
|
|
|
|
URL: http://www.shellcheck.net/about.html
|
|
|
|
Url: https://github.com/koalaman/shellcheck
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: ShellCheck-disable-TemplateHaskell-runTests.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-json-devel
|
|
|
|
BuildRequires: ghc-json-devel
|
|
|
@ -37,9 +25,6 @@ BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
BuildRequires: ghc-regex-tdfa-devel
|
|
|
|
BuildRequires: ghc-regex-tdfa-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
# End cabal-rpm deps
|
|
|
|
BuildRequires: pandoc
|
|
|
|
BuildRequires: pandoc
|
|
|
|
|
|
|
|
|
|
|
@ -77,13 +62,9 @@ This package provides the Haskell %{name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%if %{without tests}
|
|
|
|
|
|
|
|
%patch0 -p1 -b .orig
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
LANG=en_US.utf8
|
|
|
|
|
|
|
|
%ghc_lib_build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
pandoc -s -t man shellcheck.1.md -o shellcheck.1
|
|
|
|
pandoc -s -t man shellcheck.1.md -o shellcheck.1
|
|
|
@ -96,6 +77,8 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_fix_dynamic_rpath shellcheck
|
|
|
|
%ghc_fix_dynamic_rpath shellcheck
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
@ -112,14 +95,14 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/shellcheck
|
|
|
|
%{_bindir}/shellcheck
|
|
|
|
%{_mandir}/man1/shellcheck.1*
|
|
|
|
%{_mandir}/man1/shellcheck.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%doc LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
@ -127,6 +110,9 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Mar 7 2016 Jens Petersen <petersen@redhat.com> - 0.3.8-1
|
|
|
|
|
|
|
|
- update to 0.3.8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|