Blame SPECS/accel-config.spec

44c084
%global	project_name	idxd-config
44c084
%global	debug_package	%{nil}
44c084
44c084
Name:		accel-config
0208f8
Version:	3.4.2
c11be2
Release:	2%{?dist}
44c084
Summary:	Configure accelerator subsystem devices
44c084
# The entire source code is under GPLv2 except for accel-config
44c084
# library which is mostly LGPLv2.1, ccan/list which is BSD-MIT and
44c084
# the rest of ccan which is CC0.
44c084
License:	GPLv2 and LGPLv2+ and MIT and CC0
44c084
URL:		https://github.com/intel/%{project_name}
44c084
Source0:	%{URL}/archive/%{name}-v%{version}.tar.gz
0208f8
Patch0: 0001-accel-config-clean-up-double-frees-in-add_group.patch
0208f8
Patch1: 0003-accel-config-remove-redundant-assignment-in-umwait.patch
44c084
44c084
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
44c084
BuildRequires:	gcc
44c084
BuildRequires:	autoconf
44c084
BuildRequires:	asciidoc
44c084
BuildRequires:	xmlto
44c084
BuildRequires:	automake
44c084
BuildRequires:	libtool
44c084
BuildRequires:	pkgconfig
44c084
BuildRequires:	pkgconfig(libkmod)
44c084
BuildRequires:	pkgconfig(uuid)
44c084
BuildRequires:	pkgconfig(json-c)
44c084
BuildRequires:	pkgconfig(libudev)
44c084
BuildRequires:	systemd
44c084
BuildRequires: make
44c084
44c084
# accel-config is for configuring Intel DSA (Data-Streaming
44c084
# Accelerator) subsystem in the Linux kernel. It supports x86_64 only.
44c084
ExclusiveArch:	%{ix86} x86_64
44c084
44c084
%description
44c084
Utility library for configuring the accelerator subsystem.
44c084
44c084
%package devel
44c084
Summary:	Development files for libaccfg
44c084
License:	LGPLv2+
44c084
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
44c084
44c084
%description devel
44c084
The %{name}-devel package contains libraries and header files for
44c084
developing applications that use %{name}.
44c084
44c084
44c084
%package libs
44c084
Summary:	Configuration library for accelerator subsystem devices
44c084
# All source code of configuration library is LGPLv2.1, except
44c084
# ccan/list which is BSD-MIT and the rest of ccan/ which is CC0.
44c084
License:	LGPLv2+ and MIT and CC0
44c084
Requires:	%{name}%{?_isa} = %{version}-%{release}
44c084
44c084
%description libs
44c084
Libraries for %{name}.
44c084
0208f8
%package test
0208f8
Summary:        Tests for accel-config
0208f8
License:        GPLv2
0208f8
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
0208f8
0208f8
%description test
0208f8
Tests for accel-config command.
0208f8
44c084
%prep
0208f8
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
44c084
44c084
%build
44c084
echo %{version} > version
44c084
./autogen.sh
0208f8
%configure --disable-static --disable-silent-rules --enable-test=yes
44c084
%make_build
44c084
44c084
%install
44c084
%make_install
44c084
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
44c084
44c084
%check
44c084
make check
44c084
44c084
%files
44c084
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
44c084
%license licenses/accel-config-licenses LICENSE_GPL_2_0
44c084
%{_bindir}/%{name}
44c084
%{_mandir}/man1/%{name}*
44c084
%{_sysconfdir}/%{name}/%{name}.conf.sample
44c084
44c084
%files libs
44c084
%doc README.md
44c084
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
44c084
%license licenses/accel-config-licenses accfg/lib/LICENSE_LGPL_2_1
44c084
%{_libdir}/lib%{name}.so.*
44c084
44c084
%files devel
44c084
%license Documentation/COPYING
44c084
%{_includedir}/%{name}/
44c084
%{_libdir}/lib%{name}.so
44c084
%{_libdir}/pkgconfig/lib%{name}.pc
44c084
0208f8
%files test
0208f8
%license Documentation/COPYING LICENSE_GPL_2_0
0208f8
%doc test/README.md
0208f8
%{_datadir}/accel-config/test/*
0208f8
44c084
%changelog
c11be2
* Fri Feb 11 2022 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-2
c11be2
- Rebuild to clear osci test failure.
c11be2
Resolves: rhbz#1999934
c11be2
0208f8
* Tue Oct 05 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.4.2-1
0208f8
- Rebase to 3.4.2 release and add test subpackage.
0208f8
Resolves: rhbz#1999934
0208f8
44c084
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.2-3
44c084
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
44c084
  Related: rhbz#1991688
44c084
44c084
* Fri Jul 02 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.2-2
44c084
- Fix product version for gating.
44c084
Resolves: rhbz#1921368
44c084
44c084
* Mon Jun 21 2021 Jerry Snitselaar <jsnitsel@redhat.com> - 3.2-1
44c084
- Rebase to 3.2 release. Related: rhbz#1921368
44c084
44c084
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-2
44c084
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
44c084
44c084
* Mon Mar 29 2021 Yunying Sun <yunying.sun@intel.com> - 3.1-1
44c084
- Added ix86 support back as 3.1 release fixed it
44c084
- Updated to 3.1 release
44c084
44c084
* Thu Feb 18 2021 Yunying Sun <yunying.sun@intel.com> - 3.0.1-1
44c084
- Updated to 3.0.1 release
44c084
- Removed ix86 support as so far it supports x86_64 only
44c084
- Updated licenses following upstream
44c084
44c084
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
44c084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
44c084
44c084
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
44c084
- Initial Packaging