import accel-config-2.8-1.el8

This commit is contained in:
CentOS Sources 2021-05-18 02:53:33 -04:00 committed by Andrew Lukoshko
commit d303aefc8d
4 changed files with 114 additions and 0 deletions

1
.accel-config.metadata Normal file
View File

@ -0,0 +1 @@
b13c1239eafdca1ce46250cf1fe0880c0177b078 SOURCES/accel-config-v2.8.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/accel-config-v2.8.tar.gz

View File

@ -0,0 +1,21 @@
Common subdirectories: idxd-config-accel-config-v2.8/accfg and idxd-config-accel-config-v2.8-new/accfg
Common subdirectories: idxd-config-accel-config-v2.8/ccan and idxd-config-accel-config-v2.8-new/ccan
Common subdirectories: idxd-config-accel-config-v2.8/contrib and idxd-config-accel-config-v2.8-new/contrib
Common subdirectories: idxd-config-accel-config-v2.8/Documentation and idxd-config-accel-config-v2.8-new/Documentation
Common subdirectories: idxd-config-accel-config-v2.8/licenses and idxd-config-accel-config-v2.8-new/licenses
diff -u idxd-config-accel-config-v2.8/Makefile.am idxd-config-accel-config-v2.8-new/Makefile.am
--- idxd-config-accel-config-v2.8/Makefile.am 2020-09-18 10:24:01.000000000 -0700
+++ idxd-config-accel-config-v2.8-new/Makefile.am 2021-01-19 10:12:19.243429399 -0700
@@ -5,7 +5,9 @@
if ENABLE_DOCS
SUBDIRS += Documentation/accfg
endif
+if ENABLE_TEST
SUBDIRS += test
+endif
BUILT_SOURCES = version.m4
version.m4: FORCE
Common subdirectories: idxd-config-accel-config-v2.8/sles and idxd-config-accel-config-v2.8-new/sles
Common subdirectories: idxd-config-accel-config-v2.8/test and idxd-config-accel-config-v2.8-new/test
Common subdirectories: idxd-config-accel-config-v2.8/util and idxd-config-accel-config-v2.8-new/util

91
SPECS/accel-config.spec Normal file
View File

@ -0,0 +1,91 @@
%global project_name idxd-config
Name: accel-config
Version: 2.8
Release: 1%{?dist}
Summary: Configure accelerator subsystem devices
# The entire source code is under GPLv2 except for accel-config
# library which is mostly LGPLv2, ccan/list which is BSD-MIT and
# the rest of ccan which is CC0.
License: GPLv2 and LGPLv2 and MIT and CC0
URL: https://github.com/intel/%{project_name}
Source0: %{URL}/archive/%{name}-v%{version}.tar.gz
Patch0: 01-accel-config-2.8-test-fix.patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libkmod)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libudev)
BuildRequires: systemd
# accel-config is for configuring Intel DSA (Data-Streaming
# Accelerator) subsystem in the Linux kernel. It supports x86 only.
ExclusiveArch: %{ix86} x86_64
%description
Utility library for configuring the accelerator subsystem.
%package devel
Summary: Development files for libaccfg
License: LGPLv2
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package libs
Summary: Configuration library for accelerator subsystem devices
# All source code of configuration library is LGPLv2, except
# ccan/list which is BSD-MIT and the rest of ccan/ which is CC0.
License: LGPLv2 and MIT and CC0
Requires: %{name}%{?_isa} = %{version}-%{release}
%description libs
Libraries for %{name}.
%prep
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
%build
echo %{version} > version
./autogen.sh
%configure --disable-static --disable-silent-rules
%make_build
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
make check
%files
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_sysconfdir}/%{name}/%{name}.conf.sample
%files libs
%doc README.md
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
%{_libdir}/lib%{name}.so.*
%files devel
%license Documentation/COPYING
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc
%changelog
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
- Initial Packaging