## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 with_snapshot 1 %global gitdate 20260416 %global commit a66a0019fb488abae955bbc9b3a9de3dc15962d0 %global shortcommit %(c=%{commit}; echo ${c:0:8}) Name: qaic Version: 0.0%{?with_snapshot:^%{gitdate}git%{shortcommit}} Release: %autorelease Summary: Another Idl Compiler License: BSD-3-Clause URL: https://github.com/qualcomm/qaic %if %{with_snapshot} Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz %endif Patch0: makefile-generate.patch ExclusiveArch: %{arm64} BuildRequires: cabal-install BuildRequires: ghc BuildRequires: ghc-Cabal BuildRequires: ghc-syb-devel BuildRequires: ghc-rpm-macros %description Qaic's Another Idl Compiler, is a command-line executable used to implement remote shared objects for the DSP Platform. %prep %if %{with_snapshot} %autosetup -p1 -n QAIC-%{commit} %else %autosetup %endif %build cd src make generate GITCOMMIT=%{commit} %ghc_bin_build %install cd src %ghc_bin_install install -Dpm 0644 ../inc/remote.idl %{buildroot}%{_datadir}/qaic/include/remote.idl %files %license LICENSE.txt %doc README.md %{_bindir}/qaic %dir %{_datadir}/qaic %dir %{_datadir}/qaic/include %{_datadir}/qaic/include/remote.idl %changelog ## START: Generated by rpmautospec * Wed Jul 22 2026 John Doe - 0.0^20260416gita66a0019-1 - Uncommitted changes ## END: Generated by rpmautospec