Blame SPECS/accel-config.spec

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