|
|
@ -1,30 +1,48 @@
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
|
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
|
|
|
%global __cargo_is_lib() false
|
|
|
|
|
|
|
|
%global forgeurl https://github.com/fedora-iot/fido-device-onboard-rs
|
|
|
|
%global forgeurl https://github.com/fedora-iot/fido-device-onboard-rs
|
|
|
|
|
|
|
|
|
|
|
|
Version: 0.4.5
|
|
|
|
Version: 0.4.7
|
|
|
|
|
|
|
|
|
|
|
|
%forgemeta
|
|
|
|
%forgemeta
|
|
|
|
|
|
|
|
|
|
|
|
Name: fido-device-onboard
|
|
|
|
Name: fido-device-onboard
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: An implementation of the FIDO Device Onboard Specification written in rust
|
|
|
|
Summary: A rust implementation of the FIDO Device Onboard Specification
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
# Apache-2.0
|
|
|
|
|
|
|
|
# Apache-2.0 OR BSL-1.0
|
|
|
|
|
|
|
|
# Apache-2.0 OR ISC OR MIT
|
|
|
|
|
|
|
|
# Apache-2.0 OR MIT
|
|
|
|
|
|
|
|
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
|
|
|
|
|
|
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
|
|
|
|
|
|
|
# BSD-2-Clause
|
|
|
|
|
|
|
|
# BSD-3-Clause
|
|
|
|
|
|
|
|
# CC0-1.0
|
|
|
|
|
|
|
|
# CC0-1.0 OR Apache-2.0
|
|
|
|
|
|
|
|
# ISC
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
|
|
|
|
# MIT OR Apache-2.0 OR Zlib
|
|
|
|
|
|
|
|
# MPL-2.0
|
|
|
|
|
|
|
|
# Unlicense OR MIT
|
|
|
|
|
|
|
|
# Zlib OR Apache-2.0 OR MIT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
License: Apache-2.0 and BSD and MIT
|
|
|
|
URL: %{forgeurl}
|
|
|
|
URL: %{forgeurl}
|
|
|
|
Source: %{forgesource}
|
|
|
|
|
|
|
|
|
|
|
|
Source0: %{forgesource}
|
|
|
|
|
|
|
|
# this is a basic script to generate the vendor tarfile.
|
|
|
|
|
|
|
|
Source1: make-vendored-tarfile.sh
|
|
|
|
%if "%{?commit}" != ""
|
|
|
|
%if "%{?commit}" != ""
|
|
|
|
Source1: %{name}-rs-%{commit}-vendor-patched.tar.gz
|
|
|
|
Source2: %{name}-rs-%{commit}-vendor-patched.tar.xz
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Source1: %{name}-rs-%{version}-vendor-patched.tar.gz
|
|
|
|
Source2: %{name}-rs-%{version}-vendor-patched.tar.xz
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: debug-profile.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
# RHBZ 1869980
|
|
|
|
# Needs, at least, tss bindings regen
|
|
|
|
ExcludeArch: s390x i686 %{power64}
|
|
|
|
ExcludeArch: s390x i686 %{power64}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
@ -32,22 +50,22 @@ BuildRequires: rust-toolset
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: clang-devel
|
|
|
|
BuildRequires: openssl-devel >= 3.0.1-12
|
|
|
|
BuildRequires: cryptsetup-devel
|
|
|
|
BuildRequires: golang
|
|
|
|
BuildRequires: golang
|
|
|
|
BuildRequires: tpm2-tss-devel
|
|
|
|
BuildRequires: openssl-devel >= 3.0.1-12
|
|
|
|
BuildRequires: cryptsetup-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: clang-devel
|
|
|
|
BuildRequires: tpm2-tss-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%forgesetup
|
|
|
|
%forgesetup
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
%if 0%{?rhel} && !0%{?eln}
|
|
|
|
|
|
|
|
tar xvf %{SOURCE1}
|
|
|
|
# Vendored crates
|
|
|
|
|
|
|
|
tar xf %{SOURCE2}
|
|
|
|
mkdir -p .cargo
|
|
|
|
mkdir -p .cargo
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
cat >.cargo/config << EOF
|
|
|
|
[source.crates-io]
|
|
|
|
[source.crates-io]
|
|
|
@ -56,10 +74,10 @@ replace-with = "vendored-sources"
|
|
|
|
[source.vendored-sources]
|
|
|
|
[source.vendored-sources]
|
|
|
|
directory = "vendor"
|
|
|
|
directory = "vendor"
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__cargo} build --release --features openssl-kdf/deny_custom
|
|
|
|
%cargo_build \
|
|
|
|
|
|
|
|
-F openssl-kdf/deny_custom
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-client-linuxapp
|
|
|
|
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-client-linuxapp
|
|
|
@ -76,7 +94,7 @@ install -D -m 0755 -t %{buildroot}%{_bindir} target/release/fdo-admin-tool
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} examples/systemd/*
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_unitdir} examples/systemd/*
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_docdir}/fdo examples/config/*
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_docdir}/fdo examples/config/*
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/fdo
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/fdo
|
|
|
|
# 52fdo
|
|
|
|
# Dracut manufacturing service
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/module-setup.sh
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/module-setup.sh
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-generator
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-generator
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-service
|
|
|
|
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-service
|
|
|
@ -128,7 +146,7 @@ Summary: FDO Rendezvous Server implementation
|
|
|
|
%files -n fdo-rendezvous-server
|
|
|
|
%files -n fdo-rendezvous-server
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{_libexecdir}/fdo/fdo-rendezvous-server
|
|
|
|
%{_libexecdir}/fdo/fdo-rendezvous-server
|
|
|
|
%{_docdir}/fdo/rendezvous-server.yml
|
|
|
|
%{_docdir}/fdo/rendezvous-*.yml
|
|
|
|
%{_unitdir}/fdo-rendezvous-server.service
|
|
|
|
%{_unitdir}/fdo-rendezvous-server.service
|
|
|
|
|
|
|
|
|
|
|
|
%post -n fdo-rendezvous-server
|
|
|
|
%post -n fdo-rendezvous-server
|
|
|
@ -225,6 +243,16 @@ Requires: fdo-owner-cli
|
|
|
|
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.4.5-1
|
|
|
|
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.4.5-1
|
|
|
|
- Rebuilt for MSVSphere 9.1.
|
|
|
|
- Rebuilt for MSVSphere 9.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 20 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 0.4.7-3
|
|
|
|
|
|
|
|
- Fix services start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 15 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 0.4.7-2
|
|
|
|
|
|
|
|
- Upstream fix for rhbz#2168089
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 30 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 0.4.7-1
|
|
|
|
|
|
|
|
- Update to 0.4.7
|
|
|
|
|
|
|
|
- Package updates and cleanup
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 29 2022 Antonio Murdaca <runcom@linux.com> - 0.4.5-1
|
|
|
|
* Tue Mar 29 2022 Antonio Murdaca <runcom@linux.com> - 0.4.5-1
|
|
|
|
- bump to 0.4.5
|
|
|
|
- bump to 0.4.5
|
|
|
|
|
|
|
|
|
|
|
|