forked from clearlinux-pkgs/neomutt
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneomutt.spec
238 lines (204 loc) · 7.77 KB
/
neomutt.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
# Using build pattern: configure
# autospec version: v10
# autospec commit: 5905be9
#
Name : neomutt
Version : 20240425
Release : 34
URL : https://github.com/neomutt/neomutt/archive/20240425/neomutt-20240425.tar.gz
Source0 : https://github.com/neomutt/neomutt/archive/20240425/neomutt-20240425.tar.gz
Summary : A version of mutt with added features
Group : Development/Tools
License : BSD-2-Clause
Requires: neomutt-bin = %{version}-%{release}
Requires: neomutt-data = %{version}-%{release}
Requires: neomutt-libexec = %{version}-%{release}
Requires: neomutt-license = %{version}-%{release}
Requires: neomutt-locales = %{version}-%{release}
Requires: neomutt-man = %{version}-%{release}
BuildRequires : buildreq-configure
BuildRequires : cyrus-sasl-dev
BuildRequires : docbook-xml
BuildRequires : e2fsprogs-dev
BuildRequires : gnutls-dev
BuildRequires : krb5-dev
BuildRequires : libidn-dev
BuildRequires : libxml2
BuildRequires : libxslt
BuildRequires : lmdb-dev
BuildRequires : ncurses-dev
BuildRequires : notmuch-dev
# Suppress stripping binaries
%define __strip /bin/true
%define debug_package %{nil}
Patch1: 0001-Disable-error-on-invalid-configure-item.patch
%description
NeoMutt is a command line mail reader (or MUA). It is a fork of Mutt with added
features. The NeoMutt project is hoping to kick-start development on the Mutt
project. NeoMutt has already attracted about twenty developers and enthusiasts.
Lots of old Mutt patches have been brought up-to-date, tidied and documented.
Notably, the Sidebar patch has now been adopted by upstream Mutt.
%package bin
Summary: bin components for the neomutt package.
Group: Binaries
Requires: neomutt-data = %{version}-%{release}
Requires: neomutt-libexec = %{version}-%{release}
Requires: neomutt-license = %{version}-%{release}
%description bin
bin components for the neomutt package.
%package data
Summary: data components for the neomutt package.
Group: Data
%description data
data components for the neomutt package.
%package doc
Summary: doc components for the neomutt package.
Group: Documentation
Requires: neomutt-man = %{version}-%{release}
%description doc
doc components for the neomutt package.
%package libexec
Summary: libexec components for the neomutt package.
Group: Default
Requires: neomutt-license = %{version}-%{release}
%description libexec
libexec components for the neomutt package.
%package license
Summary: license components for the neomutt package.
Group: Default
%description license
license components for the neomutt package.
%package locales
Summary: locales components for the neomutt package.
Group: Default
%description locales
locales components for the neomutt package.
%package man
Summary: man components for the neomutt package.
Group: Default
%description man
man components for the neomutt package.
%prep
%setup -q -n neomutt-20240425
cd %{_builddir}/neomutt-20240425
%patch -P 1 -p1
pushd ..
cp -a neomutt-20240425 buildavx2
popd
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1714058272
export GCC_IGNORE_WERROR=1
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
%configure --disable-static --with-mailpath=/var/spool/mail/ \
--gnutls \
--gss \
--notmuch \
--sasl \
--lmdb
make %{?_smp_mflags}
unset PKG_CONFIG_PATH
pushd ../buildavx2/
GOAMD64=v3
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 "
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS -march=x86-64-v3 "
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS -march=x86-64-v3 "
%configure --disable-static --with-mailpath=/var/spool/mail/ \
--gnutls \
--gss \
--notmuch \
--sasl \
--lmdb
make %{?_smp_mflags}
popd
%install
export GCC_IGNORE_WERROR=1
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -fdebug-types-section -femit-struct-debug-baseonly -fno-lto -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export SOURCE_DATE_EPOCH=1714058272
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/neomutt
cp %{_builddir}/neomutt-%{version}/autosetup/LICENSE %{buildroot}/usr/share/package-licenses/neomutt/34b2f1d7acba3eeb992e4281307640989cd08d0a || :
export GOAMD64=v2
GOAMD64=v3
pushd ../buildavx2/
%make_install_v3
popd
GOAMD64=v2
%make_install
%find_lang neomutt
/usr/bin/elf-move.py avx2 %{buildroot}-v3 %{buildroot} %{buildroot}/usr/share/clear/filemap/filemap-%{name}
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/V3/usr/bin/neomutt
/usr/bin/neomutt
%files data
%defattr(-,root,root,-)
/usr/share/neomutt/account-command/README.md
/usr/share/neomutt/account-command/gpg-json/README.md
/usr/share/neomutt/account-command/gpg-json/credentials.sh
/usr/share/neomutt/account-command/macos-keychain/README.md
/usr/share/neomutt/account-command/macos-keychain/keychain.py
/usr/share/neomutt/colorschemes/neonwolf-256.neomuttrc
/usr/share/neomutt/colorschemes/solarized-dark-256.neomuttrc
/usr/share/neomutt/colorschemes/vombatidae.neomuttrc
/usr/share/neomutt/colorschemes/zenburn.neomuttrc
/usr/share/neomutt/logo/neomutt-128.png
/usr/share/neomutt/logo/neomutt-256.png
/usr/share/neomutt/logo/neomutt-32.png
/usr/share/neomutt/logo/neomutt-64.png
/usr/share/neomutt/logo/neomutt.svg
/usr/share/neomutt/mime.types
/usr/share/neomutt/oauth2/README.md
/usr/share/neomutt/oauth2/mutt_oauth2.py
/usr/share/neomutt/vim-keys/README.md
/usr/share/neomutt/vim-keys/vim-keys.rc
%files doc
%defattr(0644,root,root,0755)
/usr/share/doc/neomutt/*
%files libexec
%defattr(-,root,root,-)
/V3/usr/libexec/neomutt/pgpewrap
/usr/libexec/neomutt/pgpewrap
/usr/libexec/neomutt/smime_keys
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/neomutt/34b2f1d7acba3eeb992e4281307640989cd08d0a
%files man
%defattr(0644,root,root,0755)
/usr/share/man/man1/neomutt.1
/usr/share/man/man1/pgpewrap_neomutt.1
/usr/share/man/man1/smime_keys_neomutt.1
/usr/share/man/man5/mbox_neomutt.5
/usr/share/man/man5/mmdf_neomutt.5
/usr/share/man/man5/neomuttrc.5
%files locales -f neomutt.lang
%defattr(-,root,root,-)