1 Building and running the swtpm has dependencies on the following packages:
19 - selinux-policy-devel
27 - rpm-build (to build RPMs)
29 Debian/Ubuntu also needs the following packages to build:
35 On RHEL or Fedora use either one of the following methods to install
36 the above dependencies:
38 - sudo dnf builddep ./dist/swtpm.spec (Fedora >= 22)
39 - sudo yum install yum-utils ; sudo yum-builddep ./dist/swtpm.spec (RHEL and Fedora <= 21)
40 - sudo yum install <package name(s)>
42 On Ubuntu use the following command:
44 - sudo mk-build-deps --install ./debian/control
47 Use the following sequence to build and install the Software TPM.
49 ./autogen.sh --prefix=/usr
55 To build an rpm on a Fedora or RHEL host do:
59 mkdir -p ~/rpmbuild/SOURCES
60 cp swtpm-0.x.y-tar.gz ~/rpmbuild/SOURCES
61 rpmbuild -ba dist/swtpm.spec
64 To build a Debian package on a Debian compatible host do:
66 echo "libtpms0 libtpms" > ./debian/shlibs.local