Update to 0.15.2
Close: rhbz#2190014, rhbz#2163057
This commit is contained in:
parent
ae2f87e58d
commit
fcb3c706ae
5 changed files with 9 additions and 281 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@
|
|||
/aerc-0.12.0.tar.gz
|
||||
/aerc-0.13.0.tar.gz
|
||||
/aerc-0.14.0.tar.gz
|
||||
/aerc-0.15.2.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,80 +0,0 @@
|
|||
From 7faaeb2eef58129b86ebcb6689b6f67381afd0df Mon Sep 17 00:00:00 2001
|
||||
From: Robin Jarry <robin@jarry.cc>
|
||||
Date: Wed, 4 Jan 2023 23:44:35 +0100
|
||||
Subject: [PATCH 1/2] doc: fix English typos
|
||||
|
||||
Reported by Lintian (Debian).
|
||||
|
||||
Signed-off-by: Robin Jarry <robin@jarry.cc>
|
||||
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
|
||||
---
|
||||
commands/account/import-mbox.go | 2 +-
|
||||
doc/aerc-config.5.scd | 4 ++--
|
||||
doc/aerc-search.1.scd | 2 +-
|
||||
widgets/compose.go | 2 +-
|
||||
4 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/commands/account/import-mbox.go b/commands/account/import-mbox.go
|
||||
index 7dab195..59fdfab 100644
|
||||
--- a/commands/account/import-mbox.go
|
||||
+++ b/commands/account/import-mbox.go
|
||||
@@ -122,7 +122,7 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error {
|
||||
}
|
||||
}
|
||||
}
|
||||
- infoStr := fmt.Sprintf("%s: imported %d of %d sucessfully.", args[0], appended, len(messages))
|
||||
+ infoStr := fmt.Sprintf("%s: imported %d of %d successfully.", args[0], appended, len(messages))
|
||||
log.Debugf(infoStr)
|
||||
aerc.SetStatus(infoStr)
|
||||
}
|
||||
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
|
||||
index d48e38a..45b41c6 100644
|
||||
--- a/doc/aerc-config.5.scd
|
||||
+++ b/doc/aerc-config.5.scd
|
||||
@@ -539,7 +539,7 @@ These options are configured in the *[compose]* section of _aerc.conf_.
|
||||
*address-book-cmd* = _khard email --remove-first-line --parsable %s_
|
||||
|
||||
*file-picker-cmd* = _<command>_
|
||||
- Specifies the command to be used to select attachments. Any occurence of
|
||||
+ Specifies the command to be used to select attachments. Any occurrence of
|
||||
_%s_ in the *file-picker-cmd* will be replaced with the argument _<arg>_
|
||||
to *:attach -m* _<arg>_.
|
||||
|
||||
@@ -570,7 +570,7 @@ These options are configured in the *[compose]* section of _aerc.conf_.
|
||||
|
||||
# MULTIPART CONVERTERS
|
||||
|
||||
-Converters allow to generate _multipart/alternative_ messages by converting the
|
||||
+Converters allow generating _multipart/alternative_ messages by converting the
|
||||
main _text/plain_ body into any other text MIME type with the *:multipart*
|
||||
command. Only exact MIME types are accepted. The commands are invoked with
|
||||
_sh -c_ and are expected to output valid UTF-8 text.
|
||||
diff --git a/doc/aerc-search.1.scd b/doc/aerc-search.1.scd
|
||||
index 8349874..9b375d5 100644
|
||||
--- a/doc/aerc-search.1.scd
|
||||
+++ b/doc/aerc-search.1.scd
|
||||
@@ -57,7 +57,7 @@ aerc-search - search and filter patterns and options for *aerc*(1)
|
||||
|
||||
_<N>_ *(y[ear]|m[onth]|w[eek]|d[ay])*
|
||||
_<N>_ is a positive integer that represents the number
|
||||
- of the time units in the past. Mutiple relative terms
|
||||
+ of the time units in the past. Multiple relative terms
|
||||
can will be accumulated. The units can also be
|
||||
abbreviated by a single letter such that yesterday would
|
||||
correspond to _1d_ (equivalent to _1 day_ or _1_day_)
|
||||
diff --git a/widgets/compose.go b/widgets/compose.go
|
||||
index 4f08afa..c4e3ad5 100644
|
||||
--- a/widgets/compose.go
|
||||
+++ b/widgets/compose.go
|
||||
@@ -127,7 +127,7 @@ func (c *Composer) SwitchAccount(newAcct *AccountView) error {
|
||||
editor.loadValue()
|
||||
}
|
||||
c.Invalidate()
|
||||
- log.Debugf("account sucessfully switched")
|
||||
+ log.Debugf("account successfully switched")
|
||||
return nil
|
||||
}
|
||||
|
||||
--
|
||||
2.39.0
|
||||
|
||||
|
|
@ -1,186 +0,0 @@
|
|||
From 04921a023831f71dbe97eaebc1e44000a311dbab Mon Sep 17 00:00:00 2001
|
||||
From: Robin Jarry <robin@jarry.cc>
|
||||
Date: Sun, 8 Jan 2023 20:44:22 +0100
|
||||
Subject: [PATCH 2/2] filters: install them in $PREFIX/libexec/aerc/filters
|
||||
|
||||
The filesystem hierarchy standard describes /usr/share as
|
||||
"Architecture-independent data". This folder is not intended for
|
||||
executable scripts and especially not for arch specific binary files
|
||||
(such as the wrap filter).
|
||||
|
||||
Lintian reports an error with aerc 0.14.0:
|
||||
|
||||
arch-dependent-file-in-usr-share [usr/share/aerc/filters/wrap]
|
||||
|
||||
Which I had to fix by moving the filter into /usr/libexec.
|
||||
|
||||
Install all filters into $PREFIX/libexec/aerc/filters and update the
|
||||
default SearchDirs to look them up in here as well.
|
||||
|
||||
Link: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s11.html
|
||||
Link: https://salsa.debian.org/go-team/packages/aerc/-/commit/a0ca00260ffd
|
||||
Signed-off-by: Robin Jarry <robin@jarry.cc>
|
||||
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
|
||||
---
|
||||
Makefile | 21 ++++++++++++---------
|
||||
config/config.go | 12 +++++++++++-
|
||||
doc/aerc-config.5.scd | 7 +++++--
|
||||
doc/aerc-templates.7.scd | 4 ++--
|
||||
4 files changed, 30 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index aa0ac4a..9f6bd0d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -7,6 +7,7 @@ VPATH=doc
|
||||
PREFIX?=/usr/local
|
||||
BINDIR?=$(PREFIX)/bin
|
||||
SHAREDIR?=$(PREFIX)/share/aerc
|
||||
+LIBEXECDIR?=$(PREFIX)/libexec/aerc
|
||||
MANDIR?=$(PREFIX)/share/man
|
||||
GO?=go
|
||||
GOFLAGS?=
|
||||
@@ -17,6 +18,7 @@ GO_LDFLAGS:=
|
||||
GO_LDFLAGS+=-X main.Version=$(VERSION)
|
||||
GO_LDFLAGS+=-X main.Flags=$(flags)
|
||||
GO_LDFLAGS+=-X git.sr.ht/~rjarry/aerc/config.shareDir=$(SHAREDIR)
|
||||
+GO_LDFLAGS+=-X git.sr.ht/~rjarry/aerc/config.libexecDir=$(LIBEXECDIR)
|
||||
GO_LDFLAGS+=$(GO_EXTRA_LDFLAGS)
|
||||
|
||||
GOSRC!=find * -name '*.go' | grep -v filters/wrap.go
|
||||
@@ -109,7 +111,7 @@ clean:
|
||||
install: $(DOCS) aerc wrap
|
||||
mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man7 \
|
||||
$(DESTDIR)$(SHAREDIR) $(DESTDIR)$(SHAREDIR)/filters $(DESTDIR)$(SHAREDIR)/templates $(DESTDIR)$(SHAREDIR)/stylesets \
|
||||
- $(DESTDIR)$(PREFIX)/share/applications
|
||||
+ $(DESTDIR)$(PREFIX)/share/applications $(DESTDIR)$(LIBEXECDIR)/filters
|
||||
install -m755 aerc $(DESTDIR)$(BINDIR)/aerc
|
||||
install -m644 aerc.1 $(DESTDIR)$(MANDIR)/man1/aerc.1
|
||||
install -m644 aerc-search.1 $(DESTDIR)$(MANDIR)/man1/aerc-search.1
|
||||
@@ -127,14 +129,14 @@ install: $(DOCS) aerc wrap
|
||||
install -m644 config/accounts.conf $(DESTDIR)$(SHAREDIR)/accounts.conf
|
||||
install -m644 config/aerc.conf $(DESTDIR)$(SHAREDIR)/aerc.conf
|
||||
install -m644 config/binds.conf $(DESTDIR)$(SHAREDIR)/binds.conf
|
||||
- install -m755 filters/calendar $(DESTDIR)$(SHAREDIR)/filters/calendar
|
||||
- install -m755 filters/colorize $(DESTDIR)$(SHAREDIR)/filters/colorize
|
||||
- install -m755 filters/hldiff $(DESTDIR)$(SHAREDIR)/filters/hldiff
|
||||
- install -m755 filters/html $(DESTDIR)$(SHAREDIR)/filters/html
|
||||
- install -m755 filters/html-unsafe $(DESTDIR)$(SHAREDIR)/filters/html-unsafe
|
||||
- install -m755 filters/plaintext $(DESTDIR)$(SHAREDIR)/filters/plaintext
|
||||
- install -m755 filters/show-ics-details.py $(DESTDIR)$(SHAREDIR)/filters/show-ics-details.py
|
||||
- install -m755 wrap $(DESTDIR)$(SHAREDIR)/filters/wrap
|
||||
+ install -m755 filters/calendar $(DESTDIR)$(LIBEXECDIR)/filters/calendar
|
||||
+ install -m755 filters/colorize $(DESTDIR)$(LIBEXECDIR)/filters/colorize
|
||||
+ install -m755 filters/hldiff $(DESTDIR)$(LIBEXECDIR)/filters/hldiff
|
||||
+ install -m755 filters/html $(DESTDIR)$(LIBEXECDIR)/filters/html
|
||||
+ install -m755 filters/html-unsafe $(DESTDIR)$(LIBEXECDIR)/filters/html-unsafe
|
||||
+ install -m755 filters/plaintext $(DESTDIR)$(LIBEXECDIR)/filters/plaintext
|
||||
+ install -m755 filters/show-ics-details.py $(DESTDIR)$(LIBEXECDIR)/filters/show-ics-details.py
|
||||
+ install -m755 wrap $(DESTDIR)$(LIBEXECDIR)/filters/wrap
|
||||
install -m644 templates/new_message $(DESTDIR)$(SHAREDIR)/templates/new_message
|
||||
install -m644 templates/quoted_reply $(DESTDIR)$(SHAREDIR)/templates/quoted_reply
|
||||
install -m644 templates/forward_as_body $(DESTDIR)$(SHAREDIR)/templates/forward_as_body
|
||||
@@ -177,6 +179,7 @@ uninstall:
|
||||
$(RM) $(DESTDIR)$(MANDIR)/man7/aerc-templates.7
|
||||
$(RM) $(DESTDIR)$(MANDIR)/man7/aerc-stylesets.7
|
||||
$(RM) -r $(DESTDIR)$(SHAREDIR)
|
||||
+ $(RM) -r $(DESTDIR)$(LIBEXECDIR)
|
||||
${RMDIR_IF_EMPTY} $(DESTDIR)$(BINDIR)
|
||||
$(RMDIR_IF_EMPTY) $(DESTDIR)$(MANDIR)/man1
|
||||
$(RMDIR_IF_EMPTY) $(DESTDIR)$(MANDIR)/man5
|
||||
diff --git a/config/config.go b/config/config.go
|
||||
index 09fb5ef..12da665 100644
|
||||
--- a/config/config.go
|
||||
+++ b/config/config.go
|
||||
@@ -31,12 +31,14 @@ func mapName(raw string) string {
|
||||
|
||||
// Set at build time
|
||||
var shareDir string
|
||||
+var libexecDir string
|
||||
|
||||
func buildDefaultDirs() []string {
|
||||
var defaultDirs []string
|
||||
|
||||
prefixes := []string{
|
||||
xdg.ConfigHome(),
|
||||
+ "~/.local/libexec",
|
||||
xdg.DataHome(),
|
||||
}
|
||||
|
||||
@@ -51,7 +53,13 @@ func buildDefaultDirs() []string {
|
||||
}
|
||||
}
|
||||
|
||||
- // Add custom buildtime shareDir
|
||||
+ // Add custom buildtime dirs
|
||||
+ if libexecDir != "" && libexecDir != "/usr/local/libexec/aerc" {
|
||||
+ libexecDir, err := homedir.Expand(libexecDir)
|
||||
+ if err == nil {
|
||||
+ defaultDirs = append(defaultDirs, libexecDir)
|
||||
+ }
|
||||
+ }
|
||||
if shareDir != "" && shareDir != "/usr/local/share/aerc" {
|
||||
shareDir, err := homedir.Expand(shareDir)
|
||||
if err == nil {
|
||||
@@ -60,7 +68,9 @@ func buildDefaultDirs() []string {
|
||||
}
|
||||
|
||||
// Add fixed fallback locations
|
||||
+ defaultDirs = append(defaultDirs, "/usr/local/libexec/aerc")
|
||||
defaultDirs = append(defaultDirs, "/usr/local/share/aerc")
|
||||
+ defaultDirs = append(defaultDirs, "/usr/libexec/aerc")
|
||||
defaultDirs = append(defaultDirs, "/usr/share/aerc")
|
||||
|
||||
return defaultDirs
|
||||
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
|
||||
index 45b41c6..1330856 100644
|
||||
--- a/doc/aerc-config.5.scd
|
||||
+++ b/doc/aerc-config.5.scd
|
||||
@@ -616,8 +616,8 @@ filters need to be able to read from standard input. Many programs support
|
||||
reading from stdin by putting _-_ instead of a path to a file. You can also
|
||||
chain together multiple filters by piping with _|_.
|
||||
|
||||
-aerc ships with some default filters installed in the share directory (usually
|
||||
-_/usr/share/aerc/filters_). Note that these may have additional dependencies
|
||||
+aerc ships with some default filters installed in the libexec directory (usually
|
||||
+_/usr/libexec/aerc/filters_). Note that these may have additional dependencies
|
||||
that aerc does not have alone.
|
||||
|
||||
The filter commands are invoked with _sh -c command_. The following folders are
|
||||
@@ -625,8 +625,11 @@ appended to the system *$PATH* to allow referencing filters from their name only
|
||||
|
||||
```
|
||||
${XDG_CONFIG_HOME:-~/.config}/aerc/filters
|
||||
+~/.local/libexec/aerc/filters
|
||||
${XDG_DATA_HOME:-~/.local/share}/aerc/filters
|
||||
+$PREFIX/libexec/aerc/filters
|
||||
$PREFIX/share/aerc/filters
|
||||
+/usr/libexec/aerc/filters
|
||||
/usr/share/aerc/filters
|
||||
```
|
||||
|
||||
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
|
||||
index 6c9e319..2f0d5f2 100644
|
||||
--- a/doc/aerc-templates.7.scd
|
||||
+++ b/doc/aerc-templates.7.scd
|
||||
@@ -111,7 +111,7 @@ aerc provides the following additional functions:
|
||||
Execute external command, provide the second argument to its stdin.
|
||||
|
||||
```
|
||||
- {{exec `/usr/local/share/aerc/filters/html` .OriginalText}}
|
||||
+ {{exec `/usr/libexec/aerc/filters/html` .OriginalText}}
|
||||
```
|
||||
|
||||
*toLocal*
|
||||
@@ -142,7 +142,7 @@ aerc provides the following additional functions:
|
||||
Example: Automatic HTML parsing for text/html mime type messages
|
||||
```
|
||||
{{if eq .OriginalMIMEType "text/html"}}
|
||||
- {{exec `/usr/local/share/aerc/filters/html` .OriginalText | wrap 72 | quote}}
|
||||
+ {{exec `/usr/libexec/aerc/filters/html` .OriginalText | wrap 72 | quote}}
|
||||
{{else}}
|
||||
{{wrap 72 .OriginalText | quote}}
|
||||
{{end}}
|
||||
--
|
||||
2.39.0
|
||||
|
||||
21
aerc.spec
21
aerc.spec
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
# https://git.sr.ht/~rjarry/aerc
|
||||
%global goipath git.sr.ht/~rjarry/aerc
|
||||
Version: 0.14.0
|
||||
Version: 0.15.2
|
||||
%global topdir %{name}-%{version}
|
||||
|
||||
%gometa
|
||||
|
|
@ -24,18 +24,12 @@ URL: %{gourl}
|
|||
# The forge macros don't support Sourcehut.
|
||||
# https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/209
|
||||
Source: %{gourl}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# doc: fix English typos
|
||||
# https://git.sr.ht/~rjarry/aerc/commit/10b995f0196c8243132c3f435d4e11b3c9700e35
|
||||
Patch: 0001-doc-fix-English-typos.patch
|
||||
# filters: install them in $PREFIX/libexec/aerc/filters
|
||||
# https://git.sr.ht/~rjarry/aerc/commit/04303172d4f96b284e0c915ce4a7b87e1439bb87
|
||||
# Depends on previous patch. Slightly modified to remove CHANGELOG.md conflict.
|
||||
Patch: 0002-filters-install-them-in-PREFIX-libexec-aerc-filters.patch
|
||||
|
||||
BuildRequires: scdoc
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gnupg
|
||||
BuildRequires: notmuch-devel
|
||||
BuildRequires: gcc
|
||||
|
||||
Requires: notmuch
|
||||
|
||||
|
|
@ -63,16 +57,15 @@ sed -i "s|github.com/zenhack/go.notmuch|github.com/brunnre8/go.notmuch|" $(find
|
|||
echo 'golang(github.com/brunnre8/go.notmuch)'
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
make wrap colorize
|
||||
export BUILDTAGS=notmuch
|
||||
export LDFLAGS="\
|
||||
-X main.Version=%{version} \
|
||||
export LDFLAGS="-X main.Version=%{version} \
|
||||
-X main.Prefix=%{_prefix} \
|
||||
-X main.ShareDir=%{_datadir}/aerc \
|
||||
-X main.Flags=$(echo -- $(GOFLAGS) | base64 | tr -d '\r\n') \
|
||||
-X git.sr.ht/~rjarry/aerc/config.shareDir=%{_datadir} \
|
||||
-X git.sr.ht/~rjarry/aerc/config.libexecDir=%{_libexecdir} \
|
||||
"
|
||||
-X git.sr.ht/~rjarry/aerc/config.libexecDir=%{_libexecdir}"
|
||||
%gobuild -o aerc %{goipath}
|
||||
%gobuild -o wrap filters/wrap.go
|
||||
|
||||
%install
|
||||
export PREFIX=%{_prefix}
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (aerc-0.14.0.tar.gz) = d12502a809c5163bc81bfa3bfbd471a03f4e8e56084e00e7bb52619a8ac6f34df78342c0e8e82d6cdfd4fe1bc0c375dd65366a442875621b20bbd040a9025831
|
||||
SHA512 (aerc-0.15.2.tar.gz) = 8744c6c5ea45fc8ad2ab46367e92d3859fab962843db4329c7655b0afe7b72dbea21dae588d44eab314a31da89d15e5b6543224699556aed31e0b3b9c7b0ddbc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue