Blame SPECS/accel-config.spec

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