# generated by cabal-rpm-1.0.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name notmuch %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} Version: 0.3.0.0 Release: 1%{?dist} Summary: Haskell binding to Notmuch, the mail indexer License: GPLv3+ Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: c2hs BuildRequires: chrpath BuildRequires: libtalloc-devel BuildRequires: notmuch-devel # Begin cabal-rpm deps: %if 0%{?fedora} < 31 BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-profunctors-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel %else BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-deepseq-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-profunctors-prof BuildRequires: ghc-tagged-prof BuildRequires: ghc-text-prof BuildRequires: ghc-time-prof %endif # End cabal-rpm deps %description Binding to the notmuch mail indexer, providing a hopefully somewhat typesafe way to search your email. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: Requires: libtalloc-devel%{?_isa} Requires: notmuch-devel%{?_isa} # End cabal-rpm deps %description devel This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation %description doc This package provides the Haskell %{pkg_name} library documentation. %endif %if %{with ghc_prof} %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description prof This package provides the Haskell %{pkg_name} profiling library. %endif %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_lib_install # End cabal-rpm install %files -f %{name}.files # Begin cabal-rpm files: %license gpl-3.0.txt # End cabal-rpm files %files devel -f %{name}-devel.files %doc README.rst %if %{with haddock} %files doc -f %{name}-doc.files %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Tue Oct 22 2019 Róman Joost - 0.3.0.0-1 - spec file generated by cabal-rpm-1.0.1 * Mon Feb 18 2019 Róman Joost - 0.2.0.0-1 - update to 0.2.0.0 * Sat Dec 1 2018 Fedora Haskell SIG - 0.1.0.0-1 - spec file generated by cabal-rpm-0.12.5