File ghc-pipes-text.spec of Package ghc-pipes-text
#
# spec file for package ghc-pipes-text
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%global pkg_name pipes-text
Name: ghc-%{pkg_name}
Version: 0.0.2.5
Release: 0
Summary: Properly streaming text
License: BSD-3-Clause
Group: Development/Libraries/Haskell
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-bytestring-devel
BuildRequires: ghc-pipes-bytestring-devel
BuildRequires: ghc-pipes-devel
BuildRequires: ghc-pipes-group-devel
BuildRequires: ghc-pipes-parse-devel
BuildRequires: ghc-pipes-safe-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-streaming-commons-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-devel
%description
/New in version 0.0.2.x/: The new module 'Pipes.Prelude.Text' exports
line-based 'Text' producers and consumers as a drop-in replacement for the
'String' material in 'Pipes.Prelude' and 'Pipes.Safe.Prelude'. They can be used
as one uses 'Pipes.Prelude' without reference to the rest of this package.
See the caveats in the documentation for that module.
The organization of this package follows the rule:
* 'pipes-text : pipes-bytestring :: text : bytestring'
Familiarity with the other three packages should give one an idea what to
expect where. The package has three principal modules, 'Pipes.Text' ,
'Pipes.Text.Encoding' and 'Pipes.Text.IO'; the division has more or less the
significance it has in the 'text' library.
The module 'Pipes.Text.IO' is present as a convenience. Official pipes IO uses
'Pipes.ByteString' together with the bytestring decoding functions in
'Pipes.Text.Encoding'. In particular, the 'Pipes.Text.IO' functions use Text
exceptions, while 'Pipes.Text' uses the standard pipes practice of breaking
with a failed parse. Thus, for example, the type of 'decodeUtf8' is
* 'decodeUtf8 :: Monad m => Producer ByteString m r -> Producer Text m
(Producer ByteString m r)'
where any unparsed bytes are returned.
'Pipes.Text.IO' and 'Pipes.Prelude.Text' use version 0.11.3 or later of the
'text' library; older versions of 'text' can be used with the flag '-fnoio'.
%package devel
Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Haskell
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.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%doc README.md changelog
%changelog