From 796de261649c5d2605daa03346d034a255b8d5a2 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 17 May 2022 11:24:49 +0200 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/.gitkeeper | 0 SPECS/pveclib.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 SOURCES/.gitkeeper create mode 100644 SPECS/pveclib.spec diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/pveclib.spec b/SPECS/pveclib.spec new file mode 100644 index 0000000..2ce9b62 --- /dev/null +++ b/SPECS/pveclib.spec @@ -0,0 +1,89 @@ +Name: pveclib +Version: 1.0.4.4 +Release: 1%{?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 autoconf-archive 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_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 +find %{buildroot} -type f -name "libpvec.a" -delete +find %{buildroot} -type l -name "libpvecstatic.so" -delete +find %{buildroot} -type l -name "libpvecstatic.so.0" -delete +find %{buildroot} -type f -name "libpvecstatic.so.0.0.0" -delete +find %{buildroot} -type f -name "libpvecstatic.so.0.0.0*.debug" -delete + + +%files +%license LICENSE COPYING +%doc COPYING README.md CONTRIBUTING.md ChangeLog.md +%{_libdir}/libpvec.so.1 +%{_libdir}/libpvec.so.1.0.4 + + +%files devel +%doc README.md +%{_libdir}/libpvec.so +%{_includedir}/pveclib + + +%files static +%doc README.md +%{_libdir}/libpvecstatic.a + + +%changelog +* Tue Jul 07 2020 Munroe S 1.0.4alpha1-1 +- Updates for RPM pre-release. +* 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