Import elementary-mail-6.4.0-1.el9

This commit is contained in:
Sofia Boldyreva 2023-03-21 23:28:23 +01:00
commit f1c065bd14
4 changed files with 127 additions and 0 deletions

View File

@ -0,0 +1 @@
56760b4a9d8f69824ca39cbc48e79bcba36f996b SOURCES/elementary-mail-6.4.0.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/elementary-mail-6.4.0.tar.gz

23
SOURCES/c3aa61d.patch Normal file
View File

@ -0,0 +1,23 @@
From c3aa61d226f49147d7685cc00013469ff4df369a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Corentin=20No=C3=ABl?= <corentin@elementary.io>
Date: Sat, 29 Jan 2022 14:57:25 +0100
Subject: [PATCH] ComposerWidget: Make ACTION_ENTRIES private (#765)
Fixes compilation with latest valac.
---
src/Composer/ComposerWidget.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Composer/ComposerWidget.vala b/src/Composer/ComposerWidget.vala
index 3fe962a1..ccc05d5e 100644
--- a/src/Composer/ComposerWidget.vala
+++ b/src/Composer/ComposerWidget.vala
@@ -66,7 +66,7 @@ public class Mail.ComposerWidget : Gtk.Grid {
DRAFT
}
- public const ActionEntry[] ACTION_ENTRIES = {
+ private const ActionEntry[] ACTION_ENTRIES = {
{ACTION_ADD_ATTACHMENT, on_add_attachment },
{ACTION_BOLD, on_edit_action, "s", "''" },
{ACTION_ITALIC, on_edit_action, "s", "''" },

102
SPECS/elementary-mail.spec Normal file
View File

@ -0,0 +1,102 @@
## START: Set by rpmautospec
## (rpmautospec version 0.2.5)
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
release_number = 1;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
## END: Set by rpmautospec
%global srcname mail
%global appname io.elementary.mail
%global __provides_exclude_from ^%{_libdir}/%{appname}/webkit2/.*\\.so$
Name: elementary-mail
Summary: Mail app designed for elementary
Version: 6.4.0
Release: %autorelease
License: GPLv3+
URL: https://github.com/elementary/mail
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# include upstream patch to fix compilation with vala 0.55+
Patch0: %{url}/commit/c3aa61d.patch
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: libappstream-glib
BuildRequires: meson
BuildRequires: vala
BuildRequires: pkgconfig(camel-1.2) >= 3.28
BuildRequires: pkgconfig(folks)
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(granite) >= 6.0.0
BuildRequires: pkgconfig(libedataserver-1.2) >= 3.28
BuildRequires: pkgconfig(libedataserverui-1.2) >= 3.28
BuildRequires: pkgconfig(libhandy-1) >= 1.1.90
BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.28
BuildRequires: pkgconfig(webkit2gtk-web-extension-4.0) >= 2.28
Requires: hicolor-icon-theme
%description
%{summary}.
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%meson
%meson_build
%install
%meson_install
# remove @2 scaled icons that aren't properly supported by hicolor-icon-theme:
# * https://github.com/elementary/tasks/issues/321
# * https://gitlab.freedesktop.org/xdg/default-icon-theme/-/issues/2
# * https://bugzilla.redhat.com/show_bug.cgi?id=1537318
# * https://src.fedoraproject.org/rpms/hicolor-icon-theme/pull-request/2
rm -r %{buildroot}/%{_datadir}/icons/hicolor/*@2/
%find_lang %{appname}
%check
desktop-file-validate \
%{buildroot}/%{_datadir}/applications/%{appname}.desktop
desktop-file-validate \
%{buildroot}/%{_sysconfdir}/xdg/autostart/%{appname}-daemon.desktop
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml
%files -f %{appname}.lang
%license COPYING
%doc README.md
%config(noreplace) %{_sysconfdir}/xdg/autostart/%{appname}-daemon.desktop
%{_bindir}/%{appname}
%{_libdir}/%{appname}/
%{_datadir}/applications/%{appname}.desktop
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{appname}.svg
%{_datadir}/metainfo/%{appname}.appdata.xml
%changelog
* Mon Jan 31 2022 Fabio Valentini <decathorpe@gmail.com> 6.4.0-1
- Initial import (#2033891)