From 9a9490604d1283836e4f06646c44c104a1a789ec Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:43:37 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- basement-0.0.8.cabal | 162 +++++++++++++++++++++++++++++++++++++++++++ ghc-basement.spec | 21 +++++- 2 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 basement-0.0.8.cabal diff --git a/basement-0.0.8.cabal b/basement-0.0.8.cabal new file mode 100644 index 0000000..f8ec2df --- /dev/null +++ b/basement-0.0.8.cabal @@ -0,0 +1,162 @@ +name: basement +version: 0.0.8 +x-revision: 1 +synopsis: Foundation scrap box of array & string +description: Foundation most basic primitives without any dependencies +license: BSD3 +license-file: LICENSE +copyright: 2015-2017 Vincent Hanquez + , 2017-2018 Foundation Maintainers +maintainer: vincent@snarc.org +category: Web +build-type: Simple +homepage: https://github.com/haskell-foundation/foundation#readme +bug-reports: https://github.com/haskell-foundation/foundation/issues +cabal-version: >=1.10 +extra-source-files: cbits/*.h + +source-repository head + type: git + location: https://github.com/haskell-foundation/foundation + subdir: basement + +library + hs-source-dirs: . + exposed-modules: + Basement.Imports + + Basement.Base16 + Basement.Bindings.Memory + Basement.Endianness + Basement.Environment + Basement.PrimType + + Basement.Exception + Basement.Cast + Basement.From + + Basement.Types.Char7 + Basement.Types.CharUTF8 + Basement.Types.OffsetSize + Basement.Types.Ptr + Basement.Types.AsciiString + Basement.Types.Word128 + Basement.Types.Word256 + Basement.Monad + Basement.MutableBuilder + Basement.FinalPtr + + Basement.Nat + + -- Extended Types + Basement.BoxedArray + Basement.Block + Basement.Block.Mutable + Basement.Block.Builder + Basement.UArray + Basement.UArray.Mutable + Basement.String + Basement.String.Builder + Basement.NonEmpty + + -- Extended Types with explicit type level size + Basement.Sized.Block + Basement.Sized.UVect + Basement.Sized.Vect + Basement.Sized.List + Basement.BlockN + + -- Utils + Basement.NormalForm + Basement.These + + -- Terminal + Basement.Terminal + Basement.Terminal.ANSI + + -- numeric stuff + Basement.IntegralConv + Basement.Floating + Basement.Numerical.Number + Basement.Numerical.Additive + Basement.Numerical.Subtractive + Basement.Numerical.Multiplicative + Basement.Bounded + + -- exported algorithms + Basement.Alg.XorShift + + -- compat / base redefinition + Basement.Compat.AMP + Basement.Compat.Base + Basement.Compat.Bifunctor + Basement.Compat.CallStack + Basement.Compat.C.Types + Basement.Compat.ExtList + Basement.Compat.IsList + Basement.Compat.Identity + Basement.Compat.Primitive + Basement.Compat.PrimTypes + Basement.Compat.MonadTrans + Basement.Compat.Semigroup + Basement.Compat.Natural + Basement.Compat.NumLiteral + Basement.Compat.Typeable + + Basement.Bits + + other-modules: + Basement.Error + Basement.Show + Basement.Runtime + + Basement.Alg.Class + Basement.Alg.Mutable + Basement.Alg.PrimArray + + Basement.Alg.UTF8 + Basement.Alg.String + + Basement.Numerical.Conversion + + Basement.Block.Base + + Basement.UTF8.Base + Basement.UTF8.Helper + Basement.UTF8.Table + Basement.UTF8.Types + + Basement.UArray.Base + + Basement.String.CaseMapping + Basement.String.Encoding.Encoding + Basement.String.Encoding.UTF16 + Basement.String.Encoding.UTF32 + Basement.String.Encoding.ASCII7 + Basement.String.Encoding.ISO_8859_1 + + Basement.Terminal.Size + + -- support and dependencies + if impl(ghc < 8.0) + -- https://github.com/haskell-infra/hackage-trustees/issues/171 + build-depends: base >= 4.9 && < 4.13 + else + build-depends: base + , ghc-prim + if os(windows) + build-depends: Win32 + + default-language: Haskell2010 + default-extensions: NoImplicitPrelude + RebindableSyntax + TypeFamilies + BangPatterns + DeriveDataTypeable + if (arch(i386) || arch(x86_64)) + cpp-options: -DARCH_IS_LITTLE_ENDIAN + else + cpp-options: -DARCH_IS_UNKNOWN_ENDIAN + include-dirs: cbits + c-sources: cbits/foundation_mem.c + cbits/foundation_rts.c diff --git a/ghc-basement.spec b/ghc-basement.spec index 3afb9c6..d47d9f0 100644 --- a/ghc-basement.spec +++ b/ghc-basement.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name basement @@ -6,15 +6,20 @@ Name: ghc-%{pkg_name} Version: 0.0.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Foundation scrap box of array & string 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-Cabal-devel BuildRequires: ghc-rpm-macros +# End cabal-rpm deps %description Foundation most basic primitives without any dependencies. @@ -36,15 +41,22 @@ This package provides the Haskell %{pkg_name} library development files. %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 %post devel @@ -56,13 +68,18 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files %changelog +* Sun Feb 17 2019 Jens Petersen - 0.0.8-3 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild