%define ghc_ver %(ghc --numeric-version) %define pkgname blaze-markup Name: ghc-blaze-markup Version: 0.8.2.8 Release: 1mamba Epoch: 1 Summary: GHC library: A blazingly fast markup combinator library for Haskell Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://hackage.haskell.org/package/%{pkgname} Source: http://hackage.haskell.org/packages/archive/blaze-markup/%{version}/blaze-markup-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN ## note: run 'autospec -u -a6 ghc-blaze-markup' to get the list of build requirements. ## AUTOBUILDREQ-END BuildRequires: ghc BuildRequires: ghc-blaze-builder Requires: ghc = %{ghc_ver} %description Core modules of a blazingly fast markup combinator library for the Haskell programming language. The Text.Blaze module is a good starting point, as well as this tutorial: http://jaspervdj.be/blaze/tutorial.html. %prep %setup -q -n blaze-markup-%{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 %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/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 * Fri Mar 05 2021 Automatic Build System 0.8.2.8-1mamba - automatic version update by autodist * Thu Feb 04 2021 Automatic Build System 0.8.2.7-1mamba - automatic version update by autodist * Sun Apr 12 2015 Davide Madrisan 0.6.3.0-1mamba - update to 0.6.3.0 * Sun Sep 08 2013 Silvan Calarco 0.5.1.5-1mamba - package created by silvan using the webbuild interface