# # TODO: # - hmake tries to call `ghc-pkg -l` (instead of `ghc list`) and # `ghc --show-package=X` instead of `ghc list X`). It also calls # with the --field=import_dirs option, which doesn't exist anymore. # In short it does not work/build with ghc 6.10 # # Conditional build: %bcond_with nhc # build with nhc98, not ghc # Summary: hmake - a compilation manager for Haskell programs Summary(pl.UTF-8): Program zarządzający kompilacją programów w Haskellu Name: hmake Version: 3.10 Release: 5 License: Free Group: Development/Languages Source0: http://www.haskell.org/hmake/%{name}-%{version}.tar.gz # Source0-md5: 32c8fea53feaa9b2ead1622609ec052a Patch0: %{name}-uname.patch Patch1: %{name}-no_spaces.patch URL: http://www.haskell.org/hmake/ BuildRequires: ed %{!?with_nhc:BuildRequires: ghc} BuildRequires: gmp-devel BuildRequires: ncurses-devel %{?with_nhc:BuildRequires: nhc98} BuildRequires: readline-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description hmake is a make(1) like command for compiling Haskell programs. Dependencies are automatically extracted from the source files; there is no need to construct or maintain a Makefile. Hmake interactive, or hi for short, is an interpreter-like environment that you can wrap over any common Haskell compiler to achieve an interactive development style rather like Hugs. %description -l pl.UTF-8 hmake jest poleceniem podobnym do make(1) przeznaczonym do kompilowania programów w Haskellu. Zależności są automatycznie wyciągane z plików źródłowych; nie trzeba tworzyć ani nadzorować Makefile. Hmake interactive (w skrócie hi) jest interaktywnym, podobnym do interpretera, środowiskiem, które można używać z dowolnym kompilatorem Haskella aby dostać interaktywne środowisko podobne do Hugs. %prep %setup -q %patch0 -p1 %patch1 -p1 %build ./configure \ --prefix=%{_prefix} \ --libdir=%{_libdir}/%{name} \ --mandir=%{_mandir}/man1 \ %{!?with_nhc:--buildwith=ghc} \ %{?with_nhc:--buildwith=nhc98} \ --buildopts="-O" %{__make} \ OPT="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT ./configure \ --install \ --libdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \ --prefix=$RPM_BUILD_ROOT%{_prefix} \ --mandir=$RPM_BUILD_ROOT%{_mandir}/man1 %{__make} install # correct hardcoded build-root path in some scripts for f in $RPM_BUILD_ROOT%{_bindir}/{hi,hmake} ; do ed -s $f <