From 6b3105756bac01bb4d556c97695e21ae834abe8db4ed310dc1e60ab45ca6025a Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 20 Dec 2024 11:04:17 +0000 Subject: [PATCH] - This package requires libgpgme OBS-URL: https://build.opensuse.org/package/show/server:mail/meli?expand=0&rev=5 --- .gitattributes | 23 +++++++ .gitignore | 1 + ...-cancel-any-previous-mailbox-fetches.patch | 36 +++++++++++ _service | 8 +++ _servicedata | 4 ++ meli-0.8.10.tar.gz | 3 + meli.changes | 44 +++++++++++++ meli.spec | 63 +++++++++++++++++++ release-profile.patch | 10 +++ vendor.tar.zst | 3 + 10 files changed, 195 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch create mode 100644 _service create mode 100644 _servicedata create mode 100644 meli-0.8.10.tar.gz create mode 100644 meli.changes create mode 100644 meli.spec create mode 100644 release-profile.patch create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch b/0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch new file mode 100644 index 0000000..11a2ff0 --- /dev/null +++ b/0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch @@ -0,0 +1,36 @@ +From 525bae71e5ad671934980bed9c4514302be31d06 Mon Sep 17 00:00:00 2001 +From: Soc Virnyl Estela +Date: Sat, 14 Dec 2024 21:25:10 +0800 +Subject: [PATCH] Revert "accounts: cancel any previous mailbox fetches" + +This reverts commit 53b0d035e46d0178adb3c6620a5d5af02cc892de. + +Signed-off-by: Soc Virnyl Estela +--- + meli/src/accounts.rs | 10 ---------- + 1 file changed, 10 deletions(-) + +diff --git a/meli/src/accounts.rs b/meli/src/accounts.rs +index 7557da4c..0560b5ea 100644 +--- a/meli/src/accounts.rs ++++ b/meli/src/accounts.rs +@@ -912,16 +912,6 @@ impl Account { + } + MailboxStatus::None => { + if force && !self.active_jobs.values().any(|j| j.is_fetch(mailbox_hash)) { +- for ev in self.active_jobs.values().filter_map(|j| { +- if j.is_any_fetch() && !j.is_fetch(mailbox_hash) { +- j.cancel() +- } else { +- None +- } +- }) { +- self.main_loop_handler +- .send(ThreadEvent::UIEvent(UIEvent::StatusEvent(ev))); +- } + self.mailbox_entries + .entry(mailbox_hash) + .and_modify(|entry| { +-- +2.47.1 + diff --git a/_service b/_service new file mode 100644 index 0000000..1dceae4 --- /dev/null +++ b/_service @@ -0,0 +1,8 @@ + + + + meli*.tar.gz + false + true + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..aa8e287 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://git.meli.delivery/meli/meli + 15ca25af73a623f15f55eba5d7d6c05a171f4364 \ No newline at end of file diff --git a/meli-0.8.10.tar.gz b/meli-0.8.10.tar.gz new file mode 100644 index 0000000..26f737f --- /dev/null +++ b/meli-0.8.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:598479fb05196dd79f65c996b649f2fa5668ec79963d53d776c79fb84f43d172 +size 1522185 diff --git a/meli.changes b/meli.changes new file mode 100644 index 0000000..18cf347 --- /dev/null +++ b/meli.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Fri Dec 20 11:03:51 UTC 2024 - Soc Virnyl Estela + +- This package requires libgpgme + +------------------------------------------------------------------- +Sat Dec 14 13:28:10 UTC 2024 - Soc Virnyl Estela + +- Add patch 0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch + +------------------------------------------------------------------- +Fri Dec 13 12:02:40 UTC 2024 - Soc Virnyl Estela + +- Enable feature imap-trace. + +------------------------------------------------------------------- +Fri Dec 13 11:51:24 UTC 2024 - Soc Virnyl Estela + +- Enable feature debug-tracing. + +------------------------------------------------------------------- +Fri Dec 13 11:32:28 UTC 2024 - Soc Virnyl Estela + +- Add release-profile.patch + +------------------------------------------------------------------- +Thu Dec 12 11:35:30 UTC 2024 - Soc Virnyl Estela + +- Use locked and un-updated versions of crate dependencies + +------------------------------------------------------------------- +Sat Dec 7 23:05:51 UTC 2024 - Soc Virnyl Estela + +- Update to version 0.8.10: + * Two years of changes is too long. See + https://github.com/meli/meli/blob/v0.8.10/CHANGELOG.md instead +- Use shipped source tarball instead of archiving git source +- Move from vendor.tar.xz to vendor.tar.zst +- Remove cargo_config + +------------------------------------------------------------------- +Mon Mar 14 14:57:54 UTC 2022 - Michael Vetter + +- Initial package of meli 0.7.2 for openSUSE diff --git a/meli.spec b/meli.spec new file mode 100644 index 0000000..2858fa0 --- /dev/null +++ b/meli.spec @@ -0,0 +1,63 @@ +# +# spec file for package meli +# +# Copyright (c) 2024 SUSE LLC +# +# 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/ +# + + +Name: meli +Version: 0.8.10 +Release: 0 +Summary: Terminal email client +License: GPL-3.0-or-later +Group: Productivity/Networking/Email/Clients +URL: https://meli-email.org/ +Source0: https://github.com/meli/meli/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: vendor.tar.zst +Patch0: release-profile.patch +Patch1: 0001-Revert-accounts-cancel-any-previous-mailbox-fetches.patch +BuildRequires: cargo-packaging +BuildRequires: dbus-1-glib-devel +BuildRequires: libgpgme-devel +BuildRequires: libopenssl-devel +BuildRequires: mandoc-bin +BuildRequires: sqlite3-devel + +%description +Terminal email client with support for multiple accounts and Maildir / mbox / notmuch / IMAP / JMAP. + +%prep +%autosetup -a1 -p1 + +%build +%{cargo_build} -F debug-tracing,imap-trace + +%install +mkdir -p %{buildroot}%{_bindir} + +cp target/release/meli %{buildroot}%{_bindir} + +install -Dm644 meli/docs/meli.1 %{buildroot}%{_mandir}/man1/meli.1 +install -Dm644 meli/docs/meli.conf.5 %{buildroot}%{_mandir}/man5/meli.conf.5 +install -Dm644 meli/docs/meli-themes.5 %{buildroot}%{_mandir}/man5/meli-themes.5 + +%files +%license COPYING +%doc CHANGELOG.md README.md +%{_bindir}/meli +%{_mandir}/man1/meli.1%{?ext_man} +%{_mandir}/man5/meli-themes.5%{?ext_man} +%{_mandir}/man5/meli.conf.5%{?ext_man} + +%changelog diff --git a/release-profile.patch b/release-profile.patch new file mode 100644 index 0000000..1f60815 --- /dev/null +++ b/release-profile.patch @@ -0,0 +1,10 @@ +--- a/Cargo.toml 2024-12-13 19:30:59.062868522 +0800 ++++ b/Cargo.toml 2024-12-13 19:31:09.232899444 +0800 +@@ -10,5 +10,5 @@ + lto = "fat" + codegen-units = 1 + opt-level = "s" +-debug = false +-strip = true ++debug = true ++strip = false diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..6eae150 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db9bcdbf2fd0873fd523a9d08abfc55ffb492626fe40a7e72f8aed21159d8688 +size 48301574