[pandoc-citeproc] import (#1098854)

Jens Petersen petersen at fedoraproject.org
Wed Jul 16 03:36:18 UTC 2014


commit 0d6ad8a8660b5765a400291e83f914b6da1a5663
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jul 16 12:36:38 2014 +0900

    import (#1098854)

 .gitignore           |    1 +
 pandoc-citeproc.spec |  137 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 139 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..753cb1f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pandoc-citeproc-0.3.1.tar.gz
diff --git a/pandoc-citeproc.spec b/pandoc-citeproc.spec
new file mode 100644
index 0000000..26bcbbd
--- /dev/null
+++ b/pandoc-citeproc.spec
@@ -0,0 +1,137 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name pandoc-citeproc
+
+# no useful debuginfo for Haskell packages without C sources
+%global debug_package %{nil}
+
+Name:           %{pkg_name}
+Version:        0.3.1
+Release:        1%{?dist}
+Summary:        Citeproc support for pandoc
+
+License:        BSD
+URL:            http://hackage.haskell.org/package/%{name}
+Source0:        http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros
+# Begin cabal-rpm deps:
+BuildRequires:  chrpath
+BuildRequires:  ghc-HTTP-devel
+BuildRequires:  ghc-aeson-devel
+BuildRequires:  ghc-aeson-pretty-devel
+BuildRequires:  ghc-attoparsec-devel
+BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-containers-devel
+BuildRequires:  ghc-directory-devel
+BuildRequires:  ghc-filepath-devel
+BuildRequires:  ghc-hs-bibutils-devel
+BuildRequires:  ghc-mtl-devel
+BuildRequires:  ghc-network-devel
+BuildRequires:  ghc-old-locale-devel
+BuildRequires:  ghc-pandoc-devel
+BuildRequires:  ghc-pandoc-types-devel
+BuildRequires:  ghc-parsec-devel
+BuildRequires:  ghc-process-devel
+BuildRequires:  ghc-rfc5051-devel
+BuildRequires:  ghc-split-devel
+BuildRequires:  ghc-syb-devel
+BuildRequires:  ghc-tagsoup-devel
+BuildRequires:  ghc-temporary-devel
+BuildRequires:  ghc-texmath-devel
+BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-time-devel
+BuildRequires:  ghc-vector-devel
+BuildRequires:  ghc-xml-devel
+BuildRequires:  ghc-yaml-devel
+# End cabal-rpm deps
+
+%description
+The pandoc-citeproc library exports functions for using the citeproc system
+with pandoc. It relies on citeproc-hs, a library for rendering bibliographic
+reference citations into a variety of styles using a macro language called
+Citation Style Language (CSL). More details on CSL can be found here:
+<http://citationstyles.org/>.
+
+Currently this package includes a copy of the citeproc-hs code. When
+citeproc-hs is updated to be compatible, this package will simply depend on
+citeproc-hs.
+
+This package also contains an executable: pandoc-citeproc, which works as a
+pandoc filter (pandoc >= 1.12), and also has a mode for converting
+bibliographic databases a YAML format suitable for inclusion in pandoc YAML
+metadata.
+
+
+%package -n ghc-%{name}
+Summary:        Haskell %{name} library
+
+%description -n ghc-%{name}
+This package provides the Haskell %{name} shared library.
+
+
+%package -n ghc-%{name}-devel
+Summary:        Haskell %{name} library development files
+Provides:       ghc-%{name}-static = %{version}-%{release}
+Requires:       ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires:       ghc-%{name}%{?_isa} = %{version}-%{release}
+
+%description -n ghc-%{name}-devel
+This package provides the Haskell %{name} library development files.
+
+
+%prep
+%setup -q
+
+cabal-tweak-flag hexpat False
+
+
+%build
+# avoid "ghc: out of memory" for Bibtex.hs
+cabal_configure_extra_options=--ghc-option="-O1"
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+
+%ghc_fix_dynamic_rpath %{name}
+
+
+%post -n ghc-%{name}-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-%{name}-devel
+%ghc_pkg_recache
+
+
+%files
+%doc LICENSE
+%doc README.md
+%{_bindir}/%{name}
+%{_datadir}/%{name}-%{version}
+%{_mandir}/man1/%{name}.1*
+
+
+%files -n ghc-%{name} -f ghc-%{name}.files
+%doc LICENSE
+
+
+%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
+%doc README.md
+
+
+%changelog
+* Fri May  9 2014 Jens Petersen <petersen at redhat.com> - 0.3.1-1
+- update to 0.3.1
+- build with -O1 to avoid exhausting memory in koji
+
+* Thu May  1 2014 Jens Petersen <petersen at redhat.com> - 0.3.0.1-1
+- use xml instead of hexpat
+
+* Wed Jan 22 2014 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 0.3.0.1
+- spec file generated by cabal-rpm-0.8.8
diff --git a/sources b/sources
index e69de29..f5a9529 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5cb813843d9428c7b7d46b479de66361  pandoc-citeproc-0.3.1.tar.gz


More information about the scm-commits mailing list