80987ff
# generated by cabal-rpm-2.1.0
5633a16
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
41fe4d5
41fe4d5
%global pkg_name haskell-gi-base
41fe4d5
%global pkgver %{pkg_name}-%{version}
41fe4d5
41fe4d5
Name:           ghc-%{pkg_name}
db1019d
Version:        0.26.4
e4a2436
Release:        %autorelease
41fe4d5
Summary:        Foundation for libraries generated by haskell-gi
41fe4d5
80987ff
License:        LGPL-2.1-or-later
41fe4d5
Url:            https://hackage.haskell.org/package/%{pkg_name}
a23a833
# Begin cabal-rpm sources:
41fe4d5
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
a23a833
# End cabal-rpm sources
41fe4d5
a23a833
# Begin cabal-rpm deps:
41fe4d5
BuildRequires:  ghc-Cabal-devel
41fe4d5
BuildRequires:  ghc-rpm-macros
80987ff
BuildRequires:  ghc-base-devel
80987ff
BuildRequires:  ghc-bytestring-devel
80987ff
BuildRequires:  ghc-containers-devel
80987ff
BuildRequires:  ghc-text-devel
80987ff
%if %{with ghc_prof}
f55de82
BuildRequires:  ghc-base-prof
f55de82
BuildRequires:  ghc-bytestring-prof
f55de82
BuildRequires:  ghc-containers-prof
f55de82
BuildRequires:  ghc-text-prof
80987ff
%endif
41fe4d5
BuildRequires:  pkgconfig(glib-2.0)
41fe4d5
BuildRequires:  pkgconfig(gobject-2.0)
41fe4d5
# End cabal-rpm deps
41fe4d5
41fe4d5
%description
41fe4d5
Foundation for libraries generated by haskell-gi.
41fe4d5
41fe4d5
41fe4d5
%package devel
41fe4d5
Summary:        Haskell %{pkg_name} library development files
41fe4d5
Provides:       %{name}-static = %{version}-%{release}
f55de82
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
b21e192
%if %{defined ghc_version}
41fe4d5
Requires:       ghc-compiler = %{ghc_version}
b21e192
%endif
41fe4d5
Requires:       %{name}%{?_isa} = %{version}-%{release}
41fe4d5
# Begin cabal-rpm deps:
41fe4d5
Requires:       pkgconfig(glib-2.0)
41fe4d5
Requires:       pkgconfig(gobject-2.0)
41fe4d5
# End cabal-rpm deps
41fe4d5
41fe4d5
%description devel
41fe4d5
This package provides the Haskell %{pkg_name} library development
41fe4d5
files.
41fe4d5
41fe4d5
0089379
%if %{with haddock}
0089379
%package doc
0089379
Summary:        Haskell %{pkg_name} library documentation
b128492
BuildArch:      noarch
70a06ed
Requires:       ghc-filesystem
0089379
0089379
%description doc
0089379
This package provides the Haskell %{pkg_name} library documentation.
0089379
%endif
0089379
0089379
0089379
%if %{with ghc_prof}
0089379
%package prof
0089379
Summary:        Haskell %{pkg_name} profiling library
0089379
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
b128492
Supplements:    (%{name}-devel and ghc-prof)
0089379
0089379
%description prof
0089379
This package provides the Haskell %{pkg_name} profiling library.
0089379
%endif
0089379
41fe4d5
41fe4d5
%prep
a23a833
# Begin cabal-rpm setup:
41fe4d5
%setup -q -n %{pkgver}
a23a833
# End cabal-rpm setup
41fe4d5
41fe4d5
41fe4d5
%build
a23a833
# Begin cabal-rpm build:
41fe4d5
%ghc_lib_build
a23a833
# End cabal-rpm build
41fe4d5
41fe4d5
41fe4d5
%install
a23a833
# Begin cabal-rpm install
41fe4d5
%ghc_lib_install
a23a833
# End cabal-rpm install
41fe4d5
41fe4d5
41fe4d5
%files -f %{name}.files
a23a833
# Begin cabal-rpm files:
41fe4d5
%license LICENSE
a23a833
# End cabal-rpm files
41fe4d5
41fe4d5
0089379
%files devel -f %{name}-devel.files
41fe4d5
%doc ChangeLog.md
41fe4d5
ce872e3
0089379
%if %{with haddock}
0089379
%files doc -f %{name}-doc.files
b128492
%license LICENSE
0089379
%endif
0089379
0089379
0089379
%if %{with ghc_prof}
0089379
%files prof -f %{name}-prof.files
ce872e3
%endif
ce872e3
41fe4d5
41fe4d5
%changelog
e4a2436
%autochangelog