From b732465b20760948843a8beaadf02e1c940dfc51 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 1 Aug 2019 23:01:53 -0400 Subject: [PATCH] import libcxl-1.7-1.el8 --- .gitignore | 1 + .libcxl.metadata | 1 + SPECS/libcxl.spec | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 .gitignore create mode 100644 .libcxl.metadata create mode 100644 SPECS/libcxl.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58711e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v1.7.tar.gz diff --git a/.libcxl.metadata b/.libcxl.metadata new file mode 100644 index 0000000..70284c0 --- /dev/null +++ b/.libcxl.metadata @@ -0,0 +1 @@ +687cc46bdf068b5d398463c167160b2c1a5e13d7 SOURCES/v1.7.tar.gz diff --git a/SPECS/libcxl.spec b/SPECS/libcxl.spec new file mode 100644 index 0000000..761cff5 --- /dev/null +++ b/SPECS/libcxl.spec @@ -0,0 +1,122 @@ +%global soversion 1 + +Name: libcxl +Version: 1.7 +Release: 1%{?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 +ExclusiveArch: %{power64} +BuildRequires: gcc + +%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 + +%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 May 18 2018 Sinny Kumari - 1.7-1 +- Resolves RH#1524655 +- Rebase to v1.7 +- Remove libcxl_sysmacros.patch, available in this rebase version + +* 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