Skip to content

Instantly share code, notes, and snippets.

@jorritfolmer
jorritfolmer / gist:e4bfb69b6d609542730b
Last active August 24, 2020 00:28
.spec file to build Russell Stuart's pam-python on RHEL

pam_python.so on RHEL systems

pam_python.so is not readily available on RHEL systems. Here's how to create an RPM from Russell's tar.gz:

  1. download pam-python.1.0.4.tar.gz to ~/rpmbuild/SOURCES
  2. copy/paste pam-python.spec from below in ~/rpmbuild/SPECS/
  3. copy/paste pam-python-1.0.4-fix-compile-rhel.patch from below in ~/rpmbuild/SOURCES
  4. rpmbuild -bb ~/rpmbuild/SPECS/pam-python.spec

pam-python.spec