g3/g3bench/g3bench.spec
2023-06-12 11:41:15 +08:00

49 lines
1,016 B
RPMSpec

%if 0%{?rhel} > 7
%undefine _debugsource_packages
%endif
%if 0%{?rhel} == 7
%global debug_package %{nil}
%endif
%define build_profile release-lto
Name: g3bench
Version: 0.7.0
Release: 1%{?dist}
Summary: Benchmark tool for G3 Project
License: ASL 2.0
#URL:
Source0: %{name}-%{version}.tar.xz
Requires: ca-certificates
%description
Benchmark tool for G3 Project
%prep
%autosetup
%build
G3_PACKAGE_VERSION="%{version}-%{release}"
export G3_PACKAGE_VERSION
SSL_FEATURE=$(pkg-config --atleast-version 1.1.1 libssl || echo "vendored-openssl")
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE, --package g3bench
%install
rm -rf $RPM_BUILD_ROOT
install -m 755 -D target/%{build_profile}/g3bench %{buildroot}%{_bindir}/g3bench
%files
#%license add-license-file-here
%{_bindir}/g3bench
%changelog
* Mon Jun 12 2023 G3bench Maintainers <g3bench-maintainers@devel.machine> - 0.7.0-1
- New upstream release