Blob Blame History Raw
# generated by cabal-rpm-2.1.0 --subpackage

%global pkg_name hadolint
%global pkgver %{pkg_name}-%{version}

%global monoidsubclasses monoid-subclasses-1.1.3
%global primes primes-
%global timerep timerep-
%global subpkgs %{primes} %{monoidsubclasses} %{timerep}

# monoid-subclasses needs quickcheck-instances
%bcond_with tests

Name:           %{pkg_name}
Version:        2.12.0
# can only be reset when all subpkgs bumped
Release:        10%{?dist}
Summary:        Dockerfile linter, validate inline bash

License:        GPL-3.0-or-later
Url:  {name}
# Begin cabal-rpm sources:
# End cabal-rpm sources

# Begin cabal-rpm deps:
BuildRequires:  ghc-rpm-macros-extra
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-HsYAML-devel
BuildRequires:  ghc-ShellCheck-devel
BuildRequires:  ghc-aeson-devel
BuildRequires:  ghc-base-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-colourista-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-cryptonite-devel
BuildRequires:  ghc-data-default-devel
BuildRequires:  ghc-deepseq-devel
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-email-validate-devel
BuildRequires:  ghc-filepath-devel
BuildRequires:  ghc-foldl-devel
BuildRequires:  ghc-gitrev-devel
BuildRequires:  ghc-ilist-devel
BuildRequires:  ghc-language-docker-devel
BuildRequires:  ghc-megaparsec-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-network-uri-devel
BuildRequires:  ghc-optparse-applicative-devel
BuildRequires:  ghc-parallel-devel
BuildRequires:  ghc-parsec-devel
BuildRequires:  ghc-prettyprinter-devel
BuildRequires:  ghc-semver-devel
BuildRequires:  ghc-spdx-devel
BuildRequires:  ghc-split-devel
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-time-devel
#BuildRequires:  ghc-timerep-devel
BuildRequires:  ghc-void-devel
%if %{with ghc_prof}
BuildRequires:  ghc-Cabal-prof
BuildRequires:  ghc-HsYAML-prof
BuildRequires:  ghc-ShellCheck-prof
BuildRequires:  ghc-aeson-prof
BuildRequires:  ghc-base-prof
BuildRequires:  ghc-bytestring-prof
BuildRequires:  ghc-colourista-prof
BuildRequires:  ghc-containers-prof
BuildRequires:  ghc-cryptonite-prof
BuildRequires:  ghc-data-default-prof
BuildRequires:  ghc-deepseq-prof
BuildRequires:  ghc-directory-prof
BuildRequires:  ghc-email-validate-prof
BuildRequires:  ghc-filepath-prof
BuildRequires:  ghc-foldl-prof
BuildRequires:  ghc-gitrev-prof
BuildRequires:  ghc-ilist-prof
BuildRequires:  ghc-language-docker-prof
BuildRequires:  ghc-megaparsec-prof
BuildRequires:  ghc-mtl-prof
BuildRequires:  ghc-network-uri-prof
BuildRequires:  ghc-optparse-applicative-prof
BuildRequires:  ghc-parallel-prof
BuildRequires:  ghc-parsec-prof
BuildRequires:  ghc-prettyprinter-prof
BuildRequires:  ghc-semver-prof
BuildRequires:  ghc-spdx-prof
BuildRequires:  ghc-split-prof
BuildRequires:  ghc-text-prof
BuildRequires:  ghc-time-prof
#BuildRequires:  ghc-timerep-prof
BuildRequires:  ghc-void-prof
%if %{with tests}
BuildRequires:  ghc-HUnit-devel
BuildRequires:  ghc-hspec-devel
BuildRequires:  ghc-hspec-discover-devel
BuildRequires:  ghc-silently-devel
# for missing dep 'monoid-subclasses':
BuildRequires:  ghc-vector-devel
%if %{with ghc_prof}
BuildRequires:  ghc-vector-prof
# for missing dep 'timerep':
BuildRequires:  ghc-attoparsec-devel
%if %{with ghc_prof}
BuildRequires:  ghc-attoparsec-prof
# End cabal-rpm deps

A smarter Dockerfile linter that helps you build best practice Docker
images. The linter is parsing the Dockerfile into an AST and performs rules on
top of the AST. It is standing on the shoulders of ShellCheck to lint the Bash
code inside RUN instructions.

%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}
Provides:       ghc-%{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
Requires:       ghc-%{name}%{?_isa} = %{version}-%{release}

%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.

%if %{with haddock}
%package -n ghc-%{name}-doc
Summary:        Haskell %{name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.

%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary:        Haskell %{name} profiling library
Requires:       ghc-%{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (ghc-%{name}-devel and ghc-prof)

%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.

%global main_version %{version}

%if %{defined ghclibdir}
%ghc_lib_subpackage -l BSD-3-Clause %{monoidsubclasses}
# Prime.hs
%ghc_lib_subpackage -l BSD-3-Clause %{primes}
%ghc_lib_subpackage -l BSD-3-Clause %{timerep}

%global version %{main_version}

# Begin cabal-rpm setup:
%setup -q -a1 -a2 -a3
# End cabal-rpm setup
cabal-tweak-flag static False

# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
# End cabal-rpm build

# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
%{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm install

%if %{with tests}

# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files

%files -n ghc-%{name} -f ghc-%{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files

%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files

%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license LICENSE

%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files

* Sun Jan 22 2023 Jens Petersen <> - 2.12.0-10
- refresh to cabal-rpm-2.1.0 with SPDX migration

* Thu Dec 29 2022 Jens Petersen <> - 2.8.0-9
- rebuild

* Mon Dec 12 2022 Jens Petersen <> - 2.8.0-8
- rebuild

* Mon Jul 25 2022 Jens Petersen <> - 2.8.0-7
- spdx is packaged in Fedora

* Thu Jul 21 2022 Fedora Release Engineering <> - 2.8.0-6
- Rebuilt for

* Mon Jun 13 2022 Jens Petersen <> - 2.8.0-1

* Mon Jun 13 2022 Jens Petersen <> - 2.7.0-4
- monoid-subclasses-1.1.3
- spdx-
- colourista and ilist were packaged

* Mon Feb  7 2022 Jens Petersen <> - 2.7.0-3
- restore the bundled deps to fix FTI (#2031307, #2031315)

* Thu Jan 20 2022 Fedora Release Engineering <> - 2.7.0-2
- Rebuilt for

* Mon Nov 29 2021 Mohamed El Morabity <> - 2.7.0-1
- Update to 2.7.0

* Thu Aug 05 2021 Jens Petersen <> - 2.6.1-2
- update to 2.6.1
- monoid-subclasses-1.1.1

* Thu Aug  5 2021 Jens Petersen <> - 2.6.0-1
- update to 2.6.0
- subpackage new deps: colourista, ilist, monoid-subclasses, primes, spdx, timerep

* Thu Jul 22 2021 Fedora Release Engineering <> - 1.18.2-4
- Rebuilt for

* Fri May 28 2021 Jens Petersen <> - 1.18.2-3
- rebuild

* Tue Jan 26 2021 Fedora Release Engineering <> - 1.18.2-2
- Rebuilt for

* Tue Oct 27 2020 Mohamed El Morabity <> - 1.18.2-1
- Update to 1.18.2

* Thu Sep 03 2020 Mohamed El Morabity <> - 1.18.0-1
- Initial RPM release, from spec file generated by cabal-rpm-2.0.6