# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name webkit Name: ghc-%{pkg_name} Version: 0.12.5.1 Release: 1%{?dist} Summary: Binding to the Webkit library License: LGPLv2+ URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-cairo-devel BuildRequires: ghc-glib-devel BuildRequires: ghc-gtk-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-pango-devel BuildRequires: gtk2hs-buildtools BuildRequires: pkgconfig(webkit-1.0) # End cabal-rpm deps %description WebKit is a web content engine, derived from KHTML and KJS from KDE, and used primarily in Apple's Safari browser. It is made to be embedded in other applications, such as mail readers, or web browsers. It is able to display content such as HTML, SVG, XML, and others. It also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and more. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: Requires: pkgconfig(webkit-1.0) # End cabal-rpm deps %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install # we include the demos in devel docdir mv %{buildroot}%{_datadir}/%{pkg_name}-%{version}/* %{buildroot}%{_pkgdocdir} %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %doc COPYING %files devel -f %{name}-devel.files %doc demo %changelog * Tue Dec 31 2013 Jens Petersen - 0.12.5.1-1 - include demo sources in docdir * Mon Dec 30 2013 Fedora Haskell SIG - 0.12.5.1 - spec file generated by cabal-rpm-0.8.7