aerc-master/aerc.spec

76 lines
2.1 KiB
RPMSpec
Raw Normal View History

2023-07-19 21:12:18 +02:00
#
# spec file for package aerc
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2023 Hannes Braun
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!_libexecdir:%define _libexecdir %{_exec_prefix}/libexec}
2023-07-19 21:12:18 +02:00
Name: aerc
Version: 0.18.2+git.1733399954.16156929
2023-07-19 21:12:18 +02:00
Release: 0
Summary: An email client for terminals
License: MIT
Group: Productivity/Networking/Email/Clients
URL: https://aerc-mail.org/
2024-02-18 22:55:32 +01:00
#!RemoteAssetUrl: git+https://git.cepl.eu/cgit/packaging/aerc#devel
2024-02-16 11:51:12 +01:00
Source0: vendor.tar.zst
2023-07-19 21:12:18 +02:00
BuildRequires: gcc
BuildRequires: go
BuildRequires: make
BuildRequires: notmuch-devel
BuildRequires: scdoc
2024-02-16 11:51:12 +01:00
BuildRequires: zstd
2023-09-11 12:15:06 +02:00
Recommends: dante
Recommends: w3m
# for :menu
Recommends: fzf
2023-07-19 21:12:18 +02:00
%description
aerc is an email client that runs in terminals.
%prep
2023-07-26 11:24:03 +02:00
# http://ftp.rpm.org/max-rpm/s1-rpm-specref-macros.html
%setup -q -n aerc -c
%autopatch -p1
2023-07-19 21:12:18 +02:00
2023-07-26 11:24:03 +02:00
cp -a %{_sourcedir}/aerc/* .
2023-07-19 21:12:18 +02:00
2023-08-17 20:58:15 +02:00
sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|' \
./contrib/carddav-query \
filters/show-ics-details.py
2023-07-19 21:12:18 +02:00
%build
%if "%{_arch}" == "ppc64"
%make_build CC=cc GOFLAGS=""
%else
%make_build CC=cc GOFLAGS="-buildmode=pie -tags=notmuch"
%endif
%install
%make_install PREFIX=%{_prefix} LIBEXECDIR=%{_libexecdir}/%{name}
%files
%license LICENSE
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%{_bindir}/carddav-query
2023-08-17 23:05:52 +02:00
%dir %{_libexecdir}
2023-07-19 21:12:18 +02:00
%{_libexecdir}/%{name}
%{_mandir}/man*/aerc*%{?ext_man}
%{_mandir}/man1/carddav-query.1%{?ext_man}
%changelog