%if "%{getenv:JENKINS_URL}" != "" %global debug_package %{nil} %endif Name: zola Version: 0.21.0 Release: %autorelease Summary: A fast static site generator in a single binary with everything built-in License: MIT URL: https://github.com/getzola/zola Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz ExclusiveArch: x86_64 aarch64 BuildRequires: cargo %description %{summary}. %prep %autosetup -n %{name}-%{version} %build if [ -n "$JENKINS_URL" ]; then CFLAGS="${CFLAGS:-} -std=gnu17" RUSTFLAGS="" cargo build --locked --release --jobs 2 else CFLAGS="${CFLAGS:-} -std=gnu17" cargo build --locked --release --jobs '%{?_smp_build_ncpus}' fi %install install -D target/release/zola %{buildroot}%{_bindir}/zola %files %license LICENSE %doc README.md %{_bindir}/zola %changelog %autochangelog