Blame SPECS/accel-config.spec

979fe1
%global	project_name	idxd-config
979fe1
979fe1
Name:		accel-config
608160
Version:	3.1
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.
979fe1
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
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)
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
979fe1
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.
979fe1
License:	LGPLv2 and MIT and CC0
979fe1
Requires:	%{name}%{?_isa} = %{version}-%{release}
979fe1
979fe1
%description libs
979fe1
Libraries for %{name}.
979fe1
979fe1
%prep
979fe1
%autosetup -p1 -n %{project_name}-%{name}-v%{version}
979fe1
979fe1
%build
979fe1
echo %{version} > version
979fe1
./autogen.sh
979fe1
%configure --disable-static --disable-silent-rules
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
979fe1
%{_bindir}/%{name}
979fe1
%{_mandir}/man1/%{name}*
979fe1
%{_sysconfdir}/%{name}/%{name}.conf.sample
979fe1
979fe1
%files libs
979fe1
%doc README.md
979fe1
%license Documentation/COPYING licenses/BSD-MIT licenses/CC0
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
979fe1
%changelog
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