Compare commits
No commits in common. "rawhide" and "f35" have entirely different histories.
4 changed files with 48 additions and 93 deletions
18
.gitignore
vendored
18
.gitignore
vendored
|
|
@ -5,21 +5,3 @@
|
||||||
/aerc-0.10.0.tar.gz
|
/aerc-0.10.0.tar.gz
|
||||||
/aerc-0.12.0.tar.gz
|
/aerc-0.12.0.tar.gz
|
||||||
/aerc-0.13.0.tar.gz
|
/aerc-0.13.0.tar.gz
|
||||||
/aerc-0.14.0.tar.gz
|
|
||||||
/aerc-0.15.2.tar.gz
|
|
||||||
/aerc-0.16.0.tar.gz
|
|
||||||
/aerc-0.16.0-vendor.tar.gz
|
|
||||||
/aerc-0.17.0.tar.gz
|
|
||||||
/aerc-0.17.0-vendor.tar.gz
|
|
||||||
/aerc-0.18.0.tar.gz
|
|
||||||
/aerc-0.18.0-vendor.tar.bz2
|
|
||||||
/aerc-0.18.2.tar.gz
|
|
||||||
/aerc-0.18.2-vendor.tar.bz2
|
|
||||||
/aerc-0.19.0.tar.gz
|
|
||||||
/aerc-0.19.0-vendor.tar.bz2
|
|
||||||
/aerc-0.20.0.tar.gz
|
|
||||||
/aerc-0.20.0-vendor.tar.bz2
|
|
||||||
/aerc-0.20.1.tar.gz
|
|
||||||
/aerc-0.20.1-vendor.tar.bz2
|
|
||||||
/aerc-0.21.0.tar.gz
|
|
||||||
/aerc-0.21.0-vendor.tar.bz2
|
|
||||||
|
|
|
||||||
118
aerc.spec
118
aerc.spec
|
|
@ -1,111 +1,87 @@
|
||||||
# Generated by go2rpm 1.14.0
|
# Generated by go2rpm 1.6.0
|
||||||
%bcond check 1
|
%bcond_without check
|
||||||
|
|
||||||
# We use vendored deps, as aerc has a lot of dependencies and is picky about
|
|
||||||
# them. Upstream does a good job at keeping them updated. aerc is prone to
|
|
||||||
# crashes with Fedora's dependency versions, many of which are out of date.
|
|
||||||
|
|
||||||
# https://git.sr.ht/~rjarry/aerc
|
# https://git.sr.ht/~rjarry/aerc
|
||||||
%global goipath git.sr.ht/~rjarry/aerc
|
%global goipath git.sr.ht/~rjarry/aerc
|
||||||
%global version0 0.21.0
|
Version: 0.13.0
|
||||||
|
%global topdir %{name}-%{version}
|
||||||
|
|
||||||
%gometa -L -f
|
%gometa
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
Aerc is an email client that runs in your terminal. It is highly
|
Aerc is an email client that runs in your terminal. It's highly
|
||||||
efficient and extensible, perfect for the discerning hacker.}
|
efficient and extensible, perfect for the discerning hacker.}
|
||||||
|
|
||||||
|
%global golicenses LICENSE
|
||||||
|
%global godocs doc README.md
|
||||||
|
|
||||||
Name: aerc
|
Name: aerc
|
||||||
Version: %{forgeversion}
|
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Email client for your terminal
|
Summary: Email client for your terminal
|
||||||
|
|
||||||
SourceLicense: MIT
|
License: MIT
|
||||||
# Generated by go-vendor-tools
|
|
||||||
License: MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC
|
|
||||||
URL: %{gourl}
|
URL: %{gourl}
|
||||||
Source0: %{gosource}
|
# The forge macros don't support Sourcehut.
|
||||||
# Generated by go-vendor-tools
|
# https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/209
|
||||||
Source1: %{archivename}-vendor.tar.bz2
|
Source: %{gourl}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source2: go-vendor-tools.toml
|
|
||||||
|
|
||||||
|
BuildRequires: scdoc
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
# wrap and colorize filters are written in C
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: glibc-all-langpacks
|
|
||||||
BuildRequires: go-vendor-tools
|
|
||||||
BuildRequires: gnupg
|
BuildRequires: gnupg
|
||||||
BuildRequires: notmuch-devel
|
BuildRequires: notmuch-devel
|
||||||
BuildRequires: scdoc
|
|
||||||
|
|
||||||
# used in the builtin `html` filter
|
Requires: notmuch
|
||||||
Requires: w3m
|
|
||||||
# aerc is mainly targeted at developers using a git+email workflow
|
|
||||||
Recommends: git-email
|
|
||||||
# for email signing/verification, encryption/decryption
|
|
||||||
Recommends: gnupg2
|
|
||||||
# for network isolation with unshare in the builtin `html` filter
|
|
||||||
Recommends: util-linux
|
|
||||||
|
|
||||||
%description %{common_description}
|
%description
|
||||||
|
%{common_description}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%goprep -A
|
%goprep
|
||||||
%setup -q -T -D -a1 %{forgesetupargs}
|
|
||||||
%autopatch -p1
|
# Disable building of aerc that we handle manually in the SPEC and
|
||||||
|
# preserve mtimes
|
||||||
|
sed -e 's|install: $(DOCS) aerc|install: $(DOCS)|' \
|
||||||
|
-e 's|install -m|install -pm|' \
|
||||||
|
-i Makefile
|
||||||
|
|
||||||
|
# From go.mod replace statements:
|
||||||
|
# replace golang.org/x/crypto => github.com/ProtonMail/go-crypto v0.0.0-20200420072808-71bec3603bf3
|
||||||
|
# replace github.com/zenhack/go.notmuch => github.com/brunnre8/go.notmuch v0.0.0-20201126061756-caa2daf7093c
|
||||||
|
sed -i "s|golang.org/x/crypto|github.com/ProtonMail/go-crypto|" $(find . -name "*.go" -type f)
|
||||||
|
sed -i "s|github.com/zenhack/go.notmuch|github.com/brunnre8/go.notmuch|" $(find . -name "*.go" -type f)
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%go_vendor_license_buildrequires -c %{S:2}
|
%go_generate_buildrequires
|
||||||
|
echo 'golang(github.com/brunnre8/go.notmuch)'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
export BUILDTAGS=notmuch
|
||||||
# GO_BUILDTAGS: Enable notmuch explicitly instead of relying on auto-detection
|
export LDFLAGS="-X main.Prefix=%{_prefix} \
|
||||||
# in build script.
|
-X main.ShareDir=%{_datadir}/aerc \
|
||||||
# GO_LDFLAGS: Set to an empty string so the C LDFLAGS set by %%set_build_flags
|
-X git.sr.ht/~rjarry/aerc/config.shareDir=%{_datadir}
|
||||||
# aren't read instead.
|
-X main.Version=%{version} "
|
||||||
GO_BUILDTAGS=notmuch GO_LDFLAGS=""
|
%gobuild -o aerc %{goipath}
|
||||||
|
|
||||||
# BUILD_OPTS: Set `go build` flags
|
|
||||||
# DATE: Set DATE based on SOURCE_DATE_EPOCH. The Makefile sets it based on the
|
|
||||||
# current time.
|
|
||||||
# GOFLAGS: Set to an empty string. We want to clear the definition from the Makefile.
|
|
||||||
# GO_EXTRA_LDFLAGS: Set `go build -ldflags` argument
|
|
||||||
# Other values should be self-explanatory
|
|
||||||
%make_build \
|
|
||||||
BUILD_OPTS=%{gobuild_baseflags_shescaped} \
|
|
||||||
DATE="$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d)" \
|
|
||||||
GOFLAGS= \
|
|
||||||
GO_EXTRA_LDFLAGS=%{gobuild_ldflags_shescaped} \
|
|
||||||
PREFIX=%{_prefix} \
|
|
||||||
VERSION=%{version} \
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export PREFIX=%{_prefix}
|
export PREFIX=%{_prefix}
|
||||||
%make_install
|
%make_install
|
||||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/aerc.desktop
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/aerc.desktop
|
||||||
%go_vendor_license_install -c %{S:2}
|
|
||||||
|
|
||||||
%check
|
|
||||||
%go_vendor_license_check -c %{S:2}
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
LANG=en_US.UTF-8 ./filters/test.sh
|
%check
|
||||||
%gocheck
|
%gocheck
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -f %{go_vendor_license_filelist}
|
%files
|
||||||
%license vendor/modules.txt
|
%license LICENSE
|
||||||
%doc README.md CHANGELOG.md
|
%doc doc README.md
|
||||||
%{_bindir}/aerc
|
%{_bindir}/aerc
|
||||||
%{_bindir}/carddav-query
|
%{_mandir}/man1/%{name}.1*
|
||||||
%{_datadir}/aerc/
|
%{_mandir}/man1/%{name}-*.1.*
|
||||||
|
%{_mandir}/man5/%{name}-*.5.*
|
||||||
|
%{_mandir}/man7/%{name}-*.7.*
|
||||||
|
%{_datadir}/aerc
|
||||||
%{_datadir}/applications/aerc.desktop
|
%{_datadir}/applications/aerc.desktop
|
||||||
%{_libexecdir}/aerc/
|
|
||||||
%{_mandir}/man1/aerc-*.1.*
|
|
||||||
%{_mandir}/man1/carddav-query.1*
|
|
||||||
%{_mandir}/man1/aerc.1*
|
|
||||||
%{_mandir}/man5/aerc-*.5.*
|
|
||||||
%{_mandir}/man7/aerc-*.7.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
[licensing]
|
|
||||||
detector = "trivy"
|
|
||||||
3
sources
3
sources
|
|
@ -1,2 +1 @@
|
||||||
SHA512 (aerc-0.21.0.tar.gz) = b58b3ba9fe36a22b5717d48d7b1caf37303003cb4f32138e79f9775a96dbc5d8b27700091dbfe56f31954be5881467a7c5d8c1895d9161eda19a0d7e5c4750aa
|
SHA512 (aerc-0.13.0.tar.gz) = b7cb67ebcae3a809b365cbf8bb5d52b8525059c70665d27bcab93b697fe3eceb51807f26e953a6a50b4fc4b8acceb27693510b65495d5cd9c1fb4a5e7ded48e2
|
||||||
SHA512 (aerc-0.21.0-vendor.tar.bz2) = 5deb3e85cdeed9d0366e08ba851bbc4382dfafd3e2ecfb561cfc9b0afdd90183d72683a4c055d95a474144a2a5ba816c2946a1ade9acc85119d0e3242ef8af60
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue