Name: hsb2hs Version: 0.1 Release: 1%{?dist} Summary: Preprocesses a file, adding blobs from files as string literals License: BSD Group: Developments/Tools URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel #BuildRequires: ghc-preprocessor-tools-devel # End cabal-rpm deps BuildRequires: cabal-dev BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description hsb2hs is a preprocessor that allows you to include the contents of files as string literals in your Haskell programs and libraries. It is an alternative to file-embed for those who do not want to rely on Template Haskell. %global cabal cabal-dev %prep %setup -q %build %cabal install-deps %cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} %cabal build %install rm -rf %{buildroot} %cabal copy --destdir=%{buildroot} -v %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE %{_bindir}/%{name} %changelog * Thu Jan 30 2014 Fedora Haskell SIG - 0.1 - spec file generated by cabal-rpm-0.8.7