import #1817185
This commit is contained in:
parent
68d9c81475
commit
706f01585f
|
@ -0,0 +1 @@
|
|||
/rio-prettyprint-0.1.0.0.tar.gz
|
|
@ -0,0 +1,124 @@
|
|||
# generated by cabal-rpm-2.0.5
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name rio-prettyprint
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.1.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Pretty-printing for RIO
|
||||
|
||||
License: BSD
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
# Begin cabal-rpm sources:
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||
# End cabal-rpm sources
|
||||
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-Cabal-prof
|
||||
BuildRequires: ghc-aeson-prof
|
||||
BuildRequires: ghc-annotated-wl-pprint-prof
|
||||
BuildRequires: ghc-ansi-terminal-prof
|
||||
BuildRequires: ghc-array-prof
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-colour-prof
|
||||
BuildRequires: ghc-mtl-prof
|
||||
BuildRequires: ghc-path-prof
|
||||
BuildRequires: ghc-rio-prof
|
||||
BuildRequires: ghc-text-prof
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
Combine RIO's log capabilities with pretty printing.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||
%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
|
||||
BuildArch: noarch
|
||||
|
||||
%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}
|
||||
Supplements: (%{name}-devel and ghc-prof)
|
||||
|
||||
%description prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# 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
|
||||
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
%endif
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
||||
|
||||
%if %{with haddock}
|
||||
%files doc -f %{name}-doc.files
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with ghc_prof}
|
||||
%files prof -f %{name}-prof.files
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Mar 22 2020 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1.0.0-1
|
||||
- spec file generated by cabal-rpm-2.0.5
|
|
@ -0,0 +1,50 @@
|
|||
cabal-version: 1.12
|
||||
|
||||
-- This file has been generated from package.yaml by hpack version 0.31.1.
|
||||
--
|
||||
-- see: https://github.com/sol/hpack
|
||||
--
|
||||
-- hash: 5de79ea6d7da914f2b3e90d42b149030a7e1bf60e8c8bb2e28e8509c24be897e
|
||||
|
||||
name: rio-prettyprint
|
||||
version: 0.1.0.0
|
||||
x-revision: 2
|
||||
synopsis: Pretty-printing for RIO
|
||||
category: Development
|
||||
homepage: https://github.com/commercialhaskell/stack#readme
|
||||
bug-reports: https://github.com/commercialhaskell/stack/issues
|
||||
author: Michael Snoyman
|
||||
maintainer: michael@snoyman.com
|
||||
copyright: 2018-2019 FP Complete
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
build-type: Simple
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/commercialhaskell/stack
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
RIO.PrettyPrint
|
||||
RIO.PrettyPrint.DefaultStyles
|
||||
RIO.PrettyPrint.StylesUpdate
|
||||
RIO.PrettyPrint.Types
|
||||
Text.PrettyPrint.Leijen.Extended
|
||||
other-modules:
|
||||
Paths_rio_prettyprint
|
||||
hs-source-dirs:
|
||||
src/
|
||||
build-depends:
|
||||
Cabal >=2.4.0.1
|
||||
, aeson >=1.2.4.0
|
||||
, annotated-wl-pprint >=0.7.0
|
||||
, ansi-terminal >=0.9
|
||||
, array >=0.5.2.0
|
||||
, base >=4.10 && <5
|
||||
, colour >=2.3.4
|
||||
, mtl >=2.2.2
|
||||
, path >=0.6.1
|
||||
, rio >=0.1.9.2
|
||||
, text >=1.2.3.0
|
||||
default-language: Haskell2010
|
Loading…
Reference in New Issue