From e09fd69db14e8ad04245ab50a7f8a626e2b3ebf7 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 17 Nov 2020 11:10:18 -0800 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/accel-config#5ef8add22a84605d0c1a4c3d4ac48cd0ba0c3cea --- .gitignore | 1 + README.md | 3 ++ accel-config.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+) create mode 100644 README.md create mode 100644 accel-config.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1462dae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/accel-config-v2.8.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b1e05e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# accel-config + +The accel-config package diff --git a/accel-config.spec b/accel-config.spec new file mode 100644 index 0000000..8854e4e --- /dev/null +++ b/accel-config.spec @@ -0,0 +1,90 @@ +%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 + +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 -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 diff --git a/sources b/sources new file mode 100644 index 0000000..fa7841b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (accel-config-v2.8.tar.gz) = 7f32a01bfec7ffb388aae8b20573198611416c40554e68fcd56893180432ed79cfa26b2533b512813d332f2f15543feb3db18264865da9f6921af66cbec17456