From f555a9f2dfc5ca31d38df4028322913810456341e56c0c1659aa85b24ed14164 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Jul 2024 12:40:31 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-citeproc revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-citeproc?expand=0&rev=42 --- .gitattributes | 23 ++ .gitignore | 1 + citeproc-0.8.1.1.tar.gz | 3 + citeproc-0.8.1.tar.gz | 3 + ghc-citeproc.changes | 483 ++++++++++++++++++++++++++++++++++++++++ ghc-citeproc.spec | 141 ++++++++++++ 6 files changed, 654 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 citeproc-0.8.1.1.tar.gz create mode 100644 citeproc-0.8.1.tar.gz create mode 100644 ghc-citeproc.changes create mode 100644 ghc-citeproc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/citeproc-0.8.1.1.tar.gz b/citeproc-0.8.1.1.tar.gz new file mode 100644 index 0000000..b818abb --- /dev/null +++ b/citeproc-0.8.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fe805629b548884e9b2f59492621823fd928d8a5b4125b6cfd9571edaebf341 +size 551001 diff --git a/citeproc-0.8.1.tar.gz b/citeproc-0.8.1.tar.gz new file mode 100644 index 0000000..0db8d2e --- /dev/null +++ b/citeproc-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33523bbd8c38f72c6d606e02d11b93254171f801be4f2a0cb4d34d6626426400 +size 549947 diff --git a/ghc-citeproc.changes b/ghc-citeproc.changes new file mode 100644 index 0000000..04cf0d4 --- /dev/null +++ b/ghc-citeproc.changes @@ -0,0 +1,483 @@ +------------------------------------------------------------------- +Mon Jun 24 18:28:18 UTC 2024 - Peter Simons + +- Update citeproc to version 0.8.1.1. + ## 0.8.1.1 + + * Include `10/` prefix in short DOI links (#136). + + * Properly implement `demote-non-dropping-particle="sort-only"` (#141). + We had previously gotten sorting behavior right for this, but + not display behavior. + +------------------------------------------------------------------- +Thu Mar 30 17:06:11 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Wed Jan 18 17:30:25 UTC 2023 - Peter Simons + +- Update citeproc to version 0.8.1. + ## 0.8.1 + + * In Pandoc and CslJson CaseTransform, group punctuation in clusters (#127). + + * Fix sorting on dates (#126). Previously this broke for some styles, + e.g. apa.csl, which styles dates as MM/DD/YYYY, and would lead to + incorrect sorting of dates with months and/or days. + + * Add citation-key variable from citeId. This is a new addition in CSL 1.0.2. + + * Update locales from upstream. + + * Raise an error if multiple layout elements are present (#120). + + * Fix two test cases. They had illegal bibliography elements with + no layout children. + + * If there are multiple layout elements, only use the last one. + This can happen with CSL-M styles. The last layout should be + locale-unspecific. This change will prevent us from emitting + doubled citations or bibliographic references (see #120), + allowing more graceful handling of CSL-M styles, even though we + don't support CSL-M. + +------------------------------------------------------------------- +Thu Oct 6 02:54:13 UTC 2022 - Peter Simons + +- Update citeproc to version 0.8.0.2. + ## 0.8.0.2 + + * Fix missing locator after collapsing and grouping with year + suffix (#96). + + ## 0.8.0.1 + + * Fix disambiguation edge case (#116). We weren't properly + disambiguating when only one of two ambiguous names had a + subsequent citation. + + * Chicago page numbering fixes. + + * Update test suite form upstream. + + * Handle whole-citation links differently in `secondFieldAlign` (#113, + Benjamin Bray). + + * Require data-default >= 0.5.2 (#114, Bodigrim). + + ## 0.8 + + * Add `SubstitutedVal` constructor for `Val` [API change] (#101, #108). + This is used to track variables that are repressed due to substitution. + (We can't just delete them, because they still count when we have + "if" elements that check for a variable.) + + * Fix logic for including a group. A group with a text node and an + empty variable should count as empty. + + * CaseTransform: don't change words that are a mix of uppercase + and nonletters, like CRT1000. + + * Fix label with "page" variable (#107). + + * Fix error in test suite. We stripped indentation in the expected result + in some cases. + + * Update fr-FR locale from upstream. + +------------------------------------------------------------------- +Fri Jul 15 19:16:54 UTC 2022 - Peter Simons + +- Update citeproc to version 0.7 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat Apr 2 20:31:55 UTC 2022 - Peter Simons + +- Update citeproc to version 0.7. + ## 0.7 + + * Handle old term form `sub verbo` as if it is `sub-verbo` (the new form). + + * Update to latest locales in CSL repository. + + * Makefile: Fix update-locales target. + + * Keep explicit "et al." (#102, Albert Krewinkel). + + * Factor out `deleteSubstitutedVariables`. + + * Add any references in `citationItemData` to references. + + * Add `citationItemData` field to `CitationItem` [API change]. + This corresponds to the `itemData` that can appear + in the JSON representation of a citation item. + + * Add Ord, Eq instances for `Reference`, `DisambiguationData`, `Val` [API change]. + +------------------------------------------------------------------- +Wed Jan 12 07:51:24 UTC 2022 - Peter Simons + +- Update citeproc to version 0.6.0.1. + ## 0.6.0.1 + + * Ensure that position evaluates false inside bibliography (#99). + +------------------------------------------------------------------- +Mon Nov 1 08:31:08 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.6. + ## 0.6 + + * Add Term parameter to TagTerm [API change]. + + * Add TagPrefix, TagSuffix constructors to Tag [API change]. + + * Make sure that extracted AuthorOnly names have the correct + formatting (#55). + + * Do case-insensitive sorting, like Zotero (#91). + + * Ignore "ibid" entries in computing ambiguities. + + * Improved disambiguation for author-in-text citations. + + * In disambiguating, convert author-in-text to normal citations. + Otherwise we disambiguate incorrectly. + + * Fix title disambiguation with note style (#90). + Previously we'd been calculating ambiguities by generating + renderings for citation items independently of context. + This meant that we didn't detect ambiguities in "subsequent" + citations (which might e.g. just have an author). + + * Ensure we don't do collapsing of items across a prefix or suffix (#89). + If we have `[@doe99; for contrasting views see @smith33; @doe00]`, + we don't want to get collapsing to + `(Doe 1999, 2000; for contrasting views, see Smith 1933)`. + This isn't strictly by the spec, but it gives better results. + + * Allow collapsing after an initial prefix. + +------------------------------------------------------------------- +Sat Aug 21 16:27:59 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.5. + ## 0.5 + + * Add `linkBibliography` field to `CiteprocOptions` [API change]. + When this is set to True, we hyperlink bibliography entries according + to the draft of the CSL v1.02 spec (Appendix VI). When an entry has + a DOI, PMCID, PMID, or URL available but none of these are rendered + by the style, add a link to the title (or, if no title is present, + the whole entry), using the URL for the DOI, PMCID, PMID, or URL + (in that order of priority). (Benjamin Bray, #88.) + + * In generating citation labels, only use `issued` date. + Not, for example, `accessed` (#80). + + * Citeproc.Locale: export `lookupQuotes`. [API change] + + * Citeproc.Types: Add `localizeQuotes` method to CiteprocOutput class + [API change]. + + * Citeproc.CslJson, Citeproc.Pandoc: Implement `localizeQuotes`. + + * Citeproc: apply `localizeQuotes` after rendering. This ensures + that quotes are properly localized and flipflopped. Previously this + was done in `renderCslJson` (for CSL JSON) and in pandoc + (for Pandoc Inlines). It is more consistent to do this as part + of the rendering pipeline, in citeproc itself. + + * Citeproc.CslJson: Drop the Locale parameter from the signature of + `renderCslJson` [breaking API change]. It was only needed for quote + localization, which now occurs outside of this function. + + * Citeproc.Pandoc: use a Span with class csl-quoted for quotes, + rather than a Quoted inline. This way we can leave Quoted elements + passed in by pandoc alone, and we won't get strange effects like the + one described in #87 (where `"` behaves differently when in + a citation suffix). + + * Default to Shifted with `icu` flag (#83). This makes the library + behave similarly whether compiled with `icu` or with the default + `unicode-collation` and prevents test failures with `icu`. + + * Require recent text-icu with icu flag. + Older versions don't build with newer versions of icu4c. + + * Support links in CslJson (Benjamin Bray). Currently they are + only supported in rendering, not parsing (in support of #88). + + * Allow test cases to specify CiteprocOptions (Benjamin Bray). + + * Update locales from upstream. + + * Add new CSL tests to repository. + +------------------------------------------------------------------- +Mon Jul 19 07:06:10 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.4.1. + ## 0.4.1 + + * Change Pandoc `inNote` so it creates a `Span` with class `csl-note` + rather than a `Note`. This should make it easier to integrate + citations with ordinary notes in pandoc. + * Do not hyperlink author-only citations (#77). If we do this we get + two consecutive hyperlinks for author-in-text forms. + * `movePunctuationInsideQuotes`: only move `,` and `.`, not `?` and `!`, + as per the CSL spec. + +------------------------------------------------------------------- +Sat Jun 5 17:16:32 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.4.0.1. + ## 0.4.0.1 + + * Fix bug introduced by the fix to #61 (#74). + In certain circumstances, we could get doubled "et al.". + * Depend on unicode-collation unconditionally (#71). It is necessary + even when text-icu is used, because of Text.Collate.Lang. + * Rename tests in extra/ so they fall into categories. + +------------------------------------------------------------------- +Thu May 13 08:26:54 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.4. + ## 0.4 + + * We now use Lang from unicode-collation rather than defining our own. + The type constructor has changed, as has the signature of + parseLang. + * Use unicode-collation by default for more accurate sorting. + - text-icu will still be used if the icu flag is set. This may + give better performance, at the cost of depending on a large + C library. + - Change type of SortKeyValue so it doesn't embed Lang. [API change] + Instead, we now store a language-specific collator in the Eval Context. + - Move compSortKeyValues from Types to Eval. + * Add curly open quote to word splitters in normalizeSortKey. + * Improve date sorting: use the format YYYY0000 if no month, day, + and YYYYMM00 if no day when generating sort keys. + * Special treatment of literal "others" as last name in a list (#61). + When we convert bibtex/biblatex bibliographies, the form "and others" + yields a last name with nameLiteral = "others". We detect this and + generate a localized "and others" (et al). + * Make abbreviations case-insensitive (#45). + +------------------------------------------------------------------- +Sun Mar 14 22:18:46 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.9. + ## 0.3.0.9 + + * Implement `et-al-subsequent-min` and `et-al-subsequent-use-first` (#60). + +------------------------------------------------------------------- +Wed Mar 3 16:35:42 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.8. + ## 0.3.0.8 + + * In parsing abbreviations JSON, ignore top-level fields + besides "default" (#57), e.g. "info" which is used in Zotero's + default abbreviations file. + +------------------------------------------------------------------- +Tue Feb 2 09:34:13 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.7. + ## 0.3.0.7 + + * Remove check for ASCII in case transform code. + Previously we weren't doing case transform on words + containing non-ASCII characters. + +------------------------------------------------------------------- +Sun Jan 31 13:49:51 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.6. + ## 0.3.0.6 + + * Fix infinite loop in `fixPunct` (#49). In a few rare cases + `fixPunct` would hang. + +------------------------------------------------------------------- +Sun Jan 24 16:09:24 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.5. + ## 0.3.0.5 + + * Add a space between "no date" term and disambiguator + if the long form is used (#47). + +------------------------------------------------------------------- +Mon Jan 18 09:06:54 UTC 2021 - psimons@suse.com + +- Update citeproc to version 0.3.0.4. + ## 0.3.0.4 + + * Improve disambiguation code. Add type signatures, + move some functions to the top-level, and make the + logic clearer and more efficient. + * Re-render after each stage of ambiguity resolution + instead of relying on analysis of names and dates. + This is necessary especially for styles like + chicago-note-bibliography which use titles in + citations. Closes #44. No measurable + performance impact. + * Update test suite from upstream. + * Update `it-IT` locale. + +------------------------------------------------------------------- +Tue Dec 29 21:16:59 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.3.0.3. + ## 0.3.0.3 + + * Fix author-only citations (#43). We got bad results with some + styles when a reference had both an author and a translator. + + ## 0.3.0.2 + + * Don't use cite-group delimiter if ANY citation in group has + locator (#38). This seems to be citeproc.js's behavior and it gives + better results for chicago-author-date: we want both + `[@foo20; @foo21, p. 3]` and `[@foo20, p. 3; @foo21]` to produce + a semicolon separator, rather than a comma. + +------------------------------------------------------------------- +Sat Dec 19 14:46:02 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.3.0.1. + ## 0.3.0.1 + + * Better handle `initialize-with` that ends in a nonbreaking space. + In this case, citeproc should not add an additional space + or strip the nonbreaking space. Closes #37. + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Thu Dec 17 10:46:37 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.3. + ## 0.3 + + * Change `makeReferenceMap` to return a cleaned-up list of + references as well as a reference map. The cleanup-up list + removes references with duplicate ids. When there are multiple + references with the same id, the last one is included and + the others discarded. [API change] + +------------------------------------------------------------------- +Wed Dec 9 11:28:30 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.2.0.1. + ## 0.2.0.1 + + * FromJSON for Name: make straight quotes curly. + Otherwise nothing will do this, when we are decoding + JSON to (Reference a), a /= CslJson Text. + * Remove redundant pragmas and imports (Albert Krewinkel). + * Use custom prelude with GHC 8.6.* and older (Albert + Krewinkel). This adds support for GHC 8.0.x. + +------------------------------------------------------------------- +Thu Nov 19 19:50:28 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.2. + ## 0.2 + + * Remove `AfterOtherPunctuation` constructor from + `CaseTransformState` [API change]. + This gave bad results with things like parentheses (#27). + * Change `SortKeyValue` to include `Maybe Lang` [API change]. + This allows us to do locale-sensitive sorting (though this + won't matter much unless the `icu` flag is used). + * Add `Maybe Lang` parameter on `initialize` (since + capitalization can be locale-dependent). + * Add cabal.project.icu for building with icu lib. + * Add (unexported) Citeproc.Unicode compatibility module. + This allows us to use the same functions whether or not + the `icu` flag is used. + +------------------------------------------------------------------- +Sat Nov 7 15:34:56 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.1.1.1. + ## 0.1.1.1 + + * Pay attention to citationNoteNumber in computing position. + In calculating whether an item is alone in its citation, + we need to take into account citationNoteNumber, since + two citations may occur in the same note and they should + not be ranked "alone." See jgm/pandoc#6813, + citation-style-language/documentation#121 + + ## 0.1.1 + + * Ensure that uncited references are sorted last + when it comes to assigning citation numbers (#22). + * Remove "capitalize initial term" feature. This is required by + the test suite but not the spec. It makes more sense for us to do + this capitalization in the calling program, e.g. pandoc. For some + citations in note styles may already be in notes and thus not + trigger separate footnotes. If initial terms had been capitalized, + we'd need to uncapitalize, and that is hard to do reliably. + * Treat empty `FancyVal` as an empty value. + * Derive Functor, Traversable, Foldable for Result [API change]. + +------------------------------------------------------------------- +Fri Oct 23 19:25:24 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.1.0.3. + ## 0.1.0.3 + + * Better handling of author-only/suppress-author. + Previously all results of "names" elements were treated + as authors. But only the first should be (generally this + is the author, but it could be the editor of an edited + volume with no author). See jgm/pandoc#6765. + +------------------------------------------------------------------- +Fri Oct 16 02:00:51 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.1.0.2. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/citeproc-0.1.0.2/src/CHANGELOG.md + +------------------------------------------------------------------- +Thu Oct 15 02:01:12 UTC 2020 - psimons@suse.com + +- Update citeproc to version 0.1.0.1. + ## 0.1.0.1 + + * Fix sorting when no `` element given. The spec says: + "In the absence of cs:sort, cites and bibliographic entries appear in + the order in which they are cited." This affects IEEE in particular. See + jgm/pandoc#6741. + + * Improve `sameNames` and citation grouping. Preivously if a citation + item had a prefix, it would not be grouped with following citations. + See jgm/pandoc#6722 for discussion. + + * Remove unneeded `hasNoSuffix` check in `sameNames`. + + * Remove unneeded import + + * `citeproc` executable: strip BOM before parsing style (#18). + +------------------------------------------------------------------- +Tue Oct 13 07:03:02 UTC 2020 - psimons@suse.com + +- Add citeproc at version 0.1. + diff --git a/ghc-citeproc.spec b/ghc-citeproc.spec new file mode 100644 index 0000000..d347c29 --- /dev/null +++ b/ghc-citeproc.spec @@ -0,0 +1,141 @@ +# +# spec file for package ghc-citeproc +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name citeproc +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.8.1.1 +Release: 0 +Summary: Generates citations and bibliography from CSL styles +License: BSD-2-Clause +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-prof +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-case-insensitive-devel +BuildRequires: ghc-case-insensitive-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-data-default-devel +BuildRequires: ghc-data-default-prof +BuildRequires: ghc-file-embed-devel +BuildRequires: ghc-file-embed-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-pandoc-types-devel +BuildRequires: ghc-pandoc-types-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-safe-devel +BuildRequires: ghc-safe-prof +BuildRequires: ghc-scientific-devel +BuildRequires: ghc-scientific-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-unicode-collation-devel +BuildRequires: ghc-unicode-collation-prof +BuildRequires: ghc-uniplate-devel +BuildRequires: ghc-uniplate-prof +BuildRequires: ghc-vector-devel +BuildRequires: ghc-vector-prof +BuildRequires: ghc-xml-conduit-devel +BuildRequires: ghc-xml-conduit-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-Diff-devel +BuildRequires: ghc-Diff-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-pretty-devel +BuildRequires: ghc-pretty-prof +BuildRequires: ghc-timeit-devel +BuildRequires: ghc-timeit-prof +%endif + +%description +Citeproc parses CSL style files and uses them to generate a list of formatted +citations and bibliography entries. For more information about CSL, see +. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md README.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog