Blame SPECS/accel-config.spec

7cc02f
%global	project_name	idxd-config
7cc02f
7cc02f
Name:		accel-config
2f89fb
Version:	3.4.2
7cc02f
Release:	1%{?dist}
7cc02f
Summary:	Configure accelerator subsystem devices
7cc02f
# The entire source code is under GPLv2 except for accel-config
7cc02f
# library which is mostly LGPLv2, ccan/list which is BSD-MIT and
7cc02f
# the rest of ccan which is CC0.
2f89fb
License:	GPLv2 and LGPLv2+ and MIT and CC0
7cc02f
URL:		https://github.com/intel/%{project_name}
7cc02f
Source0:	%{URL}/archive/%{name}-v%{version}.tar.gz
2f89fb
Patch0: 0001-testing-vercheck.patch
2f89fb
Patch1: 0001-accel-config-clean-up-double-frees-in-add_group.patch
2f89fb
Patch2: 0003-accel-config-remove-redundant-assignment-in-umwait.patch
7cc02f
7cc02f
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
7cc02f
BuildRequires:	gcc
7cc02f
BuildRequires:	autoconf
7cc02f
BuildRequires:	asciidoc
7cc02f
BuildRequires:	xmlto
7cc02f
BuildRequires:	automake
7cc02f
BuildRequires:	libtool
7cc02f
BuildRequires:	pkgconfig
7cc02f
BuildRequires:	pkgconfig(libkmod)
7cc02f
BuildRequires:	pkgconfig(uuid)
7cc02f
BuildRequires:	pkgconfig(json-c)
7cc02f
BuildRequires:	pkgconfig(libudev)
7cc02f
BuildRequires:	systemd
7cc02f
7cc02f
# accel-config is for configuring Intel DSA (Data-Streaming
7cc02f
# Accelerator) subsystem in the Linux kernel. It supports x86 only.
7cc02f
ExclusiveArch:	%{ix86} x86_64
7cc02f
7cc02f
%description
7cc02f
Utility library for configuring the accelerator subsystem.
7cc02f
7cc02f
%package devel
7cc02f
Summary:	Development files for libaccfg
2f89fb
License:	LGPLv2+
7cc02f
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
7cc02f
7cc02f
%description devel
7cc02f
The %{name}-devel package contains libraries and header files for
7cc02f
developing applications that use %{name}.
7cc02f
7cc02f
7cc02f
%package libs
7cc02f
Summary:	Configuration library for accelerator subsystem devices
7cc02f
# All source code of configuration library is LGPLv2, except
7cc02f
# ccan/list which is BSD-MIT and the rest of ccan/ which is CC0.
2f89fb
License:	LGPLv2+ and MIT and CC0
7cc02f
Requires:	%{name}%{?_isa} = %{version}-%{release}
7cc02f
7cc02f
%description libs
7cc02f
Libraries for %{name}.
7cc02f
2f89fb
%package test
2f89fb
Summary:        Tests for accel-config
2f89fb
License:        GPLv2
2f89fb
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
2f89fb
2f89fb
%description test
2f89fb
Tests for accel-config command.
2f89fb
7cc02f
%prep
7cc02f
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
7cc02f
7cc02f
%build
7cc02f
echo %{version} > version
7cc02f
./autogen.sh
2f89fb
%configure --disable-static --disable-silent-rules --enable-test
7cc02f
%make_build
7cc02f
7cc02f
%install
7cc02f
%make_install
7cc02f
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
7cc02f
7cc02f
%check
7cc02f
make check
7cc02f
7cc02f
%files
7cc02f
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
2f89fb
%license licenses/accel-config-licenses LICENSE_GPL_2_0
7cc02f
%{_bindir}/%{name}
7cc02f
%{_mandir}/man1/%{name}*
7cc02f
%{_sysconfdir}/%{name}/%{name}.conf.sample
7cc02f
7cc02f
%files libs
7cc02f
%doc README.md
7cc02f
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
2f89fb
%license licenses/libaccel-config-licenses accfg/lib/LICENSE_LGPL_2_1
7cc02f
%{_libdir}/lib%{name}.so.*
7cc02f
7cc02f
%files devel
7cc02f
%license Documentation/COPYING
7cc02f
%{_includedir}/%{name}/
7cc02f
%{_libdir}/lib%{name}.so
7cc02f
%{_libdir}/pkgconfig/lib%{name}.pc
7cc02f
2f89fb
%files test
2f89fb
%license Documentation/COPYING LICENSE_GPL_2_0
2f89fb
#%doc test/README.md
2f89fb
%{_datadir}/accel-config/test/*
2f89fb
7cc02f
%changelog
2f89fb
* Thu Sep 09 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-1
2f89fb
- Rebase to 3.4.2 and add test subpackage.
2f89fb
resolves: rhbz#1971910
2f89fb
8f84e7
* Tue May 18 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.1-1
8f84e7
- Rebase to 3.1 release.
8f84e7
resolves: rhbz#1920762
8f84e7
7cc02f
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
7cc02f
- Initial Packaging