%global forgeurl https://github.com/intel/igsc %global major 1 %global version0 %{major}.0.0 %global tag V%{version0} #%%global commit %global topdir igsc-%{version0} %global forgesetupargs -p1 -n %{topdir} Version: %{version0} %forgemeta Name: intel-gsc Release: %autorelease Summary: Intel Graphics System Controller Firmware Update Library (IGSC FUL) License: Apache-2.0 URL: %{forgeurl} Source0: %{forgesource} BuildRequires: forge-srpm-macros BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: doxygen BuildRequires: python3-sphinx BuildRequires: systemd-devel BuildRequires: intel-metee-devel >= 5.0.0 # Upstream only supports x86_64 ExclusiveArch: x86_64 Requires: intel-metee >= 5.0.0 %global common_description %{expand: The Intel Graphics System Firmware Update Library (IGSC FUL) is a pure C low level library that exposes a required API to perform a firmware update of a particular Intel discrete graphics device. The library utilized a cross platform library metee_ in order to access the GSC (mei) device. GSC device is an extension of the Intel discrete graphics device (dGFX). The library can update GSC firmware itself, and as well as OPROM VBT and the code (VBIOS, GOP). The library provides retrieval of identity and version information from both graphic device and supplied firmware or OPROM image as well as function for firmware update of those images to the device. } %description %common_description %package devel Summary: Development headers for igsc Requires: %{name} = %{version}-%{release} Recommends: %{name}-doc = %{version}-%{release} Requires: intel-metee-devel >= 5.0.0 ExclusiveArch: x86_64 %description devel Development headers for igsc %common_description %package doc Summary: Documentation for igsc BuildArch: noarch ExclusiveArch: x86_64 %description doc Documentation for igsc %common_description %prep %forgeautosetup %build %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_DOCS=ON %cmake_build %install %cmake_install %files %license LICENSE.txt %{_bindir}/igsc %{_libdir}/libigsc.so.%{version}.* %{_libdir}/libigsc.so.%{major} %files devel %{_libdir}/libigsc.so %{_libdir}/cmake/igsc/ %{_includedir}/igsc_lib.h %{_mandir}/man3/enumeration.3.gz %{_mandir}/man3/firmware_status.3.gz %{_mandir}/man3/gsfp.3.gz %{_mandir}/man3/ifr.3.gz %{_mandir}/man3/igsc_*.3.gz %{_mandir}/man3/IGSC_*.3.gz %{_mandir}/man3/oprom.3.gz %files doc %license LICENSE.txt %{_docdir}/igsc/ %changelog %autochangelog