%define ghc_ver %(/usr/bin/ghc --numeric-version) %define pkgname highlighting-kate Name: ghc-highlighting-kate Version: 0.6.4 Release: 1mamba Summary: GHC library: A syntax highlighting library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://hackage.haskell.org/package/%{pkgname} Source: http://hackage.haskell.org/packages/archive/highlighting-kate/%{version}/highlighting-kate-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: ghc BuildRequires: ghc-regex-pcre-builtin Requires: ghc-regex-pcre-builtin Requires: ghc = %{ghc_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description highlighting-kate is a syntax highlighting library with support for nearly one hundred languages. The syntax parsers are automatically generated from Kate syntax descriptions (http://kate-editor.org/), so any syntax supported by Kate can be added. An (optional) command-line program is provided, along with a utility for generating new parsers from Kate XML syntax descriptions. %prep %setup -q -n highlighting-kate-%{version} %build runghc Setup.lhs configure -v2 \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --docdir=%{_docdir}/%{name}-%{version} runghc Setup.lhs build runghc Setup.lhs haddock --executable --html-location=URL --hyperlink-source %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" runghc Setup.lhs copy --destdir=%{buildroot} runghc Setup.lhs 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 * Fri Feb 05 2021 Automatic Build System 0.6.4-1mamba - automatic version update by autodist * Mon Apr 13 2015 Davide Madrisan 0.5.13-1mamba - update to 0.5.12 * Sun Sep 08 2013 Silvan Calarco 0.5.5-1mamba - package created by silvan using the webbuild interface