|
|
|
@ -4,32 +4,22 @@
|
|
|
|
|
%global pkg_name data-default
|
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%global instancescontainers data-default-instances-containers-0.0.1
|
|
|
|
|
%global instancesdlist data-default-instances-dlist-0.0.1
|
|
|
|
|
%global instancesoldlocale data-default-instances-old-locale-0.0.1
|
|
|
|
|
%global subpkgs %{instancescontainers} %{instancesdlist} %{instancesoldlocale}
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.7.1.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: A class for types with a default value
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{instancescontainers}/%{instancescontainers}.tar.gz
|
|
|
|
|
Source2: https://hackage.haskell.org/package/%{instancesdlist}/%{instancesdlist}.tar.gz
|
|
|
|
|
Source3: https://hackage.haskell.org/package/%{instancesoldlocale}/%{instancesoldlocale}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros-extra
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-data-default-class-devel
|
|
|
|
|
#BuildRequires: ghc-data-default-instances-containers-devel
|
|
|
|
|
BuildRequires: ghc-dlist-devel
|
|
|
|
|
#BuildRequires: ghc-data-default-instances-dlist-devel
|
|
|
|
|
BuildRequires: ghc-old-locale-devel
|
|
|
|
|
#BuildRequires: ghc-data-default-instances-old-locale-devel
|
|
|
|
|
BuildRequires: ghc-data-default-instances-containers-devel
|
|
|
|
|
BuildRequires: ghc-data-default-instances-dlist-devel
|
|
|
|
|
BuildRequires: ghc-data-default-instances-old-locale-devel
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -51,28 +41,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
|
%ghc_lib_subpackage %{instancescontainers}
|
|
|
|
|
%ghc_lib_subpackage %{instancesdlist}
|
|
|
|
|
%ghc_lib_subpackage %{instancesoldlocale}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkgver} -a1 -a2 -a3
|
|
|
|
|
%setup -q -n %{pkgver}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%ghc_libs_build %{subpkgs}
|
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ghc_libs_install %{subpkgs}
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -98,6 +75,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jan 29 2018 Jens Petersen <petersen@redhat.com> - 0.7.1.1-5
|
|
|
|
|
- data-default-instances-* now packaged
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.7.1.1-4
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|