Blame SPECS/accel-config.spec

5df1d4
%global	project_name	idxd-config
5df1d4
5df1d4
Name:		accel-config
5df1d4
Version:	2.8
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.
5df1d4
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
5df1d4
Patch0:         01-accel-config-2.8-test-fix.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
5df1d4
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.
5df1d4
License:	LGPLv2 and MIT and CC0
5df1d4
Requires:	%{name}%{?_isa} = %{version}-%{release}
5df1d4
5df1d4
%description libs
5df1d4
Libraries for %{name}.
5df1d4
5df1d4
%prep
5df1d4
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
5df1d4
5df1d4
%build
5df1d4
echo %{version} > version
5df1d4
./autogen.sh
5df1d4
%configure --disable-static --disable-silent-rules
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
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
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
5df1d4
%changelog
5df1d4
* Fri Nov 6 2020 Yunying Sun <yunying.sun@intel.com> - 2.8-1
5df1d4
- Initial Packaging