diff --git a/README.md b/README.md index d6d67d8..e7645d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # 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. + diff --git a/ghc-pandoc-types.spec b/ghc-pandoc-types.spec new file mode 100644 index 0000000..811bc95 --- /dev/null +++ b/ghc-pandoc-types.spec @@ -0,0 +1,63 @@ +%define ghc_ver %(ghc --version | sed "s|.*version ||") +%define pkgname %(echo %name | sed "s|^ghc-||") +Name: ghc-pandoc-types +Version: 1.10 +Release: 1mamba +Summary: Pandoc type definitions ghc library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://hackage.haskell.org/package/%{pkgname} +Source: http://hackage.haskell.org/packages/archive/pandoc-types/%{version}/pandoc-types-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ghc +BuildRequires: ghc-aeson +Requires: ghc-aeson +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. + +%prep +%setup -q -n pandoc-types-%{version} + +%build +runghc Setup.hs configure \ +--prefix=%{_prefix} --libdir=%{_libdir} + +runghc Setup.hs build + +%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" + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true +: + +%preun +ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true +: + +%files +%defattr(-,root,root) +%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} +%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* +%{_datadir}/doc/%{pkgname}-%{version}/COPYING + +%changelog +* Sun Sep 08 2013 Silvan Calarco 1.10-1mamba +- package created by silvan using the webbuild interface