diff --git a/alsa-sof-firmware.spec b/alsa-sof-firmware.spec index e61e51b..5ae4f3b 100644 --- a/alsa-sof-firmware.spec +++ b/alsa-sof-firmware.spec @@ -3,18 +3,21 @@ %define _binaries_in_noarch_packages_terminate_build 0 %global _firmwarepath /usr/lib/firmware -%global sof_version 1.7 +%global sof_ver 1.8 +%global sof_ver_pre rc2 +%global sof_ver_rel %{?sof_ver_pre:.%{sof_ver_pre}} +%global sof_ver_pkg v%{sof_ver}%{?sof_ver_pre:-%{sof_ver_pre}} %global tplg_version 1.2.4 Summary: Firmware and topology files for Sound Open Firmware project Name: alsa-sof-firmware -Version: %{sof_version} -Release: 1%{?dist} +Version: %{sof_ver} +Release: 1%{?sof_ver_rel}%{?dist} # See later in the spec for a breakdown of licensing License: BSD URL: https://github.com/thesofproject/sof-bin -Source: https://github.com/thesofproject/sof-bin/archive/v%{sof_version}/sof-bin-%{sof_version}.tar.gz +Source: https://github.com/thesofproject/sof-bin/releases/download/%{sof_ver_pkg}/sof-bin-%{sof_ver_pkg}.tar.gz BuildRequires: alsa-topology >= %{tplg_version} BuildRequires: alsa-topology-utils >= %{tplg_version} Conflicts: alsa-firmware <= 1.2.1-6 @@ -34,15 +37,15 @@ License: BSD This package contains the debug files for the Sound Open Firmware project. %prep -%autosetup -n sof-bin-%{sof_version} +%autosetup -n sof-bin-%{sof_ver_pkg} mkdir -p firmware/intel/sof # we have the version in the package name -mv sof-v%{sof_version}/* firmware/intel/sof +mv sof-%{sof_ver_pkg}/* firmware/intel/sof # move topology files -mv sof-tplg-v%{sof_version} firmware/intel/sof-tplg +mv sof-tplg-%{sof_ver_pkg} firmware/intel/sof-tplg # remove NXP firmware files rm LICENCE.NXP