refresh to cabal-rpm-2.1.0 including SPDX migration
This commit is contained in:
parent
14c80b66a5
commit
6923419fca
|
@ -1,17 +1,18 @@
|
|||
# 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 aeson-yaml
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
# testsuite missing deps: tasty-discover
|
||||
%bcond_with tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.1.0.1
|
||||
Release: 2%{?dist}
|
||||
Summary: Output any Aeson value as YAML (pure Haskell library)
|
||||
|
||||
License: BSD
|
||||
License: BSD-3-Clause
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
# Begin cabal-rpm sources:
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
|
@ -22,12 +23,27 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
|
|||
BuildRequires: dos2unix
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-aeson-devel
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-unordered-containers-devel
|
||||
BuildRequires: ghc-vector-devel
|
||||
%if %{with ghc_prof}
|
||||
BuildRequires: ghc-aeson-prof
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-unordered-containers-prof
|
||||
BuildRequires: ghc-vector-prof
|
||||
%endif
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-string-qq-devel
|
||||
BuildRequires: ghc-tasty-devel
|
||||
BuildRequires: ghc-tasty-hunit-devel
|
||||
BuildRequires: ghc-yaml-devel
|
||||
BuildRequires: tasty-discover
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
|
@ -92,6 +108,12 @@ dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
|||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
%cabal_test
|
||||
%endif
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
|
|
Loading…
Reference in New Issue