pf-bb-config/pf-bb-config.spec

64 lines
1.9 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# needssslcertforbuild
Name: pf-bb-config
Version: 24.03
Release: 0
Summary: PF-bb-config for acc100 card
License: BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only
Group: System/Libraries
URL: https://github.com/intel/pf-bb-config
Source: pf-bb-config-24.03.zip
BuildRequires: unzip
BuildRequires: libatomic1
BuildRequires: gcc
BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: permissions
%description
pf-bb-config from Intel to setup the ACC100/ACC200/AGX100 accelerator cards
%package pf-bb-config
Summary: pf-bb-config software to deploy ACC100/ACC200/AGX100 accelerator cards
Group: Development/Libraries/C and C++
%description pf-bb-config
pf-bb-config from Intel to setup the ACC100/ACC200/AGX100 accelerator cards
%prep
%setup -q -n %{name}-%{version}
%build
make %{?jobs:-j%jobs}
%install
mkdir -p %{buildroot}%{_bindir}
cp pf_bb_config %{buildroot}%{_bindir}
mkdir -p %{buildroot}/opt/pf-bb-config
cp -rf acc100/*.cfg acc200/*.cfg agx100/*.cfg %{buildroot}/opt/pf-bb-config
%set_permissions %{_bindir}/pf_bb_config
%files
%defattr(-,root,root,-)
/opt/pf-bb-config/
/opt/pf-bb-config/*.cfg
%{_bindir}/pf_bb_config
%changelog