|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Version: 0.3.1
|
|
|
|
Version: 0.3.1
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 6%{?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+
|
|
|
@ -13,6 +13,7 @@ Patch0: https://github.com/koalaman/shellcheck/pull/105.diff
|
|
|
|
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: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-json-devel
|
|
|
|
BuildRequires: ghc-json-devel
|
|
|
@ -65,7 +66,9 @@ This package provides the Haskell %{name} library development files.
|
|
|
|
%autosetup -n shellcheck-%{version} -p 1
|
|
|
|
%autosetup -n shellcheck-%{version} -p 1
|
|
|
|
|
|
|
|
|
|
|
|
# workaround until the tarball root directory becomes %%{name}-%%{version}
|
|
|
|
# workaround until the tarball root directory becomes %%{name}-%%{version}
|
|
|
|
ln -s shellcheck-%{version} ../%{name}-%{version}
|
|
|
|
if [ ! -d ../%{name}-%{version} ]; then
|
|
|
|
|
|
|
|
ln -s shellcheck-%{version} ../%{name}-%{version}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -85,8 +88,13 @@ make shellcheck.1
|
|
|
|
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
|
## modify:
|
|
|
|
echo %{ghclibdir}/%{name}-%{version} > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
#%%ghc_fix_dynamic_rpath shellcheck
|
|
|
|
|
|
|
|
# since shellcheck-%{version}/ != %{pkg_name}-%{version}/
|
|
|
|
|
|
|
|
PDIR=$(cd ..; pwd)
|
|
|
|
|
|
|
|
PROG=%{buildroot}%{_bindir}/shellcheck
|
|
|
|
|
|
|
|
NEWRPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@" | sed -e "s@$PDIR/shellcheck@%{ghclibdir}/%{pkg_name}@" -e "s@/dist/build@@g")
|
|
|
|
|
|
|
|
chrpath -r $NEWRPATH $PROG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -113,7 +121,6 @@ make .tests
|
|
|
|
%doc LICENSE
|
|
|
|
%doc LICENSE
|
|
|
|
%doc README
|
|
|
|
%doc README
|
|
|
|
%{_bindir}/shellcheck
|
|
|
|
%{_bindir}/shellcheck
|
|
|
|
|
|
|
|
|
|
|
|
# currently no pandoc on arm (bug #992430)
|
|
|
|
# currently no pandoc on arm (bug #992430)
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%{_mandir}/man1/shellcheck.1*
|
|
|
|
%{_mandir}/man1/shellcheck.1*
|
|
|
@ -121,17 +128,18 @@ make .tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%{_pkgdocdir}/LICENSE
|
|
|
|
%doc LICENSE
|
|
|
|
%{_pkgdocdir}/README
|
|
|
|
|
|
|
|
%config %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
|
|
|
%{_pkgdocdir}/LICENSE
|
|
|
|
%doc README
|
|
|
|
%{_pkgdocdir}/README
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Mar 17 2014 Jens Petersen <petersen@redhat.com> - 0.3.1-6
|
|
|
|
|
|
|
|
- fix shellcheck rpath instead of using ld.so.conf.d
|
|
|
|
|
|
|
|
- simplify doc files
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 16 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-5
|
|
|
|
* Sun Mar 16 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-5
|
|
|
|
- added missing ld config
|
|
|
|
- added missing ld config
|
|
|
|
|
|
|
|
|
|
|
|