Blame SPECS/accel-config.spec

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