ghc-base-compat-batteries/ghc-base-compat-batteries.spec

134 lines
3.0 KiB
RPMSpec
Raw Normal View History

2023-01-22 14:18:42 +00:00
# generated by cabal-rpm-2.1.0
2020-06-04 11:25:17 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2019-03-10 05:21:01 +00:00
%global pkg_name base-compat-batteries
%global pkgver %{pkg_name}-%{version}
2020-02-19 17:17:33 +00:00
%bcond_without tests
2019-03-10 05:21:01 +00:00
Name: ghc-%{pkg_name}
2023-01-22 14:18:42 +00:00
Version: 0.12.2
Release: %autorelease
2019-03-10 05:21:01 +00:00
Summary: Base-compat with extra batteries
License: MIT
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
2023-01-22 14:18:42 +00:00
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-compat-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
BuildRequires: ghc-base-compat-prof
2023-01-22 14:18:42 +00:00
%endif
2019-03-10 05:21:01 +00:00
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel
2020-06-19 08:53:54 +00:00
BuildRequires: ghc-hspec-discover-devel
2019-03-10 05:21:01 +00:00
%endif
# End cabal-rpm deps
%description
Provides functions available in later versions of 'base' to a wider range of
compilers, without requiring you to use CPP pragmas in your code.
2021-08-05 00:42:58 +00:00
the suffix '.Repl.Batteries', which are distinct from anything in
2019-03-10 05:21:01 +00:00
depends on compatibility packages (such as 'semigroups') to offer a wider
support window than 'base-compat', which has no dependencies. Most of the
See
'<https://github.com/haskell-compat/base-compat/blob/master/base-compat/README.markdown#dependencies
here>' for a more comprehensive list of differences between 'base-compat' and
'base-compat-batteries'.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2019-03-10 05:21:01 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development
files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-07 03:49:55 +00:00
BuildArch: noarch
2021-07-07 16:30:09 +00:00
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library
documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
2020-02-07 03:49:55 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2019-03-10 05:21:01 +00:00
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_lib_install
# End cabal-rpm install
%check
2021-07-07 16:30:09 +00:00
%if %{with tests}
2019-03-10 05:21:01 +00:00
%cabal_test
2021-07-07 16:30:09 +00:00
%endif
2019-03-10 05:21:01 +00:00
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files
%doc CHANGES.markdown README.markdown
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-07 03:49:55 +00:00
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2019-03-10 05:21:01 +00:00
%changelog
%autochangelog