Blame SPECS/fido-device-onboard.spec

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