subpackage ghc-lib-parser

This commit is contained in:
Jens Petersen 2020-02-22 13:42:53 +08:00
parent d3619badd2
commit c8da04441d
3 changed files with 32 additions and 4 deletions

1
.gitignore vendored
View File

@ -28,3 +28,4 @@ hlint-1.7.3.tar.gz
/hlint-2.1.8.tar.gz
/hlint-2.1.11.tar.gz
/hlint-2.1.26.tar.gz
/ghc-lib-parser-8.8.0.20190424.tar.gz

View File

@ -1,11 +1,15 @@
# generated by cabal-rpm-2.0.2
# generated by cabal-rpm-2.0.3 --subpackage
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name hlint
%global pkgver %{pkg_name}-%{version}
%global ghclibparser ghc-lib-parser-8.8.0.20190424
%global subpkgs %{ghclibparser}
Name: %{pkg_name}
Version: 2.1.26
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: Haskell source code suggestions
@ -13,11 +17,12 @@ License: BSD
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{ghclibparser}/%{ghclibparser}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-ansi-terminal-prof
BuildRequires: ghc-base-prof
@ -29,7 +34,7 @@ BuildRequires: ghc-data-default-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-extra-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-ghc-lib-parser-prof
#BuildRequires: ghc-ghc-lib-parser-prof
BuildRequires: ghc-haskell-src-exts-prof
BuildRequires: ghc-haskell-src-exts-util-prof
BuildRequires: ghc-hscolour-prof
@ -42,6 +47,14 @@ BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-vector-prof
BuildRequires: ghc-yaml-prof
Requires: %{name}-common = %{version}-%{release}
# for missing dep 'ghc-lib-parser':
BuildRequires: ghc-array-prof
BuildRequires: ghc-binary-prof
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-hpc-prof
BuildRequires: ghc-pretty-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
# End cabal-rpm deps
%description
@ -98,21 +111,33 @@ This package provides the Haskell %{name} profiling library.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{ghclibparser}
%endif
%global version %{main_version}
%prep
# Begin cabal-rpm setup:
%setup -q
%setup -q -a1
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
mv %{buildroot}%{_ghcdocdir}{,-common}
# End cabal-rpm install
@ -165,6 +190,7 @@ mv %{buildroot}%{_datadir}/%{name}-%{version}/hlint.1 %{buildroot}%{_mandir}/man
%changelog
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 2.1.26-1
- update to 2.1.26
- add ghc-lib-parser
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1 +1,2 @@
SHA512 (hlint-2.1.26.tar.gz) = 6993469cf123f76923f4fe053ad9672c0393e14b670c28d80c013e9773486ba0b5e2c483d867aa3356764794afafd265471dff9c88884b4a47fa5abfc04741b8
SHA512 (ghc-lib-parser-8.8.0.20190424.tar.gz) = f19bb4680b7f668aa8b6666f1f339368f286086a464287e1f939fdf0c7da0f58e4898f5d2afa7e5c4fa12e88e49d3d90e16136d6b86a924c649485f3801ba1d2