!1 Package init
From: @lyn1001 Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
e2771f0f2b
70
isa-l.spec
Normal file
70
isa-l.spec
Normal file
@ -0,0 +1,70 @@
|
||||
%define isal_libname libisa-l
|
||||
%define isal_devname libisa-l-devel
|
||||
Name: isa-l
|
||||
Version: 2.30.0
|
||||
Release: 1
|
||||
Summary: Intelligent Storage Acceleration Library
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/intel/isa-l
|
||||
Source0: https://github.com/intel/isa-l/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: yasm gcc
|
||||
BuildRequires: autoconf automake libtool
|
||||
%description
|
||||
This package contains the libisal.so dynamic library which contains
|
||||
a collection of optimized low-level functions targeting storage
|
||||
applications.
|
||||
|
||||
%package -n %{isal_libname}
|
||||
Summary: Dynamic library for isa-l functions
|
||||
License: BSD-3-Clause
|
||||
Obsoletes: %{name} < %{version}
|
||||
%description -n %{isal_libname}
|
||||
This package contains the libisal.so dynamic library which contains
|
||||
a collection of optimized low-level functions targeting storage
|
||||
applications.
|
||||
|
||||
%package -n %{isal_devname}
|
||||
Summary: ISA-L devel package
|
||||
Requires: %{isal_libname}%{?_isa} = %{version}
|
||||
Provides: %{isal_libname}-static%{?_isa} = %{version}
|
||||
%description -n %{isal_devname}
|
||||
Development files for the %{isal_libname} library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
if [ ! -f configure ]; then
|
||||
./autogen.sh --no-oshmem
|
||||
fi
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{?buildroot} -name *.la -print0 | xargs -r0 rm -f
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%doc
|
||||
|
||||
%files -n %{isal_libname}
|
||||
%license LICENSE
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files -n %{isal_devname}
|
||||
%license LICENSE
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/*.a
|
||||
%{_libdir}/pkgconfig/libisal.pc
|
||||
|
||||
%changelog
|
||||
* Sat Aug 28 2021 liyanan <liyanan32@huawei.com> - 2.30.0-1
|
||||
- package init
|
||||
4
isa-l.yaml
Normal file
4
isa-l.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: intel/isa-l
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
BIN
v2.30.0.tar.gz
Normal file
BIN
v2.30.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user