Take advantage of new forge macros features

[skip changelog]
This commit is contained in:
Maxwell G 2024-02-23 23:50:23 +00:00
commit 8d4be78b8a
No known key found for this signature in database
GPG key ID: F79E4E25E8C661F8

View file

@ -7,8 +7,7 @@
# https://git.sr.ht/~rjarry/aerc
%global goipath git.sr.ht/~rjarry/aerc
Version: 0.17.0
%global topdir %{name}-%{version}
%global version0 0.17.0
%gometa
@ -17,6 +16,7 @@ Aerc is an email client that runs in your terminal. It is highly
efficient and extensible, perfect for the discerning hacker.}
Name: aerc
Version: %{forgeversion}
Release: %autorelease
Summary: Email client for your terminal
@ -24,9 +24,7 @@ SourceLicense: MIT
# See LICENSES.dependencies
License: MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC
URL: %{gourl}
# The forge macros don't support Sourcehut.
# https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/209
Source0 %{gourl}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0 %{forgesource}
Source1: aerc-%{version}-vendor.tar.gz
# https://git.sr.ht/~gotmax23/fedora-scripts/tree/main/item/go-sig/go_vendor_licenses.py
Source2: LICENSES.dependencies
@ -45,7 +43,7 @@ Requires: notmuch
%{common_description}
%prep
%autosetup -n %{topdir} -p1 %{?with_vendor:-b1}
%autosetup -p1 %{forgesetupargs} %{?with_vendor:-b1}
%goprep -e %{?with_vendor:-k}
cp %{SOURCE2} .