From eb71460a46ba69a0a14849b8c358097b47ecd3a8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 22 Jan 2023 21:02:26 +0800 Subject: [PATCH] refresh to cabal-rpm-2.1.0 including SPDX migration --- ghc-zlib-bindings.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ghc-zlib-bindings.spec b/ghc-zlib-bindings.spec index feced61..378a9b1 100644 --- a/ghc-zlib-bindings.spec +++ b/ghc-zlib-bindings.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.9 +# generated by cabal-rpm-2.1.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name zlib-bindings @@ -11,7 +11,8 @@ Version: 0.1.1.5 Release: %autorelease Summary: Low-level bindings to the zlib package -License: BSD +# license file is 2 clause +License: BSD-2-Clause Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz @@ -19,11 +20,17 @@ 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 +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-zlib-devel +%if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-zlib-prof +%endif %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel @@ -31,6 +38,8 @@ BuildRequires: ghc-hspec-devel # End cabal-rpm deps %description +Low-level bindings to the zlib package. + Deprecated in favor of streaming-commons. @@ -72,7 +81,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