From 6a1f3d98a88d96f0028f4eb3b06745d1cf18f4ea Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 30 Oct 2023 02:35:39 +0000 Subject: automatic import of ghc-vector-stream --- .gitignore | 1 + ghc-vector-stream.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + vector-stream.cabal | 53 +++++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 ghc-vector-stream.spec create mode 100644 sources create mode 100755 vector-stream.cabal diff --git a/.gitignore b/.gitignore index e69de29..687920b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/vector-stream-0.1.0.0.tar.gz diff --git a/ghc-vector-stream.spec b/ghc-vector-stream.spec new file mode 100644 index 0000000..70ff786 --- /dev/null +++ b/ghc-vector-stream.spec @@ -0,0 +1,75 @@ +%global pkg_name vector-stream +%global pkgver %{pkg_name}-%{version} +Name: ghc-%{pkg_name} +Version: 0.1.0.0 +Release: 1 +Summary: Efficient Streams +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-rpm-macros +ExcludeArch: %{ix86} + +%description +Simple yet powerful monadic streams that are used as a backbone for vector +package fusion functionality. + +%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 README.md 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 0.1.0.0-1 +- Initial packaging (Version 0.1.0.0) diff --git a/sources b/sources new file mode 100644 index 0000000..09b63cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +6ef270d7802c1f7ec95eea3ef4a747cc vector-stream-0.1.0.0.tar.gz diff --git a/vector-stream.cabal b/vector-stream.cabal new file mode 100755 index 0000000..acc425f --- /dev/null +++ b/vector-stream.cabal @@ -0,0 +1,53 @@ +Name: vector-stream +Version: 0.1.0.0 +x-revision: 3 +-- don't forget to update the changelog file! +License: BSD3 +License-File: LICENSE +Author: Roman Leshchinskiy +Maintainer: Haskell Libraries Team +Copyright: (c) Roman Leshchinskiy 2008-2012 + Alexey Kuleshevich 2020-2022, + Aleksey Khudyakov 2020-2022, + Andrew Lelechenko 2020-2022 +Homepage: https://github.com/haskell/vector +Bug-Reports: https://github.com/haskell/vector/issues +Category: Data, Data Structures +Synopsis: Efficient Streams +Description: + Simple yet powerful monadic streams that are used + as a backbone for vector package fusion functionality. + +Tested-With: + GHC == 8.0.2, + GHC == 8.2.2, + GHC == 8.4.4, + GHC == 8.6.5, + GHC == 8.8.4, + GHC == 8.10.4, + GHC == 9.0.1, + GHC == 9.2.3 + +Cabal-Version: >=1.10 +Build-Type: Simple + +Extra-Source-Files: + changelog.md + README.md + +Library + Default-Language: Haskell2010 + + Exposed-Modules: + Data.Stream.Monadic + + Hs-Source-Dirs: + src + + Build-Depends: base >= 4.9 && < 4.20 + , ghc-prim >= 0.2 && < 0.12 + +source-repository head + type: git + location: https://github.com/haskell/vector.git + subdir: vector-stream -- cgit v1.2.3