1 Building and running the swtpm has dependencies on the following packages:
20 - selinux-policy-devel
26 - rpm-build (to build RPMs)
28 Debian/Ubuntu also needs the following packages to build:
34 On RHEL or Fedora use either one of the following methods to install
35 the above dependencies:
37 - sudo dnf builddep ./dist/swtpm.spec (Fedora >= 22)
38 - sudo yum install yum-utils ; sudo yum-builddep ./dist/swtpm.spec (RHEL and Fedora <= 21)
39 - sudo yum install <package name(s)>
41 On Ubuntu use the following command:
43 - sudo mk-build-deps --install ./dist/control
46 Use the following sequence to build and install the Software TPM.
49 ./configure --prefix=/usr
55 To build an rpm on a Fedora or RHEL host do:
60 mkdir -p ~/rpmbuild/SOURCES
61 cp swtpm-0.x.y-tar.gz ~/rpmbuild/SOURCES
62 rpmbuild -ba dist/swtpm.spec
65 To build a Debian package on a Debian compatible host do:
67 echo "libtpms 0 libtpms" > ./debian/shlibs.local