subpackage gi-freetype2

This commit is contained in:
Jens Petersen 2023-01-29 23:10:53 +08:00
parent 292b4ea80c
commit 52cafcbc08
3 changed files with 24 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/gi-harfbuzz-0.0.3.tar.gz
/gi-harfbuzz-0.0.4.tar.gz
/gi-harfbuzz-0.0.7.tar.gz
/gi-freetype2-2.0.2.tar.gz

View File

@ -1,11 +1,15 @@
# generated by cabal-rpm-2.1.0
# generated by cabal-rpm-2.1.0 --subpackage
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name gi-harfbuzz
%global pkgver %{pkg_name}-%{version}
%global gifreetype2 gi-freetype2-2.0.2
%global subpkgs %{gifreetype2}
Name: ghc-%{pkg_name}
Version: 0.0.7
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: HarfBuzz bindings
@ -13,15 +17,16 @@ License: LGPL-2.1-or-later
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/%{gifreetype2}/%{gifreetype2}.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-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-gi-freetype2-devel
#BuildRequires: ghc-gi-freetype2-devel
BuildRequires: ghc-gi-glib-devel
BuildRequires: ghc-gi-gobject-devel
BuildRequires: ghc-haskell-gi-devel
@ -33,7 +38,7 @@ BuildRequires: ghc-transformers-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-gi-freetype2-prof
#BuildRequires: ghc-gi-freetype2-prof
BuildRequires: ghc-gi-glib-prof
BuildRequires: ghc-gi-gobject-prof
BuildRequires: ghc-haskell-gi-prof
@ -88,20 +93,31 @@ This package provides the Haskell %{pkg_name} profiling library.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage -l LICENSETAG %{gifreetype2}
%endif
%global version %{main_version}
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
%setup -q -n %{pkgver} -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
# End cabal-rpm install
@ -130,6 +146,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%changelog
* Wed Jan 25 2023 Jens Petersen <petersen@redhat.com> - 0.0.7-1
- https://hackage.haskell.org/package/gi-harfbuzz-0.0.7/changelog
- new dep: gi-freetype2
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1,2 @@
SHA512 (gi-harfbuzz-0.0.7.tar.gz) = 079e533d73a6afe332a8cbf076bd27890190a8aa3ef68c81b22e10fff78892f29684af2ef720e01eafd95549a9994a5409d0ef5df078a6cdf95023472f0d1529
SHA512 (gi-freetype2-2.0.2.tar.gz) = 0799a176d6170e90d7a5fa56e4baae2789195871e7b485b3e78dce265f0d39ceb409196b2ac858b7605ef666ac9f480aa648ad6eaf3574b766c16bc0542fc668