%define ghc_ver %(ghc --numeric-version) %define pkg_name %(echo %name | sed "s|^ghc-||") Name: pandoc-cli Version: 0.1.1.1 Release: 1mamba Summary: GHC pandoc-cli: Conversion between documentation formats Group: Development/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://hackage.haskell.org/package/%{pkg_name} Source: https://hackage.haskell.org/package/pandoc-cli-%{version}/pandoc-cli-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgmp-devel BuildRequires: libnuma-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: ghc BuildRequires: ghc-rpm-macros BuildRequires: ghc-pandoc-devel Provides: pandoc Obsoletes: pandoc <= 1.13.2-1mamba %description %{summary}. %prep %setup -q -n pandoc-cli-%{version} %build %ghc_bin_build %install %ghc_bin_install rm -f %{buildroot}%{_ghclicensedir}/%{name}/COPYING.md %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/pandoc %license COPYING.md %changelog * Sun Dec 03 2023 Silvan Calarco 0.1.1.1-1mamba - package created using the webbuild interface