|
|
3779f9 |
%define dracutlibdir %{_prefix}/lib/dracut
|
|
|
3779f9 |
%bcond_without check
|
|
|
3779f9 |
%global __cargo_skip_build 0
|
|
|
3779f9 |
%global __cargo_is_lib() false
|
|
|
3779f9 |
%global forgeurl https://github.com/fedora-iot/fido-device-onboard-rs
|
|
|
3779f9 |
|
|
|
485978 |
Version: 0.3.0
|
|
|
3779f9 |
|
|
|
3779f9 |
%forgemeta
|
|
|
3779f9 |
|
|
|
3779f9 |
Name: fido-device-onboard
|
|
|
485978 |
Release: 4%{?dist}
|
|
|
3779f9 |
Summary: An implementation of the FIDO Device Onboard Specification written in rust
|
|
|
3779f9 |
|
|
|
485978 |
License: BSD
|
|
|
3779f9 |
URL: %{forgeurl}
|
|
|
3779f9 |
Source: %{forgesource}
|
|
|
3779f9 |
%if "%{?commit}" != ""
|
|
|
12d647 |
Source1: %{name}-rs-%{commit}-vendor-patched.tar.gz
|
|
|
3779f9 |
%else
|
|
|
12d647 |
Source1: %{name}-rs-%{version}-vendor-patched.tar.gz
|
|
|
3779f9 |
%endif
|
|
|
485978 |
|
|
|
485978 |
Patch0: kdf.patch
|
|
|
3779f9 |
|
|
|
3779f9 |
ExclusiveArch: %{rust_arches}
|
|
|
3779f9 |
# RHBZ 1869980
|
|
|
3779f9 |
ExcludeArch: s390x i686 %{power64}
|
|
|
3779f9 |
|
|
|
3779f9 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
3779f9 |
BuildRequires: rust-toolset
|
|
|
3779f9 |
%else
|
|
|
3779f9 |
BuildRequires: rust-packaging
|
|
|
3779f9 |
%endif
|
|
|
3779f9 |
BuildRequires: systemd-rpm-macros
|
|
|
3779f9 |
BuildRequires: openssl-devel
|
|
|
3779f9 |
BuildRequires: golang
|
|
|
3779f9 |
|
|
|
3779f9 |
%description
|
|
|
3779f9 |
%{summary}.
|
|
|
3779f9 |
|
|
|
3779f9 |
%prep
|
|
|
3779f9 |
%forgesetup
|
|
|
485978 |
%patch0 -p1
|
|
|
3779f9 |
%if 0%{?rhel} && !0%{?eln}
|
|
|
3779f9 |
%cargo_prep -V 1
|
|
|
3779f9 |
%else
|
|
|
3779f9 |
%cargo_prep
|
|
|
3779f9 |
%endif
|
|
|
3779f9 |
|
|
|
3779f9 |
%build
|
|
|
3779f9 |
%{__cargo} build --release --features "openssl-kdf/deny_custom,fdo-data-formats/use_noninteroperable_kdf"
|
|
|
3779f9 |
|
|
|
3779f9 |
%install
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-client-linuxapp
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-manufacturing-client
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-manufacturing-server
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-owner-onboarding-server
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_libexecdir}/fdo target/release/fdo-rendezvous-server
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{_bindir} target/release/fdo-owner-tool
|
|
|
3779f9 |
install -D -m 0644 -t %{buildroot}%{_unitdir} examples/systemd/*
|
|
|
3779f9 |
install -D -m 0644 -t %{buildroot}%{_docdir}/fdo examples/config/*
|
|
|
3779f9 |
# 52fdo
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/module-setup.sh
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-generator
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client-service
|
|
|
3779f9 |
install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/52fdo dracut/52fdo/manufacturing-client.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-init
|
|
|
3779f9 |
Summary: dracut module for device initialization
|
|
|
3779f9 |
%description -n fdo-init
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-init
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{dracutlibdir}/modules.d/52fdo/*
|
|
|
3779f9 |
%{_libexecdir}/fdo/fdo-manufacturing-client
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-owner-onboarding-server
|
|
|
3779f9 |
Summary: FDO Owner Onboarding Server implementation
|
|
|
3779f9 |
%description -n fdo-owner-onboarding-server
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-owner-onboarding-server
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{_libexecdir}/fdo/fdo-owner-onboarding-server
|
|
|
3779f9 |
%{_docdir}/fdo/owner-onboarding-server.yml
|
|
|
3779f9 |
%{_unitdir}/fdo-owner-onboarding-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%post -n fdo-owner-onboarding-server
|
|
|
3779f9 |
%systemd_post fdo-owner-onboarding-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%preun -n fdo-owner-onboarding-server
|
|
|
3779f9 |
%systemd_preun fdo-owner-onboarding-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%postun -n fdo-owner-onboarding-server
|
|
|
3779f9 |
%systemd_postun_with_restart fdo-owner-onboarding-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-rendezvous-server
|
|
|
3779f9 |
Summary: FDO Rendezvous Server implementation
|
|
|
3779f9 |
%description -n fdo-rendezvous-server
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-rendezvous-server
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{_libexecdir}/fdo/fdo-rendezvous-server
|
|
|
3779f9 |
%{_docdir}/fdo/rendezvous-server.yml
|
|
|
3779f9 |
%{_unitdir}/fdo-rendezvous-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%post -n fdo-rendezvous-server
|
|
|
3779f9 |
%systemd_post fdo-rendezvous-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%preun -n fdo-rendezvous-server
|
|
|
3779f9 |
%systemd_preun fdo-rendezvous-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%postun -n fdo-rendezvous-server
|
|
|
3779f9 |
%systemd_postun_with_restart fdo-rendezvous-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-manufacturing-server
|
|
|
3779f9 |
Summary: FDO Manufacturing Server implementation
|
|
|
3779f9 |
%description -n fdo-manufacturing-server
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-manufacturing-server
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{_libexecdir}/fdo/fdo-manufacturing-server
|
|
|
3779f9 |
%{_docdir}/fdo/manufacturing-server.yml
|
|
|
3779f9 |
%{_docdir}/fdo/rendezvous-info.yml
|
|
|
3779f9 |
%{_unitdir}/fdo-manufacturing-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%post -n fdo-manufacturing-server
|
|
|
3779f9 |
%systemd_post fdo-manufacturing-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%preun -n fdo-manufacturing-server
|
|
|
3779f9 |
%systemd_preun fdo-manufacturing-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%postun -n fdo-manufacturing-server
|
|
|
3779f9 |
%systemd_postun_with_restart fdo-manufacturing-server.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-client
|
|
|
3779f9 |
Summary: FDO Client implementation
|
|
|
3779f9 |
%description -n fdo-client
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-client
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{_libexecdir}/fdo/fdo-client-linuxapp
|
|
|
3779f9 |
%{_unitdir}/fdo-client-linuxapp.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%post -n fdo-client
|
|
|
3779f9 |
%systemd_post fdo-client-linuxapp.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%preun -n fdo-client
|
|
|
3779f9 |
%systemd_preun fdo-client-linuxapp.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%postun -n fdo-client
|
|
|
3779f9 |
%systemd_postun_with_restart fdo-client.linuxapp.service
|
|
|
3779f9 |
|
|
|
3779f9 |
%package -n fdo-owner-cli
|
|
|
3779f9 |
Summary: FDO Owner tools implementation
|
|
|
3779f9 |
%description -n fdo-owner-cli
|
|
|
3779f9 |
%{summary}
|
|
|
3779f9 |
|
|
|
3779f9 |
%files -n fdo-owner-cli
|
|
|
3779f9 |
%license LICENSE
|
|
|
3779f9 |
%{_bindir}/fdo-owner-tool
|
|
|
3779f9 |
%{_docdir}/fdo/owner-addresses.yml
|
|
|
3779f9 |
|
|
|
3779f9 |
%changelog
|
|
|
485978 |
* Thu Feb 03 2022 Antonio Murdaca <runcom@linux.com> - 0.3.0-4
|
|
|
485978 |
- revert and add missing %patch call
|
|
|
485978 |
|
|
|
485978 |
* Thu Feb 03 2022 Antonio Murdaca <runcom@linux.com> - 0.3.0-3
|
|
|
485978 |
- rebuilt to drop commit conditional or patch doesn't work
|
|
|
485978 |
|
|
|
485978 |
* Thu Feb 03 2022 Antonio Murdaca <runcom@linux.com> - 0.3.0-2
|
|
|
485978 |
- rebuilt to drop faulty conditional
|
|
|
485978 |
|
|
|
485978 |
* Tue Feb 01 2022 Antonio Murdaca <runcom@linux.com> - 0.3.0-1
|
|
|
485978 |
- bump to v0.3.0
|
|
|
485978 |
|
|
|
12d647 |
* Mon Jan 10 2022 Antonio Murdaca <runcom@linux.com> - 0.2.0-5
|
|
|
12d647 |
- rebuilt dropping vendored exe(s) files (dll and .a)
|
|
|
12d647 |
|
|
|
3779f9 |
* Sat Dec 11 2021 Antonio Murdaca <runcom@linux.com> - 0.2.0-4
|
|
|
3779f9 |
- Restore soname, add golang to BuildRequires
|
|
|
3779f9 |
|
|
|
3779f9 |
* Sat Dec 11 2021 Antonio Murdaca <runcom@linux.com> - 0.2.0-3
|
|
|
3779f9 |
- disable libfdo-data soname
|
|
|
3779f9 |
|
|
|
3779f9 |
* Sat Dec 11 2021 Antonio Murdaca <runcom@linux.com> - 0.2.0-2
|
|
|
3779f9 |
- rebuilt
|
|
|
3779f9 |
|
|
|
3779f9 |
* Fri Dec 10 2021 Antonio Murdaca <runcom@linux.com> - 0.2.0-1
|
|
|
3779f9 |
- bump to 0.2.0
|
|
|
3779f9 |
|
|
|
3779f9 |
* Wed Nov 17 2021 Antonio Murdaca <runcom@linux.com> - 0.1.0-2
|
|
|
3779f9 |
- rebuilt
|
|
|
3779f9 |
|
|
|
3779f9 |
* Tue Oct 5 2021 Antonio Murdaca <amurdaca@redhat.com> - 0.1.0-1
|
|
|
3779f9 |
- initial release
|