%define ghc_ver %(ghc --version | sed "s|.*version ||") %define pkg_name %(echo %name | sed "s|^ghc-||") Name: ghc-hexpat Version: 0.20.13 Release: 1mamba Summary: A general purpose Haskell XML library using Expat to do its parsing Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://hackage.haskell.org/package/%{pkgname} Source: http://hackage.haskell.org/packages/archive/hexpat/%{version}/hexpat-%{version}.tar.gz Patch0: ghc-hexpat-0.20.13-ghc-9.4.8.patch License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: ghc-List-devel BuildRequires: ghc-libs BuildRequires: ghc-utf8-string-devel BuildRequires: glibc-devel BuildRequires: libexpat-devel BuildRequires: libgmp-devel ## AUTOBUILDREQ-END BuildRequires: ghc >= 9.4.8 Requires: ghc = %{ghc_ver} %description This package provides a general purpose Haskell XML library using Expat to do its parsing (http://expat.sourceforge.net/ - a fast stream-oriented XML parser written in C). It is extensible to any string type, with String, ByteString and Text provided out of the box. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. %endif %prep %setup -q -n hexpat-%{version} %patch 0 -p1 %build %ghc_lib_build %install %ghc_lib_install rm -f %{buildroot}%{_ghclicensedir}/%{name}/LICENSE %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f %{name}.files %defattr(-,root,root) %license LICENSE %files devel -f %{name}-devel.files %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE %endif %changelog * Sat Dec 02 2023 Automatic Build System 0.20.13-1mamba - automatic version update by autodist * Sun Sep 08 2013 Silvan Calarco 0.20.3-1mamba - package created by silvan using the webbuild interface