File meli.spec of Package meli

#
# spec file for package meli
#
# Copyright (c) 2025 mantarimay
# Copyright (c) 2023 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.11
Release:        0
Summary:        Terminal email client
License:        GPL-3.0-or-later
URL:            https://github.com/meli/meli
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:        vendor.tar.zst
BuildRequires:  cargo-packaging
BuildRequires:  mandoc
# build inputs
BuildRequires:  dbus-1-glib-devel
BuildRequires:  libopenssl-devel
BuildRequires:  sqlite3-devel
Requires:       m4

%description
Terminal email client with support for multiple accounts and Maildir 
/ mbox / notmuch / IMAP / JMAP.

%prep
%autosetup -a1 -p1

%build
%{cargo_build}

%install
install -Dpm755 target/release/%{name} -t %{buildroot}%{_bindir}
install -Dpm644 meli/docs/meli.1 -t %{buildroot}%{_mandir}/man1
install -Dpm644 meli/docs/meli.7 -t %{buildroot}%{_mandir}/man7
install -Dpm644 meli/docs/meli.conf.5 -t %{buildroot}%{_mandir}/man5
install -Dpm644 meli/docs/meli-themes.5 -t %{buildroot}%{_mandir}/man5

%files
%license COPYING
%doc README* CHANGELOG.md meli/docs/samples
%{_bindir}/%{name}
%{_mandir}/man*/meli*

%changelog
openSUSE Build Service is sponsored by