From 979fe19b43897c13208582ed5d84a05dc21f4fbf Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 18 2021 06:53:33 +0000 Subject: import accel-config-2.8-1.el8 --- diff --git a/.accel-config.metadata b/.accel-config.metadata new file mode 100644 index 0000000..7a0db26 --- /dev/null +++ b/.accel-config.metadata @@ -0,0 +1 @@ +b13c1239eafdca1ce46250cf1fe0880c0177b078 SOURCES/accel-config-v2.8.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..326da78 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/accel-config-v2.8.tar.gz diff --git a/SOURCES/01-accel-config-2.8-test-fix.patch b/SOURCES/01-accel-config-2.8-test-fix.patch new file mode 100644 index 0000000..458aea2 --- /dev/null +++ b/SOURCES/01-accel-config-2.8-test-fix.patch @@ -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 diff --git a/SPECS/accel-config.spec b/SPECS/accel-config.spec new file mode 100644 index 0000000..42cec0f --- /dev/null +++ b/SPECS/accel-config.spec @@ -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 - 2.8-1 +- Initial Packaging