Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5366d1e54a | ||
| 8c68de1a48 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/qat-zstd-plugin-*.tar.gz
|
||||
SOURCES/qat-zstd-plugin-1.0.0.tar.gz
|
||||
|
||||
1
.qat-zstd-plugin.metadata
Normal file
1
.qat-zstd-plugin.metadata
Normal file
@ -0,0 +1 @@
|
||||
cfdcb9b4a3308da2d7e8a29b19519bcd41fc13e2 SOURCES/qat-zstd-plugin-1.0.0.tar.gz
|
||||
114
SPECS/qat-zstd-plugin.spec
Normal file
114
SPECS/qat-zstd-plugin.spec
Normal file
@ -0,0 +1,114 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.6.5)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 1;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
## END: Set by rpmautospec
|
||||
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
Name: qat-zstd-plugin
|
||||
Version: 1.0.0
|
||||
Release: %autorelease
|
||||
Summary: Intel QuickAssist Technology ZSTD Plugin
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/intel/QAT-ZSTD-Plugin
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: test.patch
|
||||
Patch1: rh-makefile.patch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libzstd-devel
|
||||
BuildRequires: qatlib-devel
|
||||
BuildRequires: numactl-devel
|
||||
|
||||
# Upstream only supports x86_64
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
%description
|
||||
Intel QuickAssist Technology ZSTD is a plugin to Zstandard for accelerating
|
||||
compression by QAT. ZSTD* is a fast lossless compression algorithm, targeting
|
||||
real-time compression scenarios at zlib-level and better compression ratios.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
applications that use %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Static library for %{name}
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains the static %{name} library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n QAT-ZSTD-Plugin-%{version}
|
||||
|
||||
# fedora/rhel path fixes
|
||||
sed -i -e 's|/usr/local|%{_prefix}|g' src/Makefile
|
||||
sed -i -e 's|$(PREFIX)/lib|%{_libdir}|g' src/Makefile
|
||||
sed -i -e 's|$(PREFIX)/include|%{_includedir}|g' src/Makefile
|
||||
|
||||
%build
|
||||
# c9s build system quickfix BEGIN
|
||||
CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
|
||||
export CFLAGS
|
||||
CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
|
||||
export CXXFLAGS
|
||||
FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
|
||||
export FFLAGS
|
||||
FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
|
||||
export FCFLAGS
|
||||
LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '
|
||||
export LDFLAGS
|
||||
LT_SYS_LIBRARY_PATH=/usr/lib64:
|
||||
export LT_SYS_LIBRARY_PATH
|
||||
CC=gcc
|
||||
export CC
|
||||
CXX=g++
|
||||
export CXX
|
||||
# c9s build system quickfix END
|
||||
%make_build LDFLAGS="$LDFLAGS -lzstd"
|
||||
make test
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test/test README.md
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_libdir}/libqatseqprod.so.1
|
||||
%{_libdir}/libqatseqprod.so.%{version}
|
||||
|
||||
%files devel
|
||||
%{_includedir}/qatseqprod.h
|
||||
%{_libdir}/libqatseqprod.so
|
||||
|
||||
%files static
|
||||
%license LICENSE
|
||||
%{_libdir}/libqatseqprod.a
|
||||
|
||||
%changelog
|
||||
## START: Generated by rpmautospec
|
||||
* Mon Feb 02 2026 Vladislav Dronov <vdronov@redhat.com> - 1.0.0-1
|
||||
- Update to qat-zstd-plugin 1.0.0 @ 1e8b930c (RHEL-72905)
|
||||
- NUMA node aware mem allocations and other Code optimizations
|
||||
- Bug Fixes and Static analysis Fixes (OpenScanhub and Latest Coverity)
|
||||
- Support ZSTD v1.5.7 and README refactor
|
||||
- Spec file updates for RPM Packaging
|
||||
|
||||
* Tue Oct 29 2024 Vladis Dronov <vdronov@redhat.com> - 0.2.0-1
|
||||
- Initial commit on c9s (RHEL-46072)
|
||||
## END: Generated by rpmautospec
|
||||
@ -1,76 +0,0 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
Name: qat-zstd-plugin
|
||||
Version: 1.0.0
|
||||
Release: %autorelease
|
||||
Summary: Intel QuickAssist Technology ZSTD Plugin
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/intel/QAT-ZSTD-Plugin
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: test.patch
|
||||
Patch1: rh-makefile.patch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libzstd-devel
|
||||
BuildRequires: qatlib-devel
|
||||
BuildRequires: numactl-devel
|
||||
|
||||
# Upstream only supports x86_64
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
%description
|
||||
Intel QuickAssist Technology ZSTD is a plugin to Zstandard for accelerating
|
||||
compression by QAT. ZSTD* is a fast lossless compression algorithm, targeting
|
||||
real-time compression scenarios at zlib-level and better compression ratios.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
applications that use %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Static library for %{name}
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains the static %{name} library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n QAT-ZSTD-Plugin-%{version}
|
||||
|
||||
# fedora/rhel path fixes
|
||||
sed -i -e 's|/usr/local|%{_prefix}|g' src/Makefile
|
||||
sed -i -e 's|$(PREFIX)/lib|%{_libdir}|g' src/Makefile
|
||||
sed -i -e 's|$(PREFIX)/include|%{_includedir}|g' src/Makefile
|
||||
|
||||
%build
|
||||
%make_build LDFLAGS="$LDFLAGS -lzstd"
|
||||
make test
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test/test README.md
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_libdir}/libqatseqprod.so.1
|
||||
%{_libdir}/libqatseqprod.so.%{version}
|
||||
|
||||
%files devel
|
||||
%{_includedir}/qatseqprod.h
|
||||
%{_libdir}/libqatseqprod.so
|
||||
|
||||
%files static
|
||||
%license LICENSE
|
||||
%{_libdir}/libqatseqprod.a
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (qat-zstd-plugin-1.0.0.tar.gz) = 6ee92f0631d4b66f250db7b55a84f2c6fe37ca70d72ad30c6d7559034ac74f24511963ebd877dfd323e9f66bccf3f311ba215167cb60338f4181cf060fb81286
|
||||
@ -1,7 +0,0 @@
|
||||
A test should be configured as BaseOS CI test (not an OSCI one), as it require
|
||||
an x86_64 machine with QAT_4XXX (or later) hardware, so it should be run in Beaker.
|
||||
|
||||
see: https://one.redhat.com/rhel-development-guide/#proc_enable-gating_assembly_enabling-gating
|
||||
and: https://docs.engineering.redhat.com/display/RTT/Onboarding+gating+tests
|
||||
and: https://docs.engineering.redhat.com/pages/viewpage.action?pageId=53110084
|
||||
and: https://docs.engineering.redhat.com/display/RTT/Creating+and+Updating+beaker+test
|
||||
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# There is a test binary and %check rpm target for testing
|
||||
echo QAT-ZSTD-Plugin nulltest is PASS
|
||||
exit 0
|
||||
@ -1,10 +0,0 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- nulltest:
|
||||
dir: .
|
||||
run: nulltest.sh
|
||||
Loading…
Reference in New Issue
Block a user