%global pkg_name implicitcad %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: 0.0.2 Release: 1%{?dist} License: GPLv2 Url: https://github.com/colah/ImplcitCAD Source: http://fixme/%{name}/%{name}-%{version}.tar.gz Source1: implicitcad-0.0.2.conf Source2: ghc-implicitcad.files Patch1: implicitcad-0.0.2-noplugin.patch Patch2: implicitcad-0.0.2-docrip.patch 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 %patch1 -p1 %patch2 -p1 -R cp %{SOURCE1} . cp %{SOURCE2} . %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 README.md 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