|
|
|
@ -1,3 +1,162 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.2.6)
|
|
|
|
|
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 6;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
* Sat Aug 19 2023 Alexey Lyubimov <a.lyubimov@msvsphere.ru> - 0.6.2.3-6
|
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> 0.6.2.3-6
|
|
|
|
|
- revise .cabal
|
|
|
|
|
|
|
|
|
|
* Sat Mar 12 2022 Jens Petersen <petersen@redhat.com> 0.6.2.3-5
|
|
|
|
|
- patch testsuite on s390x for rawformat (#2045430)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> 0.6.2.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Aug 8 2021 Jens Petersen <petersen@redhat.com> - 0.6.2.3-3
|
|
|
|
|
- use rpmautospec
|
|
|
|
|
|
|
|
|
@ -246,3 +405,4 @@
|
|
|
|
|
|
|
|
|
|
* Sun Feb 17 2008 cabal-rpm <cabal-devel@haskell.org> - 0.4.0.2-1
|
|
|
|
|
- spec file autogenerated by cabal-rpm
|
|
|
|
|
|