2021-05-18 06:53:33 +00:00
|
|
|
%global project_name idxd-config
|
|
|
|
|
|
|
|
Name: accel-config
|
2023-05-16 06:17:18 +00:00
|
|
|
Version: 3.5.0
|
2021-05-18 06:53:33 +00:00
|
|
|
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.
|
2022-05-10 07:15:09 +00:00
|
|
|
License: GPLv2 and LGPLv2+ and MIT and CC0
|
2021-05-18 06:53:33 +00:00
|
|
|
URL: https://github.com/intel/%{project_name}
|
|
|
|
Source0: %{URL}/archive/%{name}-v%{version}.tar.gz
|
2022-05-10 07:15:09 +00:00
|
|
|
Patch0: 0001-testing-vercheck.patch
|
2021-05-18 06:53:33 +00:00
|
|
|
|
|
|
|
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)
|
2023-05-16 06:17:18 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2021-05-18 06:53:33 +00:00
|
|
|
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
|
2022-05-10 07:15:09 +00:00
|
|
|
License: LGPLv2+
|
2021-05-18 06:53:33 +00:00
|
|
|
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.
|
2022-05-10 07:15:09 +00:00
|
|
|
License: LGPLv2+ and MIT and CC0
|
2021-05-18 06:53:33 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
Libraries for %{name}.
|
|
|
|
|
2022-05-10 07:15:09 +00:00
|
|
|
%package test
|
|
|
|
Summary: Tests for accel-config
|
|
|
|
License: GPLv2
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description test
|
|
|
|
Tests for accel-config command.
|
|
|
|
|
2021-05-18 06:53:33 +00:00
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
echo %{version} > version
|
|
|
|
./autogen.sh
|
2022-05-10 07:15:09 +00:00
|
|
|
%configure --disable-static --disable-silent-rules --enable-test
|
2021-05-18 06:53:33 +00:00
|
|
|
%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
|
2022-05-10 07:15:09 +00:00
|
|
|
%license licenses/accel-config-licenses LICENSE_GPL_2_0
|
2021-05-18 06:53:33 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}*
|
2023-05-16 06:17:18 +00:00
|
|
|
%{_sysconfdir}/%{name}/contrib/configs/*
|
2021-05-18 06:53:33 +00:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%doc README.md
|
|
|
|
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
|
2022-05-10 07:15:09 +00:00
|
|
|
%license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1
|
2021-05-18 06:53:33 +00:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license Documentation/COPYING
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/lib%{name}.pc
|
|
|
|
|
2022-05-10 07:15:09 +00:00
|
|
|
%files test
|
|
|
|
%license Documentation/COPYING LICENSE_GPL_2_0
|
|
|
|
#%doc test/README.md
|
2023-05-16 06:17:18 +00:00
|
|
|
%{_prefix}/lib/accel-config/test/*
|
2022-05-10 07:15:09 +00:00
|
|
|
|
2021-05-18 06:53:33 +00:00
|
|
|
%changelog
|
2023-05-16 06:17:18 +00:00
|
|
|
* Sun Oct 16 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.5.0-1
|
|
|
|
- Rebase to the 3.5.0 release.
|
|
|
|
resolves: rhbz#2101608
|
|
|
|
|
|
|
|
* Thu Oct 06 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.8-1
|
|
|
|
- Rebase to 3.4.8 release.
|
|
|
|
resolves: rhbz#2101608
|
|
|
|
|
2022-11-08 06:54:42 +00:00
|
|
|
* Sun Apr 03 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.6.3-1
|
|
|
|
- Rebase to 3.4.6.3 release.
|
|
|
|
resolves: rhbz#2040076
|
|
|
|
|
2022-05-10 07:15:09 +00:00
|
|
|
* Thu Sep 09 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-1
|
|
|
|
- Rebase to 3.4.2 and add test subpackage.
|
|
|
|
resolves: rhbz#1971910
|
|
|
|
|
2021-11-09 10:08:07 +00:00
|
|
|
* Tue May 18 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.1-1
|
|
|
|
- Rebase to 3.1 release.
|
|
|
|
resolves: rhbz#1920762
|
|
|
|
|
2021-05-18 06:53:33 +00:00
|
|
|
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
|
|
|
|
- Initial Packaging
|