Compare commits

...

1 Commits

Author SHA1 Message Date
9d29945509 import CS sgx-rpm-macros-1-2.el9 2025-09-29 10:13:06 +00:00
9 changed files with 40 additions and 77 deletions

View File

@ -1 +0,0 @@
1

40
SPECS/sgx-rpm-macros.spec Normal file
View File

@ -0,0 +1,40 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
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
Name: sgx-rpm-macros
Version: 1
Release: %autorelease
License: MIT-0
Summary: RPM macros for working with the SGX SDK
Source0: macros.sgx
Source1: MIT-0
BuildArch: noarch
%description
RPM macros for working with the SGX SDK
%build
cp %{SOURCE1} MIT-0
%install
%__install -d %{buildroot}/%{_rpmmacrodir}/
cp %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/
%files
%license MIT-0
%{_rpmmacrodir}/macros.sgx
%changelog
## START: Generated by rpmautospec
* Fri Mar 14 2025 Daniel P. Berrangé <berrange@redhat.com> - 1-1
- Initial import
## END: Generated by rpmautospec

View File

@ -1,6 +0,0 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,7 +0,0 @@
summary: qemu tests
description:
Test qemu
discover:
how: fmf
execute:
how: tmt

View File

@ -1,27 +0,0 @@
Name: sgx-rpm-macros
Version: 1
Release: %autorelease
License: MIT-0
Summary: RPM macros for working with the SGX SDK
Source0: macros.sgx
Source1: MIT-0
BuildArch: noarch
%description
RPM macros for working with the SGX SDK
%build
cp %{SOURCE1} MIT-0
%install
%__install -d %{buildroot}/%{_rpmmacrodir}/
cp %{SOURCE0} %{buildroot}/%{_rpmmacrodir}/
%files
%license MIT-0
%{_rpmmacrodir}/macros.sgx
%changelog
%autochangelog

View File

@ -1,8 +0,0 @@
summary: Basic smoke test
require:
- rpm-build
- sgx-rpm-macros
/smoke:
test: ./smoke.sh

View File

@ -1,28 +0,0 @@
#!/bin/sh
set -e
function evalmacro {
name=$1
dir=$(rpmbuild --eval "%$name")
if test "$dir" == "%$name"
then
echo "FAIL: $name is undefined"
exit 1
fi
if test -z "$dir"
then
echo "FAIL: $name is empty"
exit 1
fi
echo "PASS: $name is $dir"
}
evalmacro sgx_prefix
evalmacro sgx_libdir
evalmacro sgx_includedir
exit 0