From 785948914e32729bf3cce1642c48c01c38ba0c14 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 30 Oct 2023 08:21:38 +0000 Subject: automatic import of ghc-mmorph --- .gitignore | 1 + ghc-mmorph.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mmorph.cabal | 33 +++++++++++++++++++++++ sources | 1 + 4 files changed, 117 insertions(+) create mode 100644 ghc-mmorph.spec create mode 100755 mmorph.cabal create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ac0b7c9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mmorph-1.2.0.tar.gz diff --git a/ghc-mmorph.spec b/ghc-mmorph.spec new file mode 100644 index 0000000..e7ffe7f --- /dev/null +++ b/ghc-mmorph.spec @@ -0,0 +1,82 @@ +%global pkg_name mmorph +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 1.2.0 +Release: 1 +Summary: Monad morphisms +License: BSD-3-Clause +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-compat-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} + +%description +This library provides monad morphism utilities, most commonly used for +manipulating monad transformer stacks. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Thu Sep 28 2023 Lin Runze 1.2.0-1 +- Initial packaging (Version 1.2.0) diff --git a/mmorph.cabal b/mmorph.cabal new file mode 100755 index 0000000..7020abc --- /dev/null +++ b/mmorph.cabal @@ -0,0 +1,33 @@ +Name: mmorph +Version: 1.2.0 +x-revision: 3 +Cabal-Version: >= 1.10 +Build-Type: Simple +License: BSD3 +License-File: LICENSE +Copyright: 2013 Gabriella Gonzalez +Author: Gabriella Gonzalez +Maintainer: GenuineGabriella@gmail.com +Bug-Reports: https://github.com/Gabriella439/Haskell-MMorph-Library/issues +Synopsis: Monad morphisms +Description: This library provides monad morphism utilities, most commonly used + for manipulating monad transformer stacks. +Category: Control +Extra-Source-Files: CHANGELOG.md +Source-Repository head + Type: git + Location: https://github.com/Gabriella439/Haskell-MMorph-Library + +Library + Hs-Source-Dirs: src + Build-Depends: + base >= 4.5 && < 5 , + mtl >= 2.1 && < 2.4, + transformers >= 0.2.0.0 && < 0.7, + transformers-compat >= 0.3 && < 0.8 + if impl(ghc < 8.0) + Build-Depends: + fail == 4.9.* + Exposed-Modules: Control.Monad.Morph, Control.Monad.Trans.Compose + GHC-Options: -O2 + Default-Language: Haskell2010 diff --git a/sources b/sources new file mode 100644 index 0000000..f593165 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +3ef3e1b42932dfa563162d26fcee07c0 mmorph-1.2.0.tar.gz -- cgit v1.2.3