%global pkg_name hashmap %global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name} %global common_summary Haskell %{pkg_name} library %global common_description A %{pkg_name} library for Haskell. Summary: addme Name: %{pkg_name} Version: 1.0.0.2 Release: 1%{?dist} License: BSD3 Url: http://hackage.haskell.org/packages/archive/%{pkg_name} Source: http://hackage.haskell.org/packages/archive/hashmap/%{version}/%{pkg_name}-%{version}.tar.gz Group: Applications/Internet ExclusiveArch: %{ghc_arches} BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} #BuildRequires: ghc-parallel-devel ghc-parsec-devel ghc-containers-devel #BuildRequires: ghc-unordered-containers-devel %description add me %prep %setup -q echo " ghc-options: -XStandaloneDeriving -XDeriveDataTypeable" >> hashmap.cabal %build #%cabal_configure --ghc -p #%cabal build #%cabal haddock #%ghc_gen_scripts %ghc_lib_build %install #%cabal_install #%ghc_install_scripts %ghc_lib_install # library subpackage %ghc_package %ghc_description # devel subpackage %ghc_devel_package %ghc_devel_description %ghc_devel_post_postun %files %doc LICENSE #%attr(755,root,root) %{_bindir}/%{name} %ghc_files LICENSE #%post -n ghc-%{pkg_name} #%ghc_register_pkg #%preun -n ghc-%{pkg_name} #if [ "$1" -eq 0 ] ; then #%ghc_unregister_pkg #fi %changelog * Sat Oct 27 2012 Paul Wouters - 0.0.2-1 - Initial package