Blame SPECS/ghc-extra.spec

0990f9
# generated by cabal-rpm-0.12.1
0990f9
# https://fedoraproject.org/wiki/Packaging:Haskell
0990f9
0990f9
%global pkg_name extra
0990f9
%global pkgver %{pkg_name}-%{version}
0990f9
0990f9
%bcond_without tests
0990f9
0990f9
Name:           ghc-%{pkg_name}
0990f9
Version:        1.6.2
0990f9
Release:        2%{?dist}
0990f9
Summary:        Extra Haskell functions 
0990f9
0990f9
License:        BSD
0990f9
Url:            https://hackage.haskell.org/package/%{pkg_name}
0990f9
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0990f9
Patch0:         extra-No-test--N.patch
0990f9
0990f9
BuildRequires:  ghc-Cabal-devel
0990f9
BuildRequires:  ghc-rpm-macros
0990f9
# Begin cabal-rpm deps:
0990f9
BuildRequires:  ghc-clock-devel
0990f9
BuildRequires:  ghc-directory-devel
0990f9
BuildRequires:  ghc-filepath-devel
0990f9
BuildRequires:  ghc-process-devel
0990f9
BuildRequires:  ghc-time-devel
0990f9
BuildRequires:  ghc-unix-devel
0990f9
%if %{with tests}
0990f9
BuildRequires:  ghc-QuickCheck-devel
0990f9
%endif
0990f9
# End cabal-rpm deps
0990f9
0990f9
%description
0990f9
A library of extra functions for the standard Haskell libraries. Most functions
0990f9
are simple additions, filling out missing functionality. A few functions are
0990f9
available in later versions of GHC, but this package makes them available back
0990f9
to GHC 7.2.
0990f9
0990f9
The module "Extra" documents all functions provided by this library.
0990f9
Modules such as "Data.List.Extra" provide extra functions over "Data.List" and
0990f9
also reexport "Data.List". Users are recommended to replace "Data.List" imports
0990f9
with "Data.List.Extra" if they need the extra functionality.
0990f9
0990f9
0990f9
%package devel
0990f9
Summary:        Haskell %{pkg_name} library development files
0990f9
Provides:       %{name}-static = %{version}-%{release}
0990f9
Provides:       %{name}-doc = %{version}-%{release}
0990f9
%if %{defined ghc_version}
0990f9
Requires:       ghc-compiler = %{ghc_version}
0990f9
Requires(post): ghc-compiler = %{ghc_version}
0990f9
Requires(postun): ghc-compiler = %{ghc_version}
0990f9
%endif
0990f9
Requires:       %{name}%{?_isa} = %{version}-%{release}
0990f9
0990f9
%description devel
0990f9
This package provides the Haskell %{pkg_name} library development files.
0990f9
0990f9
0990f9
%prep
0990f9
%setup -q -n %{pkgver}
0990f9
%ifarch aarch64 s390x
0990f9
%patch0 -p1 -b .orig
0990f9
%endif
0990f9
0990f9
%build
0990f9
%ghc_lib_build
0990f9
0990f9
0990f9
%install
0990f9
%ghc_lib_install
0990f9
0990f9
0990f9
%check
0990f9
%cabal_test
0990f9
0990f9
0990f9
%post devel
0990f9
%ghc_pkg_recache
0990f9
0990f9
0990f9
%postun devel
0990f9
%ghc_pkg_recache
0990f9
0990f9
0990f9
%files -f %{name}.files
0990f9
%license LICENSE
0990f9
0990f9
0990f9
%files devel -f %{name}-devel.files
0990f9
%doc CHANGES.txt README.md
0990f9
0990f9
0990f9
%changelog
0990f9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
0990f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0990f9
0990f9
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.6.2-1
0990f9
- update to 1.6.2
0990f9
0990f9
* Thu Dec 21 2017 Jens Petersen <petersen@redhat.com> - 1.5.3-1
0990f9
- spec file generated by cabal-rpm-0.12
0990f9
- test RTS -N4 failing on aarch64 and s390x