70 lines
2.4 KiB
RPMSpec
70 lines
2.4 KiB
RPMSpec
%define ghc_ver %(/usr/bin/ghc --numeric-version)
|
|
%define pkgname pandoc-types
|
|
|
|
Name: ghc-pandoc-types
|
|
Version: 1.12.4.2
|
|
Release: 1mamba
|
|
Summary: GHC library: Types for representing a structured document
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
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
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n pandoc-types-%{version}
|
|
|
|
%build
|
|
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"
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || :
|
|
|
|
%preun
|
|
ghc-pkg unregister %{pkgname}-%{version} &>/dev/null || :
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_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 <davide.madrisan@gmail.com> 1.12.4.2-1mamba
|
|
- update to 1.12.4.2
|
|
|
|
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-1mamba
|
|
- package created by silvan using the webbuild interface
|