ln -sf en $RPM_BUILD_ROOT/etc/skel/default
msgfmt po/pl.po -o $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES/adduser.mo
+%find_lang %{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(700,root,root) %{_sbindir}/*
-%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/adduser.mo
-
%attr(750,root,root) %dir /etc/adduser.d
%attr(700,root,root) %dir /etc/skel/C
%attr(700,root,root) %dir %lang(pl) /etc/skel/pl