%define _prefix /usr/share/ghc %define debug_package %{nil} Name: ghc-bin Version: 9.0.2 Release: 1%{?dist} Summary: Glasgow Haskell Compiler version used to bootstrap GHC from sources Group: Development/Other URL: https://www.haskell.org/ghc/ Source0: https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-i386-deb9-linux.tar.xz Source1: https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-x86_64-deb10-linux.tar.xz Source2: https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-aarch64-deb10-linux.tar.xz License: BSD BuildRequires: glibc-devel BuildRequires: libffi-devel BuildRequires: libgmp-devel BuildRequires: libncurses-devel BuildRequires: pkgconfig(numa) Provides: ghc-bootstrap-compiler Obsoletes: ghc-bootstrap-compiler < 9 #BuildRequires: libgmp3 %description Glasgow Haskell Compiler version able to bootstrap GHC from sources. It is only needed the first time to bootstrap the ghc package. %prep %setup -q -c -T %global __provides_exclude_from ^.*$ %global __requires_exclude ^.*libHS.*|libtinfo.so.6*$ %ifarch %{ix86} tar xf %{SOURCE0} %endif %ifarch x86_64 tar xf %{SOURCE1} %endif %ifarch aarch64 tar xf %{SOURCE2} %endif mv ghc-%{version}*/* . %build ./configure \ --prefix=%{_prefix} %install %make_install rm -rf %{buildroot}%{_datadir}/doc/ghc rm -f %{buildroot}%{_mandir}/man1/ghc.1* %files %{_bindir}/* %dir %{_prefix}/lib/ghc-%{version} %{_prefix}/lib/ghc-%{version}/* %dir %{_datadir}/doc/ghc-%{version} %dir %{_datadir}/doc/ghc-%{version}/html %{_datadir}/doc/ghc-%{version}/html/* %{_datadir}/doc/ghc-%{version}/*.pdf