## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 # Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate occlum_dcap Name: rust-occlum_dcap Version: 0.1.0 Release: %autorelease Summary: Occlum DCAP library for Intel SGX attestation License: Apache-2.0 URL: https://github.com/occlum/occlum Source: https://github.com/occlum/occlum/archive/refs/tags/v0.29.7.tar.gz # Use sgx_types from crates.io instead of path dependency Patch: 0001-Use-sgx_types-from-crates.io-instead-of-path-depende.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: rust-packaging >= 21 BuildRequires: sgx-devel Requires: sgx-common %global _description %{expand: Occlum DCAP library provides Rust bindings for Intel SGX Data Center Attestation Primitives (DCAP) for generating and verifying quotes.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n occlum-0.29.7/tools/toolchains/dcap_lib -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Fri Oct 17 2025 John Doe - 0.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec