https://bugzilla.redhat.com/show_bug.cgi?id=1047031
Bug ID: 1047031 Summary: fontpackages-devel macro %_font_pkg adds obsolete %defattr Product: Fedora Version: 20 Component: fontpackages Assignee: nicolas.mailhot@laposte.net Reporter: zbyszek@in.waw.pl QA Contact: extras-qa@fedoraproject.org CC: fonts-bugs@lists.fedoraproject.org, nicolas.mailhot@laposte.net, paul@frixxon.co.uk, tagoh@redhat.com External Bug ID: Red Hat Bugzilla 909794
Description of problem:
$ rpmbuild --eval %_font_pkg
%post -n -fonts if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache /usr/share/fonts/%{name} || : fi
%postun -n -fonts if [ $1 -eq 0 -a -x /usr/bin/fc-cache ] ; then /usr/bin/fc-cache /usr/share/fonts/%{name} || : fi
%files -n -fonts %defattr(0644,root,root,0755)
%dir /usr/share/fonts/%{name}
This causes a warning from fedora-review and is against current policy. [x]: Each %files section contains %defattr if rpm < 4.4 Note: %defattr present but not needed
Version-Release number of selected component (if applicable): fontpackages-devel-1.44-9.fc20.noarch