diff --git a/rust.spec b/rust.spec index ff364ee..acb0ca3 100644 --- a/rust.spec +++ b/rust.spec @@ -180,6 +180,10 @@ sed -e '/*\//q' src/libbacktrace/backtrace.h \ %files %defattr(-,root,root,-) +# The SLES-12 macros don't appear to take ownership of this directory? +%if 0%{?sle_version} <= 120300 +%dir %{_datadir}/licenses +%endif %license COPYRIGHT LICENSE-APACHE LICENSE-MIT %license src/libbacktrace/LICENSE-libbacktrace %license src/rt/hoedown/LICENSE-hoedown @@ -210,6 +214,9 @@ sed -e '/*\//q' src/libbacktrace/backtrace.h \ %files doc %defattr(-,root,root) +%if 0%{?sle_version} <= 120300 +%dir %{_datadir}/licenses +%endif %license %{_docdir}/%{name}/html/FiraSans-LICENSE.txt %license %{_docdir}/%{name}/html/Heuristica-LICENSE.txt %license %{_docdir}/%{name}/html/LICENSE-APACHE.txt