-
Notifications
You must be signed in to change notification settings - Fork 2
/
ghc-notmuch.spec
133 lines (101 loc) · 3.14 KB
/
ghc-notmuch.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# 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 <[email protected]> - 0.3.0.0-1
- spec file generated by cabal-rpm-1.0.1
* Mon Feb 18 2019 Róman Joost <[email protected]> - 0.2.0.0-1
- update to 0.2.0.0
* Sat Dec 1 2018 Fedora Haskell SIG <[email protected]> - 0.1.0.0-1
- spec file generated by cabal-rpm-0.12.5