9b0b69c
# generated by cabal-rpm-2.0.6
9b0b69c
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
9b0b69c
9b0b69c
%global pkg_name hadolint
9b0b69c
%global pkgver %{pkg_name}-%{version}
9b0b69c
9b0b69c
%bcond_without tests
9b0b69c
9b0b69c
Name:           %{pkg_name}
9b0b69c
Version:        1.17.3
9b0b69c
Release:        1%{?dist}
9b0b69c
Summary:        Dockerfile linter, validate inline bash
9b0b69c
9b0b69c
License:        GPLv3+
9b0b69c
URL:            https://github.com/%{pkg_name}/%{pkg_name}/
9b0b69c
# Begin cabal-rpm sources:
9b0b69c
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
9b0b69c
# End cabal-rpm sources
9b0b69c
# Disable static compilation for hadolint executable
9b0b69c
Patch0:         %{name}-1.17.3-dynamic.patch
9b0b69c
9b0b69c
# Begin cabal-rpm deps:
9b0b69c
BuildRequires:  ghc-Cabal-devel
9b0b69c
BuildRequires:  ghc-rpm-macros
9b0b69c
BuildRequires:  ghc-HsYAML-prof
9b0b69c
BuildRequires:  ghc-ShellCheck-prof
9b0b69c
BuildRequires:  ghc-aeson-prof
9b0b69c
BuildRequires:  ghc-base-prof
9b0b69c
BuildRequires:  ghc-bytestring-prof
9b0b69c
BuildRequires:  ghc-containers-prof
9b0b69c
BuildRequires:  ghc-directory-prof
9b0b69c
BuildRequires:  ghc-filepath-prof
9b0b69c
BuildRequires:  ghc-gitrev-prof
9b0b69c
BuildRequires:  ghc-language-docker-prof
9b0b69c
BuildRequires:  ghc-megaparsec-prof
9b0b69c
BuildRequires:  ghc-mtl-prof
9b0b69c
BuildRequires:  ghc-optparse-applicative-prof
9b0b69c
BuildRequires:  ghc-split-prof
9b0b69c
BuildRequires:  ghc-text-prof
9b0b69c
BuildRequires:  ghc-void-prof
9b0b69c
%if %{with tests}
9b0b69c
BuildRequires:  ghc-HUnit-devel
9b0b69c
BuildRequires:  ghc-hspec-devel
9b0b69c
%endif
9b0b69c
# End cabal-rpm deps
9b0b69c
9b0b69c
%description
9b0b69c
A smarter Dockerfile linter that helps you build best practice Docker
9b0b69c
images. The linter is parsing the Dockerfile into an AST and performs rules on
9b0b69c
top of the AST. It is standing on the shoulders of ShellCheck to lint the Bash
9b0b69c
code inside RUN instructions.
9b0b69c
9b0b69c
9b0b69c
%package -n ghc-%{name}
9b0b69c
Summary:        Haskell %{name} library
9b0b69c
9b0b69c
%description -n ghc-%{name}
9b0b69c
This package provides the Haskell %{name} shared library.
9b0b69c
9b0b69c
9b0b69c
%package -n ghc-%{name}-devel
9b0b69c
Summary:        Haskell %{name} library development files
9b0b69c
Provides:       ghc-%{name}-static = %{version}-%{release}
9b0b69c
Provides:       ghc-%{name}-static%{?_isa} = %{version}-%{release}
9b0b69c
%if %{defined ghc_version}
9b0b69c
Requires:       ghc-compiler = %{ghc_version}
9b0b69c
%endif
9b0b69c
Requires:       ghc-%{name}%{?_isa} = %{version}-%{release}
9b0b69c
9b0b69c
%description -n ghc-%{name}-devel
9b0b69c
This package provides the Haskell %{name} library development files.
9b0b69c
9b0b69c
9b0b69c
%if %{with haddock}
9b0b69c
%package -n ghc-%{name}-doc
9b0b69c
Summary:        Haskell %{name} library documentation
9b0b69c
BuildArch:      noarch
9b0b69c
9b0b69c
%description -n ghc-%{name}-doc
9b0b69c
This package provides the Haskell %{name} library documentation.
9b0b69c
%endif
9b0b69c
9b0b69c
9b0b69c
%if %{with ghc_prof}
9b0b69c
%package -n ghc-%{name}-prof
9b0b69c
Summary:        Haskell %{name} profiling library
9b0b69c
Requires:       ghc-%{name}-devel%{?_isa} = %{version}-%{release}
9b0b69c
Supplements:    (ghc-%{name}-devel and ghc-prof)
9b0b69c
9b0b69c
%description -n ghc-%{name}-prof
9b0b69c
This package provides the Haskell %{name} profiling library.
9b0b69c
%endif
9b0b69c
9b0b69c
9b0b69c
%prep
9b0b69c
# Begin cabal-rpm setup:
9b0b69c
%setup -q
9b0b69c
# End cabal-rpm setup
9b0b69c
%patch0 -p0 -b .dynamic
9b0b69c
9b0b69c
9b0b69c
%build
9b0b69c
# Begin cabal-rpm build:
9b0b69c
%ghc_lib_build
9b0b69c
# End cabal-rpm build
9b0b69c
9b0b69c
9b0b69c
%install
9b0b69c
# Begin cabal-rpm install
9b0b69c
%ghc_lib_install
9b0b69c
# End cabal-rpm install
9b0b69c
9b0b69c
9b0b69c
%check
9b0b69c
%cabal_test
9b0b69c
9b0b69c
9b0b69c
%files
9b0b69c
# Begin cabal-rpm files:
9b0b69c
%license LICENSE
9b0b69c
%doc README.md
9b0b69c
%{_bindir}/%{name}
9b0b69c
# End cabal-rpm files
9b0b69c
9b0b69c
9b0b69c
%files -n ghc-%{name} -f ghc-%{name}.files
9b0b69c
# Begin cabal-rpm files:
9b0b69c
%license LICENSE
9b0b69c
# End cabal-rpm files
9b0b69c
9b0b69c
9b0b69c
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
9b0b69c
%doc README.md
9b0b69c
9b0b69c
9b0b69c
%if %{with haddock}
9b0b69c
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
9b0b69c
%license LICENSE
9b0b69c
%endif
9b0b69c
9b0b69c
9b0b69c
%if %{with ghc_prof}
9b0b69c
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
9b0b69c
%endif
9b0b69c
9b0b69c
9b0b69c
%changelog
9b0b69c
* Thu Sep 03 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.17.3-1
9b0b69c
- Initial RPM release, from spec file generated by cabal-rpm-2.0.6