## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global with_snapshot 1 %global gitdate 20260723 %global commit 0b3897c9c10d41752e431744c8a5a6502a27828e %global shortcommit %(c=%{commit}; echo ${c:0:8}) %global desc %{expand: \ qcom-ptool contains various device partitioning utilities like ptool.py, gen_partitions.py and various sample partition configuration files needed for Qualcomm SoCs.} Name: qcom-ptool Version: 0.0%{?with_snapshot:^%{gitdate}git%{shortcommit}} Release: %autorelease Summary: Qualcomm SoC partitioning tool License: BSD-3-Clause URL: https://github.com/qualcomm-linux/qcom-ptool %if %{with_snapshot} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz %endif # https://github.com/qualcomm-linux/qcom-ptool/pull/148 Patch0: 148.patch # https://github.com/qualcomm-linux/qcom-ptool/pull/150 Patch1: 150.patch BuildArch: noarch BuildRequires: python3-devel %description %{desc} %prep %if %{with_snapshot} %autosetup -p1 -n %{name}-%{commit} %else %autosetup %endif %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files qcom_ptool %files -n qcom-ptool -f %{pyproject_files} %doc README.md CONTRIBUTING.md %{_bindir}/qcom-ptool %changelog ## START: Generated by rpmautospec * Tue Aug 11 2026 Ali Erdinc Koroglu - 0.0^20260723git0b3897c9-2 - autochangelog fix * Tue Jul 28 2026 Ali Erdinc Koroglu - 0.0^20260723git0b3897c9-1 - 1st release ## END: Generated by rpmautospec