From c55b0f691de67feae97fabe78f9361759a1dd306c1b95a0029d1a984b49d783a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Jan 2025 10:11:51 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-streaming-commons revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-streaming-commons?expand=0&rev=84 --- .gitattributes | 23 ++++ .gitignore | 1 + ghc-streaming-commons.changes | 215 +++++++++++++++++++++++++++++++ ghc-streaming-commons.spec | 127 ++++++++++++++++++ streaming-commons-0.2.2.6.tar.gz | 3 + streaming-commons-0.2.3.0.tar.gz | 3 + streaming-commons.cabal | 155 ++++++++++++++++++++++ 7 files changed, 527 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-streaming-commons.changes create mode 100644 ghc-streaming-commons.spec create mode 100644 streaming-commons-0.2.2.6.tar.gz create mode 100644 streaming-commons-0.2.3.0.tar.gz create mode 100644 streaming-commons.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-streaming-commons.changes b/ghc-streaming-commons.changes new file mode 100644 index 0000000..8461743 --- /dev/null +++ b/ghc-streaming-commons.changes @@ -0,0 +1,215 @@ +------------------------------------------------------------------- +Sun Jan 19 12:26:36 UTC 2025 - Peter Simons + +- Update streaming-commons to version 0.2.3.0. + ## 0.2.3.0 + + * Allow Unix sockets on Windows (https://github.com/fpco/streaming-commons/pull/80) + +------------------------------------------------------------------- +Wed Oct 11 17:49:06 UTC 2023 - Peter Simons + +- Update streaming-commons to version 0.2.2.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Mon Apr 3 13:00:55 UTC 2023 - Peter Simons + +- Update streaming-commons to version 0.2.2.6. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/streaming-commons-0.2.2.6/src/ChangeLog.md + +------------------------------------------------------------------- +Thu Mar 30 17:08:26 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Sun Oct 23 07:27:02 UTC 2022 - Peter Simons + +- Update streaming-commons to version 0.2.2.5. + ## 0.2.2.5 + + * UTF-8 Decoder fails on trailing bytes [#71](https://github.com/fpco/streaming-commons/pull/71) + +------------------------------------------------------------------- +Sun Feb 6 09:23:47 UTC 2022 - Peter Simons + +- Update streaming-commons to version 0.2.2.4. + ## 0.2.2.4 + + * Fix docstrings for text 2.0 + + ## 0.2.2.3 + + * Support text 2.0 [#65](https://github.com/fpco/streaming-commons/pull/65) + +------------------------------------------------------------------- +Wed Nov 10 10:04:56 UTC 2021 - psimons@suse.com + +- Update streaming-commons to version 0.2.2.2. + ## 0.2.2.2 + + * Support GHC 9.2 [#62](https://github.com/fpco/streaming-commons/pull/62) + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Tue Aug 18 10:46:06 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jul 21 08:27:35 UTC 2020 - psimons@suse.com + +- Update streaming-commons to version 0.2.2.1. + ## 0.2.2.1 + + * Fix test suite compilation issue [stackage#5528](https://github.com/commercialhaskell/stackage/issues/5528) + +------------------------------------------------------------------- +Mon Jul 20 02:00:58 UTC 2020 - psimons@suse.com + +- Update streaming-commons to version 0.2.2.0. + ## 0.2.2.0 + + * Remove `AI_ADDRCONFIG` [#58](https://github.com/fpco/streaming-commons/issues/58) + +------------------------------------------------------------------- +Tue Jun 16 11:14:37 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +------------------------------------------------------------------- +Mon Jan 6 09:54:59 UTC 2020 - psimons@suse.com + +- Update streaming-commons to version 0.2.1.2. + ## 0.2.1.2 + + * Update `defaultReadBufferSize` to use system default instead of hardcoded value [#54](https://github.com/fpco/streaming-commons/issues/54) + +------------------------------------------------------------------- +Fri Nov 8 16:14:51 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Thu Jun 6 02:01:25 UTC 2019 - psimons@suse.com + +- Update streaming-commons to version 0.2.1.1. + # ChangeLog for streaming-commons + + ## 0.2.1.1 + + * Fix a failing test case (invalid `ByteString` copying), does not affect library itself + +------------------------------------------------------------------- +Sat Oct 20 11:32:03 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +------------------------------------------------------------------- +Wed Jul 18 14:26:42 UTC 2018 - psimons@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +------------------------------------------------------------------- +Fri Jul 13 14:31:59 UTC 2018 - psimons@suse.com + +- Update streaming-commons to version 0.2.1.0. + ## 0.2.1.0 + + * Change `bindRandomPortGen` to use binding to port 0 + +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update streaming-commons to version 0.2.0.0. + * Drop `blaze-builder` dependency + * Update `getAddrInfo` hints to allow hostnames and portnames [#46](https://github.com/fpco/streaming-commons/issues/46) + * Add `isCompleteInflate` + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Thu Jan 26 16:20:11 UTC 2017 - psimons@suse.com + +- Update to version 0.1.17 with cabal2obs. + +------------------------------------------------------------------- +Mon Sep 26 06:52:13 UTC 2016 - psimons@suse.com + +- Update to version 0.1.16 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:00:04 UTC 2016 - psimons@suse.com + +- Update to version 0.1.15.5 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Thu May 12 13:44:14 UTC 2016 - mimi.vx@gmail.com + +- update to 0.1.15.5 +* Make getSocket{Family}TCP try all addr candidates + +------------------------------------------------------------------- +Tue Apr 26 08:51:19 UTC 2016 - mimi.vx@gmail.com + +- update to 0.1.15.4 +* Fix benchmarks + +------------------------------------------------------------------- +Tue Mar 8 09:13:01 UTC 2016 - mimi.vx@gmail.com + +- update to 0.1.15.2 +* Document child process behavior in waitForProcess + +------------------------------------------------------------------- +Thu Feb 11 08:50:21 UTC 2016 - mimi.vx@gmail.com + +- update to 0.1.15.1 +* Catch exceptions thrown by waitForProcess + +------------------------------------------------------------------- +Sun Nov 29 17:43:29 UTC 2015 - mimi.vx@gmail.com + +- update to 0.1.15 +* Use `NO_DELAY1 for TCP client connections + +------------------------------------------------------------------- +Sun Oct 4 17:05:13 UTC 2015 - mimi.vx@gmail.com + +- update to 0.1.14.2 +* Fix bug in process exception display of args with spaces/quotes + +------------------------------------------------------------------- +Sun Sep 27 10:22:45 UTC 2015 - mimi.vx@gmail.com + +- update to 0.1.14.1 +* Exporting HasReadBufferSize; instance for ClientSettingsUnix + +------------------------------------------------------------------- +Sun Sep 13 13:00:44 UTC 2015 - mimi.vx@gmail.com + +- update to 0.1.13 +* Make size of read buffer configurable, change default size to 32 kiB + +------------------------------------------------------------------- +Fri Aug 7 08:08:51 UTC 2015 - mimi.vx@gmail.com + +- update to 0.1.12.1 +* Fix up acceptSafe + +------------------------------------------------------------------- +Wed Apr 22 07:34:22 UTC 2015 - mimi.vx@gmail.com + +- initial commit diff --git a/ghc-streaming-commons.spec b/ghc-streaming-commons.spec new file mode 100644 index 0000000..9659bb7 --- /dev/null +++ b/ghc-streaming-commons.spec @@ -0,0 +1,127 @@ +# +# spec file for package ghc-streaming-commons +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name streaming-commons +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.2.3.0 +Release: 0 +Summary: Common lower-level functions needed by various streaming data libraries +License: MIT +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-array-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-async-devel +BuildRequires: ghc-async-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-network-devel +BuildRequires: ghc-network-prof +BuildRequires: ghc-process-devel +BuildRequires: ghc-process-prof +BuildRequires: ghc-random-devel +BuildRequires: ghc-random-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-stm-devel +BuildRequires: ghc-stm-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-unix-devel +BuildRequires: ghc-unix-prof +BuildRequires: ghc-zlib-devel +BuildRequires: ghc-zlib-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof +%endif + +%description +Provides low-dependency functionality commonly needed by various streaming data +libraries, such as conduit and pipes. + +%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}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +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} + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%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 README.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/streaming-commons-0.2.2.6.tar.gz b/streaming-commons-0.2.2.6.tar.gz new file mode 100644 index 0000000..bf3481c --- /dev/null +++ b/streaming-commons-0.2.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0180958a882eb0f6262b812fe886c2b1b8285474b5b958f814ae4f05409fbf79 +size 37959 diff --git a/streaming-commons-0.2.3.0.tar.gz b/streaming-commons-0.2.3.0.tar.gz new file mode 100644 index 0000000..37bcaf5 --- /dev/null +++ b/streaming-commons-0.2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26384af91f5ab9470b0bbdd0ce2172db43fc79730b7c5a3405d89c3663eb1e57 +size 37874 diff --git a/streaming-commons.cabal b/streaming-commons.cabal new file mode 100644 index 0000000..615aefe --- /dev/null +++ b/streaming-commons.cabal @@ -0,0 +1,155 @@ +name: streaming-commons +version: 0.2.2.6 +x-revision: 1 +synopsis: Common lower-level functions needed by various streaming data libraries +description: Provides low-dependency functionality commonly needed by various streaming data libraries, such as conduit and pipes. +homepage: https://github.com/fpco/streaming-commons +license: MIT +license-file: LICENSE +author: Michael Snoyman, Emanuel Borsboom +maintainer: michael@snoyman.com +-- copyright: +category: Data +build-type: Simple +cabal-version: >=1.10 +extra-source-files: + test/filesystem/*.txt + test/filesystem/bin/*.txt + include/*.h + cbits/*.c + test/LICENSE.gz + ChangeLog.md + README.md + +flag use-bytestring-builder + description: Use bytestring-builder package + default: False + +library + default-language: Haskell2010 + exposed-modules: Data.Streaming.ByteString.Builder + Data.Streaming.ByteString.Builder.Buffer + Data.Streaming.FileRead + Data.Streaming.Filesystem + Data.Streaming.Network + Data.Streaming.Network.Internal + Data.Streaming.Process + Data.Streaming.Process.Internal + Data.Streaming.Text + Data.Streaming.Zlib + Data.Streaming.Zlib.Lowlevel + + build-depends: base >= 4.12 && < 5 + , array + , async + , bytestring + , directory + , network >= 2.4.0.0 + , random + , process + , stm + , text >= 1.2 && < 1.3 || >= 2.0 && < 2.2 + , transformers + , zlib + + c-sources: cbits/zlib-helper.c + cbits/text-helper.c + include-dirs: include + + if os(windows) + build-depends: Win32 + , filepath + cpp-options: -DWINDOWS + other-modules: System.Win32File + else + build-depends: unix + + if flag(use-bytestring-builder) + build-depends: bytestring < 0.10.2.0 + , bytestring-builder + else + build-depends: bytestring >= 0.10.2.0 + +test-suite test + default-language: Haskell2010 + hs-source-dirs: test + main-is: Spec.hs + type: exitcode-stdio-1.0 + ghc-options: -Wall -threaded + other-modules: Data.Streaming.ByteString.BuilderSpec + Data.Streaming.FileReadSpec + Data.Streaming.FilesystemSpec + Data.Streaming.NetworkSpec + Data.Streaming.ProcessSpec + Data.Streaming.TextSpec + Data.Streaming.ZlibSpec + build-depends: base + , streaming-commons + , hspec >= 1.8 + + , QuickCheck + , array + , async + , bytestring + , deepseq + , network >= 2.4.0.0 + , text + , zlib + build-tool-depends: + hspec-discover:hspec-discover + + if flag(use-bytestring-builder) + build-depends: bytestring < 0.10.2.0 + , bytestring-builder + else + build-depends: bytestring >= 0.10.2.0 + + if os(windows) + cpp-options: -DWINDOWS + else + build-depends: unix + +benchmark count-chars + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: bench + build-depends: base + , gauge + , bytestring + , text + , streaming-commons + main-is: count-chars.hs + ghc-options: -Wall -O2 + +benchmark decode-memory-usage + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: bench + build-depends: base + , bytestring + , text + , streaming-commons + main-is: decode-memory-usage.hs + ghc-options: -Wall -O2 -with-rtsopts=-s + +benchmark builder-to-bytestring-io + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: bench + main-is: builder-to-bytestring-io.hs + ghc-options: -Wall -O2 + build-depends: base + , bytestring >= 0.10.2 + , gauge + , deepseq + , streaming-commons + + if flag(use-bytestring-builder) + build-depends: bytestring < 0.10.2.0 + , bytestring-builder + else + build-depends: bytestring >= 0.10.2.0 + +source-repository head + type: git + location: git://github.com/fpco/streaming-commons.git