%global commit a03654eb45901207bd0a1df75e081c1d86e2663d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libtfmxaudiodecoder Version: 1.0.0 Release: 0.1.20251103git%{shortcommit}%{?dist} Summary: C wrapper library for TFMX & FC music files License: GPL-2.0-or-later URL: https://github.com/mschwendt/libtfmxaudiodecoder #Source0: https://github.com/mschwendt/%%{name}/releases/download/%%{name}-%%{version}/%%{name}-%%{version}.tar.bz2 Source0: https://github.com/mschwendt/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: make BuildRequires: automake autoconf libtool %description This music player backend library provides a C API for TFMX and Future Composer music files from the Commodore Amiga era of computing. %package devel Summary: Files needed for developing with %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the files that are needed when building software that uses %{name}. %prep %autosetup -p1 -n %{name}-%{commit} %build # Snapshots don't include pregenerated Autotools files. autoreconf -f -i %configure --disable-static make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" %files %license COPYING %doc README.md README_BAD.md TFMX.md TFMX_HIP_FC.md %{_libdir}/%{name}.so.* %files devel %{_libdir}/%{name}.so %{_libdir}/pkgconfig/*.pc %{_includedir}/tfmxaudiodecoder.h %changelog * Mon Nov 03 2025 Michael Schwendt - 1.0.0-0.1.20251103gita03654e - update FSF address in all source files to please rpmlint * Sun Nov 02 2025 Michael Schwendt - 1.0.0-0.1.20251102git7f0a34d - create spec file based on libfc14audiodecoder.spec