## 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 %global astal_commit d538d8e1b789f9c5fd673c9bc00eb18d4be6a6f3 %global astal_shortcommit %(c=%{astal_commit}; echo ${c:0:7}) %global bumpver 1 %global debug_package %{nil} %global _vpath_srcdir lang/lua Name: astal-lua Version: 0~%{bumpver}.git%{astal_shortcommit} Release: %autorelease Summary: Lua bindings for libastal License: LGPL-2.1-only URL: https://github.com/Aylur/astal Source0: %{url}/archive/%{astal_commit}/%{name}-%{astal_shortcommit}.tar.gz BuildArch: noarch BuildRequires: lua-devel Requires: lua-lgi %{?lua_requires} %description %{summary}. %prep %autosetup -n astal-%{astal_commit} -p1 %build %install pushd %{_vpath_srcdir} mkdir -p %{buildroot}%{lua_pkgdir} cp -pr astal %{buildroot}%{lua_pkgdir} %files %license LICENSE %{lua_pkgdir}/astal/ %changelog ## START: Generated by rpmautospec * Sat Nov 16 2024 John Doe - 0~1.gitd538d8e-1 - Uncommitted changes ## END: Generated by rpmautospec