diff --git a/accel-config-v3.4.2.tar.gz b/accel-config-v3.4.2.tar.gz deleted file mode 100644 index ccbccf6888692dfc2e12fc1b3c15c8a8d6251313..0000000000000000000000000000000000000000 Binary files a/accel-config-v3.4.2.tar.gz and /dev/null differ diff --git a/accel-config.spec b/accel-config.spec index 75e1f4a7f878980b20031de4876c1a42c63a3de4..ac26cc332ed54259ae4068de5c62fc40bf35d098 100644 --- a/accel-config.spec +++ b/accel-config.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + %global project_name idxd-config Name: accel-config Version: 3.4.2 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?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 @@ -15,6 +17,7 @@ Patch1: 0001-accel-config-clean-up-double-frees-in-add_group.patch Patch2: 0003-accel-config-remove-redundant-assignment-in-umwait.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: glibc BuildRequires: gcc BuildRequires: autoconf BuildRequires: asciidoc @@ -28,6 +31,8 @@ BuildRequires: pkgconfig(json-c) BuildRequires: pkgconfig(libudev) BuildRequires: systemd +Provides: /usr/bin/%{name} + # accel-config is for configuring Intel DSA (Data-Streaming # Accelerator) subsystem in the Linux kernel. It supports x86 only. ExclusiveArch: %{ix86} x86_64 @@ -63,6 +68,14 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description test Tests for accel-config command. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 -n %{project_name}-%{name}-v%{version} @@ -87,7 +100,6 @@ make check %{_sysconfdir}/%{name}/%{name}.conf.sample %files libs -%doc README.md %license Documentation/COPYING licenses/BSD-MIT licenses/CC0 %license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1 %{_libdir}/lib%{name}.so.* @@ -103,7 +115,13 @@ make check #%doc test/README.md %{_datadir}/accel-config/test/* +%files doc +%doc README.md + %changelog +* Fri Jul 15 2022 Zhao Hang - 3.4.2-1.0.1 +- Add doc sub package + * Thu Sep 09 2021 Jerry Snitselaar - 3.4.2-1 - Rebase to 3.4.2 and add test subpackage. resolves: rhbz#1971910