diff --git a/README.md b/README.md index e7645d6..dc32ed3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ # ghc-pandoc-types -Text.Pandoc.Definition defines the Pandoc data structure, which is used by pandoc to represent structured documents. This module used to live in the pandoc package, but starting with pandoc 1.7, it has been split off, so that other packages can use it without drawing in all of pandoc's dependencies, and pandoc itself can depend on packages (like citeproc-hs) that use them. -Text.Pandoc.Builder provides functions for building up Pandoc structures programmatically. -Text.Pandoc.Generic provides generic functions for manipulating Pandoc documents. -Text.Pandoc.Walk provides faster, nongeneric functions for manipulating Pandoc documents. -Text.Pandoc.JSON provides functions for serializing and deserializing a Pandoc structure to and from JSON. +Text.Pandoc.Definition defines the Pandoc data structure, which is used by pandoc to represent structured documents. +This module used to live in the pandoc package, but starting with pandoc 1.7, it has been split off, so that other packages can use it without drawing in all of pandoc's dependencies, and pandoc itself can depend on packages (like citeproc-hs) that use them. diff --git a/ghc-pandoc-types.spec b/ghc-pandoc-types.spec index 811bc95..b2651a9 100644 --- a/ghc-pandoc-types.spec +++ b/ghc-pandoc-types.spec @@ -1,9 +1,10 @@ -%define ghc_ver %(ghc --version | sed "s|.*version ||") -%define pkgname %(echo %name | sed "s|^ghc-||") +%define ghc_ver %(/usr/bin/ghc --numeric-version) +%define pkgname pandoc-types + Name: ghc-pandoc-types -Version: 1.10 +Version: 1.12.4.2 Release: 1mamba -Summary: Pandoc type definitions ghc library +Summary: GHC library: Types for representing a structured document Group: System/Libraries Vendor: openmamba Distribution: openmamba @@ -15,49 +16,54 @@ License: BSD ## AUTOBUILDREQ-END BuildRequires: ghc BuildRequires: ghc-aeson +BuildRequires: ghc-deepseq-generics Requires: ghc-aeson +Requires: ghc-deepseq-generics Requires: ghc = %{ghc_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description -Text.Pandoc.Definition defines the Pandoc data structure, which is used by pandoc to represent structured documents. This module used to live in the pandoc package, but starting with pandoc 1.7, it has been split off, so that other packages can use it without drawing in all of pandoc's dependencies, and pandoc itself can depend on packages (like citeproc-hs) that use them. -Text.Pandoc.Builder provides functions for building up Pandoc structures programmatically. -Text.Pandoc.Generic provides generic functions for manipulating Pandoc documents. -Text.Pandoc.Walk provides faster, nongeneric functions for manipulating Pandoc documents. -Text.Pandoc.JSON provides functions for serializing and deserializing a Pandoc structure to and from JSON. +Text.Pandoc.Definition defines the Pandoc data structure, which is used by pandoc to represent structured documents. +This module used to live in the pandoc package, but starting with pandoc 1.7, it has been split off, so that other packages can use it without drawing in all of pandoc's dependencies, and pandoc itself can depend on packages (like citeproc-hs) that use them. %prep %setup -q -n pandoc-types-%{version} %build -runghc Setup.hs configure \ ---prefix=%{_prefix} --libdir=%{_libdir} +runghc Setup.hs configure -v2 \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libexecdir} \ + --docdir=%{_docdir}/%{name}-%{version} runghc Setup.hs build +runghc Setup.hs haddock --executable --html-location=URL --hyperlink-source %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" runghc Setup.hs copy --destdir=%{buildroot} runghc Setup.hs register \ ---gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" + --gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: +ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || : %preun -ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: +ghc-pkg unregister %{pkgname}-%{version} &>/dev/null || : %files %defattr(-,root,root) -%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} -%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* -%{_datadir}/doc/%{pkgname}-%{version}/COPYING +%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} +%dir %{_docdir}/%{name}-%{version} +%{_docdir}/%{name}-%{version}/LICENSE +%{_docdir}/%{name}-%{version}/html %changelog +* Mon Apr 13 2015 Davide Madrisan 1.12.4.2-1mamba +- update to 1.12.4.2 + * Sun Sep 08 2013 Silvan Calarco 1.10-1mamba - package created by silvan using the webbuild interface