Blame SPECS/fido-device-onboard.spec

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