Dr. Werner Fink 2021-09-28 13:48:42 +00:00 committed by Git OBS Bridge
parent 49a1d31fec
commit 6c645b1d03

View File

@ -54,6 +54,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if ! %{defined _pam_libdir}
%define _pam_libdir /%{_lib}
%endif
%if ! %{defined license}
%define license %doc
%endif
%description
This PAM module will, when being used to authenticate a
@ -80,7 +83,12 @@ install -m 0644 %{S:1} %{buildroot}%{_mandir}/man8
%files
%defattr(-,root,root)
%if %{defined license}
%license LICENSE
%doc README
%else
%doc README LICENSE
%endif
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/xdg/autostart/pam-dbus-notify.desktop
%attr(0755, root, root) %{_pam_moduledir}/%{name}.so