%global soversion 1 Name: libcxl Version: 1.7 Release: 9%{?dist} Summary: Coherent accelerator interface License: ASL 2.0 URL: https://github.com/ibm-capi/libcxl Source0: https://github.com/ibm-capi/libcxl/archive/v%{version}.tar.gz Patch1: remove_2_backslashes_in_shell_call.patch ExclusiveArch: %{power64} BuildRequires: gcc BuildRequires: make %description The coherent accelerator interface is designed to allow the coherent connection of accelerators (FPGAs and other devices) to a POWER system. Coherent in this context means that the accelerator and CPUs can both access system memory directly and with the same effective addresses. IBM refers to this as the Coherent Accelerator Processor Interface (CAPI). In the Linux world it is referred to by the name CXL to avoid confusion with the ISDN CAPI subsystem. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains header file and man pages for developing applications that use %{name}. %prep %setup -q %patch1 -p1 %build LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" make %{?_smp_mflags} V=1 mkdir -p build/man3 cp -p man3/*.3 build/man3 %install make DESTDIR=%{buildroot} prefix=/usr install mkdir -p $RPM_BUILD_ROOT%{_mandir} cp -a build/man3 $RPM_BUILD_ROOT%{_mandir}/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc README.md %{_libdir}/libcxl.so.* %files devel %{_includedir}/* %{_mandir}/man3/* %{_libdir}/libcxl.so %changelog * Fri Apr 16 2021 Mohan Boddu - 1.7-9 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 * Tue Jan 26 2021 Fedora Release Engineering - 1.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 Michel Normand 1.7-6 Add remove_2_backslashes_in_shell_call.patch to avoid rawhide build failure. * Wed Jan 29 2020 Fedora Release Engineering - 1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 17 2018 Michel Normand 1.7-1 - Update v1.7 New api cxl_get_tunneled_ops_supported - Update v1.6 new functions cxl_afu_host_thread_wait(), cxl_work_disable_wait(), cxl_work_enable_wait() and cxl_work_get_tid() are now unconditionally built and exported. - remove libcxl_sysmacros.patch embeded upstream. * Thu Mar 08 2018 Than Ngo - 1.5-4 - fixed bz#1552648 - libcxl: Incomplete Fedora build flags injection * Wed Feb 07 2018 Fedora Release Engineering - 1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.5-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 8 2017 Michel Normand 1.5-0 - Update v1.5 * libcxl: Check afu link when read from PSA mmio return all FFs * Makefile: add -Werror * Use _DEFAULT_SOURCE rather than _BSD_SOURCE * Fix sparse warnings * Added #include * Man pages: document flags CXL_MMIO_{BIG,HOST,LITTLE}_ENDIAN * Makefile: do not fail if target symlink already exists. * Man pages: clarify mmio read/write alignment constraints. * Create LIBSONAME link * sysfs: Fix a boundary condition check for OUT_OF_RANGE macro - remove libcxl_create_soname_link.patch part of above update. - add libcxl_sysmacros.patch to avoid warning at build time * Fri Jun 10 2016 Than Ngo - 1.4-5 - cleanup specfile - upload the tarball * Thu Jun 2 2016 michel normand 1.4-4 - Update v1.4 * New API function cxl_get_psl_timebase_synced. * Simplify implementation of OUT_OF_RANGE macro * libcxl add install target * use LDFLAGS from the env * libcxl set default soname and interface version * Add extern "C" to libcxl.h for compatibility with C++ projects * typo error in 3 man pages * Add SONAME support in Makefile - remove embeded patches: libcxl_typo_correction_man_pages.patch libcxl_add_soname_in_Makefile.patch - new libcxl_create_soname_link.patch * Thu Mar 17 2016 michel normand 1.3-4 - do cp -p of man page in build section, and add empty lines below. - this is the initial version before git commit. * Fri Mar 11 2016 michel normand 1.3-3 - add libcxl.so in devel package * Thu Mar 03 2016 michel normand 1.3-2 - do not use releease in VERS_LIB * Fri Jan 29 2016 michel normand 1.3-1 - new package and spec file of libcxl from upstream url: https://github.com/ibm-capi/libcxl