public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jens Petersen <petersen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ghc-language-c] epel9: cabal-rpm-1.0.0: add doc and prof subpkgs
Date: Mon, 13 Jul 2026 13:58:20 GMT	[thread overview]
Message-ID: <178395110056.1.14211658878785896531.rpms-ghc-language-c-73d0c67182bb@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-07-13 13:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178395110056.1.14211658878785896531.rpms-ghc-language-c-73d0c67182bb@fedoraproject.org \
    --to=petersen@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox