diff --git a/rust.spec b/rust.spec index 5bc1db3..c8207bb 100644 --- a/rust.spec +++ b/rust.spec @@ -181,7 +181,7 @@ 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 +%if (0%{?suse_version} < 1330 && 0%{?sle_version} <= 120300) %dir %{_datadir}/licenses %endif %license COPYRIGHT LICENSE-APACHE LICENSE-MIT @@ -215,7 +215,7 @@ sed -e '/*\//q' src/libbacktrace/backtrace.h \ %files doc %defattr(-,root,root) # The SLES-12 macros don't appear to take ownership of this directory? -%if 0%{?sle_version} <= 120300 +%if (0%{?suse_version} < 1330 && 0%{?sle_version} <= 120300) %dir %{_datadir}/licenses %endif %license %{_docdir}/%{name}/html/FiraSans-LICENSE.txt