use dos2unix for cabal revision

This commit is contained in:
Jens Petersen 2023-02-17 09:43:33 +08:00
parent cf6cc70157
commit 065b6749e7
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: dos2unix
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
@ -76,7 +77,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup