ghc-attoparsec/ghc-attoparsec.spec

87 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ghc-attoparsec
#
# Copyright (c) 2021 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 attoparsec
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.14.2
Release: 0
Summary: Fast combinator parsing for bytestrings and text
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/2.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-rpm-macros
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
BuildRequires: ghc-scientific-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-devel
ExcludeArch: %{ix86}
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-quickcheck-unicode-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-quickcheck-devel
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
BuildRequires: ghc-vector-devel
%endif
%description
A fast parser combinator library, aimed particularly at dealing efficiently
with network protocols and complicated text/binary file formats.
%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.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
%check
%cabal_test
Accepting request 304887 from devel:languages:haskell:lts - update to 0.12.1.6 * Fixed a case folding bug in the ByteString version of stringCI. * Fixed an indexing bug in the new Text implementation of string, reported by Michel Boucey. * Fixed a case where the string parser would consume an unnecessary amount of input before failing a match, when it could bail much earlier (https://github.com/bos/attoparsec/issues/97) * Added more context to error messages (https://github.com/bos/attoparsec/pull/79) * Fixed incorrect tracking of Text lengths (https://github.com/bos/attoparsec/issues/80) * Fixed the incorrect tracking of capacity if the initial buffer was empty (https://github.com/bos/attoparsec/issues/75) * Fixed a data corruption bug that occurred under some circumstances if a buffer grew after prompting for more input (https://github.com/bos/attoparsec/issues/74) * Now compatible with GHC 7.9 * Reintroduced the Chunk class, used by the parsers package * A new internal representation makes almost all real-world parsers faster, sometimes by big margins. For example, parsing JSON data with aeson is now up to 70% faster. These performance improvements also come with reduced memory consumption and some new capabilities. * The new match combinator gives both the result of a parse and the input that it matched. * The test suite has doubled in size. This made it possible to switch to the new internal representation with a decent degree of confidence that everything was more or less working. * The benchmark suite now contains a small family of benchmarks taken from real-world uses of attoparsec. * A few types that ought to have been private now are. OBS-URL: https://build.opensuse.org/request/show/304887 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-attoparsec?expand=0&rev=7
2015-05-04 20:22:07 +02:00
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc README.markdown changelog.md examples
%changelog