Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mbussolotto:branches:systemsmanagement:Uyuni:Master
uyuni-coco-attestation
uyuni-coco-attestation.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File uyuni-coco-attestation.spec of Package uyuni-coco-attestation
# # spec file for package uyuni-coco-attestation # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: uyuni-coco-attestation Version: 5.0.3 Release: 0 Summary: Uyuni utility for Confidential Computing Attestation License: GPL-2.0-only Group: System/Daemons URL: https://www.uyuni-project.org Source0: uyuni-coco-attestation-git-0.1a943b3.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 11 BuildRequires: maven-local BuildRequires: mvn(org.uyuni-project:uyuni-java-parent:pom:) BuildRequires: mvn(org.uyuni-project:uyuni-java-common) BuildRequires: mvn(org.apache.commons:commons-ognl) BuildRequires: mvn(org.apache.logging.log4j:log4j-api) BuildRequires: mvn(org.apache.logging.log4j:log4j-core) BuildRequires: mvn(org.postgresql:postgresql) BuildRequires: mvn(org.javassist:javassist) BuildRequires: mvn(org.mybatis:mybatis) BuildRequires: mvn(com.mchange:mchange-commons-java) BuildRequires: mvn(com.mchange:c3p0) %description System daemon used by Uyuni to validate the results of confidential computing attestation. %package core Summary: Uyuni utility for Confidential Computing Attestation BuildArch: noarch %description core System daemon used by Uyuni to validate the results of confidential computing attestation. %ifarch x86_64 %package module-snpguest Summary: Confidential computing SNPGuest attestation module for Uyuni Requires: snpguest %description module-snpguest Module for the Uyuni Confidential Computing Attestation that uses SnpGuest. %endif %package javadoc Summary: API documentation for %{name} BuildArch: noarch %description javadoc Package containing the Javadoc API documentation for %{name}. %prep %setup -q -n uyuni-coco-attestation-git-0.1a943b3 # Disable the common module it will be provided by the installed dependency %pom_disable_module '../uyuni-java-common' %ifnarch x86_64 # Disable the module snpguest as it requires x86_64 %pom_disable_module 'attestation-module-snpguest' %endif # Make sure there are not dependencies on the modules projects %pom_remove_dep 'org.uyuni-project.coco-attestation.module:' attestation-core/pom.xml # Shade is used only for developing convenience %pom_remove_plugin -r :maven-shade-plugin %{mvn_package} ':attestation-module-snpguest' module-snpguest %build %{mvn_build} -f %install %mvn_install # Install required directories install -d -m 755 $RPM_BUILD_ROOT%{_sbindir} install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/ install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/classes install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/conf install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/lib # Required files install -p -m 755 attestation-core/src/package/coco-attestation.sh $RPM_BUILD_ROOT%{_sbindir}/coco-attestation install -p -m 644 attestation-core/src/package/daemon.conf $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/conf install -p -m 644 attestation-core/src/package/log4j2.xml $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/classes # Create links for the jars build-jar-repository -s -p $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/lib uyuni-java-common/uyuni-common log4j/log4j-api log4j/log4j-core ongres-scram ongres-stringprep postgresql-jdbc apache-commons-ognl javassist mybatis mchange-commons c3p0 # Link all the attestation jars built and installed by maven ln -s -f -r $RPM_BUILD_ROOT%{_javadir}/uyuni-coco-attestation/*.jar $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/lib %ifarch x86_64 # Install snpguest certificates cd attestation-module-snpguest/src/package/certs/ for FILE in $(find -name *.pem -type f -printf '%%P\n'); do echo $FILE install -D -p -m 644 $FILE $RPM_BUILD_ROOT%{_prefix}/share/coco-attestation/certs/$FILE done cd - %endif %files core -f .mfiles %defattr(-,root,root) %dir /usr/share/coco-attestation/ %dir /usr/share/coco-attestation/conf/ %dir /usr/share/coco-attestation/lib/ %dir /usr/share/coco-attestation/classes/ %{_prefix}/share/coco-attestation/lib/* %attr(755, root, root) %{_sbindir}/coco-attestation %{_prefix}/share/coco-attestation/conf/daemon.conf %{_prefix}/share/coco-attestation/classes/log4j2.xml %license LICENSE # Exclude all modules jars, will be part of their specific packages %exclude %{_prefix}/share/coco-attestation/lib/attestation-module-* %ifarch x86_64 %files module-snpguest -f .mfiles-module-snpguest %defattr(-,root,root) %dir /usr/share/coco-attestation/certs/ %{_prefix}/share/coco-attestation/lib/attestation-module-snpguest.jar %{_prefix}/share/coco-attestation/certs/* %license LICENSE %endif %files javadoc -f .mfiles-javadoc %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor