-%attr(-,root,root) %doc ABOUT-NLS ANNOUNCE COPYING
-%attr(-,root,root) %doc README UPGRADING ChangeLog NEWS
-%attr(-,root,root) %doc lib/CREDITS README.reLyX
-
-%attr(-,root,root) /usr/bin/*
-%attr(-,root,root) /usr/man/*
-%attr(-,root,root) /usr/share/locale/*/LC_MESSAGES/*
-%attr(-,root,root) /usr/share/lyx
-%attr(-,root,root) /usr/share/texmf/tex/latex/lyx
+%defattr(-,root,root)
+%doc ABOUT-NLS ANNOUNCE COPYING
+%doc README UPGRADING NEWS
+%doc lib/CREDITS
+%{_bindir}/*
+%{_mandir}/man?/*
+%{_datadir}/locale/*/LC_MESSAGES/*
+%{_datadir}/%{name}
+%{_datadir}/texmf/tex/latex/%{name}