5c6e14d4b7
- 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
99 lines
2.7 KiB
RPMSpec
99 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package ghc-attoparsec
|
|
#
|
|
# Copyright (c) 2015 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 attoparsec
|
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.12.1.6
|
|
Release: 0
|
|
Summary: Fast combinator parsing for bytestrings and text
|
|
License: BSD-3-Clause
|
|
Group: System/Libraries
|
|
|
|
Url: http://hackage.haskell.org/package/%{pkg_name}
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: ghc-array-devel
|
|
BuildRequires: ghc-bytestring-devel
|
|
BuildRequires: ghc-containers-devel
|
|
BuildRequires: ghc-deepseq-devel
|
|
BuildRequires: ghc-scientific-devel
|
|
BuildRequires: ghc-text-devel
|
|
%if %{with tests}
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
BuildRequires: ghc-quickcheck-unicode-devel
|
|
BuildRequires: ghc-test-framework-devel
|
|
BuildRequires: ghc-test-framework-quickcheck2-devel
|
|
BuildRequires: ghc-vector-devel
|
|
%endif
|
|
# End cabal-rpm deps
|
|
|
|
%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
|
|
Group: Development/Libraries/Other
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%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
|
|
|
|
%check
|
|
%if %{with tests}
|
|
%cabal test
|
|
%endif
|
|
|
|
%post devel
|
|
%ghc_pkg_recache
|
|
|
|
%postun devel
|
|
%ghc_pkg_recache
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%defattr(-,root,root,-)
|
|
%doc examples README.markdown
|
|
|
|
%changelog
|