diff --git a/pam_dbus.spec b/pam_dbus.spec index 3c96d59..d16df75 100644 --- a/pam_dbus.spec +++ b/pam_dbus.spec @@ -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