refresh to cabal-rpm-2.1.0 including SPDX migration

This commit is contained in:
Jens Petersen 2023-01-22 21:02:26 +08:00
parent 784a60aaf0
commit eb71460a46

View File

@ -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/ # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name zlib-bindings %global pkg_name zlib-bindings
@ -11,7 +11,8 @@ Version: 0.1.1.5
Release: %autorelease Release: %autorelease
Summary: Low-level bindings to the zlib package 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} Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources: # Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz 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 # End cabal-rpm sources
# Begin cabal-rpm deps: # Begin cabal-rpm deps:
BuildRequires: dos2unix
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros 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-base-prof
BuildRequires: ghc-bytestring-prof BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-zlib-prof BuildRequires: ghc-zlib-prof
%endif
%if %{with tests} %if %{with tests}
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-devel
@ -31,6 +38,8 @@ BuildRequires: ghc-hspec-devel
# End cabal-rpm deps # End cabal-rpm deps
%description %description
Low-level bindings to the zlib package.
Deprecated in favor of streaming-commons. Deprecated in favor of streaming-commons.
@ -72,7 +81,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep %prep
# Begin cabal-rpm setup: # Begin cabal-rpm setup:
%setup -q -n %{pkgver} %setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup # End cabal-rpm setup