isa-l/isa-l.spec
2021-08-30 09:58:02 +08:00

71 lines
1.8 KiB
RPMSpec

%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