File samloader.spec of Package samloader
#
# spec file for package samloader
#
# copyright (c) 2025 munix9@googlemail.com
#
Name: samloader
Version: 0.4
Release: 0
Summary: A tool to download firmware for Samsung phones
License: GPL-3.0-or-later
URL: https://github.com/martinetd/samloader
Source0: %{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-pycryptodomex
BuildRequires: python3-requests
BuildRequires: python3-setuptools
BuildRequires: python3-tqdm
BuildRequires: python3-wheel
Requires: python3-pycryptodomex
Requires: python3-requests
Requires: python3-tqdm
BuildArch: noarch
%description
Download Samsung firmware from official servers.
%prep
%autosetup -p1
%build
%python3_pyproject_wheel
%install
%python3_pyproject_install
%fdupes %{buildroot}%{python_sitelib}
%check
export PATH=%{buildroot}%{_bindir}:$PATH
export PYTHONPATH=%{buildroot}%{python_sitelib}
export PYTHONDONTWRITEBYTECODE=1
%{name} --help
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-*.dist-info
%changelog