Compare commits
No commits in common. 'i9ce' and 'epel9' have entirely different histories.
@ -1 +0,0 @@
|
|||||||
dc9905ef637e901f2eac0196a00963aa67474fb4 SOURCES/zlib-0.6.2.3.tar.gz
|
|
@ -1 +1,8 @@
|
|||||||
SOURCES/zlib-0.6.2.3.tar.gz
|
/zlib-0.5.4.1.tar.gz
|
||||||
|
/zlib-0.5.4.2.tar.gz
|
||||||
|
/zlib-0.6.1.1.tar.gz
|
||||||
|
/zlib-0.6.1.2.tar.gz
|
||||||
|
/zlib-0.6.2.tar.gz
|
||||||
|
/zlib-0.6.2.1.tar.gz
|
||||||
|
/zlib-0.6.2.2.tar.gz
|
||||||
|
/zlib-0.6.2.3.tar.gz
|
||||||
|
@ -0,0 +1,139 @@
|
|||||||
|
# generated by cabal-rpm-2.0.12
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||||
|
|
||||||
|
%global pkg_name zlib
|
||||||
|
%global pkgver %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
Name: ghc-%{pkg_name}
|
||||||
|
Version: 0.6.2.3
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Compression and decompression in the gzip and zlib formats
|
||||||
|
|
||||||
|
License: BSD
|
||||||
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
# Begin cabal-rpm sources:
|
||||||
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||||
|
# End cabal-rpm sources
|
||||||
|
# https://github.com/haskell/zlib/issues/46
|
||||||
|
Patch0: zlib-0.6.2.3-test-rawformat-s390x-z15.patch
|
||||||
|
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
BuildRequires: ghc-Cabal-devel
|
||||||
|
BuildRequires: ghc-rpm-macros
|
||||||
|
BuildRequires: ghc-base-prof
|
||||||
|
BuildRequires: ghc-bytestring-prof
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ghc-QuickCheck-devel
|
||||||
|
BuildRequires: ghc-tasty-devel
|
||||||
|
BuildRequires: ghc-tasty-hunit-devel
|
||||||
|
BuildRequires: ghc-tasty-quickcheck-devel
|
||||||
|
%endif
|
||||||
|
# End cabal-rpm deps
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides a pure interface for compressing and decompressing
|
||||||
|
streams of data represented as lazy 'ByteString's. It uses the
|
||||||
|
<https://en.wikipedia.org/wiki/Zlib zlib C library> so it has high performance.
|
||||||
|
It supports the "zlib", "gzip" and "raw" compression formats.
|
||||||
|
|
||||||
|
It provides a convenient high level API suitable for most tasks and for the few
|
||||||
|
cases where more control is needed it provides access to the full zlib feature
|
||||||
|
set.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Haskell %{pkg_name} library development files
|
||||||
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||||
|
%if %{defined ghc_version}
|
||||||
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
|
%endif
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
|
Requires: zlib-devel%{?_isa}
|
||||||
|
# End cabal-rpm deps
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with haddock}
|
||||||
|
%package doc
|
||||||
|
Summary: Haskell %{pkg_name} library documentation
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: ghc-filesystem
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package provides the Haskell %{pkg_name} library documentation.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with ghc_prof}
|
||||||
|
%package prof
|
||||||
|
Summary: Haskell %{pkg_name} profiling library
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
Supplements: (%{name}-devel and ghc-prof)
|
||||||
|
|
||||||
|
%description prof
|
||||||
|
This package provides the Haskell %{pkg_name} profiling library.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
# Begin cabal-rpm setup:
|
||||||
|
%setup -q -n %{pkgver}
|
||||||
|
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
# End cabal-rpm setup
|
||||||
|
%ifarch s390x
|
||||||
|
%patch0 -p1 -b.orig
|
||||||
|
%endif
|
||||||
|
#remove the copy library
|
||||||
|
rm -r cbits
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Begin cabal-rpm build:
|
||||||
|
%ghc_lib_build
|
||||||
|
# End cabal-rpm build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
# Begin cabal-rpm install
|
||||||
|
%ghc_lib_install
|
||||||
|
# End cabal-rpm install
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
%cabal_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
# Begin cabal-rpm files:
|
||||||
|
%license LICENSE
|
||||||
|
# End cabal-rpm files
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
%doc changelog examples
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with haddock}
|
||||||
|
%files doc -f %{name}-doc.files
|
||||||
|
%license LICENSE
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with ghc_prof}
|
||||||
|
%files prof -f %{name}-prof.files
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
@ -0,0 +1 @@
|
|||||||
|
SHA512 (zlib-0.6.2.3.tar.gz) = 535fc711af639967c032791c6a0c09680ac186c706e02a28cfabd9b2dcddc84a6ee5f6007e2ed67c1dc19dd6d561cb821d8840dba7386b63cc002418c4d5040a
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/sh
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
SOURCEDIR=$1
|
||||||
|
|
||||||
|
cd "${SOURCEDIR}" || exit 1
|
||||||
|
|
||||||
|
cabal update
|
||||||
|
cabal install --enable-tests --only-dependencies
|
||||||
|
|
||||||
|
cabal test
|
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
vars:
|
||||||
|
# standard-test-basic directory for tests are relative to {{ tenv_workdir }}
|
||||||
|
tenv_workdir: /var/test
|
||||||
|
pre_tasks:
|
||||||
|
- import_role:
|
||||||
|
name: standard-test-source
|
||||||
|
vars:
|
||||||
|
fetch_only: True
|
||||||
|
|
||||||
|
- name: Copy files including source to test environment
|
||||||
|
synchronize:
|
||||||
|
src: "{{ playbook_dir }}/.."
|
||||||
|
dest: "{{ tenv_workdir }}"
|
||||||
|
mode: push
|
||||||
|
ssh_args: "-o UserKnownHostsFile=/dev/null"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
required_packages:
|
||||||
|
- cabal-install
|
||||||
|
- ghc-tasty-hunit-devel
|
||||||
|
- ghc-tasty-quickcheck-devel
|
||||||
|
- ghc-zlib-devel
|
||||||
|
- ghc-rpm-macros
|
||||||
|
- rpm-build
|
||||||
|
tests:
|
||||||
|
- prepare-source:
|
||||||
|
dir: ./
|
||||||
|
run: rpmbuild -bp {{ tenv_workdir }}/*.spec --nodeps --define "_sourcedir {{ tenv_workdir }}" --define "_builddir {{ tenv_workdir }}/source"
|
||||||
|
- flatten-source:
|
||||||
|
dir: ./
|
||||||
|
run: shopt -s dotglob; mv {{ tenv_workdir }}/source/*/* {{ tenv_workdir }}/source
|
||||||
|
- smoke:
|
||||||
|
dir: simple
|
||||||
|
run: ./runtest.sh {{ tenv_workdir }}/source/
|
||||||
|
...
|
Loading…
Reference in new issue