From e2930a72ec22afe1ea53abcdad6f6e700377dbf8 Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64lebuilder0 Date: Thu, 2 Dec 2021 11:25:31 +0100 Subject: [PATCH] pcvelib package creation Signed-off-by: basebuilder_pel7ppc64lebuilder0 --- SPECS/pveclib.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 SPECS/pveclib.spec diff --git a/SPECS/pveclib.spec b/SPECS/pveclib.spec new file mode 100644 index 00000000..dd0cff6d --- /dev/null +++ b/SPECS/pveclib.spec @@ -0,0 +1,79 @@ +%define optflags %nil +Name: pveclib +Version: 1.0.3 +Release: 2%{?dist} +Summary: Library for simplified access to PowerISA vector operations +License: ASL 2.0 +URL: https://github.com/open-power-sdk/pveclib +Source0: https://github.com/open-power-sdk/pveclib/archive/v%{version}.tar.gz +ExclusiveArch: ppc %{power64} +BuildRequires: libtool +#BuildRequires: autoconf-archive +BuildRequires: gcc-c++ + +%description +A library of useful vector operations for PowerISA 2.06 or later. Pveclib +builds on the PPC vector built-ins provided by to provide higher +level operations. These operations also bridge gaps in compiler builtin +support for the latest PowerISA and functional differences between versions +of the PowerISA. The intent is to improve the productivity of application +developers who need to optimize their applications or dependent libraries for +POWER. + +%package devel +Summary: Header files for pveclib +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +Contains header files for using pveclib operations as inline vector +instructions. + +%package static +Summary: This package contains static libraries for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description static +This package contains static libraries for pveclib. +So far only constant vectors used in conversions. + +%prep +%autosetup + +%build +%configure --docdir=%{_docdir}/%{name} +make V=1 +### %make_build + +%install +%make_install + +%check +# do not fail on test failures as builder might not support all required features +make check || : + +# we are installing it using doc +find %{buildroot} -type f -name "*.la" -delete + +%files +%license LICENSE COPYING +%doc COPYING README.md CONTRIBUTING.md ChangeLog.md +%{_libdir}/libpvec.so.0 +%{_libdir}/libpvec.so.0.0.0 + +%files devel +%doc README.md +%{_libdir}/libpvec.so +%{_includedir}/pveclib + +%files static +%doc README.md +%{_libdir}/libpvec.a + +%changelog +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jul 30 2019 Munroe S 1.0.3-1 +- Updates for RPM release. +* Mon Jul 22 2019 Munroe S 1.0.2y-1 +- Updates for RPM pre-release. +* Fri May 31 2019 Munroe S 1.0.2-1 +- Initial RPM release