public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghc-language-c] epel9: cabal-rpm-1.0.0: add doc and prof subpkgs
@ 2026-07-13 13:58 Jens Petersen
0 siblings, 0 replies; only message in thread
From: Jens Petersen @ 2026-07-13 13:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ghc-language-c
Branch : epel9
Commit : 73d0c67182bbb6e24ce8791a03326419c4470025
Author : Jens Petersen <petersen@redhat.com>
Date : 2019-08-02T05:48:25+05:30
Stats : +40/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ghc-language-c/c/73d0c67182bbb6e24ce8791a03326419c4470025?branch=epel9
Log:
cabal-rpm-1.0.0: add doc and prof subpkgs
---
diff --git a/ghc-language-c.spec b/ghc-language-c.spec
index 714d738..44dc85c 100644
--- a/ghc-language-c.spec
+++ b/ghc-language-c.spec
@@ -1,4 +1,4 @@
-# generated by cabal-rpm-0.13
+# generated by cabal-rpm-1.0.0
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name language-c
@@ -8,7 +8,7 @@
Name: ghc-%{pkg_name}
Version: 0.8.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Analysis and generation of C code
License: BSD
@@ -20,6 +20,12 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
+%if %{with haddock}
+BuildRequires: ghc-doc
+%endif
+%if %{with ghc_prof}
+BuildRequires: ghc-prof
+%endif
BuildRequires: ghc-rpm-macros
BuildRequires: alex
BuildRequires: ghc-array-devel
@@ -43,11 +49,8 @@ for all of C99 and a large set of GNU extensions.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
-Provides: %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
-Requires(post): ghc-compiler = %{ghc_version}
-Requires(postun): ghc-compiler = %{ghc_version}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -55,6 +58,25 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
This package provides the Haskell %{pkg_name} library development files.
+%if %{with haddock}
+%package doc
+Summary: Haskell %{pkg_name} library documentation
+
+%description doc
+This package provides the Haskell %{pkg_name} library documentation.
+%endif
+
+
+%if %{with ghc_prof}
+%package prof
+Summary: Haskell %{pkg_name} profiling library
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description prof
+This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
+
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
@@ -78,14 +100,6 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
%cabal_test
-%post devel
-%ghc_pkg_recache
-
-
-%postun devel
-%ghc_pkg_recache
-
-
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
@@ -96,7 +110,20 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
%doc AUTHORS AUTHORS.c2hs ChangeLog README
+%if %{with haddock}
+%files doc -f %{name}-doc.files
+%endif
+
+
+%if %{with ghc_prof}
+%files prof -f %{name}-prof.files
+%endif
+
+
%changelog
+* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 0.8.2-3
+- add doc and prof subpackages (cabal-rpm-1.0.0)
+
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-13 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-13 13:58 [rpms/ghc-language-c] epel9: cabal-rpm-1.0.0: add doc and prof subpkgs Jens Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox