Blame ghc-formatting.spec

0f10b0d
# generated by cabal-rpm-2.0.11
0f10b0d
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
0f10b0d
0f10b0d
%global pkg_name formatting
0f10b0d
%global pkgver %{pkg_name}-%{version}
0f10b0d
0f10b0d
# i686: tests assume Int is Int64
0f10b0d
# s390x: unknown RTS option: -N
0f10b0d
%ifnarch i686 s390x armv7hl
0f10b0d
%bcond_without tests
0f10b0d
%endif
0f10b0d
0f10b0d
Name:           ghc-%{pkg_name}
0f10b0d
Version:        7.1.3
0f10b0d
Release:        1%{?dist}
0f10b0d
Summary:        Combinator-based type-safe formatting (like printf() or FORMAT)
0f10b0d
0f10b0d
License:        BSD
0f10b0d
Url:            https://hackage.haskell.org/package/%{pkg_name}
0f10b0d
# Begin cabal-rpm sources:
0f10b0d
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0f10b0d
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
0f10b0d
# End cabal-rpm sources
0f10b0d
0f10b0d
# Begin cabal-rpm deps:
0f10b0d
BuildRequires:  dos2unix
0f10b0d
BuildRequires:  ghc-Cabal-devel
0f10b0d
BuildRequires:  ghc-rpm-macros
0f10b0d
BuildRequires:  ghc-base-prof
0f10b0d
BuildRequires:  ghc-clock-prof
0f10b0d
BuildRequires:  ghc-double-conversion-prof
0f10b0d
BuildRequires:  ghc-old-locale-prof
0f10b0d
BuildRequires:  ghc-scientific-prof
0f10b0d
BuildRequires:  ghc-text-prof
0f10b0d
BuildRequires:  ghc-time-prof
0f10b0d
BuildRequires:  ghc-transformers-prof
0f10b0d
%if %{with tests}
0f10b0d
BuildRequires:  ghc-hspec-devel
0f10b0d
%endif
0f10b0d
# End cabal-rpm deps
0f10b0d
0f10b0d
%description
0f10b0d
Combinator-based type-safe formatting (like printf() or FORMAT), modelled from
0f10b0d
the HoleyMonoids package.
0f10b0d
0f10b0d
See the README at <https://github.com/AJChapman/formatting#readme> for more
0f10b0d
info.
0f10b0d
0f10b0d
0f10b0d
%package devel
0f10b0d
Summary:        Haskell %{pkg_name} library development files
0f10b0d
Provides:       %{name}-static = %{version}-%{release}
0f10b0d
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
0f10b0d
%if %{defined ghc_version}
0f10b0d
Requires:       ghc-compiler = %{ghc_version}
0f10b0d
%endif
0f10b0d
Requires:       %{name}%{?_isa} = %{version}-%{release}
0f10b0d
0f10b0d
%description devel
0f10b0d
This package provides the Haskell %{pkg_name} library development files.
0f10b0d
0f10b0d
0f10b0d
%if %{with haddock}
0f10b0d
%package doc
0f10b0d
Summary:        Haskell %{pkg_name} library documentation
0f10b0d
BuildArch:      noarch
0f10b0d
Requires:       ghc-filesystem
0f10b0d
0f10b0d
%description doc
0f10b0d
This package provides the Haskell %{pkg_name} library documentation.
0f10b0d
%endif
0f10b0d
0f10b0d
0f10b0d
%if %{with ghc_prof}
0f10b0d
%package prof
0f10b0d
Summary:        Haskell %{pkg_name} profiling library
0f10b0d
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
0f10b0d
Supplements:    (%{name}-devel and ghc-prof)
0f10b0d
0f10b0d
%description prof
0f10b0d
This package provides the Haskell %{pkg_name} profiling library.
0f10b0d
%endif
0f10b0d
0f10b0d
0f10b0d
%prep
0f10b0d
# Begin cabal-rpm setup:
0f10b0d
%setup -q -n %{pkgver}
0f10b0d
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
0f10b0d
# End cabal-rpm setup
0f10b0d
0f10b0d
0f10b0d
%build
0f10b0d
# Begin cabal-rpm build:
0f10b0d
%ghc_lib_build
0f10b0d
# End cabal-rpm build
0f10b0d
0f10b0d
0f10b0d
%install
0f10b0d
# Begin cabal-rpm install
0f10b0d
%ghc_lib_install
0f10b0d
# End cabal-rpm install
0f10b0d
0f10b0d
0f10b0d
%check
0f10b0d
%if %{with tests}
0f10b0d
%cabal_test
0f10b0d
%endif
0f10b0d
0f10b0d
0f10b0d
%files -f %{name}.files
0f10b0d
# Begin cabal-rpm files:
0f10b0d
%license LICENSE
0f10b0d
# End cabal-rpm files
0f10b0d
0f10b0d
0f10b0d
%files devel -f %{name}-devel.files
0f10b0d
%doc CHANGELOG.md README.md
0f10b0d
0f10b0d
0f10b0d
%if %{with haddock}
0f10b0d
%files doc -f %{name}-doc.files
0f10b0d
%license LICENSE
0f10b0d
%endif
0f10b0d
0f10b0d
0f10b0d
%if %{with ghc_prof}
0f10b0d
%files prof -f %{name}-prof.files
0f10b0d
%endif
0f10b0d
0f10b0d
0f10b0d
%changelog
0f10b0d
* Sat Mar 26 2022 Jens Petersen <petersen@redhat.com> - 7.1.3-1
0f10b0d
- spec file generated by cabal-rpm-2.0.11