|
|
|
%global pkg_name ShellCheck
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Version: 0.3.1
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Tool for checking common errors in POSIX shell scripts
|
|
|
|
|
|
|
|
License: AGPLv3+
|
|
|
|
URL: http://www.shellcheck.net/about.html
|
|
|
|
Source0: https://github.com/koalaman/shellcheck/archive/v%{version}.tar.gz
|
|
|
|
Patch0: https://github.com/koalaman/shellcheck/pull/105.diff
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-json-devel
|
|
|
|
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
|
|
|
|
The goals of ShellCheck are:
|
|
|
|
|
|
|
|
- To point out and clarify typical beginner's syntax issues,
|
|
|
|
that causes a shell to give cryptic error messages.
|
|
|
|
|
|
|
|
- To point out and clarify typical intermediate level semantic problems,
|
|
|
|
that causes a shell to behave strangely and counter-intuitively.
|
|
|
|
|
|
|
|
- To point out subtle caveats, corner cases and pitfalls, that may cause an
|
|
|
|
advanced user's otherwise working script to fail under future circumstances.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ghc-%{name}
|
|
|
|
Summary: Haskell %{name} library
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{name}
|
|
|
|
This package provides the Haskell %{name} shared library.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ghc-%{name}-devel
|
|
|
|
Summary: Haskell %{name} library development files
|
|
|
|
Provides: ghc-%{name}-static = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{name}-devel
|
|
|
|
This package provides the Haskell %{name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n shellcheck-%{version} -p 1
|
|
|
|
|
|
|
|
# workaround until the tarball root directory becomes %%{name}-%%{version}
|
|
|
|
ln -s shellcheck-%{version} ../%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
# currently no pandoc on arm (bug #992430)
|
|
|
|
%ifnarch %{arm}
|
|
|
|
make shellcheck.1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
# currently no pandoc on arm (bug #992430)
|
|
|
|
%ifnarch %{arm}
|
|
|
|
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
|
echo %{ghclibdir}/%{name}-%{version} > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
make .tests
|
|
|
|
|
|
|
|
|
|
|
|
%post -n ghc-%{name}
|
|
|
|
%{_sbindir}/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{name}
|
|
|
|
%{_sbindir}/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
|
|
|
%{_pkgdocdir}/LICENSE
|
|
|
|
%{_pkgdocdir}/README
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
%{_pkgdocdir}/LICENSE
|
|
|
|
%{_pkgdocdir}/README
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun Mar 16 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-5
|
|
|
|
- added missing ld config
|
|
|
|
|
|
|
|
* Sat Mar 01 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-4
|
|
|
|
- executable dynamically linked to the library (bug #1069048)
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
* 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)
|
|
|
|
|
|
|
|
* Tue Dec 03 2013 Dridi <dridi.boukelmoune@gmail.com> - 0.2.0-3
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Dec 03 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-3
|
|
|
|
- s/shell/POSIX shell/ in summary
|
|
|
|
- LICENSE and README co-owned by sub-packages
|
|
|
|
|
|
|
|
* Sat Nov 30 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-2
|
|
|
|
- added a patch for "for arg do" loops (d4bc0f6)
|
|
|
|
|
|
|
|
* Sat Nov 23 2013 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.2.0-1
|
|
|
|
- spec file generated by cabal-rpm-0.8.6
|
|
|
|
- added the description from the README
|
|
|
|
- fixed broken bits from the generated spec
|