Compare commits
12 Commits
Author | SHA256 | Date | |
---|---|---|---|
21e7ead830 | |||
1937a10955 | |||
b6d50a79d4 | |||
610bcd5e8d | |||
997909a008 | |||
cb46f855cb | |||
b9454c3ef8 | |||
|
bca5ea1a65 | ||
|
56b5918143 | ||
923b05e672 | |||
c6a43ed887 | |||
c1d1d0e2f1 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4fe805629b548884e9b2f59492621823fd928d8a5b4125b6cfd9571edaebf341
|
||||
size 551001
|
3
citeproc-0.9.0.1.tar.gz
Normal file
3
citeproc-0.9.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b97ed54abdca1312dbd9caab3cb6284059a7d3f56ef16556b95af3784f6b2fe8
|
||||
size 550644
|
175
citeproc.cabal
175
citeproc.cabal
@@ -1,175 +0,0 @@
|
||||
cabal-version: 2.2
|
||||
name: citeproc
|
||||
version: 0.8.1.1
|
||||
x-revision: 1
|
||||
synopsis: Generates citations and bibliography from CSL styles.
|
||||
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
|
||||
<https://citationstyles.org/>.
|
||||
license: BSD-2-Clause
|
||||
license-file: LICENSE
|
||||
author: John MacFarlane
|
||||
maintainer: jgm@berkeley.edu
|
||||
copyright: 2020 John MacFarlane
|
||||
category: Text
|
||||
build-type: Simple
|
||||
extra-doc-files: README.md
|
||||
, CHANGELOG.md
|
||||
extra-source-files: stack.yaml
|
||||
cabal.project
|
||||
locales/*.xml
|
||||
locales/locales.json
|
||||
man/citeproc.1.md
|
||||
man/citeproc.1
|
||||
test/NOTES.md
|
||||
test/csl/*.txt
|
||||
test/extra/*.txt
|
||||
test/overrides/*.txt
|
||||
tested-with: GHC == 8.0.2, GHC == 8.2.2,
|
||||
GHC == 8.4.4, GHC == 8.6.5,
|
||||
GHC == 8.8.4, GHC == 8.10.7,
|
||||
GHC == 9.0.2, GHC == 9.2.2
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/jgm/citeproc.git
|
||||
|
||||
flag icu
|
||||
description: Use Haskell bindings to the ICU library
|
||||
default: False
|
||||
|
||||
flag executable
|
||||
description: Build citeproc executable
|
||||
default: False
|
||||
|
||||
common hie-options
|
||||
if impl(ghc >= 8.8)
|
||||
ghc-options: -fwrite-ide-info -hiedir=.hie
|
||||
|
||||
library
|
||||
import: hie-options
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Citeproc
|
||||
Citeproc.Types
|
||||
Citeproc.Locale
|
||||
Citeproc.Style
|
||||
Citeproc.CslJson
|
||||
Citeproc.Pandoc
|
||||
Citeproc.Eval
|
||||
Citeproc.CaseTransform
|
||||
other-modules: Citeproc.Element
|
||||
Citeproc.Data
|
||||
Citeproc.Unicode
|
||||
|
||||
build-depends: base >= 4.8 && < 5
|
||||
, safe
|
||||
, bytestring
|
||||
, text
|
||||
, containers >= 0.6.0.1 && < 0.8
|
||||
, transformers >= 0.5.6 && < 0.7
|
||||
, case-insensitive >= 1.2 && < 1.3
|
||||
, vector
|
||||
, scientific
|
||||
, uniplate
|
||||
, xml-conduit
|
||||
, attoparsec
|
||||
, data-default >= 0.5.2
|
||||
, aeson
|
||||
, filepath
|
||||
, file-embed
|
||||
, pandoc-types >= 1.22 && < 1.24
|
||||
, unicode-collation >= 0.1.3 && < 0.2
|
||||
-- , pretty-show
|
||||
if flag(icu)
|
||||
build-depends: text-icu >= 0.7.1.0
|
||||
|
||||
ghc-options: -Wall
|
||||
-Wincomplete-record-updates
|
||||
-Wcompat
|
||||
-Widentities
|
||||
-Wredundant-constraints
|
||||
|
||||
if impl(ghc >= 8.2)
|
||||
ghc-options: -Wcpp-undef
|
||||
if impl(ghc >= 8.4)
|
||||
ghc-options: -Wincomplete-uni-patterns
|
||||
-Widentities
|
||||
-Werror=missing-home-modules
|
||||
-fhide-source-paths
|
||||
|
||||
if impl(ghc < 8.8)
|
||||
build-depends: base-compat >= 0.10
|
||||
hs-source-dirs: prelude
|
||||
other-modules: Prelude
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
executable citeproc
|
||||
import: hie-options
|
||||
hs-source-dirs: app
|
||||
main-is: Main.hs
|
||||
build-depends: base >= 4.8 && < 5
|
||||
, citeproc
|
||||
, bytestring
|
||||
, text
|
||||
, aeson
|
||||
, aeson-pretty
|
||||
|
||||
ghc-options: -Wall
|
||||
-Wincomplete-record-updates
|
||||
-Wcompat
|
||||
-Widentities
|
||||
-Wredundant-constraints
|
||||
-optP-Wno-nonportable-include-path
|
||||
if impl(ghc >= 8.2)
|
||||
ghc-options: -Wcpp-undef
|
||||
if impl(ghc >= 8.4)
|
||||
ghc-options: -Wincomplete-uni-patterns
|
||||
-Widentities
|
||||
-fhide-source-paths
|
||||
default-language: Haskell2010
|
||||
if flag(executable)
|
||||
buildable: True
|
||||
else
|
||||
buildable: False
|
||||
|
||||
test-suite spec
|
||||
import: hie-options
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
main-is: Spec.hs
|
||||
|
||||
build-depends: base >= 4.8 && < 5
|
||||
, citeproc
|
||||
, bytestring
|
||||
, text
|
||||
, containers
|
||||
, directory
|
||||
, transformers
|
||||
, mtl
|
||||
, timeit
|
||||
, Diff >= 0.4
|
||||
, pretty
|
||||
, filepath
|
||||
, aeson
|
||||
|
||||
|
||||
ghc-options: -Wall
|
||||
-threaded
|
||||
-rtsopts
|
||||
-with-rtsopts=-N
|
||||
-Wincomplete-record-updates
|
||||
-Wcompat
|
||||
-Widentities
|
||||
-Wredundant-constraints
|
||||
if impl(ghc >= 8.2)
|
||||
ghc-options: -Wcpp-undef
|
||||
if impl(ghc >= 8.4)
|
||||
ghc-options: -Wincomplete-uni-patterns
|
||||
-Widentities
|
||||
-Werror=missing-home-modules
|
||||
-fhide-source-paths
|
||||
|
||||
default-language: Haskell2010
|
||||
|
@@ -1,3 +1,64 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 12 23:06:21 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update citeproc to version 0.9.0.1.
|
||||
## 0.9.0.1
|
||||
|
||||
* Fix `readAsInt` so it handles negative numbers in strings.
|
||||
`readAsInt` attempts to read strings as integers, but previously
|
||||
it didn't properly handle strings like `"-387"`, which are
|
||||
sometimes used in bibliographies. See jgm/pandoc#10839.
|
||||
|
||||
## 0.9
|
||||
|
||||
* Fix handling of `type` conditions in `if` (#151).
|
||||
In an `if` element with `type="article-journal chapter"`, citeproc
|
||||
previously treated this as two separate conditions
|
||||
(type=article-journal, type=chapter). But it seems that the
|
||||
intended behavior is to treat it as a single condition that
|
||||
succeeds if any of the listed types match. The difference between
|
||||
current and intended behavior comes out when `match="all"` is used;
|
||||
this will always fail when `type` contains more than one type.
|
||||
|
||||
To fix this, we change the `HasType` constructor on `Condition`
|
||||
so that it takes a list of Texts rather than single one [API change],
|
||||
and we populate it with the result of splitting the argument
|
||||
of `type`. In Eval, we change the clause for the HasType condition
|
||||
so that it succeeds if any of the types in the list match.
|
||||
|
||||
* Add `--link-citations` and `--link-bibliography` options to binary
|
||||
(#142, Daphne Preston-Kendal).
|
||||
|
||||
* Bump containers upper bound.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 9 08:05:28 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update citeproc to version 0.8.1.3.
|
||||
## 0.8.1.3
|
||||
|
||||
* Don't add SubstitutedVal to variables that were empty (#148).
|
||||
This fixes a bug which caused `variable=` tests to succeed
|
||||
in some cases where they should have failed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 20 16:59:45 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update citeproc to version 0.8.1.2.
|
||||
## 0.8.1.2
|
||||
|
||||
* Allow containers 0.7 (#143)
|
||||
|
||||
* Update tests to use Diff >= 1.0 (#146).
|
||||
|
||||
* Fix `dropTextWhile` and `dropTextWhileEnd` in Citeproc.Pandoc.
|
||||
Ensure that they treat SoftBreak like Space (jgm/pandoc#10451).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 07:54:13 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Enable building of the citeproc executable.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 15 06:38:18 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghc-citeproc
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,15 +20,16 @@
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
%bcond_with tests
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.8.1.1
|
||||
Version: 0.9.0.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
|
||||
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-aeson-devel
|
||||
BuildRequires: ghc-aeson-pretty-devel
|
||||
BuildRequires: ghc-aeson-pretty-prof
|
||||
BuildRequires: ghc-aeson-prof
|
||||
BuildRequires: ghc-attoparsec-devel
|
||||
BuildRequires: ghc-attoparsec-prof
|
||||
@@ -54,6 +55,8 @@ BuildRequires: ghc-safe-prof
|
||||
BuildRequires: ghc-scientific-devel
|
||||
BuildRequires: ghc-scientific-prof
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-icu-devel
|
||||
BuildRequires: ghc-text-icu-prof
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-transformers-prof
|
||||
@@ -112,9 +115,9 @@ This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%define cabal_configure_options -f+executable
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
@@ -131,6 +134,7 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
%{_bindir}/citeproc
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc CHANGELOG.md README.md
|
||||
|
Reference in New Issue
Block a user