Skip to content

Instantly share code, notes, and snippets.

@oglok
Created October 7, 2019 10:02
Show Gist options
  • Save oglok/37c7fd7222235ae8d47654d63f25d8c1 to your computer and use it in GitHub Desktop.
Save oglok/37c7fd7222235ae8d47654d63f25d8c1 to your computer and use it in GitHub Desktop.
%global srcname keylime
%define name keylime
%define version 5.0.0
%define unmangled_version 5.0.0
%define release 5
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Open source TPM software for Bootstrapping and Maintaining Trust
BuildArch: noarch
Group: Development/Libraries
Vendor: Keylime Developers
URL: https://github.com/keylime/keylime
Source0: https://github.com/keylime/keylime/archive/%{version}.tar.gz
License: MIT
AutoReq: no
BuildRequires: swig
BuildRequires: openssl-devel
BuildRequires: python3-setuptools
BuildRequires: python3-devel
Requires: procps-ng
Requires: python3-pyyaml
Requires: python3-m2crypto
Requires: python3-cryptography
Requires: python3-tornado
Requires: python3-simplejson
Requires: python3-requests
Requires: python3-zmq
Requires: tpm2-tss
Requires: tpm2-tools
Requires: tpm2-abrmd
%description
Keylime is a TPM based highly scalable remote boot attestation
and runtime integrity measurement solution.
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}/etc
cp -a keylime.conf %{buildroot}/etc
%files -n %{srcname}
%{_bindir}/keylime_verifier
%{_bindir}/keylime_registrar
%{_bindir}/keylime_agent
%{_bindir}/keylime_tenant
%{_bindir}/keylime_ca
%{_bindir}/keylime_provider_platform_init
%{_bindir}/keylime_provider_registrar
%{_bindir}/keylime_provider_vtpm_add
%{_bindir}/keylime_userdata_encrypt
%{_bindir}/keylime_ima_emulator
%{_bindir}/keylime_webapp
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/
%license LICENSE
%doc README.md
%{_prefix}/keylime/static/icons/ICON-LICENSE
%{_prefix}/keylime/static/icons/README.md
%{_prefix}/keylime/static/icons/png/ban-2x.png
%{_prefix}/keylime/static/icons/png/ban-3x.png
%{_prefix}/keylime/static/icons/png/ban-4x.png
%{_prefix}/keylime/static/icons/png/ban-6x.png
%{_prefix}/keylime/static/icons/png/ban-8x.png
%{_prefix}/keylime/static/icons/png/ban.png
%{_prefix}/keylime/static/icons/png/bug-2x.png
%{_prefix}/keylime/static/icons/png/bug-3x.png
%{_prefix}/keylime/static/icons/png/bug-4x.png
%{_prefix}/keylime/static/icons/png/bug-6x.png
%{_prefix}/keylime/static/icons/png/bug-8x.png
%{_prefix}/keylime/static/icons/png/bug.png
%{_prefix}/keylime/static/icons/png/keylime.png
%{_prefix}/keylime/static/icons/png/plus-2x.png
%{_prefix}/keylime/static/icons/png/plus-3x.png
%{_prefix}/keylime/static/icons/png/plus-4x.png
%{_prefix}/keylime/static/icons/png/plus-6x.png
%{_prefix}/keylime/static/icons/png/plus-8x.png
%{_prefix}/keylime/static/icons/png/plus.png
%{_prefix}/keylime/static/icons/png/trash-2x.png
%{_prefix}/keylime/static/icons/png/trash-3x.png
%{_prefix}/keylime/static/icons/png/trash-4x.png
%{_prefix}/keylime/static/icons/png/trash-6x.png
%{_prefix}/keylime/static/icons/png/trash-8x.png
%{_prefix}/keylime/static/icons/png/trash.png
%{_prefix}/keylime/static/css/webapp.css
%{_prefix}/keylime/static/js/webapp.js
%exclude %{_prefix}/package_default/keylime.conf
%config(noreplace) %{_sysconfdir}/keylime.conf
%changelog
* Mon Sep 30 2019 Luke Hinds <[email protected]> 5.0.0-5
* Wed Jul 18 2018 Huzefa Mandviwala <[email protected]> 1.2-1
– Initial Packaging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment