Accepting request 432841 from devel:languages:haskell:lts:7
version / revision update OBS-URL: https://build.opensuse.org/request/show/432841 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-zlib?expand=0&rev=20
This commit is contained in:
parent
9b8cc15b77
commit
24a19a3381
@ -23,12 +23,11 @@ Version: 0.6.1.1
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Compression and decompression in the gzip and zlib formats
|
Summary: Compression and decompression in the gzip and zlib formats
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: System/Libraries
|
Group: Development/Languages/Other
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
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
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
@ -40,7 +39,6 @@ BuildRequires: ghc-tasty-devel
|
|||||||
BuildRequires: ghc-tasty-hunit-devel
|
BuildRequires: ghc-tasty-hunit-devel
|
||||||
BuildRequires: ghc-tasty-quickcheck-devel
|
BuildRequires: ghc-tasty-quickcheck-devel
|
||||||
%endif
|
%endif
|
||||||
# End cabal-rpm deps
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a pure interface for compressing and decompressing
|
This package provides a pure interface for compressing and decompressing
|
||||||
@ -57,11 +55,9 @@ Summary: Haskell %{pkg_name} library development files
|
|||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
Requires: zlib-devel
|
Requires: zlib-devel
|
||||||
Requires(post): ghc-compiler = %{ghc_version}
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
Requires(postun): ghc-compiler = %{ghc_version}
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
# End cabal-rpm deps
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package provides the Haskell %{pkg_name} library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
@ -70,20 +66,14 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%cabal_test
|
||||||
%{cabal} test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
@ -97,6 +87,5 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
|
|||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc changelog examples
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,87 +1,87 @@
|
|||||||
name: zlib
|
name: zlib
|
||||||
version: 0.6.1.1
|
version: 0.6.1.1
|
||||||
x-revision: 3
|
x-revision: 3
|
||||||
copyright: (c) 2006-2015 Duncan Coutts
|
copyright: (c) 2006-2015 Duncan Coutts
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Duncan Coutts <duncan@community.haskell.org>
|
author: Duncan Coutts <duncan@community.haskell.org>
|
||||||
maintainer: Duncan Coutts <duncan@community.haskell.org>
|
maintainer: Duncan Coutts <duncan@community.haskell.org>
|
||||||
bug-reports: https://github.com/haskell/zlib/issues
|
bug-reports: https://github.com/haskell/zlib/issues
|
||||||
category: Codec
|
category: Codec
|
||||||
synopsis: Compression and decompression in the gzip and zlib formats
|
synopsis: Compression and decompression in the gzip and zlib formats
|
||||||
description: This package provides a pure interface for compressing and
|
description: This package provides a pure interface for compressing and
|
||||||
decompressing streams of data represented as lazy
|
decompressing streams of data represented as lazy
|
||||||
'ByteString's. It uses the zlib C library so it has high
|
'ByteString's. It uses the zlib C library so it has high
|
||||||
performance. It supports the \"zlib\", \"gzip\" and \"raw\"
|
performance. It supports the \"zlib\", \"gzip\" and \"raw\"
|
||||||
compression formats.
|
compression formats.
|
||||||
.
|
.
|
||||||
It provides a convenient high level API suitable for most
|
It provides a convenient high level API suitable for most
|
||||||
tasks and for the few cases where more control is needed it
|
tasks and for the few cases where more control is needed it
|
||||||
provides access to the full zlib feature set.
|
provides access to the full zlib feature set.
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >= 1.10
|
cabal-version: >= 1.10
|
||||||
extra-source-files: changelog
|
extra-source-files: changelog
|
||||||
-- zlib C sources (for Windows)
|
-- zlib C sources (for Windows)
|
||||||
cbits/crc32.h cbits/inffast.h cbits/inflate.h
|
cbits/crc32.h cbits/inffast.h cbits/inflate.h
|
||||||
cbits/trees.h cbits/deflate.h cbits/inffixed.h
|
cbits/trees.h cbits/deflate.h cbits/inffixed.h
|
||||||
cbits/inftrees.h cbits/zutil.h cbits/gzguts.h
|
cbits/inftrees.h cbits/zutil.h cbits/gzguts.h
|
||||||
-- test data files
|
-- test data files
|
||||||
test/data/bad-crc.gz test/data/custom-dict.zlib
|
test/data/bad-crc.gz test/data/custom-dict.zlib
|
||||||
test/data/custom-dict.zlib-dict test/data/hello.gz
|
test/data/custom-dict.zlib-dict test/data/hello.gz
|
||||||
test/data/not-gzip test/data/two-files.gz
|
test/data/not-gzip test/data/two-files.gz
|
||||||
-- demo programs:
|
-- demo programs:
|
||||||
examples/gzip.hs examples/gunzip.hs
|
examples/gzip.hs examples/gunzip.hs
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/haskell/zlib.git
|
location: https://github.com/haskell/zlib.git
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules: Codec.Compression.GZip,
|
exposed-modules: Codec.Compression.GZip,
|
||||||
Codec.Compression.Zlib,
|
Codec.Compression.Zlib,
|
||||||
Codec.Compression.Zlib.Raw,
|
Codec.Compression.Zlib.Raw,
|
||||||
Codec.Compression.Zlib.Internal
|
Codec.Compression.Zlib.Internal
|
||||||
other-modules: Codec.Compression.Zlib.Stream
|
other-modules: Codec.Compression.Zlib.Stream
|
||||||
if impl(ghc < 7)
|
if impl(ghc < 7)
|
||||||
default-language: Haskell98
|
default-language: Haskell98
|
||||||
default-extensions: PatternGuards
|
default-extensions: PatternGuards
|
||||||
else
|
else
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
||||||
DeriveDataTypeable
|
DeriveDataTypeable
|
||||||
if impl(ghc >= 7.2)
|
if impl(ghc >= 7.2)
|
||||||
other-extensions: DeriveGeneric
|
other-extensions: DeriveGeneric
|
||||||
build-depends: base >= 4 && < 5,
|
build-depends: base >= 4 && < 5,
|
||||||
bytestring >= 0.9 && < 0.12
|
bytestring >= 0.9 && < 0.12
|
||||||
if impl(ghc >= 7.2 && < 7.6)
|
if impl(ghc >= 7.2 && < 7.6)
|
||||||
build-depends: ghc-prim
|
build-depends: ghc-prim
|
||||||
includes: zlib.h
|
includes: zlib.h
|
||||||
ghc-options: -Wall -fwarn-tabs
|
ghc-options: -Wall -fwarn-tabs
|
||||||
if !os(windows)
|
if !os(windows)
|
||||||
-- Normally we use the the standard system zlib:
|
-- Normally we use the the standard system zlib:
|
||||||
extra-libraries: z
|
extra-libraries: z
|
||||||
else
|
else
|
||||||
-- However for the benefit of users of Windows (which does not have zlib
|
-- However for the benefit of users of Windows (which does not have zlib
|
||||||
-- by default) we bundle a complete copy of the C sources of zlib-1.2.8
|
-- by default) we bundle a complete copy of the C sources of zlib-1.2.8
|
||||||
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
|
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
|
||||||
cbits/deflate.c cbits/infback.c
|
cbits/deflate.c cbits/infback.c
|
||||||
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
|
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
|
||||||
cbits/trees.c cbits/uncompr.c cbits/zutil.c
|
cbits/trees.c cbits/uncompr.c cbits/zutil.c
|
||||||
include-dirs: cbits
|
include-dirs: cbits
|
||||||
install-includes: zlib.h zconf.h
|
install-includes: zlib.h zconf.h
|
||||||
|
|
||||||
test-suite tests
|
test-suite tests
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: Test.hs
|
main-is: Test.hs
|
||||||
other-modules: Utils,
|
other-modules: Utils,
|
||||||
Test.Codec.Compression.Zlib.Internal,
|
Test.Codec.Compression.Zlib.Internal,
|
||||||
Test.Codec.Compression.Zlib.Stream
|
Test.Codec.Compression.Zlib.Stream
|
||||||
hs-source-dirs: test
|
hs-source-dirs: test
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
build-depends: base, bytestring, zlib,
|
build-depends: base, bytestring, zlib,
|
||||||
QuickCheck == 2.*,
|
QuickCheck == 2.*,
|
||||||
HUnit >= 1.2 && <1.4,
|
HUnit >= 1.2 && <1.4,
|
||||||
tasty >= 0.8 && < 0.12,
|
tasty >= 0.8 && < 0.12,
|
||||||
tasty-quickcheck == 0.8.*,
|
tasty-quickcheck == 0.8.*,
|
||||||
tasty-hunit >= 0.8 && < 0.9
|
tasty-hunit >= 0.8 && < 0.9
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
Loading…
Reference in New Issue
Block a user