# generated by cabal-rpm-2.0.9 --standalone # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global ghc_without_dynamic 1 %global ghc_without_shared 1 %undefine with_ghc_prof %undefine with_haddock %global without_prof 1 %global without_haddock 1 %global debug_package %{nil} Name: hsb2hs Version: 0.3.1 Release: 3%{?dist} Summary: Preprocesses a file, adding blobs from files as string literals License: BSD Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel #BuildRequires: ghc-preprocessor-tools-devel BuildRequires: cabal-install > 1.18 # for missing dep 'preprocessor-tools': BuildRequires: ghc-mtl-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-syb-devel # End cabal-rpm deps %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. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %build # Begin cabal-rpm build: cabal update %if 0%{fedora} < 33 cabal sandbox init cabal install %endif # End cabal-rpm build %install # Begin cabal-rpm install mkdir -p %{buildroot}%{_bindir} %if 0%{fedora} >= 33 cabal install --install-method=copy --installdir=%{buildroot}%{_bindir} %else for i in .cabal-sandbox/bin/*; do strip -s -o %{buildroot}%{_bindir}/$(basename $i) $i done %endif # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %{_bindir}/%{name} # End cabal-rpm files %changelog * Fri Apr 30 2021 Jens Petersen - 0.3.1-3 - refresh to cabal-rpm-2.0.9 * Wed Feb 1 2017 Jens Petersen - 0.3.1-2 - rebuild * Sun Oct 04 2015 Jens Petersen - 0.3.1-1 - update to 0.3.1 * Tue Jun 23 2015 Jens Petersen - 0.3-1 - update to 0.3 * Thu Dec 25 2014 Jens Petersen - 0.1-2 - run cabal update if no ~/.cabal * Thu Jan 30 2014 Fedora Haskell SIG - 0.1-1 - spec file generated by cabal-rpm-0.8.7