File megatools.spec of Package megatools
#
# spec file for package megatools
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# 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/
#
%global snapshot 20250411
Name: megatools
Version: 1.11.4
Release: 0
Summary: CLI client for mega.nz
License: GPL-2.0-or-later
Group: Productivity/Networking/File-Sharing
URL: https://megatools.megous.com
Source0: https://xff.cz/megatools/builds/%{name}-%{version}.%{snapshot}.tar.gz
Source1: https://xff.cz/megatools/builds/%{name}-%{version}.%{snapshot}.tar.gz.asc
# Keyring obtained from https://xff.cz/key.txt
Source2: %{name}.keyring
BuildRequires: asciidoc
BuildRequires: docbook2X
BuildRequires: meson >= 0.46.0
BuildRequires: pkgconfig(gio-2.0) >= 2.40.0
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libcurl) >= 7.85.0
%description
Megatools allow you to copy individual files as well as entire directory trees
to and from the cloud. You can also perform streaming downloads for example to
preview videos and audio files, without needing to download the entire file.
You can register an account using a "megareg" tool, with the benefit of having
true control of your encryption keys.
Megatools are robust and optimized for fast operation - as fast as Mega servers
allow. Memory requirements and CPU utilization are kept at minimum.
%prep
%autosetup -n %{name}-%{version}.%{snapshot}
%build
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%ldconfig_scriptlets
%files
%license LICENSE
%doc NEWS README
%{_bindir}/mega*
%{_mandir}/man1/mega*.1%{?ext_man}
%{_mandir}/man5/mega*.5%{?ext_man}
%exclude %{_datadir}/doc/%{name}/*
%changelog