diff --git a/pam_mount.spec b/pam_mount.spec index 24d9c54..27f39f4 100644 --- a/pam_mount.spec +++ b/pam_mount.spec @@ -18,6 +18,7 @@ Name: pam_mount +%define lname libcryptmount0 Summary: A PAM Module that can Mount Volumes for a User Session Version: 2.13 Release: 0 @@ -64,11 +65,11 @@ volumes are set up properly because often they need more than just a mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE, dm-crypt and LUKS. -%package -n libcryptmount0 +%package -n %lname Summary: Library to mount crypto images and handle key files Group: System/Libraries -%description -n libcryptmount0 +%description -n %lname libcryptmount takes care of the many steps involved in making a crypto image (file) available as a mountable block device, including supplemental key file decryption, loop device setup and crypto device @@ -78,6 +79,7 @@ and transparent use of the OS's crypto layer. %package -n libcryptmount-devel Summary: Development files for libcryptmount Group: Development/Libraries/C and C++ +Requires: %lname = %version %description -n libcryptmount-devel libcryptmount takes care of the many steps involved in making a @@ -131,6 +133,10 @@ then done fi +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + %files %defattr(-, root, root) %docdir %_docdir/%name @@ -150,7 +156,7 @@ fi %policy %_sysconfdir/selinux/strict/src/policy/file_contexts/misc/%name.fc %endif -%files -n libcryptmount0 +%files -n %lname %defattr(-,root,root) %_libdir/libcryptmount.so.0*