Fix permissions on license files

License files should precede defattr setting permissions to 555.
This commit is contained in:
Marian Csontos 2017-05-09 18:27:17 +02:00
parent a730006f2b
commit 82eacf9683

View File

@ -434,9 +434,10 @@ This package contains shared lvm2 libraries for applications.
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files libs %files libs
%defattr(555,root,root,-) %defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING.LIB %license COPYING.LIB
%defattr(555,root,root,-)
%{_libdir}/liblvm2app.so.* %{_libdir}/liblvm2app.so.*
%{_libdir}/liblvm2cmd.so.* %{_libdir}/liblvm2cmd.so.*
%{_libdir}/libdevmapper-event-lvm2.so.* %{_libdir}/libdevmapper-event-lvm2.so.*
@ -769,9 +770,10 @@ This package contains the device-mapper shared library, libdevmapper.
%postun -n device-mapper-libs -p /sbin/ldconfig %postun -n device-mapper-libs -p /sbin/ldconfig
%files -n device-mapper-libs %files -n device-mapper-libs
%defattr(555,root,root,-) %defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING COPYING.LIB %license COPYING COPYING.LIB
%defattr(555,root,root,-)
%{_libdir}/libdevmapper.so.* %{_libdir}/libdevmapper.so.*
%package -n device-mapper-event %package -n device-mapper-event
@ -824,9 +826,10 @@ libdevmapper-event.
%postun -n device-mapper-event-libs -p /sbin/ldconfig %postun -n device-mapper-event-libs -p /sbin/ldconfig
%files -n device-mapper-event-libs %files -n device-mapper-event-libs
%defattr(555,root,root,-) %defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING.LIB %license COPYING.LIB
%defattr(555,root,root,-)
%{_libdir}/libdevmapper-event.so.* %{_libdir}/libdevmapper-event.so.*
%package -n device-mapper-event-devel %package -n device-mapper-event-devel