1 Building and running the swtpm has dependencies on the following packages:
20 - selinux-policy-devel
28 - rpm-build (to build RPMs)
30 Debian/Ubuntu also needs the following packages to build:
36 On RHEL or Fedora use either one of the following methods to install
37 the above dependencies:
39 - sudo dnf builddep ./swtpm.spec (Fedora >= 22)
40 - sudo yum install yum-utils ; sudo yum-builddep ./swtpm.spec (RHEL and Fedora <= 21)
41 - sudo yum install <package name(s)>
43 On Ubuntu use the following command:
45 - sudo mk-build-deps --install ./debian/control
48 Use the following sequence to build and install the Software TPM.
50 ./autogen.sh --prefix=/usr
56 To build an rpm on a Fedora or RHEL host do:
60 rpmbuild -ta swtpm-*.tar.gz
63 To build a Debian package on a Debian compatible host do:
65 echo "libtpms0 libtpms" > ./debian/shlibs.local