From 0990f960ba5e7dfce69309fd49a18531265a491f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 07 2019 13:28:34 +0000 Subject: import ghc-extra-1.6.2-2.el8 --- diff --git a/.ghc-extra.metadata b/.ghc-extra.metadata new file mode 100644 index 0000000..70f3e8a --- /dev/null +++ b/.ghc-extra.metadata @@ -0,0 +1 @@ +7bef7a85f3b12b199af57c04aecc3ced4261a9f2 SOURCES/extra-1.6.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55530a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/extra-1.6.2.tar.gz diff --git a/SOURCES/extra-No-test--N.patch b/SOURCES/extra-No-test--N.patch new file mode 100644 index 0000000..2431b00 --- /dev/null +++ b/SOURCES/extra-No-test--N.patch @@ -0,0 +1,11 @@ +--- extra-1.5.3/extra.cabal~ 2017-06-13 06:58:38.000000000 +0900 ++++ extra-1.5.3/extra.cabal 2018-01-09 20:24:52.221337034 +0900 +@@ -74,7 +74,7 @@ + if !os(windows) + build-depends: unix + hs-source-dirs: test +- ghc-options: -main-is Test -threaded "-with-rtsopts=-N4 -K1K" ++ ghc-options: -main-is Test -threaded "-with-rtsopts=-K1K" + main-is: Test.hs + other-modules: + TestCustom diff --git a/SPECS/ghc-extra.spec b/SPECS/ghc-extra.spec new file mode 100644 index 0000000..9d5d58c --- /dev/null +++ b/SPECS/ghc-extra.spec @@ -0,0 +1,103 @@ +# generated by cabal-rpm-0.12.1 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name extra +%global pkgver %{pkg_name}-%{version} + +%bcond_without tests + +Name: ghc-%{pkg_name} +Version: 1.6.2 +Release: 2%{?dist} +Summary: Extra Haskell functions + +License: BSD +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Patch0: extra-No-test--N.patch + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-clock-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-process-devel +BuildRequires: ghc-time-devel +BuildRequires: ghc-unix-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +%endif +# End cabal-rpm deps + +%description +A library of extra functions for the standard Haskell libraries. Most functions +are simple additions, filling out missing functionality. A few functions are +available in later versions of GHC, but this package makes them available back +to GHC 7.2. + +The module "Extra" documents all functions provided by this library. +Modules such as "Data.List.Extra" provide extra functions over "Data.List" and +also reexport "Data.List". Users are recommended to replace "Data.List" imports +with "Data.List.Extra" if they need the extra functionality. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkgver} +%ifarch aarch64 s390x +%patch0 -p1 -b .orig +%endif + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%check +%cabal_test + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%license LICENSE + + +%files devel -f %{name}-devel.files +%doc CHANGES.txt README.md + + +%changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Jens Petersen - 1.6.2-1 +- update to 1.6.2 + +* Thu Dec 21 2017 Jens Petersen - 1.5.3-1 +- spec file generated by cabal-rpm-0.12 +- test RTS -N4 failing on aarch64 and s390x