## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 Name: newflasher Version: 57 Release: %autorelease Summary: Flash tool for new Sony flash tool protocol (Xperia XZ Premium and further) License: MIT URL: https://github.com/munjeni/newflasher Source0: %{url}/archive/refs/tags/%{version}.tar.gz BuildRequires: expat-devel BuildRequires: gcc BuildRequires: zlib-ng-compat-devel %description %{summary}. %prep %autosetup %build sed -i "s/CFLAGS=/CFLAGS?=/" makefile %make_build %install install -Dpm 0755 newflasher %{buildroot}/%{_bindir}/newflasher install -Dpm 0644 newflasher.1 %{buildroot}/%{_mandir}/man1/newflasher.1 %files %doc readme.md %{_bindir}/newflasher %{_mandir}/man1/newflasher.1.* %changelog ## START: Generated by rpmautospec * Wed Jan 15 2025 LuK1337 - 57-1 - Initial commit ## END: Generated by rpmautospec