Blame python-samloader.spec

073df1f
%global forgeurl https://github.com/nlscc/samloader
073df1f
%global commit 820375214f1b7b26109e5c3aea8d005fcc56eebf
073df1f
%forgemeta
073df1f
073df1f
%global pypi_name samloader
073df1f
073df1f
Name:           python-%{pypi_name}
073df1f
Version:        0
073df1f
Release:        %autorelease
073df1f
Summary:        Download Samsung firmware from official servers
073df1f
073df1f
License:        GPLv3
073df1f
URL:            %{forgeurl}
073df1f
Source0:        %{forgesource}
073df1f
Patch0:         %{url}/pull/59.patch#/Use-tqdm-for-progress-bar.patch
073df1f
073df1f
BuildArch:      noarch
073df1f
BuildRequires:  python3-devel
073df1f
073df1f
%global _description %{expand:
073df1f
samloader is a tool to download firmware for Samsung devices from the official
073df1f
servers.}
073df1f
073df1f
%description %_description
073df1f
073df1f
%package -n %{pypi_name}
073df1f
Summary:        %{summary}
073df1f
073df1f
%description -n %{pypi_name} %_description
073df1f
073df1f
%prep
073df1f
%autosetup -p1 -n %{pypi_name}-%{commit}
073df1f
073df1f
%generate_buildrequires
073df1f
%pyproject_buildrequires -r
073df1f
073df1f
%build
073df1f
%pyproject_wheel
073df1f
073df1f
%install
073df1f
%pyproject_install
073df1f
%pyproject_save_files %{pypi_name}
073df1f
073df1f
%check
073df1f
%pyproject_check_import %{pypi_name}
073df1f
073df1f
073df1f
%files -n %{pypi_name} -f %{pyproject_files}
073df1f
%license COPYING
073df1f
%doc README.md
073df1f
%{_bindir}/%{pypi_name}
073df1f
073df1f
%changelog
073df1f
%autochangelog