forked from purebred-mua/purebred-email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghc-purebred-email.spec
156 lines (117 loc) · 3.9 KB
/
ghc-purebred-email.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# generated by cabal-rpm-1.0.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name purebred-email
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.3.0.0
Release: 1%{?dist}
Summary: Types and parser for email messages (including MIME)
License: AGPLv3
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
%if 0%{?fedora} < 31
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-base64-bytestring-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-concise-devel
BuildRequires: ghc-lens-devel
BuildRequires: ghc-semigroupoids-devel
BuildRequires: ghc-semigroups-devel
BuildRequires: ghc-stringsearch-devel
%else
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-base64-bytestring-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-prof
BuildRequires: ghc-concise-prof
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-lens-prof
BuildRequires: ghc-semigroupoids-prof
BuildRequires: ghc-semigroups-prof
BuildRequires: ghc-stringsearch-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
%endif
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-quickcheck-instances-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-golden-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
%endif
# End cabal-rpm deps
%description
The purebred email library. RFC 5322, MIME, etc.
Things that are currently implemented:
- RFC 5322 message parsing and serialisation - MIME multipart parsing (RFC
2046) - MIME message header extensions for non-ASCII text (RFC 2047) - MIME
parameter value and encoded word extensions (RFC 2231) - Content-Disposition
header field (RFC 2183)
Things that are not yet implemented / need improvement:
- Improve handling of dates - Sensible heuristics for choosing a content
transfer encoding - Probably lots of other things.
%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}
%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
%check
%cabal_test
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# 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
* Mon Oct 21 2019 Róman Joost <[email protected]> - 0.3.0.0-1
- spec file generated by cabal-rpm-1.0.1
* Fri Jul 18 2019 Róman Joost <[email protected]> - 0.2.0.0-1
- update for a new release
* Sat Dec 30 2017 Fedora Haskell SIG <[email protected]> - 0.1.0.0-0.20171230
- spec file generated by cabal-rpm-0.11.2